|
quirk Novice
Joined: 16 Aug 2003 Posts: 31 Location: USA
|
Posted: 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 |
|
|
|
Caled Sorcerer
Joined: 21 Oct 2000 Posts: 821 Location: Australia
|
Posted: Mon Aug 18, 2003 10:59 am |
Explain again what you want?
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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}
|
|
|
|
quirk Novice
Joined: 16 Aug 2003 Posts: 31 Location: USA
|
Posted: Tue Aug 19, 2003 4:57 am |
Lightbulb did I tell you I love you man!
Thank-you very much for all your help. |
|
|
|
sp000n Novice
Joined: 04 Jul 2001 Posts: 32
|
Posted: 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?
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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. |
|
|
|
|
|