About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Latent
Apprentice


Joined: 19 Aug 2002
Posts: 120
Location: USA

PostPosted: 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
Reply with quote
Latent
Apprentice


Joined: 19 Aug 2002
Posts: 120
Location: USA

PostPosted: 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
Reply with quote
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: 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
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net