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
#18
RE: Need help with scripts

I have now spent countless of hours trying to make my stuff work. I've renamed everything and redone my .hps and .lang file and still it doesn't work.

This is my .lang file
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_diaryone_Name">Diary Entry 1</Entry>
<Entry Name="Note_diaryone_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 disappear. I think I'm going to have to leave this place soon...</Entry>
</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemName_bedroomkey">Bedroom Key</Entry>
<Entry Name="ItemDesc_bedroomkey">The Key to the Bedroom</Entry>
</CATEGORY>
</LANGUAGE>

And this is my .hps file.
Quote:////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "bedroomkey", "bedroomdoor", "KeyOnDoor", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("bedroomdoor", false, true);
PlaySoundAtEntity("", "unlock_door", "bedroomdoor", 0, false);
RemoveItem("bedroomkey");
}

///////////////////////////////////
//Run when entering map
void OnEnter()
{

}


////////////////////////////
// Run when leaving map
void OnLeave()
{

}

I haven't included the monster spawning script in here yet.

If its not going to work with your help, I'm gonna give modding a rest.
08-18-2011, 05:57 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)