Frustration Overdose (Help!) - 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: Frustration Overdose (Help!) (/thread-10650.html) |
Frustration Overdose (Help!) - GhastDagger - 10-07-2011 Hello there buds, after i played "almost" all the custom stories out there..my cleaver mind told me to make my very own Custom Story! i was doing great until i that fearsome big jawed monster called "Scripting" stood on my way and told me that there's no way for me to pass him.. i crumbled to the ground..crying and yelling for help! and here i am.. seeing the light from above.. ok enough dramatic crap and here's the problem: idk what's wrong but almost every thing i do in scripting part goes wrong, like now i want that monster to break in a room after the player picks something up.. he doesn't appear! and worst of all, the items/keys/Notes i put are empty even when i write the desc/name in the Language file.. P.S: how can i do a scare moment? (like when you see a corpse and the camera shake with a sanity decrease) and before you ask here's the map's HPS file: void OnStart() { AddUseItemCallback("", "Closet_Key", "Closet_1", "KeyOnDoor", true); SetEntityCallbackFunc("Emperor's Head", "NoteCallback"); } void KeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("Closet_1", false, true); PlaySoundAtEntity("", "unlock_door", "Closet_1", 0, false); RemoveItem("Closet_Key"); } void NoteCallback(string &in entity, string &in type) { if(type == "OnPickup") SetEntityActive("Suiter", true); } And the language file: chaos started to haul over and things became nasty..but with style A silver key to the main hall Main hall key A small rusty key. Closet Key Survivors If you're reading this, please go through the trap door.. it's the only way out! [br]And don't forget to get whatever's left in the storage. [br]The Chief. Please help us.. Take my head and throw it into the holy well, it's the only way to send these demons back to Oblivion[br][br][br]Good Luck [br] Emperor Jarry Willson. Please help a hopeless nooby out RE: Frustration Overdose (Help!) - Rownbear - 10-07-2011 Ok alittle tired so we'll see if I can be any help. For me when you cant see custom name/description of items in your customstory is because you're running in a dev environment. If you play it as a normal customstory you can see that, atleast thats how it works for me. ///////////PICKUP ACTIVATE//////////// Collide means that the two entities literally collide, as in, physically touch. Picking up say a key doesn't count as collision. You'll need a interact callback. Select the key in the editor, and find the callback field. Write KeyPickUp. Then, in your script, put a function: void OnStart() { SetEntityPlayerInteractCallback("castle_key_1", "KeyPickUp", true); } void KeyPickUp(string &in entity, string &in type) { SetEntityActive("servant_grunt_1", true); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0.1, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0.1, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0.1, ""); GiveSanityDamage(15, true); StartScreenShake(0.2f, 4, 1, 1); PlaySoundAtEntity("guardian_distant3", "guardian_distant3.snt", "Player", 0, false); } Just place the monster behind the door and place the Pathnodes out so he walks through the door and he will smash it down. the other stuff there is screen shaking, sanity damage and a sound to add a more scary touch to it. EDIT: Removed the typing mistake if other people were looking for the answer aswell. RE: Frustration Overdose (Help!) - GhastDagger - 10-08-2011 woah thanks alot man! you deserve a medal! RE: Frustration Overdose (Help!) - Elven - 10-08-2011 Well, he deserves at least reputation +1 for it then ! That can be your medal RE: Frustration Overdose (Help!) - GhastDagger - 10-08-2011 oh hey i didn't know about that, i'm new in here o= hm i'm kinda facing a problem right now, i can't seem to make the monster spawn when i pick up the key for some reason... what's the matter now ? o= RE: Frustration Overdose (Help!) - Rownbear - 10-08-2011 (10-08-2011, 03:43 PM)GhastDagger Wrote: oh hey i didn't know about that, i'm new in here o=I made a typing mistake: void KeybarPickUp(string &in entity, string &in type) Remove the key"bar"Pickup and only use void KeyPickUp(string &in entity, string &in type) see if that works RE: Frustration Overdose (Help!) - GhastDagger - 10-08-2011 OMG dude i started the map to test if it's gonna work or not, at 1st i thought it wont but suddenly BAM he popped up and made me scream at my own map....lost some manly points there.. any way thanks alot mate! i owe u one or even more! RE: Frustration Overdose (Help!) - Rownbear - 10-08-2011 (10-08-2011, 06:25 PM)GhastDagger Wrote: OMG dude i started the map to test if it's gonna work or not, at 1st i thought it wont but suddenly BAM he popped up and made me scream at my own map....lost some manly points there..Btw for the extra_english language file to get your custom quest/itemw text, mine looks like Spoiler below!
RE: Frustration Overdose (Help!) - GhastDagger - 10-09-2011 thanks alot! i'll be sure to credit you in the credits wouldn't of done a thing without u lol |