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
Ryltar Lizzle
Newbie


Joined: 05 Apr 2006
Posts: 4

PostPosted: Thu Apr 06, 2006 12:56 pm   

Trigger working off of multi vars
 
Zmud 7.20

A while back I had a a system of 4 vars North,East,South,West
and each var had a data base of numbers (EXAMPLE:

pattering for the trigger was "^(*) is dead!"


#var North
Data Record Value
1..........................1
2..........................2
3..........................3


#var east
Data Record Value
1..........................4
2..........................5


#var west
Data Record Value
1..........................6
2..........................8

#var south
Data Record Value
1..........................7

but alot more larger that if you put the all together it would walk you around a zone.

the trigger would go throu each of the values in order allowing you to walk the set path

Can any1 help me ? plz and thnks
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Thu Apr 06, 2006 4:40 pm   
 
I don't understand your data record use and how you would use that for walking a path. Can you give more details on what the numbers mean and how you expect them to be used to create a path?
Reply with quote
Ryltar Lizzle
Newbie


Joined: 05 Apr 2006
Posts: 4

PostPosted: Thu Apr 06, 2006 6:29 pm   
 
the numbers if you follow them in order between all 4 of the vars will walk you around a zone

I dunno how to up it
say I was gonna walk east north east
i'd make the east var data record to 1 3
and north to 2
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Fri Apr 07, 2006 8:37 pm   
 
Why wouldn't you make a string list and pop the directions off as you walk?

Code:
#VAR walking {east|north|east}
#ALIAS step {#exec %item(@walking, 1)}
#ALIAS stepped {#noop %pop(walking);step}


Data record variables seem like a total mismatch for what you want to do.
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