![]() |
Error when testing my map - 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Error when testing my map (/thread-6691.html) |
RE: Error when testing my map - Raymond - 02-27-2011 (02-27-2011, 12:22 PM)nkmol Wrote: That's because you forgot </CATEGORY> again Finally, it worked ![]() RE: Error when testing my map - XxItachi09xX - 02-28-2011 hey can you please tell me how to find those certain script? find the "i need certain script" tread RE: Error when testing my map - Raymond - 02-28-2011 (02-28-2011, 10:23 AM)XxItachi09xX Wrote: hey can you please tell me how to find those certain script? find the "i need certain script" tread ? Anyways <LANGUAGE> <CATEGORY Name="CustomStoryMain"> <Entry Name="Description">Escape the castle!</Entry> </CATEGORY> <CATEGORY Name="Inventory"> <Entry Name="ItemName_PrisonKey">Prison Key</Entry> <Entry Name="ItemDesc_PrisonKey">Key to unlock the 1st padlock from the door with 2 padlocks.</Entry> <Entry Name="ItemName_PrivateRoomKey">Private Room Key</Entry> <Entry Name="ItemDesc_PrivateRoomKey">Key to unlock the door to the Private Room.</Entry> </CATEGORY> <CATEGORY Name="Journal"> <Entry Name="Note_Hotel01_Name">Hotel Room</Entry> <Entry Name="Note_Hotel01_Text">Test</Entry> </CATEGORY> </LANGUAGE> My description doesn't have words again, please help ![]() Wait, i fixed it. RE: Error when testing my map - nkmol - 02-28-2011 Good you fixed it ![]() (02-28-2011, 10:23 AM)XxItachi09xX Wrote: hey can you please tell me how to find those certain script? find the "i need certain script" tread u mean the wiki site where the scripts listed? ![]() RE: Error when testing my map - Raymond - 03-02-2011 //////////////////////////// // Run when entering map void OnEnter() { AddUseItemCallback("", "prisonkey_1", "mansion_3", "UsedKeyOnDoor", true); } void UsedKeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("mansion_3", false, true); PlaySoundAtEntity("", "unlock_door", "mansion_3", 0, false); RemoveItem("prisonkey_1"); } //////////////////////////// // Run when leaving map void OnLeave() { } void OnStart() { AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1); AddEntityCollideCallback("Player" , "ScriptArea_2" , "Collide_Area" , true , 1); } void MonsterFunc1(string &in asParent , string &in asChild , int alState) void Collide_Area(string &in asParent , string &in asChild , int alState) { SetEntityActive("servant_grunt_1" , true); SetEntityActive("slime_anim_wall_1" , true); } Another problem, i am trying to spawn a Slime, but Did i put something wrong, please help ![]() RE: Error when testing my map - nkmol - 03-02-2011 (03-02-2011, 10:47 AM)Raymond Wrote: ////////////////////////////you made 2 void callback whith one function, so one callback doesn't have a function( the MonsterFunc1). try this : Code: //////////////////////////// think about it. how can the game know that the void MonsterFunc1 needs to active a grunt? because u'll say it has 2things, grunt and slime_wall. First be detailerd about the script, that will help a bit, though ![]() RE: Error when testing my map - Raymond - 03-03-2011 (03-02-2011, 04:10 PM)nkmol Wrote:(03-02-2011, 10:47 AM)Raymond Wrote: ////////////////////////////you made 2 void callback whith one function, so one callback doesn't have a function( the MonsterFunc1). try this : RE: Error when testing my map - Zuul - 03-03-2011 (02-28-2011, 10:26 AM)Raymond Wrote:(02-28-2011, 10:23 AM)XxItachi09xX Wrote: hey can you please tell me how to find those certain script? find the "i need certain script" tread How? I'm dealing with pretty much the same problem. Code: <LANGUAGE> ^ Wont appear in-game. RE: Error when testing my map - Raymond - 03-05-2011 //////////////////////////// // Run when entering map void OnEnter() { AddUseItemCallback("", "prisonkeylight_1", "mansion_3", "UsedKeyOnDoor1", true) AddUseItemCallback("", "prisonkeydark_1", "mansion_3", "UsedKeyOnDoor2", true) } void UsedKeyOnDoor1(string &in asItem, string &in asEntity) { SetSwingDoorLocked("mansion_3", false, true); PlaySoundAtEntity("", "unlock_door", "mansion_3", 0, false); RemoveItem("prisonkeylight_1"); } void UsedKeyOnDoor2(string &in asItem, string &in asEntity) { SetSwingDoorLocked("mansion_3", false, true); PlaySoundAtEntity("", "unlock_door", "mansion_3", 0, false); RemoveItem("prisonkeydark_1"); } //////////////////////////// // Run when leaving map void OnLeave() { } void OnStart() { AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1); AddEntityCollideCallback("Player" , "ScriptArea_2" , "Collide_Area1" , true , 1); AddEntityCollideCallback("Player", "AreaPlayerTeleport", "CollidePlayerTeleport", true, 1); } void MonsterFunc1(string &in asParent , string &in asChild , int alState) { SetEntityActive("servant_grunt_1" , true); AddDebugMessage("You better hide!", false); } void Collide_Area1(string &in asParent , string &in asChild , int alState) { SetEntityActive("slime_anim_wall_1" , true); } void CollidePlayerTeleport(string &in asParent, string &in asChild, int alState) { TeleportPlayer("PlayerStartArea_2"); FadeOut(0); FadeIn(20); AddDebugMessage("Welcome To the Prison World!", false); } Problem again ![]() The error says: "Could not load script file "custom_stories/One World To Another/maps/One World To Another.hps" main (6,1) ERR :Expected ";"" RE: Error when testing my map - Oscar House - 03-05-2011 AddUseItemCallback("", "prisonkeylight_1", "mansion_3", "UsedKeyOnDoor1", true); AddUseItemCallback("", "prisonkeydark_1", "mansion_3", "UsedKeyOnDoor2", true); Always remember to check your syntax, you missed the semicolons [;] |