Say, I want to make a custom game over screen sequence that changes for every character, so I need to know what position a character is in the party, and if they're in the front, their game over will be used. However, I've tried and couldn't figure out how to check for that, so I need help, whenever it'd be a script or script call
Check actor's position in the party
RGSS Script RequestsHi!
You can get the id of the first party member by doing the following script call:
With
You can get the id of the first party member by doing the following script call:
$game_variables[x] = $game_party.actors[0].idWith
x the id of the variable you wish to modify. If you wanted the second party member instead, you would use $game_party.actors[1] and so on.use control variable : game data : party member #'s ID
to get the ID of the actor in any of the first eight positions.
and a script top run a common event on Game Over, there should be several of those on the Ace Master Script List
EDIT: sorry, I didn't see the RMXP until I wrote the above, but it should go similarly with that
to get the ID of the actor in any of the first eight positions.
and a script top run a common event on Game Over, there should be several of those on the Ace Master Script List
EDIT: sorry, I didn't see the RMXP until I wrote the above, but it should go similarly with that
This works, thank you!
Original thread: https://forums.rpgmakerweb.com/threads/check-actors-position-in-the-party.177139/