My "emotionstone" isn't displaying the message! - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: My "emotionstone" isn't displaying the message! (/thread-10557.html) |
My "emotionstone" isn't displaying the message! - Statyk - 10-02-2011 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. RE: My "emotionstone" isn't displaying the message! - Obliviator27 - 10-03-2011 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 RE: My "emotionstone" isn't displaying the message! - Statyk - 10-03-2011 (10-03-2011, 01:40 AM)Obliviator27 Wrote: Just wanted to point this out to you for future reference. Your syntax is incorrect.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 |