Frictional Games Forum (read-only)

Full Version: No memento text. [SOLVED]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I made a script where are key breaks, and you get a memento, but for some reason there is no text on it. Letters and item descriptions are working, but mementos aren't.

Here's the .hps script:

Code:
void OnStart()
{
    AddUseItemCallback("", "key1", "door01", "func", true);
}

void func(string &in asItem, string &in asEntity)
{
    PlaySoundAtEntity("", "unlock_door", asEntity, 0, false);
    RemoveItem(asItem);
    AddQuest("", "KeyBroke");
}

And here's the .lang code as well:
Code:
<LANGUAGE>  
    <CATEGORY Name="CustomStoryMain">
        <Entry Name="Description">A small custom story.</Entry>
    </CATEGORY>    
    
    <CATEGORY Name="Inventory">
        <Entry Name="ItemName_key1">A Key</Entry>
        <Entry Name="ItemDesc_key1">It's my room key.</Entry>
    </CATEGORY>    

<CATEGORY Name="Journal">
    <Entry Name="Note_Note01_Name">What?</Entry>
    <Entry Name="Note_Note01_Text">What for sure.</Entry>
</CATEGORY>    

   <CATEGORY Name="Mementos">
<Entry Name="Quest_KeyBroke_Text">Damn it! The key broke. I need look around my room for another item that can open the door.</Entry>
    </CATEGORY>
</LANGUAGE>

Any help is appreciated.
Quests need to be in the Journal category.
PHP Code:
<CATEGORY Name="Journal">
    <
Entry Name="Note_Note01_Name">What?</Entry>
    <
Entry Name="Note_Note01_Text">What for sure.</Entry>
    <
Entry Name="Quest_KeyBroke_Text">Damn itThe key brokeI need look around my room for another item that can open the door.</Entry>
 </
CATEGORY
(02-18-2016, 08:50 PM)Spelos Wrote: [ -> ]Quests need to be in the Journal category.
PHP Code:
<CATEGORY Name="Journal">
    <
Entry Name="Note_Note01_Name">What?</Entry>
    <
Entry Name="Note_Note01_Text">What for sure.</Entry>
    <
Entry Name="Quest_KeyBroke_Text">Damn itThe key brokeI need look around my room for another item that can open the door.</Entry>
 </
CATEGORY

Thank you very much!