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:
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:
<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.