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.

More then one of the same actor.

Search for this code block in Game_Party...
Code:
  def add_actor(actor_id)
    # Get actor
    actor = $game_actors[actor_id]
    # If the party has less than 4 members and this actor is not in the party
    if @actors.size < 4 and not @actors.include?(actor)
      # Add actor
      @actors.push(actor)
      # Refresh player
      $game_player.refresh
    end
  end
... and replace it with this...
Code:
  def add_actor(actor_id)
    # Get actor
    actor = $game_actors[actor_id]
    # If the party has less than 4 members
    if @actors.size < 4
      # Add actor
      @actors.push(actor)
      # Refresh player
      $game_player.refresh
    end
  end

It's untested, but it should let you add the same actor several times to the party (with event/script commands, not in the database)...
 

Jason

Awesome Bro

Hmm... I havent tried it but I think I know what it does:
example: You want Arshes(Aluxes) in your party 4 times, It lets you have four of him in your party?

If this is the case, It would be good for games where you have an army of soldiers or clone yourself (No reason why)

...

Just tried it, It works fine, Think i'll be using this in one of my games.
 

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