|
MuddyMage Newbie
Joined: 20 Nov 2001 Posts: 3 Location: United Kingdom
|
Posted: Tue Nov 20, 2001 12:12 am
Increasing Counts for mobs |
Ok i am new at triggewrs and variables and such so have patience pls.
Scenario:
I am sitting collecting aggro mobs (v-low ac so they are not hitting me), and sometimes a non aggro mob arrives and departs.
I want to hit the non aggro mob once so it stays. If another arrives I want to hit it once as well. (Example: A vorpal bunny arrived.) I cant figure the command set and vars to do this (sigh) please help :)
ooops - died again.... |
|
|
|
decantor Apprentice
Joined: 14 Nov 2001 Posts: 100
|
Posted: Tue Nov 20, 2001 3:12 am |
#TRIGGER {A vorpal bunny arrived.} {kill bunny} {zMUDrocks?}
alternatively, you could do:
#TRIGGER {(%s) arrived.} {#VAR target %1 ;
spam_kill}
#ALIAS spam_kill
{
#IF (@target = "A vorpal bunny") {kill bunny}
#IF (@target = "Yummy Mob") {kill yummy}
}
etc. |
|
|
|
iljhar GURU
Joined: 10 Oct 2000 Posts: 1116 Location: USA
|
Posted: Tue Nov 20, 2001 8:23 am |
I believe most muds are set up where you can say "kill 1." and it'll kill the most recent mob in the room, so you can do something like this:
#Trigger {* arrived.} {kill 1.}
Iljhar |
|
|
|
cingulli Wanderer
Joined: 30 Aug 2001 Posts: 53 Location: Finland
|
Posted: Tue Nov 20, 2001 4:23 pm |
... aaand 2 add 2 this, if u can accidentally smash other players(which come 2 the same room), ya can make a list
of possible targets u wanna hit
#var monsies {a vorpal bunny|dragon|sheep|coder|nahkaparturi|eino leino}
#tr {%1 arrives} {#IF %ismember("%1",@monsies) {kill "%1"}}
okke moi! |
|
|
|
MuddyMage Newbie
Joined: 20 Nov 2001 Posts: 3 Location: United Kingdom
|
Posted: Wed Nov 21, 2001 1:41 am |
mmmm - i didnt explain properly , sorry.
Its a mordor mud. so "kill 1" doesn't work.
i need to have 2 counters that count vorpal and rabid bunnies.
inc: when "A vorpal/rabid bunny arrived".
dec: when "You killed a vorpal/rabid bunny".
The rabids are aggro but drop zip so only good for small xp. The vorpal ones drop vorpal sleeves and leggings and gold, but as they are not aggro so will wander off if not hit at least once.
I need to have a action that notes the arrival, increases the count and attacks vorpal 2 or 3 or whatever the count is.
I can clear the rabid ones at my leisure.
I just dont want to miss the vorpal ones.
ooops - died again.... |
|
|
|
iljhar GURU
Joined: 10 Oct 2000 Posts: 1116 Location: USA
|
Posted: Wed Nov 21, 2001 8:47 am |
Ahh, so on a mordor mud, if someone arrives, they get placed on the end of the list of PCs/NPCs in the room, I see. Okay, then you can do something like this:
#var bunnies 1
#trigger {A {vorpal|rabid} bunny arrived.} {#add bunnies 1;kill @{bunnies}.bunny}
#trigger {You killed a {vorpal|rabid} bunny.} {#add bunnies -1}
See if that'll work for you. Haven't tested it but it looks okay, heh.
Iljhar |
|
|
|
MuddyMage Newbie
Joined: 20 Nov 2001 Posts: 3 Location: United Kingdom
|
Posted: Thu Nov 22, 2001 11:01 am |
RIGHT ON!!!!!
slight difference in mordormud
#add vorcount 1 ; kill vorp @vorcount
thanks a bunch :D
ooops - died again.... |
|
|
|
|
|