天赋通用的相关操作,例如触发一个天赋,以及读取数据等
更多...
|
int | ResetTalent (FxCreature *pActor) |
| 重置角色pActor的天赋配置(清空) 更多...
|
|
int | ModifyTalentStatus (FxCreature *pActor, unsigned short nTalentID, int nDeltaValue) |
| 修正角色pActor的某个天赋数值,参数是角色 更多...
|
|
int | GetTalentStatus (FxCreature *pActor, unsigned short nTalentID) |
| 查询角色pActor的某个天赋状态,参数是角色对象的版本 更多...
|
|
int | GetTalentStatus (unsigned long nActorID, unsigned short nTalentID) |
| 查询对象ID为nActorID的角色的某个天赋状态,参数是角色对象ID的版本 更多...
|
|
int | TriggerTalent (FxCreature *pActor, unsigned short nTalentID, int nParam=0) |
| 触发角色对象pActor的指定天赋。这会导致天赋的OnTrigger事件被触发。 更多...
|
|
天赋通用的相关操作,例如触发一个天赋,以及读取数据等
◆ GetTalentStatus() [1/2]
int GetTalentStatus |
( |
FxCreature * |
pActor, |
|
|
unsigned short |
nTalentID |
|
) |
| |
查询角色pActor的某个天赋状态,参数是角色对象的版本
- 参数
-
pActor | [角色] 角色对象。 |
nTalentID | [整数] 天赋的ID |
- 返回
- [整数] 查询的结果
- 返回值
-
-1 | 非法 |
0 | 没有点此天赋 |
其他 | 在该天赋上投入的点数 |
◆ GetTalentStatus() [2/2]
int GetTalentStatus |
( |
unsigned long |
nActorID, |
|
|
unsigned short |
nTalentID |
|
) |
| |
查询对象ID为nActorID的角色的某个天赋状态,参数是角色对象ID的版本
- 参数
-
nActorID | [整数] 角色ID。 |
nTalentID | [整数] 天赋的ID |
- 返回
- [整数] 查询的结果
- 返回值
-
-1 | 非法 |
0 | 没有点此天赋 |
其他 | 在该天赋上投入的点数 |
◆ ModifyTalentStatus()
int ModifyTalentStatus |
( |
FxCreature * |
pActor, |
|
|
unsigned short |
nTalentID, |
|
|
int |
nDeltaValue |
|
) |
| |
修正角色pActor的某个天赋数值,参数是角色
- 参数
-
pActor | [角色] 角色对象。 |
nTalentID | [整数] 天赋的ID |
nDeltaValue | [整数] 修正的数值,正加负减 |
- 返回
- [整数] 忽略
◆ ResetTalent()
int ResetTalent |
( |
FxCreature * |
pActor | ) |
|
重置角色pActor的天赋配置(清空)
- 参数
-
- 返回
- [整数] 忽略
◆ TriggerTalent()
int TriggerTalent |
( |
FxCreature * |
pActor, |
|
|
unsigned short |
nTalentID, |
|
|
int |
nParam = 0 |
|
) |
| |
触发角色对象pActor的指定天赋。这会导致天赋的OnTrigger事件被触发。
- 参数
-
pActor | [角色] 角色对象。 |
nTalentID | [整数] 天赋的ID |
nParam | [整数] 附带的参数,默认为0 |
- 返回
- [整数] 触发的结果
- 返回值
-