About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Dravon
Beginner


Joined: 05 Jan 2002
Posts: 29
Location: USA

PostPosted: 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
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: 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
Reply with quote
Dravon
Beginner


Joined: 05 Jan 2002
Posts: 29
Location: USA

PostPosted: 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
Reply with quote
Dravon
Beginner


Joined: 05 Jan 2002
Posts: 29
Location: USA

PostPosted: 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
Reply with quote
NiteTrip
Novice


Joined: 21 May 2002
Posts: 40
Location: Canada

PostPosted: 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..
Reply with quote
Dravon
Beginner


Joined: 05 Jan 2002
Posts: 29
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net