I am a complete newbie when it comes to this sooo help would be appreciated, considering my caveman like advancement of scripting.
Trying to create a script to do the following...
When my health reaches 220 I want to go west, north, west, west, north.
simple right? Weeeellll not so much for me. I also want to go east, south, east, east, south when my health is below 29. The problem I have is that because the prompt repeats itself after each command it fires the same path a couple hundred times in a row (talk about spam!)I tried to disable the trigger after it fired and enable the other at the same time but it doesn't seem to work.
See if you can help please.
prompt: <Health [220] Armor [10] Gold [3,000]>
-----------------------------------------------
labeled "training1" trigger
-----------------------------------------------
Trigger: <Health [*] Armor [*] Gold [*]>
Send:
if %1 > 219 then
send "w"
send "n"
send "w"
send "w"
send "n"
end if
world.enabletrigger "training1", FALSE ' disable trigger
world.enabletrigger "healing1", TRUE ' enable trigger
-----------------------------------------------
labeled "healing1" trigger
-----------------------------------------------
Trigger: <Health [*] Armor [*] Gold [*]>
Send:
if %1 < 29 then
send "s"
send "e"
send "e"
send "s"
send "e"
end if
world.enabletrigger "training1",TRUE ' enable trigger
world.enabletrigger "healing1", FALSE ' disable trigger
--------------------------------------------------
Well there it is, not too sophisticated but what on Earth will make the Trigger fire once then disable that one and enable the other. I wouldn't be surprised if i did everything wrong.
Trying to create a script to do the following...
When my health reaches 220 I want to go west, north, west, west, north.
simple right? Weeeellll not so much for me. I also want to go east, south, east, east, south when my health is below 29. The problem I have is that because the prompt repeats itself after each command it fires the same path a couple hundred times in a row (talk about spam!)I tried to disable the trigger after it fired and enable the other at the same time but it doesn't seem to work.
See if you can help please.
prompt: <Health [220] Armor [10] Gold [3,000]>
-----------------------------------------------
labeled "training1" trigger
-----------------------------------------------
Trigger: <Health [*] Armor [*] Gold [*]>
Send:
if %1 > 219 then
send "w"
send "n"
send "w"
send "w"
send "n"
end if
world.enabletrigger "training1", FALSE ' disable trigger
world.enabletrigger "healing1", TRUE ' enable trigger
-----------------------------------------------
labeled "healing1" trigger
-----------------------------------------------
Trigger: <Health [*] Armor [*] Gold [*]>
Send:
if %1 < 29 then
send "s"
send "e"
send "e"
send "s"
send "e"
end if
world.enabletrigger "training1",TRUE ' enable trigger
world.enabletrigger "healing1", FALSE ' disable trigger
--------------------------------------------------
Well there it is, not too sophisticated but what on Earth will make the Trigger fire once then disable that one and enable the other. I wouldn't be surprised if i did everything wrong.