点击或拖拽改变大小

EventHelperCreateIntelligentCharacter 方法

创建真实的智能角色。

命名空间: GameData.Domains.TaiwuEvent.EventHelper
程序集: GameData (在 GameData.exe 中) 版本:1.0.0
语法
C#
public static Character CreateIntelligentCharacter(
	Location location,
	sbyte gender,
	short age,
	short baseAttraction,
	short settlementId,
	sbyte grade
)

参数

location  Location
角色创建的位置
gender  SByte
角色的性别 Gender
age  Int16
角色的年龄
baseAttraction  Int16
角色的基础魅力
settlementId  Int16
角色所属定居点的ID,非村寨的定居点可以利用门派模板ID并通过 GetSettlementIdByOrgTemplateId(SByte) 获得。
grade  SByte
角色的品级 Grade

返回值

Character
被创建的角色对象
备注
需要调用者自己保证性别与门派、品级相匹配,以及创建该角色不会导致正职超出人数上限(例如门主、圣女)
参见