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
prestojosh
Beginner


Joined: 21 Feb 2006
Posts: 19

PostPosted: Thu Nov 22, 2007 6:23 am   

Help with a trigger plz
 
So i'm making these triggers to adept spells, and I'm kinda getting hungup on deleting the item off the list of spells to adept.

Heres how it looks.

#VAR adepting {Spell1|Spell2|Spell Three|Spell Four}

I need something that will delete spells off the list according to a trigger like this:

You are now an adept of Spell1! You gain 120000 bonus experience!
You are now an adept of Spell Three! You gain 120000 bonus experience!

Right now I have the following triggers, which aren't working to extract the adepted spell off the list:

#TRIGGER {You are now an adept of (%w)! You gain (%n) bonus experience!} {#DELITEM adepting ~"%1~"}
#TRIGGER {You are now an adept of (%w) (%w)! You gain (%n) bonus experience!} {#DELITEM adepting ~"%1 %2~"}

There are one word and two word spells on the adepting variable list. The adept message always looke like:
You are now an adept of whateverspell! You gain howevermany bonus experience!

Any ideas?
_________________
-Presto
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Nov 22, 2007 6:33 am   
 
#TRIGGER {You are now an adept of (*)! You gain %n bonus experience!} {#DELITEM adepting {%1}}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
prestojosh
Beginner


Joined: 21 Feb 2006
Posts: 19

PostPosted: Fri Nov 23, 2007 3:45 am   
 
Newp, that didn't work. :(
_________________
-Presto
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Nov 23, 2007 3:52 am   
 
Did you remove the other 2 triggers first? What doesn't work about it? Does it not fire on the line? Does the item not delete? Can you copy the actual variable you are using and actual mud outputs and paste them here?
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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