![]() |
Scripting assistance requested! - 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Scripting assistance requested! (/thread-8534.html) |
Scripting assistance requested! - SLAMnesia - 06-11-2011 lol jk I think that subject line would get more attention than "SCRIPT HELP" <for those who cant script you may not read past this line> ------------------------------------------------------------------ you're reading and therefore you are a scriptor or immune to my commands anyways: I have a problem that I'm really not sure how or where to start it. Here's the situation though: I have one coal intake machine thing, posing as an industrial cleaner. What I'd like to have happen is you put a dirty blob "a rock" into the cleaner (its an entity not an item, so you pick it up and bring it into the cleaner) and once its inside the cleaner you must close the cleaner door (it self locks for a few seconds) and hit a lever. After the lever has been triggered for a few seconds the screen shakes, a few lights brighten ect (lasts 2 seconds please). Once that has been completed the dirty blob disappears and a clean shiney statuette is left in the cleaner ![]() here's the names dirty object: dirty_object clean object: clean_object script area inside cleaner (if needed):cleaner_area cleaner door: cleaner_door cleaner: cleaner lights: light1, light2 light3 cleaner lever: cleaner_lever I don't understand the immensity of my request, but I do understand thank you's and I almost owe you one for reading all that ![]() Super thanks and virtual hugs to anyone who can solve my problem RE: SUP /B/! - laser50 - 06-11-2011 You can easily Look up for the functions on the wiki and do a search on the forum, Because Most of this can be found in the forum.. RE: SUP /B/! - xtron - 06-11-2011 instead of joking around with fake titles, make a propper title and the people who can help gets a little motivation to help. RE: SUP /B/! - Kyle - 06-11-2011 This is one of those multi-step processes that could take hours to properly contruct. I could start you off a little... Make an area inside of the cleaner and then add an EntityCollideCallback for the collision of "dirty_object" and "cleaner_area". You would also have to make sure that the "dirty_object" is inside of the "cleaner" when the player closes the "cleaner_door", causing it to lock. Code: void OnStart() RE: SUP /B/! - SLAMnesia - 06-12-2011 (06-11-2011, 01:04 PM)Kyle Wrote: Make an area inside of the cleaner and then add an EntityCollideCallback for the collision of "dirty_object" and "cleaner_area". You would also have to make sure that the "dirty_object" is inside of the "cleaner" when the player closes the "cleaner_door", causing it to lock. umm you want me to make the script for the EntityCollideCallback? I donno much about scripting, I can do simple stuff but levers and cranks jam me up pretty hard. and what should this function; """Make an area inside of the cleaner and then add an EntityCollideCallback for the collision of "dirty_object" and "cleaner_area" """ do? Im just confused sorry RE: Scripting assistance requested! - Acies - 06-12-2011 Kyle's script pretty much does the job. Some things could be removed, but there is nothing wrong with it - everyone scripts in their unique way. (06-12-2011, 12:51 AM)SLAMnesia Wrote:(06-11-2011, 01:04 PM)Kyle Wrote: Make an area inside of the cleaner and then add an EntityCollideCallback for the collision of "dirty_object" and "cleaner_area". You would also have to make sure that the "dirty_object" is inside of the "cleaner" when the player closes the "cleaner_door", causing it to lock. You should create a script area inside of the cleaner named "cleaner_area". The rest is done in his script. The only thing missing is to add the lights you want and set them to radius 0. Then create 2 timer functions which uses the command: FadeLightTo(string& asLightName, float afR, float afG, float afB, float afA, float afRadius, float afTime); As for the effects you are looking for refer to the: http://wiki.frictionalgames.com/hpl2/amnesia/script_functions Trying is learning ![]() RE: Scripting assistance requested! - SLAMnesia - 06-12-2011 Im learning that is true ![]() ![]() RE: Scripting assistance requested! - Kyle - 06-12-2011 (06-12-2011, 05:36 AM)SLAMnesia Wrote: Im learning that is true What exactly is this "cleaner" and "cleaner_door" objects? Is it the one from the game? |