搜索
查看: 595|回复: 2

[沟通中] LUA 调整人物属性 actor:changeHumAbil

[复制链接]
发表于 2021-5-20 23:08:14 | 显示全部楼层 |阅读模式
BUG反馈
引擎版本号: 0208
登陆器版本号: 0208
BUG描述: 人物调整属性不生效,英雄调整属性攻击不生效
BUG重现方式: function on_Actor_in_game(actor)
local actorname = actor:getCharName()
local RaceId = actor:getRace() -- 种族ID
if RaceId == 66 then
print("英雄:" .. actorname .. "--[登陆游戏时回调]")
actor:changeHumAbil(4,"+", 60000000,20)
actor:changeHumAbil(17,"+", 100000,20)
actor:changeHumAbil(23,"+", 20000000,20)
actor:changeHumAbil(1,"+", 20000000,20)
actor:changeHumAbil(0,"+", 20000000,20)
actor:changeHumAbil(2,"+", 20000000,20)
actor:changeHumAbil(3,"+", 4,20)
else
print("玩家:" .. actorname .. "--[登陆游戏时回调]")
actor:changeHumAbil(4,"+", 60000000,20)
actor:changeHumAbil(17,"+", 100000,20)
actor:changeHumAbil(23,"+", 20000000,20)
actor:changeHumAbil(1,"+", 20000000,20)
actor:changeHumAbil(0,"+", 20000000,20)
actor:changeHumAbil(2,"+", 20000000,20)
actor:changeHumAbil(3,"+", 4,20)
end
end
修复后应达到的效果: 属性生效
联系QQ: 隐藏内容

发表于 2021-5-21 20:51:53 | 显示全部楼层
actor:changeHumAbil(4,"+", 200000,20)


我只简单测试了这个,游戏里是增加HP的,没发现什么不对
 楼主| 发表于 2021-5-21 21:09:00 | 显示全部楼层
1580 发表于 2021-5-21 20:51
actor:changeHumAbil(4,"+", 200000,20)

actor:changeHumAbil(0,"+", 20000000,20)
加攻击的,不管是英雄还是主体都不行。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|HGEM2论坛

GMT+8, 2024-11-24 23:46 , Processed in 0.561174 second(s), 16 queries .

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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