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.

Figure out who's in front

Can anyone help me? I seem to have forgotten how to check to see who's in front of the party. If there is a difference, I need to be able to figure this out both in a script and in an event(which would probably be in script call).

Thank you ahead of time.
 
You can also do it like:

@>Conditional Branch: Script: $game_party.members[0] == $game_actors[1]

...

@>Conditional Branch: Script: $game_party.members[0] == $game_actors[2]

..

@>Conditional Branch: Script: $game_party.members[0] == $game_actors[3]

...etc.

It'll check if game actor ID 1,2,3, or etc. is in the front of the party. I'm not sure if this is the same thing as Dragor's solution.
 

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