actually, I'm basing the language off of FPS Creators scripting language. It's super easy and very simple to implement without having to write an entire c style script parser.
This is currently working in my game.
You write a text file that looks like this;
:radarrange=10,radarviewangle=90
:enemyseen:state=1
:enemynotseen:state=0
:state=0:rotateright
:state=1:movefore
basically the commands between the first set of colons is the condition and the rest is the action. So...
:enemyseen,state=1:rotateright,movefore
this means that if the condition "enemyseen" and "state=1" then execute anything after the second colon.
It's working perfectly so far.
This is currently working in my game.
You write a text file that looks like this;
:radarrange=10,radarviewangle=90
:enemyseen:state=1
:enemynotseen:state=0
:state=0:rotateright
:state=1:movefore
basically the commands between the first set of colons is the condition and the rest is the action. So...
:enemyseen,state=1:rotateright,movefore
this means that if the condition "enemyseen" and "state=1" then execute anything after the second colon.
It's working perfectly so far.