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

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
45,997
Reaction score
16,812
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
4,821
Reaction score
1,372
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

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
45,997
Reaction score
16,812
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 Profile Posts

Ok so-everything is back to normal now. No more glitches, no more page crashes-it's nice. Hopefully it will STAY this way for at least a while.
SpyroFan67 wrote on JohnDoeNews's profile.
I'm following you now. :smile:
will large empty map space cause lag?


ARPG battle helper event effect

Forum statistics

Threads
131,571
Messages
1,221,160
Members
173,266
Latest member
liampoolMV
Top