Lua does more than just scripts it lets youu take you code outside the compiled exe so you change things like monster AI without having to recompile.
Lua looks like this and it's working right now

Muhahaha!
[simple lua]playerName = "Kyro"
level = 10
maxHP = 80
[array lua]world = {}
world[1] = {}
world[1][1] = {objectType = 1,scale = 4,x = 600.0,y = 22.0,z = 700.0}
world[1][2] = {objectType = 1,scale = 4,x = 1300.0,y = 22.0,z = 600.0}
world[1][3] = {objectType = 1,scale = 4,x = 1500.0,y = 22.0,z = 1500.0}
world[1][4] = {objectType = 1,scale = 4,x = 700.0,y = 22.0,z = 1500.0}
world[1][5] = {objectType = 2,scale = 20,x = 1035.0,y = 21.0,z = 570.0}
[AI Lua]oldTimer = 0
function moveAmazon (objnum,timer,dist)
monsterName = "Amazon"
attackDistance = 3
moveSpeed = 0.2
attackStrength = 10
-- 1000 = 1 second
attackTimer = 2*1000
-- Get the position of the camera
cx,cy,cz = CamInfo()
-- Keep the Amazon on the floor
cy = 0
-- Move the Amazon if she is not yet at the camera
if dist > attackDistance then
PointObject(objnum,cx,cy,cz)
MoveObject(objnum,moveSpeed)
else
-- Do an attack if we are at the camera position and the timer allows it
if timer > (oldTimer + attackTimer) then
oldTimer = timer
return attackStrength,monsterName
else
return 0,monsterName
end
end
end