I used to play an online 2d rpg called graalonline, it came with a level editor and an EXTREMELY flexible and easy to use scripting engine that allowed the creation of just about anything through the level editor. there were a few people who had gone as far as creating 3d objects with per pixel lighting on the 2d engine, with the use of it's scripts.
i was wondering, just how hard would it be and what would the steps be in creating a scripting system as flexible, and easy to use?
my game plan right now is to basically make a giant switch and run through the script line by line, something like
Code: Select all
switch (script)
case move : move();
case talk : talk();
case die : die();
examples of the graalonline scripts can be found on their forums at
http://forums.graalonline.com/forums/fo ... ay.php?f=8
i'm not sure if i'm allowed to post that but in my dreams, i'm making something like that and just want to know the best way to go about it...
thanks for help and sorry this post is so long