- Joined
- Jul 17, 2017
- Messages
- 41
- Reaction score
- 3
- First Language
- Spanish
- Primarily Uses
- RMVXA
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:
I have tried it with local switches:
and other ways:
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:
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 ^^
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
Ruby:
$game_self_switches[[1, 1, 'A']] == false ? true : false
Ruby:
$game_switches[1] = false ? true : false
$game_switches[1] = true : false
$game_switches[1] ? true : false
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 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 ^^

