Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help No memento text. [SOLVED]
WarJenkins Offline
Junior Member

Posts: 4
Threads: 2
Joined: Feb 2016
Reputation: 0
#1
No memento text. [SOLVED]

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.
(This post was last modified: 02-19-2016, 03:14 PM by WarJenkins.)
02-18-2016, 07:59 PM
Find
Spelos Away
Banned

Posts: 231
Threads: 19
Joined: Sep 2014
#2
RE: No memento text.

Quests need to be in the Journal category.
PHP Code: (Select All)
<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
(This post was last modified: 02-18-2016, 08:51 PM by Spelos.)
02-18-2016, 08:50 PM
Find
WarJenkins Offline
Junior Member

Posts: 4
Threads: 2
Joined: Feb 2016
Reputation: 0
#3
RE: No memento text.

(02-18-2016, 08:50 PM)Spelos Wrote: Quests need to be in the Journal category.
PHP Code: (Select All)
<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!
02-18-2016, 08:58 PM
Find




Users browsing this thread: 1 Guest(s)