 |
Loto Apprentice
Joined: 05 May 2003 Posts: 194
|
Posted: Sat Aug 30, 2003 7:12 am
Is there a way too... |
make a trigger stop after a certain thing is said? For instance, I used the trigger:
You recover balance in all your limbs.
Makes it:
Bite weasel
secrete sumac
But it keeps running after the weasel is dead, and when theres another in the room, i start attacking it and im in trouble.
I need it to stop when the game says:
A weasel is slain.
How do i make it do this? |
|
|
|
 |
user0101 Apprentice
Joined: 01 Aug 2003 Posts: 100 Location: USA
|
Posted: Sat Aug 30, 2003 11:44 am |
#CLASS AutoAttack
#VAR attackcheck 0
#TRIGGER {^You sink your fangs into} {secrete sumac}
#TRIGGER {^A weasel slinks into the room.} {#if (@attackcheck=0) {bite weasel}}
#TRIGGER {^A weasel is slain} {#var attackcheck 1;purge sumac}
#TRIGGER {^You recover balance in all your limbs.} {#if (@attackcheck=0) {bite weasel}}
#TRIGGER {(%d)h, (%d)m} {#VAR MyHealth %1;#VAR MyMana %2;#if (@myhealth>@health) {#VAR attackcheck 0}}
#TRIGGER {Health: (%d)/(%d) Mana: (%d)/(%d)} {#VAR maxhealth %2;#VAR maxmana %4;#math health (%2-150);#math mana (%4-150)}
#CLASS 0
Achaea (or one of its counterparts) probably doesn't allow using scripts to automate gold or experience, so only use this if you don't mind the risk. Copy and paste this into your command bar, hit enter. Once you log in, type SCORE once to get the values set accordingly. I haven't tested this but it should work fine. The only things you have to change are the values after #math - if you want to take on the next Weasel when your Hit Points are more than 149 off from max, change that value to something higher. |
|
|
|
 |
Loto Apprentice
Joined: 05 May 2003 Posts: 194
|
Posted: Sat Aug 30, 2003 7:08 pm |
Where do I paste that into?
|
|
|
|
 |
Kjata GURU

Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sat Aug 30, 2003 7:17 pm |
Paste it into the command line.
|
|
|
|
 |
Loto Apprentice
Joined: 05 May 2003 Posts: 194
|
Posted: Sat Aug 30, 2003 7:58 pm |
Well, the thing didnt work at all... now ive changed it a little to add somtn new, i took out thetings thati thought were affecting it, and now it works a little... except doesnt bite weasel when i want to. Now i have it as:
#CLASS {AutoAttack}
#VAR attackcheck {0}
#TRIGGER {^You sink your fangs into} {secrete sumac}
#TRIGGER {^A weasel is slain} {#var attackcheck 1;purge}
#TRIGGER {^You recover balance in all your limbs.} {bite weasel}
#TRIGGER {You pick up the corpse of a lithe weasel} {purge}
#CLASS 0
It didnt work at all with the one User 0101 gave me... This works some, but it dosnt bite an it doesnt stop. But, with the way it is i dont ned it to stop since i manually put in bite. But id like a way to make it turn off when it says 'You have slain a lithe weasel.'
Oops. I just noticed, I told you the wrong stuff. THATS why it doesnt work! Im sorry! |
|
|
|
 |
Loto Apprentice
Joined: 05 May 2003 Posts: 194
|
Posted: Sat Aug 30, 2003 8:08 pm |
Er... Ok... I changed the stuff I had told you wrong. I told you the wrong Recover limbs thing and the wrong message for when the weasel s killed... It now reads:
#CLASS {AutoAttack}
#TRIGGER {^You sink your fangs into} {secrete sumac}
#TRIGGER {^A weasel slinks into the room.} {#if (@attackcheck=0) {bite weasel}}
#TRIGGER {^You have slain a lithe weasel.} {#var attackcheck 1;purge sumac}
#TRIGGER {^You have recovered balance on all limbs.} {#if (@attackcheck=0) {bite weasel}}
#TRIGGER {(%d)h, (%d)m} {#VAR MyHealth %1;#VAR MyMana %2;#if (@myhealth>@health) {#VAR attackcheck 0}}
#TRIGGER {Health: (%d)/(%d) Mana: (%d)/(%d)} {#VAR maxhealth %2;#VAR maxmana %4;#math health (%2-150);#math mana (%4-150)}
#CLASS 0
But it still doesnt end when i want it to, and i think it involves the last part about the health and mana, but im confused as to what you mean there |
|
|
|
 |
Loto Apprentice
Joined: 05 May 2003 Posts: 194
|
Posted: Sat Aug 30, 2003 10:37 pm |
Nvmd, i got it
|
|
|
|
 |
|
|
|