|
necropsian Beginner
Joined: 29 Jan 2002 Posts: 14 Location: USA
|
Posted: 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 |
|
|
|
megamog75 Enchanter
Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: 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. |
|
|
|
necropsian Beginner
Joined: 29 Jan 2002 Posts: 14 Location: USA
|
Posted: 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.
|
|
|
|
megamog75 Enchanter
Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Tue Apr 01, 2003 5:01 pm |
#TRIGGER {Your %w ~*~*~* %w ~*~*~* (*)!} {#ad countfightround 1}
megamog75
Keeper of the only printable help files for Zmud. |
|
|
|
immortalsam Newbie
Joined: 01 Apr 2003 Posts: 3
|
Posted: 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?
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Apr 13, 2003 7:29 am |
Add negative numbers.
LightBulb
Advanced Member |
|
|
|
|
|