The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
HPS and extra_english.lang not working
SetsuPotato Offline
Junior Member

Posts: 6
Threads: 2
Joined: Mar 2015
Reputation: 0
#1
HPS and extra_english.lang not working

So today I was making a custom map because I was bored and when I tried to run it, it crashed. I tried removing the extra_english.lang and it will run, but my .hps file seems to be doing nothing whatsoever. None of my keys are working or anything.
I probably messed up somewhere while I was writing one of them, which is likely because I'm new to the HPL editor and coding.

My HPS file:

void OnStart()
{
AddUseItemCallback("", "key_din", "door_din", "UsedKeyOnDoor", true);
SetEntityPlayerInteractCallback("key_din", "MonstAct1", true);
}

void UsedKeyOnDoor()
{
SetSwingDoorLocked("door_din", false, true);
PlaySoundAtEntity("", "unlock_door", "door_din", 0, false);
RemoveItem("key_din");
}

void OnEnter()
{

}

void OnLeave()
{

}

void MonstAct1(string &in item)
{
SetEntityActive("monster1", true);
AddEnemyPatrolNode("monster1", "PathNodeArea1", 0, "Idle");
AddEnemyPatrolNode("monster1", "PathNodeArea2", 0, "Idle");
}

My extra_english.lang:

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">I don't know where I am.</Entry>
</CATEGORY>

<CATEGORY Name="Journal">
<Entry Name="Note_letterbedroom_Name">Is anyone here?</Entry>
<Entry NAme="Note_letterbedroom_Text">Hello? Is anyone here?[br]I've found some stuff and left it on the desk for if anyone ends up here.[br]I couldn't seem to get that other door open. There's gotta be a key somewhere.</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_keydin">Dining Room Key</Entry>
<Entry Name="ItemDesc_keydin">Key to the Dining Room</Entry>
</CATEGORY>
</LANGUAGE>[/code][/quote]
03-11-2015, 05:52 PM
Find


Messages In This Thread
HPS and extra_english.lang not working - by SetsuPotato - 03-11-2015, 05:52 PM



Users browsing this thread: 1 Guest(s)