How do you figure out the identity of your current battler, when they are in combat, and flashing? I've tried various titles like @game_battler, $game_party.actors[@actor_index], and so forth, but I'm not able to pinpoint what the computer is calculating as 'current active actor'.
Normally I would just select actor using a menu, but my current task requires me to only use the attributes of the current active character, similar to whoever is defending or using a skill.
It's the variable @active_battler in the class Scene_Battle. @active_battler.id would show you the battler id.
Quote from: cozziekuns on February 28, 2011, 04:52:37 AM
It's the variable @active_battler in the class Scene_Battle. @active_battler.id would show you the battler id.
"@active_battler.id" always spits out the number 4, and "scene_battle.active_battler.id" produces an error. I need to be able to access "X" in $game_actors[X].weapon_id
edit: Solved. I had to go to the SDK III and add
$store = @active_battler.idin # * Go to Command Input for Next Actor
below line ~2628 that reads
@active_battler.blink = true