|
Dravon Beginner
Joined: 05 Jan 2002 Posts: 29 Location: USA
|
Posted: Sun Jun 02, 2002 8:42 pm
help with a trigger |
ok i have a trigger
Pattern: You close your eyes and whisper a chant.
Value:
q c
invoke 2
invoke hand
invoke 1 at 2 skel
invoke vigor at dravon
ok when the 2 skel dies I get this message
But the 2nd skeleton is dead!
is there a way to make it invoke 1 at 3 skel when I get But the 2nd skeleton is dead! message without haveing to go and change it in my triggers?
Gary |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sun Jun 02, 2002 8:55 pm |
Perhaps I don't understand what you want to do very well, but can't you create another trigger to fire ont hat message?:
#TRIGGER {But the 2nd skeleton is dead!} {invoke 1 at 3 skel}
Kjata |
|
|
|
Dravon Beginner
Joined: 05 Jan 2002 Posts: 29 Location: USA
|
Posted: Sun Jun 02, 2002 9:01 pm |
I want to keep doing everything I was doing
invoke 2
invoke hand
invoke 1 at 2 skel
invoke vigor at dravon
I just want it to change to
invoke 2
invoke hand
invoke 1 at 3 skel
invoke vigor at dravon
when it sees But the 2nd skeleton is dead!
What I want is a autolooping trigger to keep invokeing all the others but just move through all the skeletons in the room
Gary |
|
|
|
Dravon Beginner
Joined: 05 Jan 2002 Posts: 29 Location: USA
|
Posted: Sun Jun 02, 2002 9:01 pm |
I want to keep doing everything I was doing
invoke 2
invoke hand
invoke 1 at 2 skel
invoke vigor at dravon
I just want it to change to
invoke 2
invoke hand
invoke 1 at 3 skel
invoke vigor at dravon
when it sees But the 2nd skeleton is dead!
What I want is a autolooping trigger to keep invokeing all the others but just move through all the skeletons in the room
Gary |
|
|
|
NiteTrip Novice
Joined: 21 May 2002 Posts: 40 Location: Canada
|
Posted: Sun Jun 02, 2002 10:47 pm |
i'm not sure what you need exactly, like do you have a trigger to count the skeletons already? what is this invoke command? is it an alias? you can use a while loop to thru the skeletons. Maybe you can incorporate this into your script:
#var skeletons {number of skeletons}
#var x 0
#while (@x < @skeletons) {invoke 1 at @x skel;#add x 1}
however i think that kjata's trigger is probably more help, just add a variable in there that increases as the skeletons die like this:
#trigger {But the %w skeleton is dead!} {#add skeletons 1;invoke 1 at @skeletons skel}
again you would have to do background triggers to count the number of skeletons, kinda like this:
#trigger {A skeleton is here standing} {#add skeletons 1}
and with this you would have to find a place to set the value of skeletons to 0 either when you enter a new room, or when all the skeletons are dead, maybe something like this:
#trigger {You leave %w} {#var skeletons 0}
#trigger {you don't see the skeleton here} {#var skeletons 0}
hope this helps.. |
|
|
|
Dravon Beginner
Joined: 05 Jan 2002 Posts: 29 Location: USA
|
Posted: Mon Jun 03, 2002 1:14 am |
Ill try the skell counter see if that works. here is my trigger set I use it is an auto script so I just keep casting gaining uses. all of the spells I cast at myself but 1. and I cast it at the 2nd skel. It dies and I get the message But the 2nd skeleton is dead! when i get that message I want to keep doing everything I am doing but just switch to the 3rd skel or 4th etc.
#CLASS {Dravon channeling alone with attacker}
#TRIGGER {You don't have enough charges left to invoke this runespell. Perhaps it is time to visit the RuneMage Guild for a recharge!} {#play talking.wav;go wall;sw;go door;ne;n;#wa 5000;go door;nw}
#TRIGGER {You stand up.} {invoke vigor at dravon}
#TRIGGER {A malevolent darkness pervades this room,} {q c;ready dag;k skel}
#TRIGGER {A lively Drag-al moves quickly about} {spells}
#TRIGGER {The force rune has been renewed as requested.} {se;go door;#wa 4000;s;sw;go door;ne;go wall}
#TRIGGER {You must move closer to your opponent's rank to engage in combat.} {q c;k skel}
#TRIGGER {You swing your} {q c;rem dag;invoke vigor at dravon}
#TRIGGER {You cannot do that while in combat!} {q c;look}
#TRIGGER {I don't see what you are referring to.} {q c;k skel}
#TRIGGER {You close your eyes and whisper a chant.} {invoke 2;invoke 4;invoke 1 at 2 skel;invoke vigor at dravon}
#CLASS 0
Gary |
|
|
|
|
|