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 Memento won't show up
elbichopt Offline
Junior Member

Posts: 14
Threads: 2
Joined: Aug 2012
Reputation: 0
#1
Memento won't show up

When I walk to the area, it shows that a memento has been wrote but when I go check it it only says: "-" lol

Screenshots:

Spoiler below!
[Image: amnesia2012100822481582.png]

Spoiler below!
[Image: amnesia2012100822481985.png]

Spoiler below!
[Image: 66824296.jpg]


The codes:

Lang file:
Spoiler below!
<LANGUAGE>
    <CATEGORY Name="CustomStoryMain">
        <Entry Name="Description">This is where I test my maps.</Entry>
    </CATEGORY>
    
    <CATEGORY Name ="Inventory">
            <Entry Name="ItemDesc_stone_hammer_1">This might just break the padlock!</Entry>
            <Entry Name="ItemName_stone_hammer_1">Stone hammer</Entry>
    </CATEGORY>
    
    <CATEGORY Name ="Journal">
            <Entry Name="Quest_RockPadlock_Text">The padlock looks rusty enough to be easily broken.</Entry>
    </CATEGORY>


.HPS file:
Spoiler below!
void OnStart()
{
SetPlayerLampOil(0);
AddEntityCollideCallback("Player", "rockpadlock", "GetRockPadlockQuest", true, 1);
AddEntityCollideCallback("Player", "KillTheLights", "LightsOut", true, 1);
AddUseItemCallback("OpenDoor","stone_hammer_1", "padlock_1", "unlock_prison_section_1", true);
}

void GetRockPadlockQuest(string &in asParent, string &in asChild, int alState)
{
AddQuest ("rockpadlock", "RockPadlock");
}

void unlock_prison_section_1(string &in asItem, string &in asEntity)
{
SetPropHealth("padlock_1", 0.0f);
SetEntityActive("padlock_broken_1", true);
RemoveItem("stone_hammer_1");
SetEntityActive("padlock_1", false);
PlaySoundAtEntity("", "break_wood_metal.snt", "ScriptArea_1", 0, false);
CompleteQuest("rockpadlock", "rockpadlock");
}

void LightsOut(string &in asParent, string &in asChild, int alState)
{
SetLampLit("tochalol", false, true);
SetLampLit("tochalol2", false, true);
AddTimer("", 2, "Out2");
PlaySoundAtEntity("", "00_faint.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
GiveSanityDamage(9.0f, true);
}


Help? Huh
10-08-2012, 10:57 PM
Find


Messages In This Thread
Memento won't show up - by elbichopt - 10-08-2012, 10:57 PM
RE: Memento won't show up - by 4WalledKid - 10-08-2012, 11:01 PM
RE: Memento won't show up - by Statyk - 10-08-2012, 11:13 PM
RE: Memento won't show up - by The chaser - 10-09-2012, 06:42 AM
RE: Memento won't show up - by Ongka - 10-09-2012, 06:51 AM
RE: Memento won't show up - by Adny - 10-09-2012, 06:52 AM
RE: Memento won't show up - by elbichopt - 10-09-2012, 01:01 PM
RE: Memento won't show up - by Your Computer - 10-09-2012, 06:53 AM
RE: Memento won't show up - by Adny - 10-09-2012, 04:50 PM
RE: Memento won't show up - by The chaser - 10-09-2012, 05:02 PM
RE: Memento won't show up - by Your Computer - 10-09-2012, 06:11 PM
RE: Memento won't show up - by KingWolf - 10-09-2012, 06:12 PM
RE: Memento won't show up - by Dutton - 10-09-2012, 11:32 AM
RE: Memento won't show up - by Adny - 10-09-2012, 06:14 PM
RE: Memento won't show up - by KingWolf - 10-09-2012, 06:15 PM



Users browsing this thread: 1 Guest(s)