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.

I am really bad at scripting...

I'm not possitive if this is the right place for this, I'm sorry if it isn't.

Alright, I have been trying to make some changes to Scene_Battle 3 in the default RMXP scripts.

Code:
...
# If skill window is enabled
    elsif @skill_window != nil
        update_phase3_skill_select
    ...

Was changed to:

Code:
...
# If skill window is enabled
    elsif @skill_window != nil
      if @active_battler.charge_or_release == 1
        update_phase3_skill_select
      elsif @active_battler.charge_or_release == 0
        if (@active_battler.Level/10) + 2 <= @active_battler.charges
          $game_system.se_play($data_system.buzzer_se)
        else
          update_phase3_charge_select
      end
...

update_phase3_charge_select is exactly the same as update_phase3_skill_select right now.

Code:
when 0  # attack
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Set action
        @active_battler.current_action.kind = 0
        @active_battler.current_action.basic = 0
        # Start enemy selection
        start_enemy_select
      when 1  # skill
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Set action
        @active_battler.current_action.kind = 1
        # Start skill selection
        start_skill_select

was changed to:

Code:
when 0  # attack
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Set action
        @active_battler.current_action.kind = 1
        @active_battler.charge_or_release = 1
        # Start enemy selection
        start_charge_select
      when 1  # skill
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Set action
        @active_battler.current_action.kind = 1
        @active_battler.charge_or_release = 0
        # Start skill selection
        start_skill_select

start_charge_select is exactly the same as start_skill_select right now.

This is all that I have changed. Everything else is exactly the same.

Now, my problem:

when I enter a battle, I can't select any of the commands. I can select escape/fight.
Attack, Skill, Guard, and Item are all there, and I can switch my selection box from one to the other, but pressing enter or space bar yields no results.

Help? I know that my coding is horrible, but I'm just trying it out right now.
 

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