Frictional Games Forum (read-only)

Full Version: My "emotionstone" isn't displaying the message!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I'm making a "thank you" room and I want to use the "emotion_stone" as a way to show the message. I put it in the map, scripted the function and I wrote the extra_english.lang. But when I play the map, the message doesn't show up when I touch the stone.the screen fades to white but the message doesn't show. Should I use a different interaction script? In case you want to look at it, Here's my script...:
___________________________
void OnEnter() //Map is entered through a hidden area box and ChangeMap script, it is not started.
{
SetEntityPlayerInteractCallback("thankyoubox1", "thankyoulog", false);
}

//THANK YOU STONE
void thankyoulog(string &in asParent, string &in asChild, int alState)
{
StartEffectEmotionFlash("thankyou_list", "thankyounini", "03_in_a_bottle.snt");
}
___________________________
//Here's the extra_english.lang file:

<LANGUAGE>
<CATEGORY Name="thankyou_list">
<Entry Name="thankyounini">I leave my regards here to:
BLAH BLAH BLAH...............................................................................
.........................................
.....................................................
.....................................................................
................................
</Entry>
</CATEGORY>
</LANGUAGE>
________________________

NEVERMIND! I went into the original maps and figured out all I have to do is put in the labels ON the emotion_stone entity and it will automatically read it.
Just wanted to point this out to you for future reference. Your syntax is incorrect.


void thankyoulog(string &in asParent, string &in asChild, int alState)

The red text is the syntax for your statement. That syntax is only correct with AddEntityCollideCallback. For

SetEntityPlayerInteractCallback

the correct syntax is

(string &in asEntity)

as shown on the script functions page

(10-03-2011, 01:40 AM)Obliviator27 Wrote: [ -> ]Just wanted to point this out to you for future reference. Your syntax is incorrect.


void thankyoulog(string &in asParent, string &in asChild, int alState)

The red text is the syntax for your statement. That syntax is only correct with AddEntityCollideCallback. For

SetEntityPlayerInteractCallback

the correct syntax is

(string &in asEntity)

as shown on the script functions page
No, the solution was so simple, I shouldn't have posted this. lol all i had to do was go into the Level Editor and click on the Emotion Stone, click the tab that says "entity" and fill in the category and entry callbacks. =P works fine now.

Thank you though