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

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,646
Reaction score
15,731
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,513
Reaction score
848
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,646
Reaction score
15,731
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

Fun fact. Today it's exactly 2600 days since I met my now gf for the first time. Sometimes being a programmer can be really useful. O:)
Is RPG Maker VX (rgss2) still relevant? xD
yo how do I change my profile picture?
ZyCHqk2.png

Something about top-downs.
I have never felt so attacked by a tree before :LZSlol: it took 10++ hours to make but at least it looks pretty LOL

Untitled-1.png

Forum statistics

Threads
118,467
Messages
1,116,134
Members
155,447
Latest member
gameshauwndjoli
Top