I want to add +1 to multiple variables by using script commands for a note-tag.
I know how to do one and it works:
<Custom Recruit Effect>
"$gameVariable.setValue(126, $gameVariables.value(126) + 1);"
</Custom Recruit Effect>
but when I try to do change two or more variables like this:
<Custom Recruit Effect>
"$gameVariable.setValue(126, $gameVariables.value(126) + 1);
$gameVariable.setValue(129, $gameVariables.value(129) + 1);"
</Custom Recruit Effect>
It keeps on giving me error of invalid and unexpected tokens.
Its probably something simple but still slowly trying to learn coding.
I know how to do one and it works:
<Custom Recruit Effect>
"$gameVariable.setValue(126, $gameVariables.value(126) + 1);"
</Custom Recruit Effect>
but when I try to do change two or more variables like this:
<Custom Recruit Effect>
"$gameVariable.setValue(126, $gameVariables.value(126) + 1);
$gameVariable.setValue(129, $gameVariables.value(129) + 1);"
</Custom Recruit Effect>
It keeps on giving me error of invalid and unexpected tokens.
Its probably something simple but still slowly trying to learn coding.