Main Menu
  • Welcome to The RPG Maker Resource Kit.

[solved] how do you ID current battler?

Started by shintashi, February 28, 2011, 01:29:43 AM

0 Members and 1 Guest are viewing this topic.

shintashi

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.

cozziekuns

It's the variable @active_battler in the class Scene_Battle. @active_battler.id would show you the battler id.

shintashi

#2
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.id
in  # * Go to Command Input for Next Actor

below line ~2628 that reads
      @active_battler.blink = true