Custom Story Editor Crowbar Puzzle - 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: Custom Story Editor Crowbar Puzzle (/thread-8729.html) |
Custom Story Editor Crowbar Puzzle - Mad Aztec - 06-21-2011 Hi, I would want to know how to make the same crowbar puzzle as in TDD in Daniel's Room. I checked another thread where they said that look at the map from TDD but I don't understand anything. Could you please help me? Me and my friend got a great idea for a custom story. RE: Custom Story Editor Crowbar Puzzle - Streetboat - 06-21-2011 How much scripting knowledge do you have? You need to do some trickery involving switching out several crowbar entities, placing areas in such a way to detect the crowbar 'joint' so it properly plays the effects. It's a fairly simple puzzle to script, fortunately. All it does is unlock the door and give it a push, play some dust effects, and voila. RE: Custom Story Editor Crowbar Puzzle - Nye - 06-21-2011 Do a search; I remember following a very detailed thread that told me everything I needed to know. RE: Custom Story Editor Crowbar Puzzle - rojkish - 06-21-2011 You should make an area where to put the crowbar firstly; AddEntityCollideCallback("Crowbar_1", "AreaPutCrowbar", "crowbar", true, 1); AddEntityCollideCallback("Crowbar_1", "Door or whatever", "crowbar", true, 1); Then make an area so that it happens a function when the crowbar_joint touches the area; AddEntityCollideCallback("crowbar_joint", "AreaBreakDoor", "break", true, 1); Spoiler below!
So now you have three areas to put out, one for the place where to put the crowbar(AreaPutCrowbar), one which the joint touches(break), and one which the breakeffect happens(BreakEffect) Don't forget to put the crowbar_joint whereever you want it and put the active box to not true RE: Custom Story Editor Crowbar Puzzle - Mad Aztec - 06-21-2011 Oh god guys...should have told you, absolutely NO scripting education. I know nothing of scripting, I should have known custom story making wasn't THAT easy. Could you like make some scripts for me or something? That would be very helpful. RE: Custom Story Editor Crowbar Puzzle - rojkish - 06-21-2011 Alright, so first create three script areas, one which name is AreaPutCrowbar, one which name is break, one which name is BreakEffect. When this is done adjust the size of the three of them to your liking, AreaPutCrowbar should be pretty big since this is where you're supposed to put the crowbar there, break is where the entity crowbar_joint should "hit" (crowbar_joint is a item which can be dragged), so when it is dragged to a certain area (break) a function happens, BreakEffect can be small however, since it's only to create a particle system. After that use this script; Spoiler below!
Be sure to rename "YOUR DOOR NAME" to whatever your door is named, also add a entity called crowbar_joint (also name it crowbar_joint) and set in to inactive and make sure it can reach the break area. You can make this even better if you add a crowbar entity (no item or joint) and make a Prop impulse to the door so it looks like you've broken the lock RE: Custom Story Editor Crowbar Puzzle - WatzUpzPeepz - 06-21-2011 Yup,that was prob my thread I was quite annoyed when people replied like that but after looking at the game files I found it. Spoiler below!
After that just copy the areas and their names,and make sure the areas are in the right position or it wont break the door. RE: Custom Story Editor Crowbar Puzzle - Mad Aztec - 06-22-2011 Something wonderful has happened, I kinda figured it out! The only problem is I can't like pull in the crowbar so that the door pops open, I can only use the crowbar on the door and then it opens. So, I guess i figured out how to open doors with keys too Thx for your help guys. |