![]() |
The Dead - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: The Dead (/thread-20698.html) |
The Dead - W4rpCore - 03-10-2013 For some reason, my custom story description or LookAt function dont work at all. heres the code i have. first, the extra_english.lang <LANGUAGE> <CATEGORY Name="CustomStoryMain"> <Entry Name="Description">Have fun...</Entry> </CATEGORY> <CATEGORY Name="Inventory"> <Entry Name="ItemName_StrangeKey">Strange Key</Entry> <Entry Name="ItemDesc_StrangeKey">...</Entry> </CATEGORY> <CATEGORY Name="Messages"> <Entry Name="BrokenPuzzle_1">The mechanism seems to be broken.</entry> </CATEGORY> </LANGUAGE> then my .hps file. void OnStart(){ AddEntityCollideCallback("Player", "LockDoorArea1", "LookAtDoor_1", true, 1); AddEntityCollideCallback("enemy_1", "MonsterTrigger1", "ChasePlayer_1", true, 1); AddUseItemCallback("", "Key1", "door1", "UsedKey1", true); PlayMusic("01_amb_darkness.ogg", true, 75.0f, 15.0f, 1, false); SetEntityPlayerLookAtCallback("lever_3", "ItsBroken_1", true); } //Open the door with a key void UsedKey1(string &in asItem, string &in asEntity){ SetSwingDoorLocked("door1", false, true); } //end //Door slam when leave spawn room void LookAtDoor_1(string &in asParent, string &in asChild, int alState){ StartPlayerLookAt("LookAtArea1", 15.0f, 15.0f, ""); SetSwingDoorClosed("door1", true, true); SetSwingDoorLocked("door1", true, true); PlaySoundAtEntity("", "react_pant.snt", "Player", 0, false); AddTimer("Timer_1", 1.5f, "StopLookAt_1"); } void StopLookAt_1(string &in asTimer){ StopPlayerLookAt(); SetLampLit("torch_static_green_1", false, true); SetLampLit("torch_static_green_2", false, true); SetLampLit("torch_static_green_3", false, true); SetLampLit("torch_static_green_4", false, true); } //end //Spawn monster in the other end of the room and player look at door / chase player in the end void SpawnBrute_2(string &in asTimer){ StartPlayerLookAt("LookAtArea1", 5.0f, 5.0f, ""); SetEntityActive("enemy_1", true); AddEnemyPatrolNode("enemy_1", "PathNodeArea_1", 1, ""); AddEnemyPatrolNode("enemy_1", "PathNodeArea_2", 0, ""); AddTimer("Timer_4", 1.5f, "StopLookAt_2"); } void StopLookAt_2(string &in asTimer){ StopPlayerLookAt(); } void ChasePlayer_1(string &in asParent, string &in asChild, int alState){ ShowEnemyPlayerPosition("enemy_1"); } //end //When player looks at the broken puzzle, sends a message and starts spawn timer void ItsBroken_1(string &in asEntity, int alState){ AddTimer("Timer_2", 3.0f, "SpawnBrute_2"); SetMessage("Messages", "BrokenPuzzle_1", 3); } //end When i look at lever_3, it doesnt say anything, BUT the brute does spawn. So is there a problem with my extra_english.lang file, because the descriptions of the key, the CS and the message dont work RE: The Dead - The chaser - 03-10-2013 <LANGUAGE> <CATEGORY Name="CustomStoryMain"> <Entry Name="Description">Have fun...</Entry> </CATEGORY> <CATEGORY Name="Inventory"> <Entry Name="ItemName_StrangeKey">Strange Key</Entry> <Entry Name="ItemDesc_StrangeKey">...</Entry> </CATEGORY> <CATEGORY Name="Messages"> <Entry Name="BrokenPuzzle_1">The mechanism seems to be broken.</Entry> </CATEGORY> </LANGUAGE> There, spotted it. All the problem was about a non-capital letter in a </Entry>. I have underlined the problem. RE: The Dead - W4rpCore - 03-10-2013 (03-10-2013, 05:15 PM)The chaser Wrote: <LANGUAGE> Dammit. I'm blind. |