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.

Multiple Status Effect Shown

I was wonderng if you somebody could make a script to so that The battle system will show multiple status effects at the same time. Like scroll through them.

No SDK please.
 

Atoa

Member

Show the effects at same time would cause a incredible high level of lag, so you could try my state cycliung, it's shows all tha animations of the stats, but alternate between them
Code:
module Atoa

  State_Cycle_Time = 2

end

#==============================================================================

# ■ Game_Battler

#==============================================================================

class Game_Battler

  #--------------------------------------------------------------------------

  include Atoa

  #--------------------------------------------------------------------------

  alias state_cycle_initialize_gamebattler initialize !method_defined?(:state_cycle_initialize_gamebattler)

  def initialize

    state_cycle_initialize_gamebattler

    @state_frame = @state_animation_id = 0

    @anim_states = []

  end

  #--------------------------------------------------------------------------

  def state_animation_id

    return 0 if @states.empty?

    return 0 if @states.include?(1)

    @state_frame -= 1 if @state_frame > 0

    return @state_animation_id if @state_frame > 0

    if @anim_states.empty?

      for state in @states

        @anim_states << state if $data_states[state].animation_id > 0

      end

    end

    now_state = @anim_states.shift

    return 0 if now_state.nil?

    @state_animation_id = $data_states[now_state].animation_id

    return 0 if $data_animations[@state_animation_id].nil?

    @state_frame = $data_animations[@state_animation_id].frame_max * State_Cycle_Time * 2

    return @state_animation_id

  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