Remember this?:
https://forum.game-guru.com/thread/214845
-- LUA Script - precede every function and global member with lowercase name of script
function ai_dance_init(e)
sat = 1
StartTimer(e)
end
function ai_dance_main(e)
rand2 = math.random(50,100*(e))
SetAnimationSpeed(e,rand2)
Prompt(sat)
timerrand = math.random(30000,90000*(e))
if GetTimer(e) > timerrand then
rand1 = math.random(1,6)
--sat = rand1
StartTimer(e)
end
if sat == 1 then
if g_Entity[e]['animating'] == 0 then
SetAnimationFrames(520,588)
PlayAnimation(e)
g_Entity[e]['animating'] = 1
rand2 = math.random(120,300)
--rand1 = math.random(1,6)
if GetTimer(e) > 5000 then
sat = 2
end
end
elseif sat == 2 then
if g_Entity[e]['animating'] == 0 then
SetAnimationFrames(1472,1590)
PlayAnimation(e)
g_Entity[e]['animating'] = 1
if GetTimer(e) > 10000 then
sat = 3
end
end
elseif sat == 3 then
if g_Entity[e]['animating'] == 0 then
SetAnimationFrames(1550,1627)
PlayAnimation(e)
g_Entity[e]['animating'] = 1
--rand1 = math.random(1,6)
if GetTimer(e) > 15000 then
sat = 4
end
end
elseif sat == 4 then
if g_Entity[e]['animating'] == 0 then
SetAnimationFrames(2160,2400)
PlayAnimation(e)
g_Entity[e]['animating'] = 1
--rand1 = math.random(1,6)
if GetTimer(e) > 20000 then
sat = 5
end
end
elseif sat == 5 then
if g_Entity[e]['animating'] == 0 then
SetAnimationFrames(3700,3710)
PlayAnimation(e)
g_Entity[e]['animating'] = 1
--rand1 = math.random(1,6)
if GetTimer(e) > 25000 then
sat = 6
end
end
elseif sat == 6 then
if g_Entity[e]['animating'] == 0 then
SetAnimationFrames(4220,4850)
PlayAnimation(e)
g_Entity[e]['animating'] = 1
rand1 = math.random(1,6)
if GetTimer(e) > 30000 then
sat = 1
end
end
end
end
Heads up, I am not a great scripter but I think this does
something.
Julian