Frictional Games Forum (read-only)
Amnesia custom story problem - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Amnesia custom story problem (/thread-15395.html)

Pages: 1 2


RE: Amnesia custom story problem - EXAWOLT - 05-13-2012

(05-13-2012, 11:10 AM)KodiakZ Wrote: It already had. I checked for spelling mistaked missing , and stuff. But when i made a new door and didn't rename it just so its called original name it worked. Now my only problem is note text not showing and name of key not showing.


Exatra_english:

<CATEGORY Name="Inventory">
<Entry Name="ItemName_Key">A Key</Entry>
<Entry Name="ItemDesc_Key">A Awesome Key</Entry>
</CATEGORY>

In Editor: klick on the key, select Entity, at the bottom it says: CustomSubItemName.
Type in: Key, and then it should work!
Wink


RE: Amnesia custom story problem - ezra627 - 09-25-2014

I have the same problem,this is the code:
Void OnStart()
{
AddUseItemCallback(string& asName, "Key1", "Doortolvl1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Doortolvl1", false, true);
PlaySoundAtEntity("", "amb_alert01", "Doortolvl1", 0, false);
RemoveItem("Key1");
}

i looked at the key and door name like 50 times!IT IS EXACTLY THE FREAKING SAME!!!And when i test it,it says "can not use the item this way!"


RE: Amnesia custom story problem - Mudbill - 09-25-2014

@ezra627

It won't work if you use a capital V in void.
> void OnStart()

You're also missing the first string in the AddUseItemCallback. You can't use string& asName, you need to change that to a name within double quotes.