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
Brother Marius
Beginner


Joined: 09 Oct 2000
Posts: 14
Location: Sweden

PostPosted: Tue Jun 11, 2002 1:06 am   

Trigger/Storing Info
 
Is it possible to store a set of information somewhere, and have a trigger to browse through that information and perform a certain operation thereafter?

What I want is to do this. When I type 'equipment', it lists what I am wearing. Then it says:

Feet A pair of boots (worn)
Shield A wooden buckler (worn)

And so on. But I can also bless this equipment, and then it says:

Back A fur robe (worn and blessed)Hands Heavy bracers (worn and blessed)

What I want to do is to store all information about what equipment I am wearing from the list. And if this equipment is not 'blessed', then I'd like for a trigger to bless it. Once it has been blessed, the trigger checks this stored information and starts blessing the next equipment until all have been blessed. Is this possible, or am I wanting something impossible?
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Tue Jun 11, 2002 1:55 am   
 
How about make a list of things that have (worn):

#TRIGGER {^%w (%*) ~(worn~)$} {#ADDITEM V_To_Bless %word("%1",%numwords("%1"))}

Assumes that the last word of the item is a keyword for that item.

Assumes with the use of #ADDITEM that you would only have one object in your equipment
with the last word. ie you wouldn't have 2 boots on or 2 cloaks.

#FORALL @V_To_Bless {remove %i;cast bless %i;wear %i;#DELITEM V_To_Bless %i}

Modify the above to suit your needs.


TonDiening
Beta Upgrading to 6.26
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