![]() |
amnesia custom story error? - 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: amnesia custom story error? (/thread-20212.html) |
amnesia custom story error? - nixxx60 - 02-06-2013 nixxx60 again my amnesia custom story not in the custom storys in amnesia is fixed but when i load it it says FATAL ERROR Could not load script file 'custom_stories/The Cursed/Custom_stories/The Cursed/maps/tutorial.hps! Main (12,14 : ERR :'studydoorkey_1' is not declared then my amnesia closes?? also this is wat my hps file says inside //////////////////////////// // Run when entering map void OnEnter() { AddUseItemCallback("", "studydoorkey_1", "studydoor", "UsedKeyOnDoor", true); } void UsedKeyOnDoor(string &in asItemA, string &in asItemB) { SetSwingDoorLocked("studydoor", false, true); PlaySoundAtEntity("", "unlock_door", "studydoor", 0, false); RemoveItem(studydoorkey_1); } //////////////////////////// // Run when leaving map void OnLeave() { } RE: amnesia custom story error? - PutraenusAlivius - 02-06-2013 On the PHP Code: RemoveItem(studydoorkey_1); part of the script, studydoorkey_1 is not declared. It should be PHP Code: RemoveItem("studydoorkey_1"); RE: amnesia custom story error? - nixxx60 - 02-06-2013 (02-06-2013, 10:20 AM)JustAnotherPlayer Wrote: On the i did that then it said same thing but not studykey instead at Main (12, 14 its (12,30) : ERR : Expected expression value (02-06-2013, 10:23 AM)nixxx60 Wrote:(02-06-2013, 10:20 AM)JustAnotherPlayer Wrote: On the oh wait i forgot The " in studydoorkey_1):] RE: amnesia custom story error? - PutraenusAlivius - 02-06-2013 (02-06-2013, 10:23 AM)nixxx60 Wrote:It's;(02-06-2013, 10:20 AM)JustAnotherPlayer Wrote: On the PHP Code: "studydoorkey_1"); EDIT: I just realized : Your thread was supposed to be in Amnesia - The Dark Descent/Custom stories, TC's & Mods/Technical Support. RE: amnesia custom story error? - nixxx60 - 02-06-2013 (02-06-2013, 10:20 AM)JustAnotherPlayer Wrote: On the I added comma hings in studydoorkey_! and the ] and now it says at end of error Main (12,32) ERR: expected expression value ?? RE: amnesia custom story error? - PutraenusAlivius - 02-06-2013 (02-06-2013, 10:28 AM)nixxx60 Wrote:It's(02-06-2013, 10:20 AM)JustAnotherPlayer Wrote: On the PHP Code: RemoveItem("studydoorkey_1"); RE: amnesia custom story error? - nixxx60 - 02-06-2013 i made it ("studydoorkey_1");] but still not workin RE: amnesia custom story error? - PutraenusAlivius - 02-06-2013 (02-06-2013, 10:29 AM)nixxx60 Wrote: i made it ("studydoorkey_1");]DID YOU SEE MY PREVIOUS POSTS?! ITS: PHP Code: RemoveItem("studydoorkey_1"); PHP Code: RemoveItem("studydoorkey_1");] EDIT: Yay! 202 Posts! RE: amnesia custom story error? - nixxx60 - 02-06-2013 ok i fixed it thx ![]() RE: amnesia custom story error? - PutraenusAlivius - 02-06-2013 (02-06-2013, 10:33 AM)nixxx60 Wrote: ok i fixed it thxwhat about my reputation? ![]() EDIT: And oh dude, PM me a link to download it for me to test it out, don't release it yet. |