Frictional Games Forum (read-only)

Full Version: Messages don't show up :(
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When I test it through the custom story list,
I have added this:

void OnStart()
{
AddTimer("", 1, "Msg");
}


void Msg(string &in asTimer)
{
StartEffectEmotionFlash("Fade", "First", "");
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
}

**********

The bold letters above are the trouble I have. After the timer occurs, the screen does the white flash but the message does not show up.

Here is the .lang script:



"There is only one happiness in this life, to love and be loved.[br][br] But I lived in the darkness."


How do you make it show up on the screen ?
(04-19-2012, 12:03 AM)mrscoomich Wrote: [ -> ]When I test it through the custom story list,
I have added this:

void OnStart()
{
AddTimer("", 1, "Msg");
}


void Msg(string &in asTimer)
{
StartEffectEmotionFlash("Fade", "First", "");
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
}

**********

The bold letters above are the trouble I have. After the timer occurs, the screen does the white flash but the message does not show up.

Here is the .lang script:


<CATEGORY Name="Fade">
<Entry Name="First">"There is only one happiness in this life, to love and be loved.[br][br] But I lived in the darkness."</Entry>
</CATEGORY>

How do you make it show up on the screen ?
There could be an error somewhere else on your .lang cause if theres one error the whole thing stops working

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">"..."</Entry>
</CATEGORY>

<CATEGORY Name="Fade">
<Entry Name="First">"There is only one happiness in this life, to love and be loved.[br][br] But I lived in the darkness."</Entry>
<Entry Name="Second">"500 years ago, I was tortured and killed in that very dungeon. [br] The murderer had regret it." </Entry>
<Entry Name="Third">I am not a man, nor am I a lady.[br][br] I am a child.[br][br][br]My name is..."</Entry>
<Entry Name="Last">"...Angella Stilson."</Entry>
</CATEGORY>



</LANGUAGE>

***********

here is the whole .lang script
(04-19-2012, 12:31 AM)mrscoomich Wrote: [ -> ]here is the whole .lang script
Try taking out the quotation marks that are between all the <Entry> </Entry> parts. That might be it, because quotations are unnecessary in text between entry markers.
ah! It works Big Grin Thank you so much!
(04-19-2012, 12:45 AM)mrscoomich Wrote: [ -> ]ah! It works Big Grin Thank you so much!
No problem Big Grin If you have a steam account you can add me and ill do my best to help you whenever Smile