|
mordeth Newbie
Joined: 10 Feb 2006 Posts: 6
|
Posted: Sat Aug 19, 2006 8:26 pm
Scripting help |
Hi all,
I need some help, i want to have a script that will cast a list of spells (got the basic version now) but with a chance to add a variable that will stop the trigger if a player is in a list. Any ideas how to do it easily as i'm just learning how to script.
Thanks for any help |
|
|
|
Qiz Novice
Joined: 14 Aug 2006 Posts: 34 Location: Sweden
|
Posted: Sat Aug 19, 2006 10:02 pm |
Get the player name somehow. How you aciheve that depends on what situation it happens in. Let's assume it's in @target and that you have all those players in @targetNotAllowed
#IF (%ismember(@target,@targetNotAllowed)) {say I will not cast that on you.} {go ahead and cast the spell here} |
|
|
|
|
|