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.

Battler disappears when re-adding to battle

Okay this has been bugging me for a while and I tried figuring it out last night to no avail.

Basically what happens is that I have a "summon" skill where I can add another party member into the active party during the battle round, and it works perfectly and all, but the moment that summoned party member dies, I have it set up so that they are removed from the party.

When I use the skill again to add the party member back in, he will return, but his battler graphic will be blank.

According to this code, the @battler_visible conditions are pretty simple, yet when I try to turn them on when I use the skill, they still fail:

Code:
    unless @battler_visible
      # Appear
      if not @battler.hidden and not @battler.dead? and
         (@battler.damage == nil or @battler.damage_pop)
        appear
        @battler_visible = true        
      end
    end

The above is in Sprite_Battler, btw.

Does anyone know how to fix this or would be able to figure it out in 5 minutes? I am pretty sure this happens by default (i.e. it is not because of custom scripts I have).
 
I have a summon system similar to yours that replaces the active battler with a new one. What I do however is I store the old actor in a temporary variable until the summon "wears off", then I simply replace $game_party.actors[whatever] with the appropriate temporary variable, then refresh the status windows of the battle scene. I'm not sure how similar this is to yours but I don't have problems with re-appearing battlers with this method.
 
JustinAC;266308 said:
I have a summon system similar to yours that replaces the active battler with a new one. What I do however is I store the old actor in a temporary variable until the summon "wears off", then I simply replace $game_party.actors[whatever] with the appropriate temporary variable, then refresh the status windows of the battle scene. I'm not sure how similar this is to yours but I don't have problems with re-appearing battlers with this method.

The problem occurs when the summon dies. What happens if your summon dies? Or is it in the party too short to die?
 
Diedrupo;266338 said:
The problem occurs when the summon dies. What happens if your summon dies? Or is it in the party too short to die?

Wow... you know what? I never thought about that. My summon abilities are limit breaks, they last a few turns and they aren't meant to die. I guess that's one way to avoid the problem, but yeah mine are in the party too short to die I guess. Though I probably should go back and check it out. My summons are given a state effect when the transformation happens and when that state wears off, that's when they revert back. I'm not sure what happens if they die because in that case the state can't wear off. I'll look into 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