I'm new doing stories, but I really wanna do one. Now I have a problem with unlock a door, I saw tutorials, and I did what they said but didin't work.
my key's name is firstdoorkey and door's name is firstdoor.
I've got this is my ola.hps:
////////////////////////////
// Run first time starting map
void OnStart()
{
(
AddUseItemCallback("", "firstdoorkey", "firstdoor", "UsedKeyOnDoor", "true");
)
void MyFunc(string &in asItem, string &in asEntity)
(
SetSwingDoorLocked("firstdoor", false, true);
PlaySoundAtEntity("", "unlock_door", "firstdoor", 0, false);
RemoveItem("firstdoorkey");
)
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
and this in my extra english lang:
<LANGUAGE>
<RESOURCES>
</RESOURCES>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Hello There! Welcome to my first custom story, hope you enjoy!
</Entry>
<CATEGORY>
<CATEGORY Name="Inventory>
<Entry Name="ItemDesc_firstdoorkey">"Key to First door"</Entry>
<Entry Name="ItemName_firstdoorkey">First door key</Entry>
</CATEGORY>
<LANGUAGE>
so, can someone find any probem? Thanks so much!