Nothing I've done seems to work.
I'll put in my .hps and .lang file below.
Quote:////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "Bedroom_Key", "Bedroom_Door", "UsedKeyOnDoor", true);
}
{
SetEntityCallbackFunc("Name_of_item", "OnPickup");
}
void OnPickup(string &in asEntity, string &in type)
{
SetEntityActive("grunt_01", true);
}
///////////////////////////////////
//Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
The monster doesn't seem to spawn, and the key doesn't work with the door, nor does the key have any name or text attached to it in-game.
Quote:<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">You wake up an unknown castle you must escape quickly before darkness will kill you!</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="Note_diary_1">Diary Entry 1</Entry>
<Entry Name="Note_diary_1_Text">I sometimes wake up in the middle of the night, because of the noises coming from the closet, but as I wake up, they suddenly dissapear. I think I'm going to have to leave this place soon...</Entry>
</CATEGORY>
<CATEGORY>
<Entry Name ="Inventory"
<Entry Name="ItemDesc_Bedroom_Key">The Key to the Bedroom"</Entry>
<Entry Name="ItemDesc_Bedroom_Key">Bedroom Key"</Entry>
</CATEGORY>
</LANGUAGE>
The note does not have any name it is just a blank piece of paper when i pick it up in-game.
I saw someone else put the key thing in the .lang file too, but I'm a little confused now.