|
发表于 2011-6-27 00:23:40
|
显示全部楼层
其实如果想给技能绑定数据,倒是不一定要用数组。
native GetAbilityEffect takes string abilityString, effecttype t, integer index returns string
native GetAbilityEffectById takes integer abilityId, effecttype t, integer index returns string
这两条函数可以返回一些效果field。找一个用不到的效果类型,然后把自己记录的东西写进去就能用这两函数读取呢。
以下是所有的效果类型:
constant effecttype EFFECT_TYPE_EFFECT = ConvertEffectType(0)
constant effecttype EFFECT_TYPE_TARGET = ConvertEffectType(1)
constant effecttype EFFECT_TYPE_CASTER = ConvertEffectType(2)
constant effecttype EFFECT_TYPE_SPECIAL = ConvertEffectType(3)
constant effecttype EFFECT_TYPE_AREA_EFFECT = ConvertEffectType(4)
constant effecttype EFFECT_TYPE_MISSILE = ConvertEffectType(5)
constant effecttype EFFECT_TYPE_LIGHTNING = ConvertEffectType(6) |
|