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.

[REQ] OverDrive to Replace Attack when full

Status
Not open for further replies.
Hello,
I am using KGC Overdrive v2 with my game, and was wonder if anyone had a script that would replace Attack command with Overdrive when the bar was full sorta like FF7, or atleat anything close to this.

Also am looking for a script that will work with the RTAB That you can choose 1 OD from a list you have learned and it will use by default FF7 ish
 
I think I know what to do....
Code:
when 0  # Attack
        # Performing decision SE
        $game_system.se_play($data_system.decision_se)
        # Starting the selection of the enemy
        start_enemy_select

Find that in the RTAB... and Replace it with this:


Code:
when 0  # Attack
     if OD_GAUGE_MAX == 1000
        # Performing decision SE
        $game_system.se_play($data_system.decision_se)
        #Something HEEEEEEEEEERE
else
        # Performing decision SE
        $game_system.se_play($data_system.decision_se)
        # Starting the selection of the enemy
        start_enemy_select
end

Okay nevermind I'll finish it tomorrow. I'm sorry but I'm sleepy and tired... I'll get on it tomorrow.... this is a start though.... *Going to bed*
 
I have ODs for each character, if it could bring up a list to choose from depending on what tag they have that work. It is ok been waiting a while for someone to help me so not in any rush.
 
This is all I got... It's not done yet.... I can't get the cammand change right.... Been working on it for like 4 hours now....
Code:
when 0  # Attack
        if $othercommands == 1
          $Skillgroup = 29
          $game_system.se_play($data_system.decision_se)
          # Starting the selection of skill
          start_skill_select
        else
     if actor.overdrive == 1000
        # Performing decision SE
        $Skillgroup = 18
        $game_system.se_play($data_system.decision_se)
        start_skill_select
      else
        # Performing decision SE
        $game_system.se_play($data_system.decision_se)
        # Starting the selection of the enemy
        start_enemy_select
      end
      end
 
Ok i plugged it in and got an error

Script' Realtime active battle (RTAB)' line 1059: NameError occurred.
undefined local variable or method 'actor' for #<Scene_Battle:0x3d92978>

I am REALLY bad a RGSS Just learning how to do little stuff lol. Not sure what this means
 
If you feel up to it. Thanks.
PM From DeVVulfman
So, when the od bar gets full, it sets in
def phase3_setup_command_window
that the 2nd command window is visible
and in update_phase3_basic_command
you use the if to perform an OVERDRIVE select
Code:
 when 0 # Attack
# Performing decision SE
$game_system.se_play($data_system.decision_se)
If overdrive bar is 1000 or better
# Starting the selection of the overdrive skill
start_overdrive_select 
else
# Starting the selection of the enemy
start_enemy_select
end
Think of the 'start_overdrive_select' as a duplicate entry of the start_skill_select... except it singles out overdrive skills with the elements I mentioned before.

EDIT:Well not on my home comp but here is the link to what I got my script from. Just basically everything there in there plus the GnD CLICK HERE

Hope this helps
 
Hey I still might be working on it.... But only if I get an Awesome idea of what might work....

It doesn't work but if you'd like to use it to work on it you can.
Code:
class Scene_Battle
  alias sasukesfirstalias phase3_setup_command_window
  def update_phase3_basic_command
    sasukesfirstalias
    if Input.trigger?(Input::C)
      @party = false
      # It diverges at cursor position of the actor command window
      case @actor_command_window.index
      when 0  # Attack
        if $othercommands == 1
          $Skillgroup = 29
          $game_system.se_play($data_system.decision_se)
          # Starting the selection of skill
          start_skill_select
        else
          #$Game_Actor.setup_KGC_OverDrive
     if actor.overdrive == 1000
        # Performing decision SE
        $Skillgroup = 18
        $game_system.se_play($data_system.decision_se)
        start_skill_select
      else
        # Performing decision SE
        $game_system.se_play($data_system.decision_se)
        # Starting the selection of the enemy
        start_enemy_select
      end
    end
  end
end
end
end
 
Status
Not open for further replies.

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