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.

Determining Actor's Party Position [RMXP!]

I know within event systems, you can use conditionals to determine if 'this actor' is in party, if 'this actor' is equipped with 'whatever', etc... or even how to call an actor's information with a call script, ie $data_actor[1].*

I've even found this line $data_system.party_members

But what kind of syntax handles and stores information for an actor's party position exactly, and how would you modify it?

ie 0 is Aluxes, 1 is Basil, 2 is Gloria, 3 is Hilda, etc...

Now you don't want Aluxes as the party leader, you want to push Basil into the party leader position and place Aluxes in the back of the line... how do I get started on that?

Or better yet, what if I wanted to determine something like 'Aluxes' is in party position 1, 'Basil' targets 'Aluxes', 'Aluxes' was affected by 'Basil's' action... etc.

I'm gonna study some default RGSS and some custom party scripts and see if I can figure this out on my own, so hopefully I will figure this out before you post, but if not, thank you ahead of time for your consideration in helping me learn ;)
 
All of the event commands are handled in the interpreter class.

So, take a look at Interpreter 2, and find the command for "Change Party Member"

Then, look for that command in the rest of the interpreter class.

It should give you a clue as to how to do this from a script.

Also, remember that the $data_  objects are from the database, and represent how the database
is set up when the game first starts (new game), and not necessarily the current state of the game
as it's being played.  (i.e. $data_system.party_members shows the Starting party members from the system tab in the database,
not the current members in your party.

Be Well
 

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