Qbasicnews.com

Full Version: Scripting engine - how?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, i'm new to the forums.

Anyway, can someone give me any good links to tutorials or websites that explain how to create your own scripting language for your RPG.

or even sample code i could work from.
Check for Pete's qbasicsite and under tutorials. Or in QBexpress issue 3 there was article on that. That also is on the Pete's site

But what kind of script engine you want?(and what does it have to do)
Just a simple one that controls NPC movement and dialogue etc.
then it's rather easy. but you might wanna see perhaps: http://www.freewebs.com/wizgui/downloads.htm
there is "solarscript" script engine with the source code.

but all you need to do the is:
[syntax="QBASIC"]
'open file.
filenumber=freefile
open filename$ for input as filenumber
'read first name.
'put it between cycle and then:
input #filenumber, a$
'and now
a$=ltrim$(rtrim$(lcase$(a$))) 'just in case. you can remove it for speed
select case a$
case "print"
input #filenumber, text2print$
print text2print$
case "cls"
cls
case "msgbox"
input #filenumber, message$
print message$
case ...
end select
[/syntax]

hope that's usefule. well it's only a scrach. but you can contact me over msn if you wanna more help.