Scripting like graalonline

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
crackity jones
Posts: 2
Joined: Mon Sep 04, 2006 9:54 pm

Scripting like graalonline

Post by crackity jones »

Hey everyone, i've recently started using irrlicht, mainly for 2d games.. i've only been learning about game programming for a few months and have made my girlfriend a game where she can listen to music and make a unicorn run around, a game that loads a map from files, and a very basic music player (that crashes if you enter a bad filename) :roll: so, to say the least, i have a ways to go before i can really jump in with most people on the forums here.

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();
but i'm sure there's a better way to go about it

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 :oops:
Avalanche
Posts: 18
Joined: Tue Sep 05, 2006 7:21 am

Post by Avalanche »

i suggest you to read some articles on gamedev.net about scripting

http://www.gamedev.net/reference/list.a ... yid=76#218
crackity jones
Posts: 2
Joined: Mon Sep 04, 2006 9:54 pm

Post by crackity jones »

alright i'll check them out thanks much
linkoraclehero
Posts: 81
Joined: Sat Sep 09, 2006 6:46 am

Post by linkoraclehero »

Google the gold parser builder, it's pretty simple, almost exactly like irrXML only you make the language ;)
Post Reply