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
TehJunkAcct
Newbie


Joined: 07 May 2004
Posts: 7
Location: USA

PostPosted: Fri May 14, 2004 8:57 am   

Wander Trigger
 
Oke doke here i go.
I need a trigger to add and delete Directions from a variable(list) every time i enter a room(so when i wander it doesnt go into a non-reachable direction)

Obvious Exits:
North - (Name of room)
West - (Name of room)

thats how the mud is set up.. if anybody can help me thanks.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri May 14, 2004 5:30 pm   
 
#TR {Obvious Exits:$} {#VAR directions {}}
#TR {^(%w)%s- ~(%w} {#ADDI directions %1}

Works with
Obvious Exits:
North - (Main Street)
West - (Bank)

Doesn't work with
Obvious Exits:
North - Main Street
West - Bank

EDIT: Inserted %s to account for variable spacing.
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