Status
Not open for further replies.

FG246

Villager
Member
Joined
Oct 1, 2021
Messages
5
Reaction score
2
First Language
Englis
Primarily Uses
RMVXA
I'm using Victor's ATB Script, and I'm wanting to make a Common Event where there's a switch, and when said switch is turned on, the ATB is set to 'Active' mode. And when its off, its set to 'Wait(semi-wait)'. (Like in the Final Fantasy games.)

However, I've been trying everything, and for some reason, it works fine, until I turn the switch off to set it back to Wait.
I've done what the description of the ATB script says, the '$game_system.wait_mode = X' script call, however when I turn said switch off after I already turned it on, it still acts as if it's set to on, and makes it set as Active.
Am I missing something?

(Also, I'm also using Yanfly's System Options Script to make it to where I can adjust the switches to where I can set the switch to active or wait.)

Here's a screenshot of the Common Event I did.
 

Attachments

  • why.PNG
    why.PNG
    14.3 KB · Views: 5

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,718
Reaction score
15,846
First Language
English
Primarily Uses
RMMV

I've moved this thread to RGSSx Script Support. Thank you.

 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
3,999
Reaction score
1,044
First Language
English
Primarily Uses
RMVXA
You would be better off to use a variable then the player could set to full wait as well. That's my preferred choice.
add this below VE ATB
and change the switch number to whatever one you use
Ruby:
class << BattleManager
  alias r2_change_atbwait   wating?
  def setup_initial_atb
    r2_change_atbwait 
    if $game_switches[2] == true
      $game_system.wait_mode = :active
    else
      $game_system.wait_mode = :semi_wait
    end
  end
end
 

FG246

Villager
Member
Joined
Oct 1, 2021
Messages
5
Reaction score
2
First Language
Englis
Primarily Uses
RMVXA
You would be better off to use a variable then the player could set to full wait as well. That's my preferred choice.
add this below VE ATB
and change the switch number to whatever one you use
Ruby:
class << BattleManager
  alias r2_change_atbwait   wating?
  def setup_initial_atb
    r2_change_atbwait
    if $game_switches[2] == true
      $game_system.wait_mode = :active
    else
      $game_system.wait_mode = :semi_wait
    end
  end
end
Thx a lot! Really appreciate it.
I really need to learn how to code and such.
Feel free to close this.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,718
Reaction score
15,846
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.



Please report your posts and ask for them to be closed in future. Do not assume a mod will see the request as a single line in a larger post in a larger thread.
 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

Had a funny feeling about my laptop last night so I moved my project over to desktop via thumbdrive, just experienced my first corrupted project and couldn't be happier about the timing!! *proceeds to copy file onto every thumbdrive in the house*
Test game. Find something broken. Fix. Re-test game. Broken thing fixed but new thing broken that wasn't before. What?!?! Uhg! :kaoangry:
I watched this youtube video of this reporter that went to a Flat Earth Conference. And there was just a whole lot of stupid in one room.
What?! You want 2 more hours of a playthrough? Well you got it! Come hang out with us while we dive even deeper into the awesome game Kindred Novel by BirdBunch! :LZSjoy:

Forum statistics

Threads
122,073
Messages
1,146,295
Members
160,355
Latest member
Johto
Top