Just wondering how to have a damage formula turn on a switch or turn off a switch. How do i do this?
(MZ not MV) how do you turn on a switch in a damage formula?
RPG Maker MV SupportLike this:
Also you might be interested in ready this tutorial, which provides a lot of useful information about the Damage Formula for MV (and incidentally MZ too):
forums.rpgmakerweb.com
edit: change true to "false" to turn off. If you want it to toggle, you can use conditionals as described in the tutorial.
Code:
$gameSwitches.setValue(1, true); a.atk * 4 - b.def * 2
Also you might be interested in ready this tutorial, which provides a lot of useful information about the Damage Formula for MV (and incidentally MZ too):
Damage Formulas 101
Please note: A discussion has already been started about different things you can do with these formulas so please direct those comments and question to the appropriate thread. https://forums.rpgmakerweb.com/index.php?threads/rmmv-damage-formula-ideas-and-help.47099/ A link to the list of...
forums.rpgmakerweb.com
edit: change true to "false" to turn off. If you want it to toggle, you can use conditionals as described in the tutorial.
Original thread: https://forums.rpgmakerweb.com/threads/mz-not-mv-how-do-you-turn-on-a-switch-in-a-damage-formula.126725/