首页
社区
课程
招聘
未解决 [求助]菜鸡萌新向各位大佬求助,cheat engine的LUA脚本问题
发表于: 2020-10-12 18:58 3564

未解决 [求助]菜鸡萌新向各位大佬求助,cheat engine的LUA脚本问题

2020-10-12 18:58
3564

各位大佬好,萌新想请教一下,
我在CE里面如何才能自动重复运行LUA脚本?
我发现CE加载后就只运行一次脚本就停下了,
我想写的是监视数量的脚本,需要不断重复运行,
我单纯地用WHILE循环,会卡死,
中间加了SLEEP函数也还是没有帮助。

 

就是想同时监视17个数值,数值一旦变成0就要马上改成1500
不知道要怎么处理才能不会卡死,用GOTO都是无济于事。

 

这是代码:

 

if(memoryrecord_getValue(bot1address) == "0")then
memoryrecord_setValue(bot1address,1500)
else
end

 

if(memoryrecord_getValue(bot2address) == "0")then
memoryrecord_setValue(bot2address,1500)
else
end

 

if(memoryrecord_getValue(bot3address) == "0")then
memoryrecord_setValue(bot3address,1500)
else
end

 

if(memoryrecord_getValue(bot4address) == "0")then
memoryrecord_setValue(bot4address,1500)
else
end

 

if(memoryrecord_getValue(bot5address) == "0")then
memoryrecord_setValue(bot5address,1500)
else
end

 

if(memoryrecord_getValue(bot6address) == "0")then
memoryrecord_setValue(bot6address,1500)
else
end

 

if(memoryrecord_getValue(bot7address) == "0")then
memoryrecord_setValue(bot7address,1500)
else
end

 

if(memoryrecord_getValue(bot8address) == "0")then
memoryrecord_setValue(bot8address,1500)
else
end

 

if(memoryrecord_getValue(bot9address) == "0")then
memoryrecord_setValue(bot9address,1500)
else
end

 

if(memoryrecord_getValue(bot10address) == "0")then
memoryrecord_setValue(bot10address,1500)
else
end

 

if(memoryrecord_getValue(bot11address) == "0")then
memoryrecord_setValue(bot11address,1500)
else
end

 

if(memoryrecord_getValue(bot12address) == "0")then
memoryrecord_setValue(bot12address,1500)
else
end

 

if(memoryrecord_getValue(bot13address) == "0")then
memoryrecord_setValue(bot13address,1500)
else
end

 

if(memoryrecord_getValue(bot14address) == "0")then
memoryrecord_setValue(bot14address,1500)
else
end

 

if(memoryrecord_getValue(bot14address) == "0")then
memoryrecord_setValue(bot14address,1500)
else
end

 

if(memoryrecord_getValue(bot15address) == "0")then
memoryrecord_setValue(bot15address,1500)
else
end

 

if(memoryrecord_getValue(bot16address) == "0")then
memoryrecord_setValue(bot16address,1500)
else
end

 

if(memoryrecord_getValue(bot17address) == "0")then
memoryrecord_setValue(bot17address,1500)
else
end


[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (1)
雪    币: 2292
活跃值: (677)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
用createTimer创建定时器
建议看看CE官方Wiki:https://wiki.cheatengine.org/index.php?title=Lua
timer的Wiki:https://wiki.cheatengine.org/index.php?title=Lua:Class:Timer
2021-6-16 17:44
0
游客
登录 | 注册 方可回帖
返回
//