Frictional Games Forum (read-only)

Full Version: Blog: "Tech feature: Scripting upgrade"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
A very brief (but still long) overview of the new scripting system

http://frictionalgames.blogspot.com/2011...grade.html
Say you were playing, and in the script, an event was called with a function like makeWallsBlue or something. If this event was initiated, and the user saved (without saving in a sleep), when the user loads, does the system know where to pick up from? (in the makeWallsBlue function)
More scripting functionality! You won't hear me complain when you release the next game (and modtools? :p).
Although I can feel tons of "How does the scripting work"-threads coming right up. Smile
(05-28-2011, 12:26 AM)xiphirx Wrote: [ -> ]Say you were playing, and in the script, an event was called with a function like makeWallsBlue or something. If this event was initiated, and the user saved (without saving in a sleep), when the user loads, does the system know where to pick up from? (in the makeWallsBlue function)
Nope, and that is why I did not implement it Smile

Hm... well maybe you can handle the script as a sort of state machine and save the progress that the user has done in the script?
(05-28-2011, 09:33 PM)xiphirx Wrote: [ -> ]Hm... well maybe you can handle the script as a sort of state machine and save the progress that the user has done in the script?

The idea is to use some special form for these kind of event scripting, eg some kind of state machine. Angel Script has a nice thread feature which would make this super sweet, but I cannot use it because saving a thread state is simply not possible atm.
Definitely love the idea of having the engine classes implemented in scripting. Would definitely have been great if it was part of HPL2, oh well. D:

It would probably be kinda hard to simplify classes in scripting for beginners though, wouldn't it?
Looks like HPL3 is gonna be great for modders. Keep up the good work guys!
This sounds fantastic, should allow for some really awesome mods - It sounds like we should be able to access a whole lot more.

Will a command like "#import RandomScript.hps;" be permitted in scripts too? That is one feature I am really wishing was in amnesia for my next mod.
(05-29-2011, 07:06 PM)Apjjm Wrote: [ -> ]Will a command like "#import RandomScript.hps;" be permitted in scripts too? That is one feature I am really wishing was in amnesia for my next mod.

Yes it will!

Pages: 1 2