Using Lua For a Battle System
BlitzMax Forums/BlitzMax Programming/Using Lua For a Battle System
| ||
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 :) |
| ||
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 |
| ||
What needs to be changed to get this to work with current axe.Lua |
| ||
Wish I could help. Unfortunately it'll be a while before I need (and have the time) to get up to speed on Lua. :/ |