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
Kurt_DH
Wanderer


Joined: 26 Oct 2000
Posts: 62

PostPosted: Tue May 20, 2003 12:27 pm   

Question
 
Let's say I have 5 different afflictions. The afflictions are 1, 2, 3, 4, and 5. To cure the 5 afflictions, I need to eat 5 different herbs to cure these 5 different afflictions. Herb A for affliction 1, B for affliction 2, C for affliction 3, D for affliction 4, and E for affliction 5. I want to make a trigger to cure one of these afflictions when the line "You can now eat another herb" shows up, but I can only cure one at a time, and I'd like to cure affliction A before B, C, D, and E...affliction B before C, D, and E..etc. Normally, I'd use some type of if statements to do this such as:

#if (@affliction1) {eat a} {}
#if (@affliction2) {eat b} {}
#if (@affliction3) {eat c} {}
etc.

But this won't work because if I have all 5 afflictions, it will eat all 5 herbs at once. How can I make it so not only will it eat just one herb, but that it will do it in order of higher priority to lower priority? I could always stick the other #if commands in the second pair of {}, but I'd imagine it would get very confusing and complex if I did that for all the different herbs. I'm a zMUD novice so when you explain a solution, please explain which commands and functions you're using and what they do so I can understand completely. Thanks.
Reply with quote
Kurt_DH
Wanderer


Joined: 26 Oct 2000
Posts: 62

PostPosted: Thu May 22, 2003 9:41 am   
 
*BUMP*
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4768
Location: Pensacola, FL, USA

PostPosted: Thu May 22, 2003 10:08 am   
 
well i do belive that triggers are checked in the order that the are made... if not go into the settings editor

View - Sort by - None

then just click and drag the triggers so that the most important one is closer to the top..

though if you can still eat the other herbs immediately after healing the first this may not help

Shalimar

AIM: shalimarwildcat
Reply with quote
Dumas
Enchanter


Joined: 11 Feb 2003
Posts: 511
Location: USA

PostPosted: Thu May 22, 2003 10:40 am   
 
Do a search dor Achaea defences. Basically the way to do it is to set up a variable that keeps track of your herb balance, and every other balance. Then your triggers will have an #IF statement that checks for herb balance being true. The reason I say search the posts for this is that there is an excellent thread concerning queuing the herbs and other items so that it remembers you still need to eat it and in which order if you are afflicted with more than one at a time.
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