[VX] Limit Breaks / Overdrives

Thanks a lot for all the information, it's very helpful.
I'll take a look at it as soon as I get the time to and I'll get back to you with a fix for ATB 1.1. ;)

Take care!
-Dargor
Little extra question real quick... Can I use your Custom Command script (or this script) to keep the 'Limit" skills from showing up in the regular "Skills" menu during battle or in main menu? If so, you mind explaining for me? 😀

Thanks again.
Yo Dargo! Just wanna say great script by the way. It seems compatitable with the sideview battlescript and I also found another error in the script. I think it's because the limit break skills
are shown in the battle skill menu which causes it to occur although thats what I'm guessing. I think it's something to do with that. Anyways heres the error....

Script "DARGORS LIMIT BREAK" line 1030: NoMethodErrorOccured
Underfined method command_name' for NilClass:Class

Now I'm using the Tankentai Battlesystem which seems to have no issues with it apart from that.
Thought I'd give you another thing which needs fixing before you unleash the next update. I'm looking forward to your next update :D
@vilagost
No you can't use the CC script for that. However, I made a SKill Subset script a few months ago that let you organize your skills in sub menus like White Magic, Black Magic, etc. I haven't tested these 2 scripts together but it should work.

Either way, I'll prevent limits from being shown in the skill window. ;)

@obsorber
See above :)
And about line 1030, I assume you'ra talking about this line?

when @active_battler.class.command_name(Vocab::LimitCommand)

In version 1.5, it's line 1048.
It seems like the active battler's class or even the active battler itself doesn't exist. I'll add a little fis to prevent this bug but normally, this shouldn't happen. And it's probably because of the Takentai CBS.

The update is comming soon ;)

Take care!
-Dargor
Yo Dargor! I'm excited for your next update. This script is the bomb! I'll be willing to take time to do tests on it as well and thanks.
That is probably the most useful script I've come across recently! Thanks a bunch my friend. Look forward to your next update.

- Vila
If I had to venture a guess, I would say this is the problem I'm having with compatibility between the ATB 1.1b and your Limit Break Script... This is from 686 to 742 in the ATB script.

  1. def start_actor_command_selection
  2.      $in_command = true
  3.      @command_phase = true
  4.      @command_member_index = 0
  5.      @commander = @command_members[@command_member_index]
  6.      @status_window.active = true
  7.      @status_window.index = @commander.index
  8.      # カーソルセット
  9.      @cursor = Sprite_Cursor.new if @cursor == nil
  10.      @cursor.set(@commander)
  11.      # 動けるキャラのみコマンドアクションを
  12.      @spriteset.set_action(true, @commander.index,@commander.command_b) if @commander.inputable?
  13.      @party_command_window.active = false
  14.      @actor_command_window.setup(@commander)
  15.      @actor_command_window.active = true
  16.      @actor_command_window.index = 0
  17.      @actor_command_window_on = true
  18.      @status_window.refresh
  19.   end
  20.   #--------------------------------------------------------------------------
  21.   #  — コマンド更新    €»å†å®šç¾©
  22.   #--------------------------------------------------------------------------
  23.   def update_actor_command_selection
  24.      # コマンド入力できる状態でなくなればキャンセル
  25.      return reset_command unless commanding?
  26.      if Input.trigger?(Input::B)
  27.         Input.update
  28.         Sound.play_decision
  29.         start_party_command
  30.      elsif Input.trigger?(Input::C)
  31.         Input.update
  32.         case @actor_command_window.index
  33.         when 0   # 攻撃
  34.            Sound.play_decision
  35.            @commander.action.set_attack
  36.            start_target_enemy_selection
  37.         when 1   # スキル
  38.            Sound.play_decision
  39.            $in_select = true
  40.            start_skill_selection
  41.         when 2   # 防御
  42.            Sound.play_decision
  43.            @commander.action.set_guard
  44.            end_command
  45.         when 3   # アイテム
  46.            Sound.play_decision
  47.            $in_select = true
  48.            start_item_selection
  49.         end
  50.      #  †’キーでコマンドキャラ送り
  51.      elsif Input.trigger?(Input::RIGHT)
  52.         next_commander
  53.      #  †ã‚­ãƒ¼ã§ã‚³ãƒžãƒ³ãƒ‰ã‚­ãƒ£ãƒ©æˆ»ã—
  54.      elsif Input.trigger?(Input::LEFT)
  55.         back_commander
  56.      end
  57.   end
Expand to see the code.


This also seems to be the reason I can't add battle commands using your command script. When I am able to move things around, for example if I switch s3 and s4 to s4 and s5 leaving s3 blank (for a skill subset using your script) s3 still guards because (I'm guessing) the ATB is setup to execute guard when the 3rd option is selected. So my question is... can I work around this without having to rewrite the ATB script making it use more flexible variables (instead of 0-4, use the command name like you have it setup in your Custom Command Script)? If there's no easy work around I might try my hand at rewriting the ATB script since I think I might be getting a handle on the language.

Thanks
-Vila
Ok this script has an error with the custom commands script which you need to use the script I think. If you try a test battle, almost all time after your press f12, it comes up with an error saying:

Script "Custom Commands" line 539 System Stack to deep.

Well something like that anyways. It sometimes comes up randomly during battle occassionaly but almost occurs everytime I press f12. I think this is another bug otherwise it's just me. :huh: Oh yeah and for the record, I'm using the Tankentai Battlesystem although I'm not using the ATB script with it.
Yes I know that. FYI, this a general bug related to RGSS itself, not my script. I can patch it so it doesn't do that but I ust wanted to point out that it's normal.

@vilagost
It doesn't surprise me at all, but I'll try my best to make it 100% compatible with this CBS.
Man, I really hate this CBS... lol
Um ok...I don't understand anything about scripts so I don't have clue.
Well, don't stress it too much my friend. For now I've dropped the ATB system to the "possible" list in the features I want my game to run. It's just too incompatible with too many other scripts, not just yours. With the amount of features I'm putting into the battle system, an ATB isn't crucial to keeping the battles fresh and interesting anyways.

I'll keep tinkering with the ATB script itself and I'll let you know if I stumble across a way of making IT more compatible, since it seems to have issue with most scripts that deal with the battle system. Thanks again.

-Vila
For anyone using SBS 3.3 by Enu:
If you're using this SBS together with this Limit script you may have noticed that after executing a limit skill, the limit bar does not reset itself to 0. To fix this you need to insert a part of Dargor's script into the SBS script. Copy and paste the following:

  1.           if @active_battler.actor? && @active_battler.limit_ready? &&
  2.            Limit_Break::Limits.include?(skill.id)
  3.         @active_battler.remove_command(Vocab::LimitCommand)
  4.         @active_battler.lp = 0
  5.      end
Expand to see the code.


In between lines 647 and 648 of the Sideview 2 (3.3) script (Not sure if that is my label or the one that the translator gave it. There should be a config script and then 2 scripts following that. Insert this into the 3rd script). The script on line 647 should be as follows:

  1.       $game_temp.common_event_id = skill.common_event_id
Expand to see the code.


This seems to fix the only compatibility problem between these two scripts. Enjoy!
Quick question. I'm wondering if there's a way to force LP to be gained through a script command. I want to use it for two reason. 1) At the beginning of the game I'm developing, I have a beginner's hall and one of the battle tutorials is for the Skills and Limit system. So I need to be able to force LP gain to max during the tutorial. 2) I want to create a skill for one of my characters that will allow him to gain LP at the cost of the turn. (Will probably be 10 LP gain out of the 35 max I have it set at.) What would be the proper syntax for this?

Thanks,

Vila
Where do i place this script
As it is stated in the script header, place this script above Main and below my Custom Commands script ;)
When I add the script it gives me this error Script overdrives line 222 no methodError can some one help me :blank:
never mind I got it working and its a :thumb: great script!
I hate asking this...but could you make one for XP?

__________________________
R66
There's already at least 2 scripts like that for XP. One thatw as made by KGC Software and also an upgraded version made by DerVVulfman.
Is there a way to make it so when the player selects Limit in the game menu it will give them the option to select limit or mode? Instead of going right into the limits select menu.
There is something wrong with the script
in the line 222. add_menu_command(Limit_Break::Menu_Index, Vocab::Limit)
that line can't work
can you please fix it?
i need this script 😢
Do you have the latest version of the Custom Commands script installed?
Make sure you have it, and make sure to put it below every default scripts and above every custom scripts.
hey sorry for necro bumping :O if that's what it's called... I just really needed your help... I'm trying the limit break/overdrive script for the Tankentai ATB system. I have the custom command menu script like it says I need in the instructions, and I put it below the custom command but above main in the script but it tells me there's an error with line 222
add_menu_command(Limit_Break::Menu_Index, Vocab::Limit)

INSTRUCTIONS:
# 1) Place this script ABOVE Main and BELOW the Custom Commands script
# 2) Edit the vocabulary and constants in the Limit_Break module

I don't know what edit the vocabulary and constants in the limit break module mean. how do I do that and what do I edit it too? anyway if you could help me out I would really appreciate it. thank you very much.
Hey, sorry for another necro here. For anyone who is still using the script, or Dargor if you are still around, I found a bug in the script. This bug is concerning the 'Avenger' overdrive mode. When a party member is knocked out in battle, even if there is no party member with Avenger mode selected, the game will crash.

The problem comes mainly from the part of code around Line 503. Inside the 'for' loop, all references to 'user' should instead be 'member', like in the Comrade overdrive mode. This is because, for the case of Avenger mode, 'user' is normally going to be an Enemy rather than an Actor.

Additionally, on Line 140, again 'user' should be changed to 'member'.

Making these changes fixes the bug. I hope this is of help to someone :) Aside from this, the script is great, good job Dargor!
Hello d_disaster.

I haven't updated my scripts in a while now but I suddenly regain regain interest in them while working on a small game on VX.
The bug you are talking about has been fixed in my game but not updated here.

I will eventually repost all my updated VX scripts when I have time but I'm not providing support for them anymore.
But please, feel free to share any bug fixes you have (and of course don't forget to give me credit for the scripts :P)

Take care,
- Dargor.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=62005