Variables In Scripts

Hey guys, just a quick question. I've looked around in the scripts I have and on the internet, but I couldn't find anything on this. You know when you're controlling data about the actors or enemies (such as name), there's a variable that represents each of them. I know for the actors name it's 

$game_actors[var].name but where is the enemies name stored? Hopefully this makes sense 🙂
It depends how you're accessing the enemy.


If you're just interested in the name of enemy 15, it's $data_enemies[15].name


If you're interested in the name of enemy 3 in the current troop when you're in battle, it's $game_troop.members[index].original_name (to get it without the A, B, C) or $game_troop.members[index].name (to get it with the A, B, C). index is its position in the troop, starting with 0, and has nothing to do with the enemy's id, but rather the order you added them when you created the troop.


I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
Perfect! Thank you! Do you know if there is a page where I could find all of these variables? Either way, the topic can be closed 🙂
well you can try reading the default battle scripts to see how they access these data
What variables? There is no "list" of how to access things because there are so many "things" you could want to access, the list would be endless. You just have to look through the scripts and see how things hold together.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/variables-in-scripts.21298/