找回密码
 点一下
查看: 1066|回复: 2

物品生命值问题

[复制链接]
发表于 2009-9-23 17:00:47 | 显示全部楼层 |阅读模式
在WE中编辑物品有生命值数据
unamed1253692092.jpg

我用下面函数得到和改变的是这个数据吗
[jass]native  GetWidgetLife   takes widget whichWidget returns real
native  SetWidgetLife   takes widget whichWidget, real newLife returns nothing
[/jass]
发表于 2009-9-23 17:09:03 | 显示全部楼层
看不懂… 但是物品的生命值可以用触发器更改`,而且生效。
回复

使用道具 举报

发表于 2009-9-23 17:32:10 | 显示全部楼层
[codes=jass]function SetItemLifeBJ takes widget whichWidget,real life returns nothing
    call SetWidgetLife(whichWidget, life)
endfunction[/codes]

[codes=jass]function GetItemLifeBJ takes widget whichWidget returns real
    return GetWidgetLife(whichWidget)
endfunction[/codes]

其实就是这两个函数
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-7-22 04:20 , Processed in 0.045257 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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