Thanks, I seen they also have a _updateColorFilter(); method
I tried to call it without the () from the debug 😅
*_core.js), so you should not need to access the property directly. E.g.var tone = sprite.getColorTone();
tone[0] = Math.floor(tone[0] * 0.9);
sprite.setColorTone(tone);
You were missing a closing parenthesis.
if ($gameVariables.value(5).includes($gameVariables.value(6)) || $gameVariables.value(5).includes($gameVariables.value(7))) {
$gameVariables.setValue(11, 1);
}
No problem. VS Code would color your parenthesis and braces, so you can tell at a glance which opening one pairs with which closing one. And if you put your cursor on one, it will highlight the other. It'll also give you a warning if there are any missing.
It's just a text editor, so it doesn't make your scripts run faster or anything like that. But it has some features that can help you type of read code more easily, so it's a good tool to have.
does it have to make use of the common event? you could do it just by this if it doesnt
<Custom Apply Effect>
if (user.actorId() == 1 && user._stateTurns[14] >= 50){
user.removeState(stateId);
user.addState("second state Id");
}
</Custom Apply Effect>
Well, you have a syntax error because you have two open braces but only one close. (the inner conditional doesn't need one at all)
user.addState(X)not usually, no
$dataSkills[x].description
$dataSkills[x].occasion
thats a good point i never considered. it does in fact, not save after a restart
This is the same in MV and MZ - all aspects of a skill are stored in the database and cannot be properly edited (with the changes saved) during play.
And, perhaps a niche situation but even more confusing, if the player were to quit and start a new game without closing the game, those changes would still be present at the beginning.
Hardly niche at all. This is something that can happen even if dev playtesting that'll cause confusion if you forget you added a script call in xD
It's things like this that make me wonder if I'm better off the way I am now with just having MV.
Original thread: https://forums.rpgmakerweb.com/threads/javascript-questions-that-dont-deserve-their-own-thread.46341/