The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Messages In This Thread
No memento text. [SOLVED] - by WarJenkins - 02-18-2016, 07:59 PM
RE: No memento text. - by Spelos - 02-18-2016, 08:50 PM
RE: No memento text. - by WarJenkins - 02-18-2016, 08:58 PM



Users browsing this thread: 1 Guest(s)