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
MuddyMage
Newbie


Joined: 20 Nov 2001
Posts: 3
Location: United Kingdom

PostPosted: 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....
Reply with quote
decantor
Apprentice


Joined: 14 Nov 2001
Posts: 100

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


Joined: 10 Oct 2000
Posts: 1116
Location: USA

PostPosted: 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
Reply with quote
cingulli
Wanderer


Joined: 30 Aug 2001
Posts: 53
Location: Finland

PostPosted: 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!
Reply with quote
MuddyMage
Newbie


Joined: 20 Nov 2001
Posts: 3
Location: United Kingdom

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


Joined: 10 Oct 2000
Posts: 1116
Location: USA

PostPosted: 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
Reply with quote
MuddyMage
Newbie


Joined: 20 Nov 2001
Posts: 3
Location: United Kingdom

PostPosted: 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....
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