Hi! I'm using Yanfly Weapon Unleash plugin to replace the basic attack skill of my characters.
I'd like to have a different skill shown in the place of attack depending on a switch.
I have tried the following code as a notetag for a class:
<Custom Replace Attack>
if $gameSwitches.value[1013] == true {
id = 92;
} else {
id = 61;
}
</Custom Replace Attack>
Aaaaaand congratulations, I made the game crash.
Could anyone help me fix my code? In case it's not understandable, I'm trying to show skill 61 in the place of attack if the switch 1013 is off, and show skill 92 if switch 1013 if on.
Thanks in advance!
I'd like to have a different skill shown in the place of attack depending on a switch.
I have tried the following code as a notetag for a class:
<Custom Replace Attack>
if $gameSwitches.value[1013] == true {
id = 92;
} else {
id = 61;
}
</Custom Replace Attack>
Aaaaaand congratulations, I made the game crash.
Could anyone help me fix my code? In case it's not understandable, I'm trying to show skill 61 in the place of attack if the switch 1013 is off, and show skill 92 if switch 1013 if on.
Thanks in advance!