Frictional Games Forum (read-only)
Problem with lever & mixture - 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: Problem with lever & mixture (/thread-12528.html)

Pages: 1 2


RE: Problem with lever & mixture - Statyk - 01-11-2012


Awesome! =D
Yup! The "SetLocalVarInt" sets an empty 'bank' (My best explanation in layman's terms) in the script. When you place a substance down, it adds to the 'bank'. Now you have one in the 'bank'. (And one object on the table)... This is where you pull the lever and the game says "I need something else."... When another is placed, it adds one more to the 'bank', totalling the 'bank' amount to 2. now, when you pull the lever, the 'bank' tells the game to give the player the functions.

Hope you can learn a bit with this! =] Also glad to hear it works XD I was writing this on paper in study hall and went over it a few times, but wasn't sure if it'd work.


RE: Problem with lever & mixture - Shadowfied - 01-11-2012

Haha thanks again! I learned a lot from it and will definitely have use of it in the future!

This really motivates me!! Big Grin



RE: Problem with lever & mixture - Statyk - 01-11-2012

(01-11-2012, 11:07 PM)Shadowfied Wrote: Haha thanks again! I learned a lot from it and will definitely have use of it in the future!

This really motivates me!! Big Grin
Glad to hear! =] Keep up the good work