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.

Simple question, I guess

In "Scene_Battle 2", line 194, there is this:

"@phase5_wait_count = 100"

Now, is it possible to change this value with an event (using the Script... event)?

I'm not really sure how to use that event correctly yet. Thanks in advance for the help.
 
I also noticed I may want to change "@move_speed" in Game Character as well at some point in the game. So, again, does anybody know how to do this with events? Still waiting for an answer.
 

khmp

Sponsor

Code:
#==============================================================================
# ** Scene_Battle
#------------------------------------------------------------------------------
#  This class performs battle screen processing.
#==============================================================================

class Scene_Battle
  @@wait_time = 100
  #--------------------------------------------------------------------------
  # * Set Phase5 Wait Timer
  #     wait_time : what you want the wait time to be.
  #--------------------------------------------------------------------------
  def self.wait_time=(wait_time)
    @@wait_time = wait_time
  end
  #--------------------------------------------------------------------------
  # * Get Phase5 Wait Timer
  #--------------------------------------------------------------------------
  def self.wait_time
    return @@wait_time
  end
  #--------------------------------------------------------------------------
  # * Alias Methods
  #--------------------------------------------------------------------------
  alias shum_waittimeincrease_scene_battle_start_phase5 start_phase5
  #--------------------------------------------------------------------------
  # * Start After Battle Phase
  #--------------------------------------------------------------------------
  def start_phase5
    shum_waittimeincrease_scene_battle_start_phase5
    @phase5_wait_count = @@wait_time
  end
end

#==============================================================================
# ** Game_Character
#------------------------------------------------------------------------------
#  This class deals with characters. It's used as a superclass for the
#  Game_Player and Game_Event classes.
#==============================================================================

class Game_Character
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_accessor :move_speed
end

Whenever you want to adjust the phase5 wait time. Use the "Script..." event command:
Code:
Scene_Battle.wait_time = x # Where x is the new wait time

And to adjust the player's speed. Use the "Script..." event command:
Code:
$game_player.move_speed = x # Where x is the new player's speed

I hope that helps.
 
I have another very similar question. Using the same event, how can I change the normal_color thing? I've tried "Window_Base.normal_color", "normal_color", the "@" and "$", and many other combinations but they all say it's a false class or that there is some syntax error. How can I change the "normal_color" thing using the Script... event, or any other of those colors? Thanks in advance again.
 

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