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
Amnesia Editor error Item Not Declared
ironman0001 Offline
Member

Posts: 53
Threads: 8
Joined: Sep 2012
Reputation: 0
#1
Amnesia Editor error Item Not Declared

I'm trying to make a key to the door D: Here is the script and lang



void OnStart()
{
AddEntityCollideCallback("Player", "TeleportScript", "PoopedYaPants", true, 1);
SetMessage("Messages", "Popup1", 0);
AddUseItemCallback("", "Spooky", "Scared", "PopupHead", true);
}

void PoopedYaPants(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Jesus", true);
AddPropForce("Jesus", 0, 0, 10000, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "Jesus", 0, false);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
}

void Popup1()
{
AddEntityCollideCallback("Player", "Message_1", "Message1", true, 1);
}

void PopupHead(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Scared", false, true);
PlaySoundAtEntity("", "unlock_door", "Scared", 0, false);
RemoveItem(Spooky);
}



<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">You are inside of a house that is being controlled by an unknown person. You are locked inside until you find out who.</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">


</CATEGORY>
<CATEGORY Name="Messages">
<Entry Name="Popup1">Where am i? How did i get here? I should go downstairs to see if anyone else is here!</Entry>
</CATEGORY>
<CATEGORY Name="Descriptions">
<Entry Name="Popup2">Damn! It's locked! There's gotta be a key somewhere around here!</Entry>

</CATEGORY>
<CATEGORY Name="Levels">


</CATEGORY> Name ="Inventory">
<CATEGORY Name="Inventory">
<Entry Name="ItemDesc_Spooky">.</Entry>
<Entry Name="ItemName_Spooky">Living room key</Entry>
</CATEGORY>
</LANGUAGE>
09-28-2012, 08:04 PM
Find
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#2
RE: Amnesia Editor error Item Not Declared

RemoveItem("Spooky");


You forgot the quotes.

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
09-28-2012, 08:14 PM
Website Find
Steve Offline
Member

Posts: 178
Threads: 17
Joined: Jun 2012
Reputation: 7
#3
RE: Amnesia Editor error Item Not Declared

found something
RemoveItem(Spooky);
must be:
RemoveItem("Spooky");

CURRENTLY WORKING ON:
Final Light = 40%
Need of voice actors.
09-28-2012, 08:14 PM
Find
KingWolf Offline
Member

Posts: 135
Threads: 2
Joined: Sep 2012
Reputation: 7
#4
RE: Amnesia Editor error Item Not Declared

Ninja'd.

Helping "Nemet Robert " with his unofficial map.
09-28-2012, 08:17 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#5
RE: Amnesia Editor error Item Not Declared

declaration means a quoted text Wink

Trying is the first step to success.
09-28-2012, 09:35 PM
Find




Users browsing this thread: 1 Guest(s)