 |
jed Adept
Joined: 18 Dec 2005 Posts: 246
|
Posted: Sat Aug 19, 2006 4:36 am
loading room exits to a variable |
I am working on a script, and I would like to know all of the exits for a specific room. I've been trying to use the %roomexit function, but my mapper consistently recording a "down" exit, becuase the word down is in all of the room descriptions. Long and short of it, rather than using the function, I would like to just use a trigger, and load the exits to a stringlist. The problem is that I can't seem to figure out how to load the variables. The exit string is :
[Exits: north east]
keep in mind there could be up to six exits (u, d, e, w, n, s). I've figured out how to grab the whole list with a trigger pattern of
Exits: &exs~]
but for this example it loads "north east" to a variable rather than north|east in a string list.... any help on doing this would be appreciated.
Thanks a BUNCH, I've been posting a lot here, and have been getting some good tips! |
|
|
 |
Kheri_ Wanderer
Joined: 11 Oct 2005 Posts: 58
|
Posted: Sat Aug 19, 2006 4:59 am |
I don't know if i can help you on the variable part, but
there's an option in the map preferences you can click to make it capture
only the exits after [Exits: |
|
|
 |
|
|
|
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
|
|