HollyC Novice
Joined: 10 Apr 2003 Posts: 45 Location: USA
|
Posted: 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.) |
|