RPG Maker MV
How create npc via js plugin?
Where search rpg maker full js library?
How create npc via js plugin?
Where search rpg maker full js library?
function test() {$gameParty.gainGold(8); $gameMessage.add("You received 8 gold!")}
$gameMap._interpreter.setupChoices([['Yes','No'],1]);
$gameMessage.setChoiceCallback(function(responseIndex) {
if (responseIndex === 0){test()}
if (responseIndex === 1){$gameMessage.add("You received 8 gold!")}
}
Original thread: https://forums.rpgmakerweb.com/threads/how-create-npc-via-js-plugin.91253/