Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

How to determine which character the 'Actor 0X' refers to?

I apologize if the title isn't quite clear enough; I'll try to clarify it here.

I'm working on some special in-battle skill effects, as run through called common events. In the process, I'm running into a bit of a problem, and I'm hoping someone can help me figure out what the correct solution is.

I'm marking what character(s) have been hit with specialized dummy states, and using the 'Character X has State Y' conditional branch command to determine which characters to look at. When I'm trying to determine which hero to display the effect graphics on, or deal damage to, however, my options are either 'Entire Party' or one of the four available actor slots.

The party is intended to switch around a bit, and I'm not always sure what character is in what slot. What is the appropriate way to determine this so that I may correctly match my 'affected character' effects to the right character?
 
little confused, in XP, there is a "Actor X is State Y inflicted" conditional branch, but X can be any of the actors.
(page 2 of Conditional Branch dialog)

Can you be specific about which Event Command you are referring to?

To determine which actor is in position 1 in the party:
Use the "script" event command to set a game variable to the actor's ID...

$game_variables[1] = $game_party.actors[0].id
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top