[Resolved]Quick question - check who's the first char in party.

Started by Ravenith, April 10, 2010, 02:27:07 pm

Previous topic - Next topic


As the title implies, I'd like to know what line of script should I use in a conditional branch to check whether character X is the first character in the party.
Thank you very much!


if $game_party.actors[0] == $game_actors[1]

So if 1st actor is actor ID 1 (Default: Arshes), then...

Lol I hope I'm not so rusty in RGSS that I got it wrong XP



April 11, 2010, 01:13:32 pm #3 Last Edit: April 11, 2010, 01:19:37 pm by Ravenith
Thank you very much.


edit: okay, i put that as a condition in a conditional branch, and when it's executed the game crashes with a syntax error... :(

Hellfire Dragon

If you're using a conditional branch then just remove the 'if' part and it should work ;)

$game_party.actors[0] == $game_actors[1]


Right... I feel pretty dumb right now...  :huh: Thanks!