party member removal?

● ARCHIVED · READ-ONLY
Started by JoePro 3 posts View original ↗
  1. Hello all, so i wrote a script to change out the main actor for other actors. If I remove that player from the party, he/she loses all of thier current data.

    Noww my question is, how should I handle this? Should I;

    A ) Setup a new $game_backup_party class.

    B ) Set up an hash inside of $game_party.

    C ) Your option goes here! :D

    I guess i should mention it is a solo play game meaning 1 party member at a time. I dont want them to be seen through out the game, i.e. menus, battles ect. I have a custom scene to handle that.
  2. Just by removing an actor from the party, the actor should retain his state.

    I think you are talking about level, parameters and stuff?

    When you add an actor to the party using event commands, you have the option to resetup the actor, resetting all data of his:

      # Game_Interpreter - Script, line 706 - 709:  if @params[2] == 1  # Initialize    $game_actors[@params[0]].setup(@params[0])  end  $game_party.add_actor(@params[0])Perhaps that is what you experienced?

    Assuming I didn't get you wrong in the first place...
  3. Thank you Fen. That is what i was talking about. I didn't realize it was a default option. That saves a lot of time.