# Battle engine problem

**URL:** <https://forum.kirupa.com/t/battle-engine-problem/180171>\
**Category:** Uncategorized\
**Created:** [February 26, 2006, 1:39pm UTC](https://forum.kirupa.com/t/battle-engine-problem/180171 "2006-02-26T13:39:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![u\_avi\_15](https://avatars.discourse-cdn.com/v4/letter/u/bbe5ce/32.png) [@u\_avi\_15](https://forum.kirupa.com/u/u_avi_15)\
**Post date:** [February 26, 2006, 1:39pm UTC](https://forum.kirupa.com/t/battle-engine-problem/180171/1 "2006-02-26T13:39:17Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![That\_Guy](https://avatars.discourse-cdn.com/v4/letter/t/13edae/32.png) [@That\_Guy](https://forum.kirupa.com/u/That_Guy)\
**Post date:** [March 20, 2006, 6:48pm UTC](https://forum.kirupa.com/t/battle-engine-problem/180171/2 "2006-03-20T18:48:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bombsledder](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@bombsledder](https://forum.kirupa.com/u/bombsledder)\
**Post date:** [March 20, 2006, 8:43pm UTC](https://forum.kirupa.com/t/battle-engine-problem/180171/3 "2006-03-20T20:43:58Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![u\_avi\_15](https://avatars.discourse-cdn.com/v4/letter/u/bbe5ce/32.png) [@u\_avi\_15](https://forum.kirupa.com/u/u_avi_15)\
**Post date:** [March 21, 2006, 6:43am UTC](https://forum.kirupa.com/t/battle-engine-problem/180171/4 "2006-03-21T06:43:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![romfus](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@romfus](https://forum.kirupa.com/u/romfus)\
**Post date:** [March 21, 2006, 9:56am UTC](https://forum.kirupa.com/t/battle-engine-problem/180171/5 "2006-03-21T09:56:45Z")

</div>

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

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

```

Edit it so it’ll be like this:

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

```

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

---

<div class="post-metadata">

**Author:** ![u\_avi\_15](https://avatars.discourse-cdn.com/v4/letter/u/bbe5ce/32.png) [@u\_avi\_15](https://forum.kirupa.com/u/u_avi_15)\
**Post date:** [April 17, 2006, 6:42am UTC](https://forum.kirupa.com/t/battle-engine-problem/180171/6 "2006-04-17T06:42:24Z")

</div>

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](http://www.geocities.com/u_avi_15/v2mx.fla)

---

<div class="post-metadata">

**Author:** ![rpgfanatic](https://avatars.discourse-cdn.com/v4/letter/r/e9bcb4/32.png) [@rpgfanatic](https://forum.kirupa.com/u/rpgfanatic)\
**Post date:** [April 20, 2006, 8:07pm UTC](https://forum.kirupa.com/t/battle-engine-problem/180171/7 "2006-04-20T20:07:06Z")

</div>

won’t do at all 🙂 i came up with a 2 nice idea’s that might let the game work.  
and whoopee they do work 🙂 (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 🙂 )
