 |
Finduilun Newbie
Joined: 12 Oct 2004 Posts: 2 Location: UK
|
Posted: Tue Oct 12, 2004 6:40 pm
I have a question... |
I am trying to make a variable called nearVar, to be part of a larger trigger.
I have used #SUB to alter the names of several locations.
I am trying to trigger the altered location names, and when triggered, to be set as nearVar.
I will explain.
Pattern - ^&locationVar~(* and *~) - This is a location trigger, making locationVar the name of the room i am in.
Pattern - ^HP:&hpVar EP:&epVar - This will make hpVar and epVar reflect my current health status.
I have, lets say, 2 triggers like this...
Pattern - A small, run down town
Value - #SUB {TOWN1, A BIG SIGN}
Pattern - An even smaller, run down town
Value - #SUB {TOWN2, A BIG SIGN}
I want to make a variable like this...but not like this cos it doesnt work. Hopefully you will see what i am trying to do here :/
^&nearVar, A BIG SIGN
The eventual aim of this is to then trigger a persons name and record it, my health status, the exact room i am in, and the last A BIG SIGN i visited...and then eventually send that as a message in-MUD. I have everything perfect except the nearVar trigger. Though the locationVar is not perfect, i think i can fiddle with it and get it there.
Am i going wrong using #SUB? Or trying to trigger #SUB?
If so, or if not, could anyone tell me where i am going wrong and how i can solve it? |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Oct 12, 2004 10:47 pm |
#SUBSTITUTE is not appropriate for setting variables. #VARIABLE is used for making variables.
Pattern - A small, run down town
Value - #VAR nearVar {TOWN1}
Pattern - An even smaller, run down town
Value - #VAR nearVar {TOWN2} |
|
_________________ LightBulb
Senior member
Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious. |
|
|
 |
Finduilun Newbie
Joined: 12 Oct 2004 Posts: 2 Location: UK
|
Posted: Wed Oct 13, 2004 9:53 pm |
Cheers mate! 
|
|
|
 |
|
|
|
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
|
|