Welcome to the Achaea Forums! Please be sure to read the Forum Rules.

from nexus to html

YamatoYamato ✭✭ - StalwartMember Posts: 62 ✭✭ - Stalwart
Heya, I've been playing on nexus for a long while now, and don't really care for mudlet, I want to make the change to html, it looks nice but I´m really clueless about scripting here..

I want to know if and how I can open doors in a certain direction, in nexus I used to do this

There is a door in the way, to the {w}
followed by
open door $1

I was wondering how to do this in HMTL, any ideas?

Comments

  • TectonTecton The Garden of the GodsAdministrator Posts: 2,507 Admin
    There's a massive overhaul coming to the HTML5 client's scripting functionality in the very near future, making things -far- easier to do. For now though, you can make this happen by using this:

    Match Criteria: There is a door in the way, to the (w)
    Custom Script: send_direct( "open door " + args[1]);

    Hope this helps!
  • YamatoYamato ✭✭ - Stalwart Member Posts: 62 ✭✭ - Stalwart
    This doesn't seem to work. 
  • TectonTecton The Garden of the GodsAdministrator Posts: 2,507 Admin
    edited January 2014
    image
    WysteriaOrzaansynZincor
  • TectonTecton The Garden of the GodsAdministrator Posts: 2,507 Admin
    edited January 2014
    Egads, having a retina display has its downsides...
    YamatoZincor
  • YamatoYamato ✭✭ - Stalwart Member Posts: 62 ✭✭ - Stalwart
    edited January 2014
    Edit: Oh, it seems to work now, thanks!
  • YamatoYamato ✭✭ - Stalwart Member Posts: 62 ✭✭ - Stalwart
    edited January 2014
    well this is strange.. it only works on a western exit.

    image

    I echoed it so you can see, it only works on a western exit?
    image
    Edit: Well my screenshot does not show much.. but I tried other exits aswell, it only works on a western exit?
  • TectonTecton The Garden of the GodsAdministrator Posts: 2,507 Admin
    I was thinking nexus (the joys of supporting multiple clients with multiple scripting subsystems), (\w+) is what you want there, instead of (w)
  • SilasSilas Member Posts: 2,549 @@ - Legendary Achaean
    lol @tecton, what a newb

  • TectonTecton The Garden of the GodsAdministrator Posts: 2,507 Admin
    I'm still waiting on multiclass, @Silas.
    SilasNimQuazziTrevize
  • SilasSilas Member Posts: 2,549 @@ - Legendary Achaean
    yes boss :(

    CarmellTrevizeAveri
  • OrzaansynOrzaansyn Member Posts: 663 @@ - Legendary Achaean
    Tecton said:
    There's a massive overhaul coming to the HTML5 client's scripting functionality in the very near future
    image

    Will there be an integrated curing system?
    image
  • YamatoYamato ✭✭ - Stalwart Member Posts: 62 ✭✭ - Stalwart
    Thanks, it worked!
  • YamatoYamato ✭✭ - Stalwart Member Posts: 62 ✭✭ - Stalwart
    new question, I made a trigger, 

    There is a door in the way, to the (\w+)

    send_direct( "open door " + args[1]);
    send_direct( args[1]); 
    set_variable ("door", "args[1]");

    This will open the door, move me through the door, then it sets my variable "door" to  "args[1]"  instead of west, or east, or whatever.
    image
    Is there  a way to check the exact location of the last door I opened? kinda useless trigger I know but it can be applied to other functions as well.
  • TectonTecton The Garden of the GodsAdministrator Posts: 2,507 Admin
    Orzaansyn said:
    Tecton said:
    There's a massive overhaul coming to the HTML5 client's scripting functionality in the very near future

    Will there be an integrated curing system?
    Probably not this release, we've started working on it though - there's a thread HERE


    Yamato said:
    new question, I made a trigger, 

    There is a door in the way, to the (\w+)

    send_direct( "open door " + args[1]);
    send_direct( args[1]); 
    set_variable ("door", "args[1]");

    This will open the door, move me through the door, then it sets my variable "door" to  "args[1]"  instead of west, or east, or whatever.
    image
    Is there  a way to check the exact location of the last door I opened? kinda useless trigger I know but it can be applied to other functions as well.
    You'll want to remove the quotation marks around "args[1]" in your set_variable.
    Orzaansyn
  • YamatoYamato ✭✭ - Stalwart Member Posts: 62 ✭✭ - Stalwart
    edited January 2014
    Edit: Thanks! that worked
  • YamatoYamato ✭✭ - Stalwart Member Posts: 62 ✭✭ - Stalwart
    One more thing, can you call a function, while in a function?
  • OrzaansynOrzaansyn Member Posts: 663 @@ - Legendary Achaean
    Tecton said:
    Orzaansyn said:
    Tecton said:
    There's a massive overhaul coming to the HTML5 client's scripting functionality in the very near future

    Will there be an integrated curing system?
    Probably not this release, we've started working on it though - there's a thread HERE


    Will the new client be more compliant with a mobile screen when login from a mobile? 

    I mean, only the main output, prompt and input field, already set to the proper dimensions, and a way to go upward in the history?
    image
  • YamatoYamato ✭✭ - Stalwart Member Posts: 62 ✭✭ - Stalwart
    One problem, I'm trying to make a function that cures only if im not stunned,  not asleep, and if I am on salve balance.
    just to test if this works at all I'm sending send_direct ("jump"); which will be replaced later.

    image

    when I run it I get

    image
    image
    and as you can see,  stunned is defined!

    any ideas how I can solve this?
  • XliXli ✭✭✭ - Distinguished Member Posts: 354 ✭✭✭ - Distinguished
    Check for blank spaces after the variable name in your definition?
    Hiroma tells you, "I just got to listen to someone complain about your deadly axekick being the bane of their existence."
    Archdragon Mizik Corten, Herald of Ruin says, "Man, that was a big axk."
    Hellrazor Cain de Soulis, Sartan's Hammer says, "Your [sic] a beast."
  • YamatoYamato ✭✭ - Stalwart Member Posts: 62 ✭✭ - Stalwart
    Just double checked.. thats not it.
  • TectonTecton The Garden of the GodsAdministrator Posts: 2,507 Admin
    Orzaansyn said:
    Tecton said:
    Orzaansyn said:
    Tecton said:
    There's a massive overhaul coming to the HTML5 client's scripting functionality in the very near future

    Will there be an integrated curing system?
    Probably not this release, we've started working on it though - there's a thread HERE


    Will the new client be more compliant with a mobile screen when login from a mobile? 

    I mean, only the main output, prompt and input field, already set to the proper dimensions, and a way to go upward in the history?
    You can use the low-resolution client for small screens http://client.achaea.com/v1
  • YamatoYamato ✭✭ - Stalwart Member Posts: 62 ✭✭ - Stalwart
    nevermind, I think I find out why now.
  • OrzaansynOrzaansyn Member Posts: 663 @@ - Legendary Achaean
    Tecton said:
    Orzaansyn said:
    Tecton said:
    Orzaansyn said:
    Tecton said:
    There's a massive overhaul coming to the HTML5 client's scripting functionality in the very near future

    Will there be an integrated curing system?
    Probably not this release, we've started working on it though - there's a thread HERE


    Will the new client be more compliant with a mobile screen when login from a mobile? 

    I mean, only the main output, prompt and input field, already set to the proper dimensions, and a way to go upward in the history?
    You can use the low-resolution client for small screens http://client.achaea.com/v1

    Yeah, what I did, but it's still a pain.

    BUT

    It allows jQuery so I guess I can directly modify the DOM to fit my expectations.

    AND

    Scripting with the HTML5 client is WONDERFUL! Thank you so much, and all your team, for such a great tool. It meets all what I expect from a scripting tool to enjoy the game.

    image
    image
Sign In to Comment.