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.

Edit to Gubids Tactics script.

I'm having trouble editing a script and I'm wondering if anyone can help. I'm using Gubids Tactics script in my game but I want to get rid of the help box that appears in the battles indicating what every battle option does.
I plan on making a tutorial at the start of the game (like the snowball fight in FFT:A) so the player wouldn't need the help box once they're past the first 20 minutes of the game.
Is there a simple On/Off script that I can apply to make it toggle or a way to just disable it completly?

Any help would be appreciated.
 
There should be something like this somewhere in the script you didn't give us for some reason:
Code:
@help_window = Window_Help.new
Let's just replace it with the following:
Code:
@help_window = Window_Help.new if $game_switches[666]
Now, whenever you have switch #666 (call it something like 'visible battle help window') activated, the help window will be there.

Next step is to exclude the other operations involving this window. Because you disable the initialization of this window completely, any other operation involving it will return an undefined object. So, check your script for instances of '@help_window', and whatever line there is, put a check behind it that makes sure @help_window is defined before executing any action... like so:
Code:
@help_window.set_text('This is an example of how a line could look like') if @help_window != nil
Note that there might be exceptions to this depending on how your script is written. For example, if you have conditionals involving your window handler, you have to enclose the whole conditional by a 'if @help_window != nil' conditional.
 

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