找回密码
 点一下
查看: 1745|回复: 9

关于物品自定义值

[复制链接]
发表于 2006-5-6 17:44:52 | 显示全部楼层 |阅读模式
就是物品的自定义值是否在字符串的情况下起作用?(例如,设置我的黄金之手自定义值为I00E)第一次用自定义值帮帮忙~~~谢谢了

[ 本帖最后由 DemonPrince 于 2006-5-6 17:46 编辑 ]
发表于 2006-5-6 18:03:18 | 显示全部楼层
不可以。只能用整型。
回复

使用道具 举报

 楼主| 发表于 2006-5-6 18:16:15 | 显示全部楼层
不是阿,又一条是化整数为字符串
回复

使用道具 举报

发表于 2006-5-6 18:54:51 | 显示全部楼层
那个不是用“化”的。直接用的。
\'A000\'直接等于一个整数。
回复

使用道具 举报

 楼主| 发表于 2006-5-6 19:05:49 | 显示全部楼层
埋嘎的!谁告诉我到底aooo等不等于booo?
回复

使用道具 举报

发表于 2006-5-6 19:08:36 | 显示全部楼层
可能没和你说清楚。
是一个技能的ID。
\'A000\'是自定义技能。
你看成默认技能的。
事实上。技能就是一个整数。所以。用这个\'xxxx\'就可以代表一个整数了。
回复

使用道具 举报

发表于 2006-5-7 18:37:31 | 显示全部楼层
\'A000\'这样的代码是一个integer

A的ASCII码为 41h
0的ASCII码为 30h

所以\'A000\'等于:41h * 1000000h + 30h * 10000h + 30h * 100h + 30h = 41303030h

注意h代表十六进制数
41303030h为十进制的1093677104
回复

使用道具 举报

发表于 2006-5-7 18:42:07 | 显示全部楼层
实际上
WE中叫XX类型(Type)的都是integer

先在WorldEditStrings.txt中查找“Ability”:

  1. WESTRING_TRIGTYPE_abilcode="Ability(技能)"
复制代码


再在TriggerData.txt中查找“WESTRING_TRIGTYPE_abilcode”:

  1. [TriggerTypes]
  2. // Defines all trigger variable types to be used by the Script Editor
  3. // Key: type name
  4. // Value 0: first game version in which this type is valid
  5. // Value 1: flag (0 or 1) indicating if this type can be a global variable
  6. // Value 2: flag (0 or 1) indicating if this type can be used with comparison operators
  7. // Value 3: string to display in the editor
  8. // Value 4: base type, used only for custom types
  9. // Value 5: import type, for strings which represent files (optional)
  10. // Value 6: flag (0 or 1) indicating to treat this type as the base type in the editor

  11. // Trigger Variable Types
  12. // These are sorted so that they appear as such in the Variables dialog.
  13. abilcode=0,1,1,WESTRING_TRIGTYPE_abilcode,integer
  14. attacktype=1,1,1,WESTRING_TRIGTYPE_attacktype
  15. boolean=0,1,1,WESTRING_TRIGTYPE_boolean
  16. buffcode=1,1,1,WESTRING_TRIGTYPE_buffcode,integer
  17. camerasetup=0,1,0,WESTRING_TRIGTYPE_camerasetup
  18. weapontype=1,1,1,WESTRING_TRIGTYPE_weapontype
  19. damagetype=1,1,1,WESTRING_TRIGTYPE_damagetype
  20. destructable=0,1,1,WESTRING_TRIGTYPE_destructable
  21. destructablecode=0,1,1,WESTRING_TRIGTYPE_destructablecode,integer
复制代码
回复

使用道具 举报

 楼主| 发表于 2006-5-7 19:41:58 | 显示全部楼层
我的天好复杂!~!~!
回复

使用道具 举报

发表于 2006-5-7 20:17:07 | 显示全部楼层
说简单了都是整数
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-5-7 19:17 , Processed in 0.072890 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表