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
necropsian
Beginner


Joined: 29 Jan 2002
Posts: 14
Location: USA

PostPosted: Mon Mar 31, 2003 1:55 pm   

Counting attacks
 
I'm wondering if is a way to make zMUD number each attack per round in battle.
Here's a clip from battle:

-=(1293/1293hp)-(394/394mv)-(28740g)=-
You dodge a goblin soldier's attack.
You dodge a goblin soldier's attack.
You counter a goblin soldier's attack!
A goblin soldier DISEMBOWELS himelf!
Your cleave *** DEMOLISHES *** a goblin soldier!
A goblin soldier dodges your attack.
Your cleave *** DEMOLISHES *** a goblin soldier!
Your pierce *** DEMOLISHES *** a goblin soldier!
Your cleave *** DEMOLISHES *** a goblin soldier!
A goblin soldier looks pretty hurt.

-=(1293/1293hp)-(394/394mv)-(28740g)=-
You dodge a goblin soldier's attack.
You parry a goblin soldier's attack.
Your cleave *** DEMOLISHES *** a goblin soldier!
Your pierce *** DEVASTATES *** a goblin soldier!
Your cleave *** DEMOLISHES *** a goblin soldier!
A goblin soldier is DEAD!!
You receive 0 experience points.
You hear a goblin soldier's death cry.
You get 1372 gold coins from the corpse of a goblin soldier.
The gods give you 18 gold coins for your sacrifice.

-=(1293/1293hp)-(394/394mv)-(30130g)=-

Any help is appreciated

The Master Of Necromancers
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Mon Mar 31, 2003 7:34 pm   
 
here is one small example:

#trigger {^You dodge a goblin soldier's attack.$} {#ad countfightround 1}
#trigger {^A goblin soldier is DEAD!!$} {#say That took @countfightround;#var countfightround ""}

________________________________________________________________________________
or here is a little bit trickier one:

#trigger {^({@fightsequences})$} {#ad countfightround 1}
#trigger {^A goblin soldier is DEAD!!$} {#say That took @countfightround;#var countfightround ""}

with an #var for the fight stuff:

#var fightsequences {You dodge a goblin soldier's attack.|You counter a goblin soldier's attack~!|A goblin soldier DISEMBOWELS himelf~!|Your cleave ~*~*~* DEMOLISHES ~*~*~* a goblin soldier~!|Your pierce ~*~*~* DEMOLISHES ~*~*~* a goblin soldier~!|You parry a goblin soldier's attack.}

________________________________________________________________________________
If you want to count the num of attacks per round you need to make a trig for the blank space ^$ or you promt then have it #say you did num attacks this round;add that num to a total clear that num and then ad the round to a total then when the thing dies have it #say how many total rounds and how many total attacks it took
and then ofcours clear those out for the next fight or maybe take those nums and #ad them to a grand total so you can see how many times you have attacked for the whole time you've played.

megamog75
Keeper of the only printable help files for Zmud.
Reply with quote
necropsian
Beginner


Joined: 29 Jan 2002
Posts: 14
Location: USA

PostPosted: Tue Apr 01, 2003 6:57 am   
 
Sorry, i forgot to mention that the ***DEMOLISHES*** and ***DEVASTATES*** are just a few of many types of damage, scratches wounds mauls devastates decimates massacres... lot's of 'em.
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Tue Apr 01, 2003 5:01 pm   
 
#TRIGGER {Your %w ~*~*~* %w ~*~*~* (*)!} {#ad countfightround 1}



megamog75
Keeper of the only printable help files for Zmud.
Reply with quote
immortalsam
Newbie


Joined: 01 Apr 2003
Posts: 3

PostPosted: Sun Apr 13, 2003 5:40 am   
 
im wanting to do something very similar, but i want to count the number of monsters in the room, and as i kill them, have it subtract the monster from the number in the room. i see #ad NAME 1 will add 1 to the counter, is there a subtract feature?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Apr 13, 2003 7:29 am   
 
Add negative numbers.

LightBulb
Advanced Member
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