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.

Editing fifth party member's battler

Recently, I've been trying to include a fifth member into the party and I did. Now I'm trying to make all five of them appear altogether in a single window during battle (Where it supposed to only fit four).

Now the problem is that the fifth party member's battler graphic did not appear in the battle (According to the screenshot)

http://i163.photobucket.com/albums/t295 ... member.png[/img]

Now the question is, which part of the script handles the battler graphics and how do I change it to have the fifth member's graphic to appear?

Any help would be appreciated, thanks.  :shades:
 
This would be in Spriteset_Battle. The lines:
Code:
    # Make actor sprites
    @actor_sprites = []
    @actor_sprites.push(Sprite_Battler.new(@viewport2))
    @actor_sprites.push(Sprite_Battler.new(@viewport2))
    @actor_sprites.push(Sprite_Battler.new(@viewport2))
    @actor_sprites.push(Sprite_Battler.new(@viewport2))
Process the sprites.

Basically, add one extra line (@actor_sprites.push(Sprite_Battler.new(@viewport2))) below the code above, then go into the update block, find these lines:
Code:
    # Update actor sprite contents (corresponds with actor switching)
    @actor_sprites[0].battler = $game_party.actors[0]
    @actor_sprites[1].battler = $game_party.actors[1]
    @actor_sprites[2].battler = $game_party.actors[2]
    @actor_sprites[3].battler = $game_party.actors[3]
Right below this, add:
Code:
@actor_sprites[4].battler = $game_party.actors[4]
That should work. Hope this helps.
 
Although I did found the set of lines for the one above but never for the second one. Must be because I'm not an expert in scripting that I automatically ignored the scripts above. lol :P
Anyway, I followed what you suggested and it worked just as I wanted. Thanks for helping me with the script. :D

Case closed.
 

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