Ok hopefully this hasn't been asked, I know from a quick search and glance, through some of the forum search results, that the topic has been tap-danced around. And for roughly 3 days on and off I've search for various combinations to the answer to my question, er rather dilemma. The yahoo three-day search bit wore me out. It trampled me, overwhelmed me with far more info than I needed and made me keel over. So I'm putting this out as a plea for some guiding direction in sorta a last ditch effort
My dilemma: I need a script language that has these features:
1) Can run multiple things at once, I guess multi-threading, or as (I think) Python calls it, CoRoutines
2) Can call functions and procedures that are in my Delphi code, from the script. In other words I need something that a script can call a function or procedure I've written in Delphi.
- Side note about 2: Almost everywhere do websites talk about the other way around (Delphi calling functions of the script language). My thoughts are why in the world would you use a scripting language in an application when everything can much more easily be done in code. I don't understand it. In a game it makes sense, because multiple events can (and usually) occur at the same time, so a scripting language in a game arena is far more meaningful (At least from what I can tell. I dunno maybe something in packet events like some web code or something maybe it might be useful..?...).
3) Must be able to register events, like in LUA
4) Must be usable in Delphi
5) My last note is definitely of the preferred type but obviously not required. I'd like it to be platform independent. Granted TV3D uses DX and hence isn't platform independent itself but I'd rather make as much code platform independent as possible. Call it an OCD quirk or something I guess..
Some of my general concerns:I did find something that satisfies most of these, and that's Pascal Script but I don't know if you can register events in it like you can in LUA, and from what I've seen you have to compile the script, there's no just running it, which if multiple objects in the game world has scripts and events (inside those scripts) attached to them, I don't know how the whole compile thing will work out. It sounds to me like an array of Pascal Script objects, which all I gotta say is WOW that sounds like -alot- of memory consumption. So I'd rather plan ahead than
possibly open-heart surgery my code and find out it doesn't do what I need it to lol I'd prefer to use LUA since I know Blizzard's using it for WoW (And I'm familiar with LUA from coding mods for WoW) which means they are successfully using it (kinda like it being pre-field-tested for me

) and I know it registers events and will likely do everything I need it to do, but from what I've seen it's
next to impossible to get it to integrate (at least the way I'd like it to: see point 2) with Delphi.
Two additional questions taken out of the above paragraph1) Can you register events with Pascal Script?
2) Does anyone have any tutorials showing how to register events with Pascal Script?
3) If you cannot register events with Pascal Script, does anyone have any examples of integrating LUA with Delphi for the purpose of point 2?
Thanks in advance for reading and any help is
seriously appreciated!
-- StakFallT