|
Lokke11 Beginner
Joined: 27 Apr 2007 Posts: 16
|
Posted: Tue Jan 12, 2010 8:44 pm
Need some Variable Using Help |
I know its probably really simple but cant figure it out:)
Pattern:
turns to focus * attack on (%w)!
Command:
#if (@friends) {#var rescuetarget {friends};rescue @rescuetarget}
I have filled my Variable @friends with names to be recognized by the %w. I am trying to figure out how to pull 1 name from it.
If I put the command as rescue @friends it gives me the whole list in the excution of the trigger. And the command I have listed
above is not working correctly either.
FYI: This is being done on Zmud 4.62 so if you can help dont get too complicated:)
Moved (MattLofton): question posts about ZMud belong in the ZMud General Discussion forum |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Tue Jan 12, 2010 10:02 pm |
#trigger {turns to focus * attack on ({@friends})!} {rescue %1}
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Lokke11 Beginner
Joined: 27 Apr 2007 Posts: 16
|
Posted: Wed Jan 13, 2010 12:08 am |
Bingo!
Thanks.
How about an easy way to add names to that variable? or remove? |
|
|
|
|
|