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
HollyC
Novice


Joined: 10 Apr 2003
Posts: 45
Location: USA

PostPosted: Sun Dec 19, 2004 12:47 am   

Timing issue for two-part alias (Achaea)
 
Hi peeps *laugh*

Here is a small alias that's part of a curing system I use for Achaea. However, I do not believe that knowledge of Achaea would be necessary to be able to answer this question.

For curing stupidity in Achaea, I have the following alias:

acp_focus;#if (@Afflictions.stupidity) {#if (@AutoHerbs) {acp_goldenseal}}

The idea is to use a skill called Focus, FIRST, to try and cure stupidity. If the stupidity itself forces a random command to be processed instead of Focus (thus preventing itself from being cured), the alias is meant to use plan B, eating a goldenseal root to cure the stupidity.

If Focus works, a trigger is set to recognize the curing of stupidity and update the @Afflictions.stupidity variable to become 0 (meaning I don't have stupidity anymore) and so, going by my idea, it wouldn't try to eat goldenseal. If Focus FAILS (because the stupidity forces the processing of a random command instead of Focus), the trigger message won't be seen and recognized, the variable will remain at 1 (have stupidity) and ZMud will send the command to eat goldenseal.

My concern is this. Because there's no pause of any kind between Focus and the IF-THEN command following it, ZMud won't have time to finish setting the @Afflictions.stupidity variable to 0 and recognize that I don't have stupidity, and thus will attempt to do BOTH actions in the alias: Focus *AND* then eat a goldenseal root.

Is my concern correct, or did I code the alias properly and I am set?

Thanks,

Holly
_________________
Reply with quote
Hibio
Beginner


Joined: 19 Mar 2004
Posts: 22

PostPosted: Mon Dec 27, 2004 9:44 pm   
 
You can always add in the '#wait xxxx' command for a pause in between, 1000 = 1 second
Reply with quote
Falan
Wanderer


Joined: 17 Aug 2004
Posts: 98
Location: OK, USA

PostPosted: Tue Dec 28, 2004 5:47 am   
 
Use an #ALARM to delay checking @Afflictions.stupidity for however long is needed to match the Focus trigger (1 second, 2?).

acp_focus; #ALA +2 {#IF (@Afflictions.stupidity) {#IF (@AutoHerbs) {acp_goldenseal}}}
_________________
zMUD 7.05a
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