GET BATTLE INFO V1.04

RPG Maker VX Ace

This script allows the developer get more information about the current battle without scripting knowledge.

This script allows the developer to get more information about the current battle without scripting. It allows you to retrieve information and use it for eventing purposes.

Script Calls:
Call: battle_info_user
Help: This command will get the user of the current action in battle.

Call: battle_info_used
Help: This command will get the current action in battle.

Call: battle_info_targets
Help: This command will get an array of all the current targets of the last skill used in battle.

Call: battle_info_all
Help: This command will get an array of all the current battlers.

Notes:
If you want to store the information in a variable, simply use a "Control Variables" event command. Then select the "script" value for the variable and use one of the script calls from above.

This would retrieve the actual object. If you want to get the id or name of the battler/skill/item you could use one of these:

battle_info_user.id
battle_info_user.name