Using Lua For a Battle System

BlitzMax Forums/BlitzMax Programming/Using Lua For a Battle System

Duckstab[o](Posted 2006) [#1]
Im looking at a few methods for battle systems in my rpg and was wondering if anybody had used LUA for this type of process ?. Any feedback welcomed thanks :)


Duckstab[o](Posted 2006) [#2]


I want to set up a Simple combat system

I want the LUA to
Do this Sum

a= Player Str+ (Rnd(10-Player Skill)+Player Skill)
b= Enemy Def+ Rnd(5)
c= b-a
if c>0 then Enemy Hp:-c
Print "hit Enemy for "+c+" Damage"
else
Print "You Missed him ninni"
endif


how would i go about that


Duckstab[o](Posted 2006) [#3]


What needs to be changed to get this to work with current axe.Lua


SculptureOfSoul(Posted 2006) [#4]
Wish I could help. Unfortunately it'll be a while before I need (and have the time) to get up to speed on Lua. :/