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


Joined: 10 Feb 2006
Posts: 6

PostPosted: 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
Reply with quote
Qiz
Novice


Joined: 14 Aug 2006
Posts: 34
Location: Sweden

PostPosted: 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}
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