|
lupinthe3rd Newbie
Joined: 02 Mar 2005 Posts: 5
|
Posted: Wed Mar 02, 2005 6:59 am
Repeat Kill Trigger |
Hey, I just recently bought Zugg's Mudd for the first time and I bought it because I heard it has extensive triggers. I would like to ask if any of you could tell how how to make a trigger that would kill the same attacked mob over, until all of its kind are dead.
Example:
Sample Room - Sample Zone
Description
Exits: XXXX, XXXX, XXXX
A big strong mobile, stands here (3)
A big strong mobile, stands here (3)
A big strong mobile, stands here (3)
A little weak monster, stands here (3)
A little weak monster, stands here (3)
- kill mobilename
You Attack a big strong mobile!
You Killed a creature! XP (####)
When it says "You Killed a creature! XP (####)" I want it to repeat the same command "kill mobilename". I know I can just put that in a simple trigger, but I want it so that it uses the last "kill" command I did. So that when I type kill monster, insteal of kill mobile, it will react the same, and I don't have to make tons of triggers and sit there and activate and deactivate them.
Does anyone understand what I am getting at? If you do, please help me. |
|
|
|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: Wed Mar 02, 2005 7:32 am |
Something like:
#CLASS {Room Clearing}
#ALIAS kill {
#VAR killmob %1
#T+ killtrig
kil %1
}
#VAR killmob {}
#VAR killcount {}
#VAR killxp {}
#TRIGGER "killtrig" {You Killed a creature! XP ~((%d)~)} {
#ADD killcount 1
#ADD killxp %1
kil @killmob
} "" {disable}
#TRIGGER {You do not see that here, or whatever text it gives if you try to kill something that isn't in the room} {
#T- killtrig
#ECHO You killed @killcount of @killmob for a total of @killxp experience.
#VAR killcount 0
#VAR killxp 0
}
#CLASS 0
Btw, added in a little xp/kill counter, which you can take out if you don't want it. |
|
_________________ Everyone is entitled to their beliefs - until they die. Then only the truth matters. |
|
|
|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: Wed Mar 02, 2005 7:34 am |
Without the xp/kill counter, it would be:
#CLASS {Room Clearing}
#ALIAS kill {
#VAR killmob %1
#T+ killtrig
kil %1
}
#VAR killmob {}
#TRIGGER "killtrig" {You Killed a creature! XP ~((%d)~)} {
kil @killmob
} "" {disable}
#TRIGGER {You do not see that here, or whatever text it gives if you try to kill something that isn't in the room} {
#T- killtrig
}
#CLASS 0 |
|
_________________ Everyone is entitled to their beliefs - until they die. Then only the truth matters. |
|
|
|
lupinthe3rd Newbie
Joined: 02 Mar 2005 Posts: 5
|
Posted: Wed Mar 02, 2005 10:47 am |
Hmmm it didn't work... where do I put that information?
and on this mud it says:
That is not here to kill.
when the mob is dead
and it the ideal line for a dead creature is "! XP("
because it says that everytime you kill something no matter how much xp or what it is. |
|
|
|
lupinthe3rd Newbie
Joined: 02 Mar 2005 Posts: 5
|
Posted: Wed Mar 02, 2005 10:48 am |
oh and what is a kill counter and where does it go?
|
|
|
|
lupinthe3rd Newbie
Joined: 02 Mar 2005 Posts: 5
|
Posted: Wed Mar 02, 2005 10:54 am |
Hmmmz... im wanting it to go k mobname automatically so all i have to do is type k mobname once (i did change it from kill to k because thats what i really use) and it will kill all of the mobs with that name in that room... i see all kind of advanced looking stuff like, why does it say #CLASS {room clearning}?
|
|
|
|
Kiasyn Apprentice
Joined: 05 Dec 2004 Posts: 196 Location: New Zealand
|
Posted: Wed Mar 02, 2005 11:22 am |
#ALIAS killmob {killmob = %1}
#TRIGGER {You Killed a creature! XP *} {kill @killmob} |
|
|
|
lupinthe3rd Newbie
Joined: 02 Mar 2005 Posts: 5
|
Posted: Wed Mar 02, 2005 11:46 am |
where do i put that?
|
|
|
|
Odoth Wanderer
Joined: 13 Nov 2004 Posts: 54 Location: Visalia, CA
|
Posted: Wed Mar 02, 2005 8:26 pm |
In the command line where you type stuff to the mud.
|
|
_________________ *ribbit* |
|
|
|
|
|