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: 4

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,715
Reaction score
15,838
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,981
Reaction score
1,036
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,715
Reaction score
15,838
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

When you start recoloring your character because lawsuits are expensive:

lawsuits are bad.png
Been busy in Fort Myers and I'm spending tonight and tomorrow in Orlando. Then I go home on Tuesday by train (I take the Amtrak) and rest up before work on Wednesday.
I'm going to make a thread on the forum asking an interesting question... about the next RPG Maker!
#trafficjam #rm2k #catepillar
38bkNHz.gif

Forum statistics

Threads
121,840
Messages
1,144,624
Members
160,100
Latest member
Unknown-Tale
Top