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
** SOLVED ** Fatal Error when loading Custom Story?
FurtherGames Offline
Member

Posts: 72
Threads: 23
Joined: Apr 2013
Reputation: 1
#4
RE: Fatal Error when loading Custom Story?

(05-01-2013, 03:54 AM)Mr Credits Wrote: Remove that extra comma?

PHP Code: (Select All)
AddUseItemCallback("""key_laboratory_1""mansion_3""FUNCTION"true,); 

----------------------------------------------------------------------
Thanks, I figured it how this morning, but now the key doesn't unlock the door, my description has gone missing and there is a level door inside my map, when the player goes over to it, a message on screen saying "No need to go back outside..." it's supposed to come up. It did, but it doesn't any more. I also tried to create a name for the key but it's still just
"Picked up"

HPS FILE: (I know "masion_Door" is spelt wrong)

void OnStart()
{
AddUseItemCallback("item", "Key1", "masion_Door", "FUNCTION", true);
}

void OnEnter()
{

}

void OnLeave()
{

}
void FUNCTION(string &in item, string &in door)
{
SetLevelDoorLocked("masion_Door", false);
PlayGuiSound("unlock.door.snt", 100);
RemoveItem("item");
}


English.lang file:

<LANGUAGE>
<RESOURCES>
</RESOURCES>

<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Dare to enter the castle tombs...</Entry>
</CATEGORY>
<CATEGORY Name="Messages">
<Entry Name="doorlock1">No need to go back outside...</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_Key1>room key</Entry>
<Entry Name="ItemDesc_Key1">The key for my room.</Entry>
</CATERGORY>

</LANGUAGE>
05-01-2013, 12:08 PM
Find


Messages In This Thread
RE: Fatal Error when loading Custom Story? - by FurtherGames - 05-01-2013, 12:08 PM



Users browsing this thread: 1 Guest(s)