 |
Latent Apprentice
Joined: 19 Aug 2002 Posts: 120 Location: USA
|
Posted: Thu Feb 20, 2003 2:28 am
help on script |
ok, i have a couple aliases, here is what they look like...:
sit:
~sit %1
#VAR sitting %1
stand:
~stand
#VAR sitting ""
ok, so basically it keeps track of what im sitting on, and when i stand it erases whats stored... so if i get this message:
You are no longer in Ethereal form.
then
#IF (%numparams( ) == 0) {} {~stand}
c ether
#IF (%numparams( ) == 0) {} {sit @sitting}
it "c ether"s but if im sitting, then it should stand (without erasing the variable, hence the ~) and then sit back on whatever i was sitting on, but it isnt working |
|
|
 |
Latent Apprentice
Joined: 19 Aug 2002 Posts: 120 Location: USA
|
Posted: Thu Feb 20, 2003 2:48 am |
perhaps %numparams is the wrong thing to be using in this case? if so what should i be using
|
|
|
 |
Emit Magician
Joined: 24 Feb 2001 Posts: 342 Location: USA
|
Posted: Thu Feb 20, 2003 4:41 am |
i think i see: if you are sitting when you get the message about ethereal wearing off, you want to stand? but if you're not sitting, you want to just go ahead and cast it? Something like this would work then:
#tr {You are no longer in Ethereal form.} {
#if (@sitting) {~stand}
c ether
#if (@sittine) {sit @sitting}
}
--------
moon.icebound.net:9000 |
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5182
|
Posted: Thu Feb 20, 2003 12:12 pm |
First it is %numparam, no s on it. Why you are looking to use it in a trigger that does not generate an parameters is beyond me though.
|
|
|
 |
|
|