yes, one is only in the script, and it goes away if you reload the script, or restart Mushclient. Also, if you CREATE it inside of a sub, it only sticks around for as long as the sub.
Mushclient variables stick around in your world file.
However, you can use
world.getvariable ("variable")
and
world.setvariable "variable", "value"
to get and set mushclient variables so you can use them in scripts, and then store them for later usage.
1."hp " get the varibles from a mutiline trigger.
2. Wait some second until hp trigger get right variables
3. Do recover according to the variables just get.
If there is no the 2nd step "wait some second", the 3th step will execute at once after the 1st step which use the variables got last time .
Yes, but all that does is move a MUSHclient variable into a script variable. It doesn't do anything really useful.
This business of waiting a few seconds is a bit unreliable, what if the trigger fires after 1 second? After 10 seconds?
You are better having the trigger (which matches on the HP) doing itself what needs to be done, not putting something into a variable and testing the variable 5 seconds later.