10-02-2011, 04:44 PM
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.
___________________________
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.