Simple scripting in a seperate thread
BlitzMax Forums/BlitzMax Programming/Simple scripting in a seperate thread
| ||
Hey guys, So I was wondering if anyone had an opinion on this. I tossed together the start of a very thin scripting language that I was going to use for rpg hack/slash type of game for AI / QUESTS ect. I've never attempted threaded work before and am new to BlitzMax learning as I go. Ive got a Blitz3D version too, but no threading in B3D. Curious if anyone has used anything this crude successfully in a fully featured game, and if its worth working on it further Here is the mockup document of that I have so far http://www.empowergames.com/myscript.rtf As well as the code thus far EASYSCRIPT EXAMPLE TEST SCRIPTS ( test_script.txt ) ;script test 1 SCRIPTNAME = RIFS SCRIPT LET$ Me=Rif + Raf LET$ JEFF$=BlitzUser_ + me ;jeff$ now equals BlitzUser_RifRaf Print$ jeff$ LET JEFF% = 500.10 - 5.3 LET DEREK% = 0 LET KATIE% = (JEFF% + DEREK%) * 2 PRINT JEFF% For 10 For 5 LET DEREK% = DEREK% + 1 If derek% >> 40 Then PRINT$ ABOVE 40 If DEREK% >> 60 Then Goto MARK_SKIP EndIf GOSUB FUNCTION1 EndIf Print DEREK% Next Next MARK MARK_SKIP ENDSCRIPT ;example function using Dgosub MARK FUNCTION1 PRINT$ FUNC1 GOSUB FUNCTION2 RETURN MARK FUNCTION2 PRINT$ FUNC2 RETURN |