我查看了涉及此问题的其他答案,但是我没有找到对我有帮助的答案,运行此函数时出现错误“ Number is not a function”:
$.randomlevel = function() { //this Chooes random stuff for the "talk" skill
$gameVariables.setValue(10, Math.floor(Math.random() * (($gameParty.leader().level() + 5) - ($gameParty.leader().level() - 5)) + ($gameParty.leader().level() - 5) - 1));
};
有人知道如何解决此问题吗?