16
Mega Tokyo SCI Archive / [Question] SCI - Adding Functionality
« on: May 19, 2003, 09:25:15 AM »
I am curious if the SCI scripting language is extensible to any agree. What I means is that I know a certain amount of processing is done by the interpreter but a great deal of the actual mechanics is held in the scripts and the kernel functions. But how do you extend that if you want to?
As a concrete example of what I mean, I was thinking of doing a game but part of the game would require being able to somehow "record" what the player did in a given room. The reason for that is because, later, those recorded actions would be utilized to determine some elements of how the game plays. For example, let us say that the player moves Ego around for awhile, picks up something, opens a door, then leaves. Okay: so I would want to record those moves/actions, perhaps to later automatically play them back (such as with a plot device where Ego watches "himself" on a camera that had been filming him).
While I have given a specific example here, the question is more generally one of how to extend the language or how to get the language to do more things. (The only immediate gaming example I can think of is in the realm of Interactive Fiction, where there is a main compiler with a library of functions but people can contribute their own "function libraries" that can be called as well.)
As a concrete example of what I mean, I was thinking of doing a game but part of the game would require being able to somehow "record" what the player did in a given room. The reason for that is because, later, those recorded actions would be utilized to determine some elements of how the game plays. For example, let us say that the player moves Ego around for awhile, picks up something, opens a door, then leaves. Okay: so I would want to record those moves/actions, perhaps to later automatically play them back (such as with a plot device where Ego watches "himself" on a camera that had been filming him).
While I have given a specific example here, the question is more generally one of how to extend the language or how to get the language to do more things. (The only immediate gaming example I can think of is in the realm of Interactive Fiction, where there is a main compiler with a library of functions but people can contribute their own "function libraries" that can be called as well.)
That being said, I am not sure what proportion of SCI Studio users are on what operating system. And, of course, sometimes you just have to develop for the operating system that is more stable - and stability is not exactly a hallmark of Windows 98!
