Yeah, so I need new character models.
Hell, if someone wanted to script some AI scripts that'd be great.
Related:
--example ai file
--
--Command dump:
--
--Action commands:
--fire(robotID)
--jump(robotID)
--fall(robotID)
--stop(robotID)
--moveRight(robotID)
--moveLeft(robotID)
--
--Status commands:
--getRuntime()
--getHealth(robotID)
--getPosX(robotID)
--getPosY(robotID)
--getVelX(robotID)
--getVelY(robotID)
--getTile(x,y)
--getPlayerX()
--getPlayerY()
--
--Other:
--echo(message)
--setRobotVar(robotID,variableName,variableValue)
--getRobotVar(robotID,variableName)
--
--The script below will only fire if the player is close enough.
--It will also change directions to face the player.
playerx = getPlayerX()
playery = getPlayerY()
botx = getPosX(robotID)
boty = getPosY(robotID)
distancex = math.abs(playerx-botx)
distancey = math.abs(playery-boty)
totaldistance = distancex+distancey
if totaldistance < 500 then
fire(robotID)
end
if playerx > botx then
moveRight(robotID)
else
moveLeft(robotID)
end
stop(robotID)