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.

TBS Error, Help!

Okay, so I have Zenith's Tactical battle system, and I have everything set up for the first battle map, but when I beat all the enemies and error comes up:  Script *window Help HUD line 91: RGSSE Error occured - disposed window.

Here's the part of the script it's talking about:
#--------------------------------------------------------------------------
  # * Set Enemy
  #     enemy : name and status displaying enemy
  #--------------------------------------------------------------------------
  def set_enemy(enemy)
    @face_graphic.visible = false
    @HUD_graphic.visible = false
    text = enemy.name
    state_text = make_battler_state_text(enemy, 12, false)
    if state_text != ""
      text += "  " + state_text
    end
    set_text(text, 1)
  end
 
  def visible=(bool)
    @face_graphic.visible = bool
    @HUD_graphic.visible = bool
    super(bool)
  end
 
  def dispose
    # Dispose if window contents bit map is set
    if self.contents != nil
      self.contents.dispose
    end
    @face_graphic.dispose
    @HUD_graphic.dispose
    super
  end
end

Oh, and if this helps then yeah:
#==============================================================================
# Zenith Tactical Battle System
# Event Defeat
#------------------------------------------------------------------------------
# This calls upon Common Events when defeated
#==============================================================================
class Scene_Map
  def beat_event
    case $game_map.map_id
#==============================================================================
# ↓↓Game Over or Victory↓↓
#==============================================================================
#------------------------------------------------------------------------------
# when Map ID
#  return {Event ID => Common Event ID, ...}
#------------------------------------------------------------------------------
#
#  This basically is pretty simple, what happen is when ever something is
#  defeated it can be defined so that a common event will do something in
#  this case call upon gameover is actor1 is defeated and add variables
#  everytime a certain enemy event is subdued....let me explain better.
#
#  Look below at the part with all the number and equal signs.
#
#  1=>5 :What this one does is upon the death of Actor1 it instantly calls up
#  the common event Gameover.
#
#  3=>6, 5=>6 etc: These are enemy events that when defeated call upon the
#  common event 6 which if you check adds a variable up.
#
#==============================================================================
# Game Victory
#==============================================================================

when 1  # It calls upon special common events, everytime someone is beaten
  return {1=>5, 3=>6, 5=>6, 7=>6, 6=>6, 8=>6, 11=>6, 15=>6, 9=>6, 12=>6, 19=>6,
  13=>7}

#==============================================================================
# In any other cases
#==============================================================================
    else
      return {}
    end
  end
  #--------------------------------------------------------------------------
  # â—
 

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