Battle engine problem

Hi,
I found a battle engine from somewhere and thought i cound put it into my site.
here’s the link:http://geocities.com/u_avi_15/email.zip
Basically what i was hoping to know was -
1.how to define the hp for each of them if we look for random battles.
2.how to fight a particular enemy .(this means like on the map
screen.there is a picture of an enemy suppose the toad.is it
possibe to goto the battle engine and fight only that toad.
Please help.
Avi

dude, chill. Hes using it so he can find out more about how to make one on his own.

really dude take your riddilin* <-(think that is how it’s spelled) hes just learning how to write actionscript don’t call the fbi or nothing…

ok fine about the graphics they are raw i am going to replace it(obiously)
about the code i am trying to understand it and make somthing simpler…
anyways I emailed the person and he said that i could use it

well for the code… go to the 2nd frame, 2nd layer. see this code?:

_global.enemies=[["clam",5],["fish",5],["toad",10]]

Edit it so it’ll be like this:

_global.enemies=[["clam",HP1],["fish",HP2],["toad",HP3]]

replace HP1,2,3 with the hp you want the monsters to have.

Ok i got to define which enemy i want to fight and how many but then how do you define health for each i got what romfus meant i did that but… i dont know could someone please help i am on my knees here!!!:hurt:
I am attacing the latest version.if you see when you click on the enemy his hp appears and when you click attack he does 1 damage. but then when you click on another enemy it becomes 5 again.instead how do i get it to record each of the enemies’s hp???
Please help ,
Avi
LINK:http:\www.geocities.com/u_avi_15/v2mx.fla

won’t do at all :slight_smile: i came up with a 2 nice idea’s that might let the game work.
and whoopee they do work :slight_smile: (the fla file for randomencounters with multiple enemies,on wich i added my own battle engine,works fine),once i finished both files that would meet your request avi,i’ll put them in this tread.
so get back up and reserve an open credit space on your game for my name :slight_smile: )