06-18-2012, 08:17 PM
Hey guys, I'm trying to get my custom story's description to work, as well as text to appear on notes, descriptions of keys to appear and whatnot, but nothing I put in my .lang file seems to be working. The keys open the specified doors, so I dont believe my scripting is incorrect, but I just started, so Ill paste it here!
////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "room101key", "room101", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("room101", false, true);
PlaySoundAtEntity("", "unlock_door", "room101", 0, false);
RemoveItem("room101key");
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
and for the .lang file:
<LANGUAGE>
<RESOURCES>
</RESOURCES>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">The Shanus' first custom story. Enjoy!</Entry>
<CATEGORY Name="Journal">
<Entry Name="Note_TESTFINISH_Name">Congratulations!</Entry>
<Entry Name="Note_TESTFINISH_Text">Wahey! You finished my Amnesia custom story tester! Thanks for playing.</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_keyroom1">Guarded Door Key</Entry>
<Entry Name="ItemDesc_keyroom1">Maybe this unlocks that door in the corner of the room...</Entry>
<Entry Name="ItemName_room101key">EnSuite Room Key</Entry>
<Entry Name="ItemDesc_room101key">Picked up EnSuite Room Key</Entry>
</CATEGORY>
</LANGUAGE>
I'm not running through the dev setup because I dont know how to do that. I've been running it through Amnesia.exe, then selecting my profile, the custom story, and whatnot, but it isn't showing anything on the notes, the key when I pick it up, or even my custom story's description. Any help would be greatly appreciated.
////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "room101key", "room101", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("room101", false, true);
PlaySoundAtEntity("", "unlock_door", "room101", 0, false);
RemoveItem("room101key");
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
and for the .lang file:
<LANGUAGE>
<RESOURCES>
</RESOURCES>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">The Shanus' first custom story. Enjoy!</Entry>
<CATEGORY Name="Journal">
<Entry Name="Note_TESTFINISH_Name">Congratulations!</Entry>
<Entry Name="Note_TESTFINISH_Text">Wahey! You finished my Amnesia custom story tester! Thanks for playing.</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_keyroom1">Guarded Door Key</Entry>
<Entry Name="ItemDesc_keyroom1">Maybe this unlocks that door in the corner of the room...</Entry>
<Entry Name="ItemName_room101key">EnSuite Room Key</Entry>
<Entry Name="ItemDesc_room101key">Picked up EnSuite Room Key</Entry>
</CATEGORY>
</LANGUAGE>
I'm not running through the dev setup because I dont know how to do that. I've been running it through Amnesia.exe, then selecting my profile, the custom story, and whatnot, but it isn't showing anything on the notes, the key when I pick it up, or even my custom story's description. Any help would be greatly appreciated.