Frictional Games Forum (read-only)
[SCRIPT] No memento text. [SOLVED] - 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: [SCRIPT] No memento text. [SOLVED] (/thread-38929.html)



No memento text. [SOLVED] - WarJenkins - 02-18-2016

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.


RE: No memento text. - Spelos - 02-18-2016

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



RE: No memento text. - WarJenkins - 02-18-2016

(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!