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: Tue Sep 06, 2005 12:37 pm   

Problem with using #TEMP in Enchanting script for Achaea
 
Hi. I'm trying to make a script that automates the process of using the Enchantment skillset in Achaea. For those that don't play this game, the Enchantment skillset requires performing a series of actions in proper sequence to create a magic item or to imbue a mundane item with magical properties. Each action takes away balance and you are barred from budging a single muscle until you regain this balance.

I am trying to create a script that performs each action one at a time and then waits for balance to be regained using the TEMP command. Unfortunately no matter how I try to code it, after the first action, it waits for balance and then tries to execute all the remaining commands at once; sometimes multiple times. I have tried doing it in each of the following ways, and none of them work:

#ALIAS makeorb {chant solip preena het epi re enla;#temp {You have recovered balance on all limbs.} {#wa 100};chant solip preena het epi re enla;#temp {You have recovered balance on all limbs.} {#wa 100};chant solip preena het epi re enla;#temp {You have recovered balance on all limbs.} {#wa 100};ring bell;#temp {You have recovered balance on all limbs.} {#wa 100};end ritual}

#ALIAS makeorb {chant solip preena het epi re enla;@balance = 0;#IF (@balance = 1) {chant solip preena het epi re enla;@balance = 0};#IF (@balance = 1) {chant solip preena het epi re enla;@balance = 0};#IF (@balance = 1) {ring bell;@balance = 0};#IF (@balance = 1) {end ritual}
#VAR balance
#TRIGGER {You have recovered balance on all limbs.} {#VAR balance 1}

#ALIAS makeorb1 {chant solip preena het epi re enla;#temp {You have recovered balance on all limbs.} {makeorb2}}
#ALIAS makeorb2 {chant solip preena het epi re enla;#temp {You have recovered balance on all limbs.} {makeorb3}}
#ALIAS makeorb3 {chant solip preena het epi re enla;#temp {You have recovered balance on all limbs.} {makeorb4}}
#ALIAS makeorb4 {ring bell;#temp {You have recovered balance on all limbs.} {end ritual}}

In every case, after waiting to regain balance the first time, it attempts to immediately execute all remaining commands; sometimes multiple times. In the case of the last script (four separate aliases), it attempts to execute makeorb4 after regaining balance from makeorb1 and then tries to execute aliases makeorb2, makeorb3 and makeorb4 each three times.

Is it impossible to make multiple usages of the #temp command in a single alias, or linked aliases that each calls on the next in order?

If it is not, can anyone help come up with something?

Holly

(EDIT: in the case of the second alias which uses @balance = 0 and then #IF (@balance = 1), when I added in the @balance = 0 after each action, the alias would execute the first action and then hang indefinitely.)
_________________
Reply with quote
Maelstrom
Apprentice


Joined: 10 Feb 2005
Posts: 158

PostPosted: Tue Sep 06, 2005 2:56 pm   
 
Try using a conditional trigger instead. This way the timings between the different balances do not have to be a consideration. The conditional trigger may have to be reset to its original condition should the balances fail (if there is such a thing)... You may also need to enable/ disable this trigger using an ID should balancing be used by more than one skill...

#ALIAS makeorb {chant solip preena het epi re enla;T+ finishorb}
#TRIGGER "finishorb" {You have recovered balance on all limbs.} {chant solip preena het epi re enla}
#COND {You have recovered balance on all limbs.} {chant solip preena het epi re enla}
#COND {You have recovered balance on all limbs.} {chant solip preena het epi re enla}
#COND {You have recovered balance on all limbs.} {ring bell;T- finishorb}
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