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
Zafrusteria
Wanderer


Joined: 11 Oct 2000
Posts: 94
Location: United Kingdom

PostPosted: Sun Aug 03, 2003 10:21 am   

bug with Triggers
 
I would have thought that dir_1 and dir_2 would end up with the same contents, but they don't.

Output from Mud

Obvious exits from this room are:
North : The Sands of Sorrow
East : The Sands of Sorrow
South : The Sands of Sorrow
West : Desert Road


trigger pattern {(*)%s:%s(*)%s$}
#VARIABLE direction %1
#VARIABLE dir_1 %additem( %1, @dir_1)
#VARIABLE dir_2 %additem( @direction, @dir_2)


@dir_1 will contain West|South|East|North
but @dir_2 withh contain West|West|West|West, ie whatever that last direction was duplicated for the number of direction lines.

6.62
Win2K
SP4
Athlon 1.2
1Gb Ram
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Sun Aug 03, 2003 6:26 pm   
 
I don not show the same problem with the above script that you have mitioned. I have ran it twice and see no falt.

when ran I recieve as @dir_2 North|East|South|West

however i did use the script you proveded
Did you cut and past it as it comes from the mud?
Your mud game might not beuseing a "enter" at the end of each exit direction but maybe it uses spaces? to get it aligned right.

try this to see if I am right:
make a new character in some random mud (dont connect to the mud just) now with your new character you will have no triggers and no variables and no classes or anything to get in the way. try setting up you new trigger that you left here on the forum and then use the promt that you left here on the forum and see if you get the same results i did.

good luck.
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