|
发表于 2006-5-7 18:42:07
|
显示全部楼层
实际上
WE中叫XX类型(Type)的都是integer
先在WorldEditStrings.txt中查找“Ability”:
- WESTRING_TRIGTYPE_abilcode="Ability(技能)"
复制代码
再在TriggerData.txt中查找“WESTRING_TRIGTYPE_abilcode”:
- [TriggerTypes]
- // Defines all trigger variable types to be used by the Script Editor
- // Key: type name
- // Value 0: first game version in which this type is valid
- // Value 1: flag (0 or 1) indicating if this type can be a global variable
- // Value 2: flag (0 or 1) indicating if this type can be used with comparison operators
- // Value 3: string to display in the editor
- // Value 4: base type, used only for custom types
- // Value 5: import type, for strings which represent files (optional)
- // Value 6: flag (0 or 1) indicating to treat this type as the base type in the editor
- // Trigger Variable Types
- // These are sorted so that they appear as such in the Variables dialog.
- abilcode=0,1,1,WESTRING_TRIGTYPE_abilcode,integer
- attacktype=1,1,1,WESTRING_TRIGTYPE_attacktype
- boolean=0,1,1,WESTRING_TRIGTYPE_boolean
- buffcode=1,1,1,WESTRING_TRIGTYPE_buffcode,integer
- camerasetup=0,1,0,WESTRING_TRIGTYPE_camerasetup
- weapontype=1,1,1,WESTRING_TRIGTYPE_weapontype
- damagetype=1,1,1,WESTRING_TRIGTYPE_damagetype
- destructable=0,1,1,WESTRING_TRIGTYPE_destructable
- destructablecode=0,1,1,WESTRING_TRIGTYPE_destructablecode,integer
复制代码 |
|