Now before a 100 angry people lash out at me for starting yet another zmud -> muschlient thread, I have read a whole bunch of them and none help me out much. Coding is not my problem figuring out how to use that code and where exactly to put it is.
Ok, here are my problems:
Just how exactly do you use a script? I mean I can and have gotten the basics of javascript down... but I have absolutely no clue where to put it, how to call it in the client, how to send parameters to it...
I keep seeing this, but with no explanation: send_to="x"
i think 12 means script? but just how does that work? I guess it kind of fits in with the question above.
Since I'm coming from zmud, I have been able to succesfully convert about 5% of my triggers to mushclient, basically those that just contain one or two simple commands like stand, and I've been able to set up a bunch of aliases. good so far...
just two quick examples of things I can not do.
ok look at this (I just copied from the edit trigger screen)
trigger = ^You draw back and balance into the Eagle stance\.$
send = world.SetVariable("stance", "egs");
world.tell("EAGLE");
world.note(\"This monster is worth avoiding!\"); //from the help files.
enabled=yes
sendto = script
omitfromoutput=yes
the variable is now set and works (whew!) but the none of the notes works... in zmud I just use #ECHO
second type of triggers that I have absolutlely no clue how to implement in mushclient: triggers that turn on/off groups of classes.
most of the other problems will really be solved once I understand how to make a trigger work with a script.
also if I dont echo commands. the output comes out all messed up. eg
blah blah wow did
you
just say that?
Its 4am i need to go but please help! i am so totally lost and the help documentation doesnt "help" me :)
Ok, here are my problems:
Just how exactly do you use a script? I mean I can and have gotten the basics of javascript down... but I have absolutely no clue where to put it, how to call it in the client, how to send parameters to it...
I keep seeing this, but with no explanation: send_to="x"
i think 12 means script? but just how does that work? I guess it kind of fits in with the question above.
Since I'm coming from zmud, I have been able to succesfully convert about 5% of my triggers to mushclient, basically those that just contain one or two simple commands like stand, and I've been able to set up a bunch of aliases. good so far...
just two quick examples of things I can not do.
ok look at this (I just copied from the edit trigger screen)
trigger = ^You draw back and balance into the Eagle stance\.$
send = world.SetVariable("stance", "egs");
world.tell("EAGLE");
world.note(\"This monster is worth avoiding!\"); //from the help files.
enabled=yes
sendto = script
omitfromoutput=yes
the variable is now set and works (whew!) but the none of the notes works... in zmud I just use #ECHO
second type of triggers that I have absolutlely no clue how to implement in mushclient: triggers that turn on/off groups of classes.
most of the other problems will really be solved once I understand how to make a trigger work with a script.
also if I dont echo commands. the output comes out all messed up. eg
blah blah wow did
you
just say that?
Its 4am i need to go but please help! i am so totally lost and the help documentation doesnt "help" me :)