 |
Ryltar Lizzle Newbie
Joined: 05 Apr 2006 Posts: 4
|
Posted: 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 |
|
|
|
 |
Larkin Wizard

Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: 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?
|
|
|
|
 |
Ryltar Lizzle Newbie
Joined: 05 Apr 2006 Posts: 4
|
Posted: 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 |
|
|
|
 |
Larkin Wizard

Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: 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. |
|
|
|
 |
|
|
|