![]() |
Help With Custom Story Scripts - 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: Help With Custom Story Scripts (/thread-9086.html) |
Help With Custom Story Scripts - ObsidianLegion - 07-11-2011 Right, to begin with: my custon story .hps won't load due to a FATAL ERROR and this pops up every time I access it. Secondly: the .lang file I put in is not working either ![]() Please help! I'll put them up for download both my .hps and .lang files in .txt format so you can read them. RE: Help With Custom Story Scripts - HumiliatioN - 07-11-2011 (07-11-2011, 03:39 PM)Lolnesia09 Wrote: Right, to begin with: my custon story .hps won't load due to a FATAL ERROR and this pops up every time I access it. //////////////////////////// // Run first time starting map void OnStart() { } //////////////////////////// // Run when entering map void OnEnter() { AddUseItemCallBack("", "bigroomdoorkey", "bigroomdoor", UsedKeyOnDoor, true); } { MyFunc(string &in asItem, string &in asEntity); } { SetSwingDoorLocked("bigroomdoor", false, true); RemoveItem("bigroomdoorkey"); } { SetEnemyEnabled("binladen", abEnabled); } //////////////////////////// // Run when leaving map void OnLeave() { } Try now. You have using wrong brackets and not spaces on them. It's fixed now. RE: Help With Custom Story Scripts - ObsidianLegion - 07-11-2011 Do you like my monsters name??? xD Hate to be an ass, it still don't work :/ RE: Help With Custom Story Scripts - ferryadams11 - 07-11-2011 //////////////////////////// //Run when entering map void OnStart() { AddUseItemCallBack("", "bigroomdoorkey", "bigroomdoor", "UsedKeyOnDoor", true); } void UsedKeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("bigroomdoor", false, true); RemoveItem("bigroomdoorkey"); SetEnemyEnabled("binladen", abEnabled); } //////////////////////////// //Run when entering map void OnEnter() { } //////////////////////////// //Run when leaving map void OnLeave() { } That's about it, just add me on msn for any further questions. P.S. I'm @ Spain on holiday now and I'm using internet wifi cards of the camping. So I'll try to be on as much as possible (Hope to see your .hps file cleaner in the futur). MSN: ferry_hooligan@live.nl Regards, Ferry Adams RE: Help With Custom Story Scripts - SLAMnesia - 07-12-2011 cute monster name lol |