|
Post by aKa on Jun 17, 2004 4:29:30 GMT -5
I'm having a bit of difficulty figuring out how to make one. Can anyone help me?
|
|
|
Post by AHBanen on Jun 17, 2004 6:52:25 GMT -5
Making a real scripting engine in Basic4GL as it is now would be a major task. Maybe in the long run Tom could include a language like Lua (http://www.lua.org) which is already in use by many game engines (Quake? FarCry).
For now start with taking a look at "LitMD2Viewer.gb" in the Basic4GL programs directory. It shows how to use a string to 'script' movement sequences. Search for ' Letter keys choose a frame for the start of the appropriate code.
For a more elaborate scripting engine it would help if you'd elaborate a little more on what you expect it to be able to do.
André
|
|
|
Post by aKa on Jun 18, 2004 5:56:53 GMT -5
More of a game-centered scripting engine. There are many ones out there but sadly none that is easily usable w/ BASIC4GL
|
|
|
Post by AHBanen on Jun 18, 2004 7:15:29 GMT -5
You'll have to elaborate a little more; game-centered is pretty vague (b.t.w. lua binds to C in a fairly low level way; you can even use functions available in the host).
Some questions: - do you want your users to be able to write script or - do you want a scripting facility like in the LitMD2Viewer to enable (rudimental) movement only. - how complicated do you expect your scripting engine to be (be fair and don't ask for everything) - what did you make youreself until now...
André
|
|