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.

NPC different reaction to different actors

aubie1

Member

just starting with RPGXP.  I have a script that allows me to change party members.  I want to have different NPC's react differently depending on who the lead character is.  How is the best way to program the event.  I can not find a simple way to do a conditional branch to see which actor is the main player.  I know a real noob question.  thanks in advance.
 
$game_variables[1] = $game_party.actors[0].id

will set the variable 0001:  to the actor # from the database of the 1st actor in the party.

There could be an easier way using data from the party changer script.
Or we could add the statement above to the party changer script, so it's always available.

Which party changer script are you using?

Be Well
 

aubie1

Member

That works great thank you.  I am using Dargor's party switcher.  I would love to be able to press a key and cycle through the actors to change who is primary, but I have yet to figure out how.  This is functional though - I appreciate it
 

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