Thank you. I appreciate your reply, my issue lay with the recommendation of placing all of a plugin inside of
Code:
(()=>{});
Thank you. I appreciate your reply, my issue lay with the recommendation of placing all of a plugin inside of
(()=>{});
$gameVariables.value(93) <= 4 && $gameVariables.value(238) <= 4
$gameVariables.value(93) >= 5 && $gameVariables.value(238) >= 5
That's why what you have now is correct.
variable 1 >= 5 && variable 2 >= 5
variable 1 < 5 || variable 2 < 5
Do something that allows you to execute JavaScript on the target, such as Yanfly's Skill Core Post-Damage Eval. Then you'd do:
if (target.buff(2)<0)
target.removeBuff(2);
The pinned thread of MV/MZ Script Calls has this:
This must be in a single script call:
// Initialize Choices Array
const choices = ["choice1", "choice2", "choice3", "choice4", "choice5", "choice6", "choice7", "choice8"];
// Set Message Choices
$gameMessage.setChoices(choices, defaultType, cancelType);
// Set Message Background
$gameMessage.setChoiceBackground(background);
// Set Message Position
$gameMessage.setChoicePositionType(positionType);
// Record Outcome in a Variable
$gameMessage.setChoiceCallback(n => {
this._branch[this._indent] = n;
$gameVariables.setValue(variableIndex, n);
});
// You must add this in a new script call
this.setWaitMode("message");
I wouldn't say so, as it's not asking anything about JavaScript, but that's cool 😉
I think you're over-complicating this for yourself. According to the RPG Maker EULA, you may distribute games with the default assets. It doesn't matter whether the game is for people to play and enjoy or use as a reference point, in an exported form or a raw project. (that distinction only makes a difference to people who already own the software)
Hey thanks for the response. Sorry it's a little off topic, I figured it would be but I also didn't think it deserved its own thread. That makes sense that distributing the assets as part of the project files falls under distributing the game. After all those assets aren't packed or encrypted in (most) rpgmaker release builds anyway.
Object.create(Window_Base.prototype);prototype and you also appear to have a space after the function name and its open parenthesis.this.customWindow and this._customWindow. You either need to put the underscore on both, or on neither.SceneManager._scene._spriteset.children
SceneManager._scene._spriteset._tilemap.children
Original thread: https://forums.rpgmakerweb.com/threads/javascript-questions-that-dont-deserve-their-own-thread.46341/