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
quirk
Novice


Joined: 16 Aug 2003
Posts: 31
Location: USA

PostPosted: Mon Aug 18, 2003 7:36 am   

Please help setting a constant? I think
 
I am looking to set words to a constant number
What I want to do is be able to set a roomflag by typing an alias
flag dark nomob indoor and lets say dark is 1 nomob is 3 and indoor is 4 and i want to add other but that gives me a place to start

then have it run the following
redit
3
then have it choose the selections i made
0
y
Reply with quote
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Mon Aug 18, 2003 10:59 am   
 
Explain again what you want?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Aug 19, 2003 4:41 am   
 
#AL roomflag {redit;3;#LOOP %numparam() {#IF (%param( %i) = "dark") {1};#IF (%param( %i) = "nomob") {3};#IF (%param( %i) = "indoor") {4}};0;y;#NOOP}
Reply with quote
quirk
Novice


Joined: 16 Aug 2003
Posts: 31
Location: USA

PostPosted: Tue Aug 19, 2003 4:57 am   
 
Lightbulb did I tell you I love you man!

Thank-you very much for all your help.
Reply with quote
sp000n
Novice


Joined: 04 Jul 2001
Posts: 32

PostPosted: Thu Aug 21, 2003 12:49 am   
 
LightBulb, could you walk me through that #LOOP, plz? I don't follow that %numparam() or %param( %i) bit. Also, what did #NOOP do in this case?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Aug 21, 2003 2:56 am   
 
You can look up %param() and %numparam() for yourself. I dislike explaining the obvious.

#NOOP did nothing, which prevented unused parameters from being appended to the output.
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