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
Need help with scripts
NumsefisK Offline
Junior Member

Posts: 10
Threads: 1
Joined: Aug 2011
Reputation: 0
#4
RE: Need help with scripts

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.
(This post was last modified: 08-17-2011, 09:36 PM by NumsefisK.)
08-17-2011, 09:24 PM
Find


Messages In This Thread
Need help with scripts - by NumsefisK - 08-17-2011, 07:12 PM
RE: Need help with scripts - by palistov - 08-17-2011, 08:54 PM
RE: Need help with scripts - by JetlinerX - 08-17-2011, 08:55 PM
RE: Need help with scripts - by NumsefisK - 08-17-2011, 09:24 PM
RE: Need help with scripts - by JetlinerX - 08-17-2011, 09:33 PM
RE: Need help with scripts - by NumsefisK - 08-17-2011, 09:35 PM
RE: Need help with scripts - by JetlinerX - 08-17-2011, 09:36 PM
RE: Need help with scripts - by NumsefisK - 08-17-2011, 09:46 PM
RE: Need help with scripts - by JetlinerX - 08-17-2011, 09:52 PM
RE: Need help with scripts - by NumsefisK - 08-17-2011, 10:00 PM
RE: Need help with scripts - by Obliviator27 - 08-17-2011, 10:08 PM
RE: Need help with scripts - by Your Computer - 08-17-2011, 09:59 PM
RE: Need help with scripts - by NumsefisK - 08-17-2011, 10:20 PM
RE: Need help with scripts - by Obliviator27 - 08-17-2011, 11:06 PM
RE: Need help with scripts - by NumsefisK - 08-17-2011, 11:31 PM
RE: Need help with scripts - by NumsefisK - 08-18-2011, 04:11 PM
RE: Need help with scripts - by Homicide13 - 08-18-2011, 04:21 PM
RE: Need help with scripts - by NumsefisK - 08-18-2011, 05:57 PM



Users browsing this thread: 1 Guest(s)