Frictional Games Forum (read-only)

Full Version: Need help with a few scripts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Sorry if any of these have been addressed but im lazy and cant be bothered searching.

1) I need a script to make my character go through a waking up sequence like in the beginning of the actual game.

2) A script for activating a sound when entering an area, i have an idea hwo to do this but unsure about some things and how to set it out.

3) I have no idea how to make notes and messages appear on the screen when playign through the game and interacting with things. EG. when i try to open a door when its locked i want text to come on the screen saying 'Damn the doors locked, i wonder where the key it', as this will help drive players to their goal and help players understand what there doing also. (Note: i saw a recent thread about showing messages when interacting with a door or entering a script area but its not very clear to me, to so you know.)

Another eg. picking up notes like in the game, how do i set the text which comes up onscreen.


Please tell me the script for each and give an example and explain how i will place it and set it out, so i dont need to constantly tell you things dont work. Thanks for reading, again sorry if this has been addressed if it has leave a link to the thread and tell me which number this addresses.

Thanks!
Thanks for the fast reply exactly what im lookign for Big Grin

Still need an answer on how to make text appear when click on a door for example.
Won't help you because you can't be bothered searching.
(10-09-2010, 08:31 PM)Pandemoneus Wrote: [ -> ]Won't help you because you can't be bothered searching.

Next time dont bother replying with fail posts.
Eh, the waking up sequence is also exactly what I need. Except I don't know where to find it or how to combine it with my other scripts.
There has already been a full tutorial posted for the sequence, use the search function.
Anything on hwo to make text appear when interactign with a lock door once and when hearign certain noices.

I'm looking for the effect of my character thinkign to himself.
I think

void SetEntityPlayerInteractCallback(string& asName, string& asCallback, bool abRemoveOnInteraction);

and

void SetMessage(string &asTextCategory, string &asTextEntry, float afTime);

are what you're looking for.

About the noise.. well, I think you should include SetMessage() in the function that causes the noise..
(10-10-2010, 12:57 PM)Frontcannon Wrote: [ -> ]I think

void SetEntityPlayerInteractCallback(string& asName, string& asCallback, bool abRemoveOnInteraction);

and

void SetMessage(string &asTextCategory, string &asTextEntry, float afTime);

are what you're looking for.

About the noise.. well, I think you should include SetMessage() in the function that causes the noise..


Thanks but could i get an example of what to write in them. This is what i struggle with. EG. where i insert my text and where i add name of object interacted with