RPG Maker Forums

Hello again!
Lately I have been testing RPG Maker 2003, and there is an option in the section of switches that gave me something interesting and that I wanted to test in RPG Maker VX Ace if it was possible to do it.
the option is called: "Toggle ON / OFF"
its function is to change the parameter from True to False and biseverse without the need to check the switch with conditional branch.

I've been trying to experiment with the VX Ace code and I think the closest thing to do so to speak is this:

Ruby:
$game_switches[1] == false ? true : false
I have tried it with local switches:

Ruby:
$game_self_switches[[1, 1, 'A']] == false ?  true : false
and other ways:

Ruby:
$game_switches[1] = false ? true : false
$game_switches[1] = true : false
$game_switches[1] ? true : false
but none have worked in the program and I don't understand why.

I understand that in other scripts they use a button to change the parameter like the following:

Ruby:
value = direction == :left ? false : true
$game_switches[1] = value
I would like to know if it is possible for the switch to change its value from ON to OFF as it does in RPG Maker 2003.

(I know there are many ways to make this mechanism, but I would like to know if this is functional, for me it would be more practical)

Thanks in advance for the help and sorry for the inconvenience for this simple code ^^

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,090
Members
137,586
Latest member
Usagiis
Top