EventHelperCanStartRelation 方法 |
是否允许指定角色向另一角色发起特定关系的结成。该方法仅限于事件中的发起行为检测,包括
结仇(Enemy)、表白(Adore)、求婚(HusbandOrWife)、结交(Friend)、结义(SwornBrotherOrSister)、义父母(AdoptiveParent)、义子女(AdoptiveChild)。
该方法与AI逻辑唯一的区别是默认发起者对目标的好感度为最大值。
命名空间: GameData.Domains.TaiwuEvent.EventHelper程序集: GameData (在 GameData.exe 中) 版本:1.0.0
语法public static bool CanStartRelation(
int charId,
int relatedCharId,
ushort relationType
)
参数
- charId Int32
- 角色Id
- relatedCharId Int32
- 关联角色Id
- relationType UInt16
- 需要发起的关系类型
返回值
Boolean是否允许发起结成该关系的请求
异常
参见