Game_Actor
Game_Actor
Kind: global class
- Game_Actor
- new Game_Actor()
- .initialize(actorId)
- .initMembers()
- .setup(actorId)
- .actorId() ⇒
number - .actor() ⇒
object - .name() ⇒
string - .setName(name)
- .nickname() ⇒
string - .setNickname(nickname)
- .profile() ⇒
string - .setProfile(profile)
- .characterName() ⇒
string - .characterIndex() ⇒
number - .faceName() ⇒
string - .faceIndex() ⇒
number - .battlerName() ⇒
string - .clearStates()
- .eraseState(stateId)
- .resetStateCounts(stateId)
- .initImages()
- .expForLevel(level) ⇒
number - .initExp()
- .currentExp() ⇒
number - .currentLevelExp() ⇒
number - .nextLevelExp() ⇒
number - .nextRequiredExp() ⇒
number - .maxLevel() ⇒
number - .isMaxLevel() ⇒
boolean - .initSkills()
- .initEquips(equips)
- .equipSlots() ⇒
Array - .equips() ⇒
Array - .weapons() ⇒
Array - .armors() ⇒
Array - .hasWeapon(weapon) ⇒
boolean - .hasArmor(armor) ⇒
boolean - .isEquipChangeOk(slotId) ⇒
boolean - .changeEquip(slotId, item)
- .forceChangeEquip(slotId, item)
- .tradeItemWithParty(newItem, oldItem) ⇒
boolean - .changeEquipById(etypeId, itemId)
- .isEquipped(item) ⇒
boolean - .discardEquip(item)
- .releaseUnequippableItems(forcing)
- .clearEquipments()
- .optimizeEquipments()
- .bestEquipItem(slotId) ⇒
object - .calcEquipItemPerformance(item) ⇒
number - .isSkillWtypeOk(skill) ⇒
boolean - .isWtypeEquipped(wtypeId) ⇒
boolean - .refresh()
- .isActor() ⇒
boolean - .friendsUnit() ⇒
Game_Party - .opponentsUnit() ⇒
Game_Troop - .index() ⇒
number - .isBattleMember() ⇒
boolean - .isFormationChangeOk() ⇒
boolean - .currentClass() ⇒
object - .isClass(gameClass) ⇒
boolean - .skills() ⇒
Array - .usableSkills() ⇒
Array - .traitObjects() ⇒
Array - .attackElements() ⇒
Array - .hasNoWeapons() ⇒
boolean - .bareHandsElementId() ⇒
number - .paramMax(paramId) ⇒
number - .paramBase(paramId) ⇒
number - .paramPlus(paramId) ⇒
number - .attackAnimationId1() ⇒
number - .attackAnimationId2() ⇒
number - .bareHandsAnimationId() ⇒
number - .changeExp(exp, show)
- .levelUp()
- .levelDown()
- .findNewSkills(lastSkills) ⇒
Array - .displayLevelUp(newSkills)
- .gainExp(exp)
- .finalExpRate() ⇒
number - .benchMembersExpRate() ⇒
number - .shouldDisplayLevelUp() ⇒
boolean - .changeLevel(level, show)
- .learnSkill(skillId)
- .forgetSkill(skillId)
- .isLearnedSkill(skillId) ⇒
boolean - .hasSkill(skillId) ⇒
boolean - .changeClass(classId, keepExp)
- .setCharacterImage(characterName, characterIndex)
- .setFaceImage(faceName, faceIndex)
- .setBattlerImage(battlerName)
- .isSpriteVisible() ⇒
boolean - .startAnimation(animationId, mirror, delay)
- .performActionStart(action)
- .performAction(action)
- .performActionEnd()
- .performAttack()
- .performDamage()
- .performEvasion()
- .performMagicEvasion()
- .performCounter()
- .performCollapse()
- .performVictory()
- .performEscape()
- .makeActionList() ⇒
Array - .makeAutoBattleActions()
- .makeConfusionActions()
- .makeActions()
- .onPlayerWalk()
- .updateStateSteps(state)
- .showAddedStates()
- .showRemovedStates()
- .stepsForTurn() ⇒
number - .turnEndOnMap()
- .checkFloorEffect()
- .executeFloorDamage()
- .basicFloorDamage() ⇒
number - .maxFloorDamage() ⇒
number - .performMapDamage()
- .clearActions()
- .inputtingAction() ⇒
Game_Action - .selectNextCommand() ⇒
boolean - .selectPreviousCommand() ⇒
boolean - .lastMenuSkill() ⇒
object - .setLastMenuSkill(skill)
- .lastBattleSkill() ⇒
object - .setLastBattleSkill(skill)
- .lastCommandSymbol() ⇒
string - .setLastCommandSymbol(symbol)
- .testEscape(item) ⇒
boolean - .meetsUsableItemConditions(item) ⇒
boolean
new Game_Actor()
游戏角色类,继承自 Game_Battler,用于处理玩家角色的所有功能
Game actor class, inherits from Game_Battler, handles all player character functionality
Game_Actor.initialize(actorId)
初始化角色对象
Initialize the actor object
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| actorId | number | 角色 ID Actor ID |
Game_Actor.initMembers()
初始化角色的成员变量
Initialize the actor's member variables
Kind: static method of Game_Actor
Game_Actor.setup(actorId)
设置角色的初始数据
Setup the actor's initial data
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| actorId | number | 角色 ID Actor ID |
Game_Actor.actorId() ⇒ number
获取角色 ID
Get the actor ID
Kind: static method of Game_Actor
Returns: number - 角色 ID Actor ID
Game_Actor.actor() ⇒ object
获取角色数据对象
Get the actor data object
Kind: static method of Game_Actor
Returns: object - 角色数据对象 Actor data object
Game_Actor.name() ⇒ string
获取角色名称
Get the actor's name
Kind: static method of Game_Actor
Returns: string - 角色名称 Actor name
Game_Actor.setName(name)
设置角色名称
Set the actor's name
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| name | string | 角色名称 Actor name |
Game_Actor.nickname() ⇒ string
获取角色昵称
Get the actor's nickname
Kind: static method of Game_Actor
Returns: string - 角色昵称 Actor nickname
Game_Actor.setNickname(nickname)
设置角色昵称
Set the actor's nickname
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| nickname | string | 角色昵称 Actor nickname |
Game_Actor.profile() ⇒ string
获取角色简介
Get the actor's profile
Kind: static method of Game_Actor
Returns: string - 角色简介 Actor profile
Game_Actor.setProfile(profile)
设置角色简介
Set the actor's profile
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| profile | string | 角色简介 Actor profile |
Game_Actor.characterName() ⇒ string
获取行走图文件名
Get the character sprite filename
Kind: static method of Game_Actor
Returns: string - 行走图文件名 Character sprite filename
Game_Actor.characterIndex() ⇒ number
获取行走图在文件中的索引位置
Get the character sprite index in the file
Kind: static method of Game_Actor
Returns: number - 行走图索引 Character sprite index
Game_Actor.faceName() ⇒ string
获取脸图文件名
Get the face image filename
Kind: static method of Game_Actor
Returns: string - 脸图文件名 Face image filename
Game_Actor.faceIndex() ⇒ number
获取脸图在文件中的索引位置
Get the face image index in the file
Kind: static method of Game_Actor
Returns: number - 脸图索引 Face image index
Game_Actor.battlerName() ⇒ string
获取战斗图文件名
Get the battler sprite filename
Kind: static method of Game_Actor
Returns: string - 战斗图文件名 Battler sprite filename
Game_Actor.clearStates()
清除所有状态,包括状态步数
Clear all states, including state steps
Kind: static method of Game_Actor
Game_Actor.eraseState(stateId)
消除指定状态,包括状态步数
Erase the specified state, including state steps
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| stateId | number | 状态 ID State ID |
Game_Actor.resetStateCounts(stateId)
重置状态计数,包括步数计数
Reset state counts, including step counts
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| stateId | number | 状态 ID State ID |
Game_Actor.initImages()
初始化角色的图像设置
Initialize the actor's image settings
Kind: static method of Game_Actor
Game_Actor.expForLevel(level) ⇒ number
计算指定等级所需的总经验值
Calculate the total experience required for the specified level
Kind: static method of Game_Actor
Returns: number - 该等级所需的总经验值 Total experience required for the level
| Param | Type | Description |
|---|---|---|
| level | number | 等级 Level |
Game_Actor.initExp()
初始化角色的经验值
Initialize the actor's experience
Kind: static method of Game_Actor
Game_Actor.currentExp() ⇒ number
获取角色当前的经验值
Get the actor's current experience value
Kind: static method of Game_Actor
Returns: number - 当前经验值 Current experience value
Game_Actor.currentLevelExp() ⇒ number
获取当前等级所对应的经验值
Get the experience value for the current level
Kind: static method of Game_Actor
Returns: number - 当前等级的经验值 Experience value for current level
Game_Actor.nextLevelExp() ⇒ number
获取下一等级所对应的经验值
Get the experience value for the next level
Kind: static method of Game_Actor
Returns: number - 下一等级的经验值 Experience value for next level
Game_Actor.nextRequiredExp() ⇒ number
获取升到下一等级还需要的经验
Get the experience required to reach the next level
Kind: static method of Game_Actor
Returns: number - 升级所需经验 Experience required for next level
Game_Actor.maxLevel() ⇒ number
获取角色的最大等级
Get the actor's maximum level
Kind: static method of Game_Actor
Returns: number - 最大等级 Maximum level
Game_Actor.isMaxLevel() ⇒ boolean
检查角色是否达到最大等级
Check if the actor is at maximum level
Kind: static method of Game_Actor
Returns: boolean - 是否达到最大等级 Whether at maximum level
Game_Actor.initSkills()
初始化角色的技能列表
Initialize the actor's skill list
Kind: static method of Game_Actor
Game_Actor.initEquips(equips)
初始化角色的装备
Initialize the actor's equipment
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| equips | Array | 装备数组 Equipment array |
Game_Actor.equipSlots() ⇒ Array
获取角色的装备槽配置
Get the actor's equipment slot configuration
Kind: static method of Game_Actor
Returns: Array - 装备槽类型数组 Equipment slot type array
Game_Actor.equips() ⇒ Array
获取角色当前的装备列表
Get the actor's current equipment list
Kind: static method of Game_Actor
Returns: Array - 装备数组 Equipment array
Game_Actor.weapons() ⇒ Array
获取角色装备的所有武器
Get all weapons equipped by the actor
Kind: static method of Game_Actor
Returns: Array - 武器数组 Weapon array
Game_Actor.armors() ⇒ Array
获取角色装备的所有护甲
Get all armors equipped by the actor
Kind: static method of Game_Actor
Returns: Array - 护甲数组 Armor array
Game_Actor.hasWeapon(weapon) ⇒ boolean
检查角色是否装备了指定武器
Check if the actor has the specified weapon equipped
Kind: static method of Game_Actor
Returns: boolean - 是否装备该武器 Whether the weapon is equipped
| Param | Type | Description |
|---|---|---|
| weapon | object | 武器对象 Weapon object |
Game_Actor.hasArmor(armor) ⇒ boolean
检查角色是否装备了指定护甲
Check if the actor has the specified armor equipped
Kind: static method of Game_Actor
Returns: boolean - 是否装备该护甲 Whether the armor is equipped
| Param | Type | Description |
|---|---|---|
| armor | object | 护甲对象 Armor object |
Game_Actor.isEquipChangeOk(slotId) ⇒ boolean
检查指定装备槽是否可以更换装备
Check if equipment can be changed in the specified slot
Kind: static method of Game_Actor
Returns: boolean - 是否可以更换装备 Whether equipment can be changed
| Param | Type | Description |
|---|---|---|
| slotId | number | 装备槽 ID Slot ID |
Game_Actor.changeEquip(slotId, item)
更换指定槽位的装备
Change the equipment in the specified slot
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| slotId | number | 装备槽 ID Slot ID |
| item | object | 装备物品 Equipment item |
Game_Actor.forceChangeEquip(slotId, item)
强制更换指定槽位的装备
Force change the equipment in the specified slot
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| slotId | number | 装备槽 ID Slot ID |
| item | object | 装备物品 Equipment item |
Game_Actor.tradeItemWithParty(newItem, oldItem) ⇒ boolean
与队伍背包交换物品
Trade items with the party's inventory
Kind: static method of Game_Actor
Returns: boolean - 是否成功交换 Whether trade was successful
| Param | Type | Description |
|---|---|---|
| newItem | object | 新物品 New item |
| oldItem | object | 旧物品 Old item |
Game_Actor.changeEquipById(etypeId, itemId)
通过装备类型 ID 和物品 ID 更换装备
Change equipment by equipment type ID and item ID
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| etypeId | number | 装备类型 ID Equipment type ID |
| itemId | number | 物品 ID Item ID |
Game_Actor.isEquipped(item) ⇒ boolean
检查角色是否装备了指定物品
Check if the actor has the specified item equipped
Kind: static method of Game_Actor
Returns: boolean - 是否装备该物品 Whether the item is equipped
| Param | Type | Description |
|---|---|---|
| item | object | 装备物品 Equipment item |
Game_Actor.discardEquip(item)
丢弃指定的装备
Discard the specified equipment
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| item | object | 装备物品 Equipment item |
Game_Actor.releaseUnequippableItems(forcing)
解除角色无法装备的物品
Release items that the actor cannot equip
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| forcing | boolean | 是否强制 Whether forcing |
Game_Actor.clearEquipments()
清空所有可更换的装备
Clear all changeable equipment
Kind: static method of Game_Actor
Game_Actor.optimizeEquipments()
自动装备最强的装备
Automatically equip the strongest equipment
Kind: static method of Game_Actor
Game_Actor.bestEquipItem(slotId) ⇒ object
获取指定槽位的最强装备
Get the best equipment for the specified slot
Kind: static method of Game_Actor
Returns: object - 最强的装备物品 Best equipment item
| Param | Type | Description |
|---|---|---|
| slotId | number | 装备槽 ID Slot ID |
Game_Actor.calcEquipItemPerformance(item) ⇒ number
计算装备物品的性能值
Calculate the performance value of the equipment item
Kind: static method of Game_Actor
Returns: number - 装备性能值 Equipment performance value
| Param | Type | Description |
|---|---|---|
| item | object | 装备物品 Equipment item |
Game_Actor.isSkillWtypeOk(skill) ⇒ boolean
检查技能所需的武器类型是否满足
Check if the skill's weapon type requirements are met
Kind: static method of Game_Actor
Returns: boolean - 是否满足武器类型要求 Whether weapon type requirements are met
| Param | Type | Description |
|---|---|---|
| skill | object | 技能对象 Skill object |
Game_Actor.isWtypeEquipped(wtypeId) ⇒ boolean
检查是否装备了指定类型的武器
Check if a weapon of the specified type is equipped
Kind: static method of Game_Actor
Returns: boolean - 是否装备该武器类型 Whether the weapon type is equipped
| Param | Type | Description |
|---|---|---|
| wtypeId | number | 武器类型 ID Weapon type ID |
Game_Actor.refresh()
刷新角色状态,检查装备有效性
Refresh the actor's state and check equipment validity
Kind: static method of Game_Actor
Game_Actor.isActor() ⇒ boolean
标识此对象是角色
Identifies this object as an actor
Kind: static method of Game_Actor
Returns: boolean - 始终返回 true Always returns true
Game_Actor.friendsUnit() ⇒ Game_Party
获取角色所属的我方单位(队伍)
Get the friends unit (party) the actor belongs to
Kind: static method of Game_Actor
Returns: Game_Party - 队伍对象 Party object
Game_Actor.opponentsUnit() ⇒ Game_Troop
获取敌方单位(敌群)
Get the opponents unit (troop)
Kind: static method of Game_Actor
Returns: Game_Troop - 敌群对象 Troop object
Game_Actor.index() ⇒ number
获取角色在队伍中的索引位置
Get the actor's index position in the party
Kind: static method of Game_Actor
Returns: number - 在队伍中的索引 Index in the party
Game_Actor.isBattleMember() ⇒ boolean
检查角色是否是战斗成员
Check if the actor is a battle member
Kind: static method of Game_Actor
Returns: boolean - 是否是战斗成员 Whether is a battle member
Game_Actor.isFormationChangeOk() ⇒ boolean
检查角色是否可以改变队形
Check if the actor's formation can be changed
Kind: static method of Game_Actor
Returns: boolean - 是否可以改变队形 Whether formation can be changed
Game_Actor.currentClass() ⇒ object
获取角色的当前职业
Get the actor's current class
Kind: static method of Game_Actor
Returns: object - 职业数据对象 Class data object
Game_Actor.isClass(gameClass) ⇒ boolean
检查角色是否是指定职业
Check if the actor is the specified class
Kind: static method of Game_Actor
Returns: boolean - 是否是该职业 Whether is the specified class
| Param | Type | Description |
|---|---|---|
| gameClass | object | 职业对象 Class object |
Game_Actor.skills() ⇒ Array
获取角色的所有技能
Get all of the actor's skills
Kind: static method of Game_Actor
Returns: Array - 技能列表 Skill list
Game_Actor.usableSkills() ⇒ Array
获取角色可以使用的技能
Get the skills the actor can use
Kind: static method of Game_Actor
Returns: Array - 可用技能列表 Usable skill list
Game_Actor.traitObjects() ⇒ Array
获取提供特征的所有对象
Get all objects that provide traits
Kind: static method of Game_Actor
Returns: Array - 特征对象数组 Trait object array
Game_Actor.attackElements() ⇒ Array
获取攻击时的属性
Get the elements for attacks
Kind: static method of Game_Actor
Returns: Array - 攻击属性数组 Attack element array
Game_Actor.hasNoWeapons() ⇒ boolean
检查角色是否没有装备武器
Check if the actor has no weapons equipped
Kind: static method of Game_Actor
Returns: boolean - 是否没有武器 Whether has no weapons
Game_Actor.bareHandsElementId() ⇒ number
获取空手攻击的属性 ID
Get the element ID for bare-handed attacks
Kind: static method of Game_Actor
Returns: number - 空手属性 ID Bare hands element ID
Game_Actor.paramMax(paramId) ⇒ number
获取指定参数的最大值
Get the maximum value for the specified parameter
Kind: static method of Game_Actor
Returns: number - 参数最大值 Parameter maximum value
| Param | Type | Description |
|---|---|---|
| paramId | number | 参数 ID Parameter ID |
Game_Actor.paramBase(paramId) ⇒ number
获取指定参数的基础值
Get the base value for the specified parameter
Kind: static method of Game_Actor
Returns: number - 基础参数值 Base parameter value
| Param | Type | Description |
|---|---|---|
| paramId | number | 参数 ID Parameter ID |
Game_Actor.paramPlus(paramId) ⇒ number
获取指定参数的增加值(包括装备)
Get the added value for the specified parameter (including equipment)
Kind: static method of Game_Actor
Returns: number - 增加的参数值 Added parameter value
| Param | Type | Description |
|---|---|---|
| paramId | number | 参数 ID Parameter ID |
Game_Actor.attackAnimationId1() ⇒ number
获取第一个武器的攻击动画 ID
Get the attack animation ID for the first weapon
Kind: static method of Game_Actor
Returns: number - 攻击动画 1 的 ID Attack animation 1 ID
Game_Actor.attackAnimationId2() ⇒ number
获取第二个武器的攻击动画 ID
Get the attack animation ID for the second weapon
Kind: static method of Game_Actor
Returns: number - 攻击动画 2 的 ID Attack animation 2 ID
Game_Actor.bareHandsAnimationId() ⇒ number
获取空手攻击的动画 ID
Get the animation ID for bare-handed attacks
Kind: static method of Game_Actor
Returns: number - 空手动画 ID Bare hands animation ID
Game_Actor.changeExp(exp, show)
更改角色的经验值
Change the actor's experience
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| exp | number | 经验值 Experience value |
| show | boolean | 是否显示 Whether to show |
Game_Actor.levelUp()
角色升级,学习新技能
Level up the actor and learn new skills
Kind: static method of Game_Actor
Game_Actor.levelDown()
角色降级
Level down the actor
Kind: static method of Game_Actor
Game_Actor.findNewSkills(lastSkills) ⇒ Array
找出升级后新学的技能
Find skills learned after leveling up
Kind: static method of Game_Actor
Returns: Array - 新技能列表 New skill list
| Param | Type | Description |
|---|---|---|
| lastSkills | Array | 上次的技能列表 Previous skill list |
Game_Actor.displayLevelUp(newSkills)
显示升级信息和新学的技能
Display level up information and newly learned skills
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| newSkills | Array | 新技能列表 New skill list |
Game_Actor.gainExp(exp)
获得指定数量的经验值
Gain the specified amount of experience
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| exp | number | 经验值 Experience value |
Game_Actor.finalExpRate() ⇒ number
获取最终的经验获得比例
Get the final experience gain rate
Kind: static method of Game_Actor
Returns: number - 最终经验比例 Final experience rate
Game_Actor.benchMembersExpRate() ⇒ number
获取替补队员的经验比例
Get the experience rate for bench members
Kind: static method of Game_Actor
Returns: number - 替补经验比例 Bench experience rate
Game_Actor.shouldDisplayLevelUp() ⇒ boolean
检查是否应该显示升级信息
Check if level up should be displayed
Kind: static method of Game_Actor
Returns: boolean - 是否应该显示升级 Whether should display level up
Game_Actor.changeLevel(level, show)
直接更改角色等级
Directly change the actor's level
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| level | number | 等级 Level |
| show | boolean | 是否显示 Whether to show |
Game_Actor.learnSkill(skillId)
学习指定的技能
Learn the specified skill
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| skillId | number | 技能 ID Skill ID |
Game_Actor.forgetSkill(skillId)
遗忘指定的技能
Forget the specified skill
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| skillId | number | 技能 ID Skill ID |
Game_Actor.isLearnedSkill(skillId) ⇒ boolean
检查是否已学习指定技能
Check if the specified skill is learned
Kind: static method of Game_Actor
Returns: boolean - 是否已学该技能 Whether the skill is learned
| Param | Type | Description |
|---|---|---|
| skillId | number | 技能 ID Skill ID |
Game_Actor.hasSkill(skillId) ⇒ boolean
检查是否拥有指定技能
Check if the actor has the specified skill
Kind: static method of Game_Actor
Returns: boolean - 是否有该技能 Whether has the skill
| Param | Type | Description |
|---|---|---|
| skillId | number | 技能 ID Skill ID |
Game_Actor.changeClass(classId, keepExp)
更改角色的职业
Change the actor's class
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| classId | number | 职业 ID Class ID |
| keepExp | boolean | 是否保留经验 Whether to keep experience |
Game_Actor.setCharacterImage(characterName, characterIndex)
设置角色的行走图
Set the actor's character sprite
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| characterName | string | 行走图文件名 Character filename |
| characterIndex | number | 行走图索引 Character index |
Game_Actor.setFaceImage(faceName, faceIndex)
设置角色的脸图
Set the actor's face image
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| faceName | string | 脸图文件名 Face filename |
| faceIndex | number | 脸图索引 Face index |
Game_Actor.setBattlerImage(battlerName)
设置角色的战斗图
Set the actor's battler sprite
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| battlerName | string | 战斗图文件名 Battler filename |
Game_Actor.isSpriteVisible() ⇒ boolean
检查角色精灵是否可见(侧视图战斗模式下)
Check if the actor sprite is visible (in side-view battle mode)
Kind: static method of Game_Actor
Returns: boolean - 精灵是否可见 Whether sprite is visible
Game_Actor.startAnimation(animationId, mirror, delay)
开始播放动画(角色版本会反转镜像)
Start animation (actor version reverses mirror)
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| animationId | number | 动画 ID Animation ID |
| mirror | boolean | 是否镜像 Whether to mirror |
| delay | number | 延迟时间 Delay time |
Game_Actor.performActionStart(action)
表现行动开始的效果
Perform the effects of action start
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| action | Game_Action | 行动对象 Action object |
Game_Actor.performAction(action)
表现行动的效果
Perform the effects of the action
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| action | Game_Action | 行动对象 Action object |
Game_Actor.performActionEnd()
表现行动结束的效果
Perform the effects of action end
Kind: static method of Game_Actor
Game_Actor.performAttack()
表现攻击动作
Perform the attack motion
Kind: static method of Game_Actor
Game_Actor.performDamage()
表现受到伤害的效果
Perform the effects of taking damage
Kind: static method of Game_Actor
Game_Actor.performEvasion()
表现闪避的效果
Perform the effects of evasion
Kind: static method of Game_Actor
Game_Actor.performMagicEvasion()
表现魔法闪避的效果
Perform the effects of magic evasion
Kind: static method of Game_Actor
Game_Actor.performCounter()
表现反击的效果
Perform the effects of counter attack
Kind: static method of Game_Actor
Game_Actor.performCollapse()
表现倒下的效果
Perform the effects of collapse
Kind: static method of Game_Actor
Game_Actor.performVictory()
表现胜利动作
Perform the victory motion
Kind: static method of Game_Actor
Game_Actor.performEscape()
表现逃跑动作
Perform the escape motion
Kind: static method of Game_Actor
Game_Actor.makeActionList() ⇒ Array
制作可用的行动列表
Create a list of available actions
Kind: static method of Game_Actor
Returns: Array - 行动列表 Action list
Game_Actor.makeAutoBattleActions()
制作自动战斗时的行动
Create actions for auto battle
Kind: static method of Game_Actor
Game_Actor.makeConfusionActions()
制作混乱状态时的行动
Create actions when confused
Kind: static method of Game_Actor
Game_Actor.makeActions()
制作战斗行动
Create battle actions
Kind: static method of Game_Actor
Game_Actor.onPlayerWalk()
玩家行走时的处理
Handle when player walks
Kind: static method of Game_Actor
Game_Actor.updateStateSteps(state)
更新状态的步数计数
Update the step count for the state
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| state | object | 状态对象 State object |
Game_Actor.showAddedStates()
显示新增加的状态消息
Show messages for newly added states
Kind: static method of Game_Actor
Game_Actor.showRemovedStates()
显示解除的状态消息
Show messages for removed states
Kind: static method of Game_Actor
Game_Actor.stepsForTurn() ⇒ number
获取一个回合需要的步数
Get the number of steps per turn
Kind: static method of Game_Actor
Returns: number - 一回合的步数 Steps per turn
Game_Actor.turnEndOnMap()
在地图上的回合结束处理
Handle turn end on the map
Kind: static method of Game_Actor
Game_Actor.checkFloorEffect()
检测并执行地形效果
Check and execute floor effects
Kind: static method of Game_Actor
Game_Actor.executeFloorDamage()
执行地形伤害
Execute damage from floor terrain
Kind: static method of Game_Actor
Game_Actor.basicFloorDamage() ⇒ number
获取基础地形伤害值
Get the basic floor damage value
Kind: static method of Game_Actor
Returns: number - 基础地形伤害 Basic floor damage
Game_Actor.maxFloorDamage() ⇒ number
获取最高地形伤害值
Get the maximum floor damage value
Kind: static method of Game_Actor
Returns: number - 最高地形伤害 Maximum floor damage
Game_Actor.performMapDamage()
表现地图上受到伤害的效果
Perform the effects of taking damage on the map
Kind: static method of Game_Actor
Game_Actor.clearActions()
清除所有行动并重置输入索引
Clear all actions and reset input index
Kind: static method of Game_Actor
Game_Actor.inputtingAction() ⇒ Game_Action
获取当前正在输入的行动
Get the action currently being input
Kind: static method of Game_Actor
Returns: Game_Action - 当前输入的行动 Currently inputting action
Game_Actor.selectNextCommand() ⇒ boolean
选择下一个指令
Select the next command
Kind: static method of Game_Actor
Returns: boolean - 是否成功选择 Whether selection was successful
Game_Actor.selectPreviousCommand() ⇒ boolean
选择先前的指令
Select the previous command
Kind: static method of Game_Actor
Returns: boolean - 是否成功选择 Whether selection was successful
Game_Actor.lastMenuSkill() ⇒ object
获取上次在菜单中使用的技能
Get the last skill used in menu
Kind: static method of Game_Actor
Returns: object - 上个菜单技能 Last menu skill
Game_Actor.setLastMenuSkill(skill)
设置上次在菜单中使用的技能
Set the last skill used in menu
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| skill | object | 技能对象 Skill object |
Game_Actor.lastBattleSkill() ⇒ object
获取上次在战斗中使用的技能
Get the last skill used in battle
Kind: static method of Game_Actor
Returns: object - 上个战斗技能 Last battle skill
Game_Actor.setLastBattleSkill(skill)
设置上次在战斗中使用的技能
Set the last skill used in battle
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| skill | object | 技能对象 Skill object |
Game_Actor.lastCommandSymbol() ⇒ string
获取上次使用的指令标识
Get the last command symbol used
Kind: static method of Game_Actor
Returns: string - 上个指令标识 Last command symbol
Game_Actor.setLastCommandSymbol(symbol)
设置上次使用的指令标识
Set the last command symbol used
Kind: static method of Game_Actor
| Param | Type | Description |
|---|---|---|
| symbol | string | 指令标识 Command symbol |
Game_Actor.testEscape(item) ⇒ boolean
检验物品是否有逃跑效果
Test if the item has escape effect
Kind: static method of Game_Actor
Returns: boolean - 是否有逃跑效果 Whether has escape effect
| Param | Type | Description |
|---|---|---|
| item | object | 物品对象 Item object |
Game_Actor.meetsUsableItemConditions(item) ⇒ boolean
检查是否符合使用物品的条件
Check if the conditions for using the item are met
Kind: static method of Game_Actor
Returns: boolean - 是否符合条件 Whether conditions are met
| Param | Type | Description |
|---|---|---|
| item | object | 物品对象 Item object |