problems with scripting - 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: problems with scripting (/thread-9708.html) |
problems with scripting - Brute - 08-11-2011 Hey guys... I working on a full conversion for myself to practice and want to use this thread for any questions to scripting I had. The first thing, I want to know is: I want to create an event for which the player breaks down, looking at an enemy, and after a few seconds, the game changed the map. And now my question: How did I do that / what script must I write? I also want to say, that I am german, and my english could sometimes been better... don't you think? RE: problems with scripting - Your Computer - 08-11-2011 You may want to look at the following functions: GiveSanityDamage(); SetEntityActive(); ChangeMap(); AddTimer(); StartPlayerLookAt(); StopPlayerLookAt(). Their definitions can be found here: http://wiki.frictionalgames.com/hpl2/amnesia/script_functions RE: problems with scripting - Brute - 08-11-2011 @Your Computer Thanks Interesting page. I will try to find a solution! RE: problems with scripting - Tanshaydar - 08-11-2011 Erm, good thing you find it interested, because wiki contains many tutorials and source to modders. RE: problems with scripting - Brute - 08-11-2011 I think you hadn't understand me right, Tanshaydar. I already known this wiki, but I hadn't seen this script-function page in it. Interesting to know RE: problems with scripting - Tanshaydar - 08-11-2011 Oh, my bad, sorry. Then you found the tutorials with videos too? Because it's a great resource. RE: problems with scripting - plutomaniac - 08-11-2011 (08-11-2011, 06:48 PM)Tanshaydar Wrote: Oh, my bad, sorry. ha,ha always a wiki supporter! RE: problems with scripting - Brute - 08-12-2011 Yes, I have already seen the videos and most of them has helped me a lot, to set my first steps in the editors. But scripting is sometimes very tricky for me. So often my scripts doesn't work and I found very, very rare the mistake, by myself. The wiki-page doesn't helped me really . I have so much to learn about scripting... I hoped, you guys could helped me there and don't worry... ...you will see my custom storys as soon as possible... ...some of them just wait for the right script. RE: problems with scripting - plutomaniac - 08-12-2011 Well you can always ask at the forums. Also search them because there are plenty of other ready scripts and help topics in there. RE: problems with scripting - Brute - 08-12-2011 That's good to know! I already has searched for scripts in the forum, put them in my game, and most of them has worked. But often they failed by me and I don't know why. For example: I had already problem by making buttons and levers. Sometimes they freaked me so out, that I must play the game and hunt Daniel, to calm down . But at first I need this script: Quote:I want to create an event for which the player breaks down, looking at an enemy, and after a few seconds, the game changed the map. |