标题: Js相关问题 [打印本页] 作者: z22877248 时间: 2020-4-23 17:45 标题: Js相关问题 这是Galv的武器熟练度的插件
写在注释内容 的 调用的函式
Galv.WPROF.value(aId,wId); // return an actor's weapon proficiency. (返回角色ID,武器种类的熟练度)
* // aId = actor id, wId = weapon type id
* // leave wId out to get currently equipped
* // weapon id.
* // use in control variables in SCRIPT
*
---------------------------------------------------------------
Galv.WPROF.value = function(actorId,wTypeId) {
var actor = $gameActors.actor(actorId);
var wTypeId = wTypeId != undefined ? wTypeId : actor.equippedWType()
return actor.getWProf(wTypeId);
};