Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Store enemy info

Hello guys. Please can someone help me with this ? How do I store enemy parameters using a game variable ? I need for example with a script call to store enemy 2's attack in variable 12. Thank you.
EDIT: I just want to add that enemy 2 is from the database and not the enemy position in battle's troop.
 
Last edited:
Thank you but I think that is when you are in battle. I would like to store it outside the battle, id number being the one use in enemy database.
 

Mr. Trivel

Praised Adventurer
Xy$
0.00
Yeah, that'd grab 2nd troop member's atk.
If you want to grab the atk from database, then, this:
JavaScript:
$dataEnemies[2].params[2]
 
Top