zand2006-12-27 04:49:58
Basically I'm trying set up a script that automatically picks up whatever I am currently targeting after I have killed it and I have recovered. I think I understand what basically has to be done.
I'm just not sure how exactly to set that up.
CODE
1.  I need to set up a variable like getall that is set to 0. Â
2.  Then I need to have a trigger that goes off when You have slain comes up that sets getall to 1. Â
3.  Then have a trigger that goes off after I regain balance that checks if getall is set to 1 and if so to get the corpse and then reset getall back to 0.
2.  Then I need to have a trigger that goes off when You have slain comes up that sets getall to 1. Â
3.  Then have a trigger that goes off after I regain balance that checks if getall is set to 1 and if so to get the corpse and then reset getall back to 0.
I'm just not sure how exactly to set that up.
Gelo2006-12-27 05:04:38
Ah ok... I thought you were trying to make an autobasher script. *tsk-tsk*
I dont have any knowledge in Zmud scripting sorry. I just get an acquisitio enchant. It works better
I dont have any knowledge in Zmud scripting sorry. I just get an acquisitio enchant. It works better
Anisu2006-12-27 10:52:07
CODE
#class {bashing}
#var cretrieve 0
#TRIGGER {You have slain}Â Â {#var cretrieve 1}
#TRIGGER {You have recovered } {#if @cretrieve {get @target;get gold;get essence;#var cretrieve 0}
#class 0
You can also trigger on your prompt and instead of a variable you can also use activation and deactivation of a trigger
example
CODE
#class {bashing}
#var cretrieve 0
#TRIGGER {You have slain}Â Â {#var cretrieve 1}
#TRIGGER {(%d)h, (%d)m, (%d)e, (%d)p (*)-} {#if (%pos(e, %5) AND %pos(x, %5) AND @cretrieve) {get @target;get gold;#var cretrieve 0}}
#class 0
example without variables
CODE
#class {bashing}
#TRIGGER {You have slain}Â Â {#T+ "You have recovered "}
#TRIGGER {You have recovered } {get @target;get gold;get essence;#T- "You have recovered "}
#class 0
The last is the most effecient when you aren't bashing (the trigger just doesn't get evaluated at all) but can cause errors if you are using a similar trigger for curing. The prompt one is least efficient as it will be evaluated constantly
zand2006-12-27 15:42:39
Thanks for the help.
zand2006-12-27 21:04:18
I've got a few more questions. I'm working on covering up You have recovered balance/equilibrium. Here's what I've got. It works, the problem I have is when I try to add color.
then for the color I have
the only problem is that only the \\/+++++++++++++++++\\/ has color.
CODE
#TRIGGER {You have recovered balance on all limbs} {#substitute {/\\+++++++++++++++++/\\%cr  BALANCE RECOVERED  %cr\\/+++++++++++++++++\\/}
then for the color I have
CODE
#TRIGGER {/\\+++++++++++++++++/\\} {#CW {high,yellow}}
#TRIGGER {\\/+++++++++++++++++\\/} {#CW {high,yellow}}
#TRIGGER {BALANCE RECOVERED} {#CW {high,red))
#TRIGGER {\\/+++++++++++++++++\\/} {#CW {high,yellow}}
#TRIGGER {BALANCE RECOVERED} {#CW {high,red))
the only problem is that only the \\/+++++++++++++++++\\/ has color.
Laysus2006-12-28 00:52:46
CODE
#TRIGGER {You have recovered balance on all limbs} {#substitute {%ansi(yellow,bold)/\\+++++++++++++++++/\\%cr  %ansi(red,bold)BALANCE RECOVERED  %cr%ansi(yellow,bold)\\/+++++++++++++++++\\/}
try that.