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.

A single RGSS statement that recognize who's in the first slot of the party

Status
Not open for further replies.
The title explains all I guess :-/

Anyway, I wanna ask again

Is there a RGSS statement that I can use to let the game know who's leading in the party, I mean to know which actor is on the first slot of the party. If there is and if possible, can it appear in a single statement that I can put into the script evaluation in the "Conditional Branch" command that looks like this

Code:
if (that statement which check who's leading the party) = actor_id[XX]
(I'm planning to mix some events into it)

I'll appreciate your help for this 8-)
 

khmp

Sponsor

$game_party.actors[0] will tell you the first person in your party. To use that in a conditional statement inside an event, look on the last page of possible conditionals and there will be a script section at the bottom. Put:
Code:
$game_party.actors[0].id == xx
Where xx is the id of the actor you are looking for.

Good luck with it Kinnison! :thumb:
 
Status
Not open for further replies.

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