Help with the basics
Posted: Mon Mar 18, 2013 8:46 am
Hi,
I'm new to the boards and also to modding. I was wondering if someone could point me in the right direction on how to set a few things up? Firstly, I've never done any scripting before so I'm learning that from scratch, and I've watched the tutorial videos done by Komag (which are awesome by the way).
In the retail game, it's possible to push a secret button which opens a door, plays a sound, and prints a message on the HUD. How would I go about scripting that since buttons don't really have an on or off state, and toggle just returns a nil value if used in the getState part of the code?
Also, how would I script a gem eye socket puzzle? I'm not after doing anything that requires custom gems, just using the stock ones and trying to make it work like the gem puzzle towards the end of level 1 in the retail version. Again, I've tried looking around on the forums but couldn't really find anything outside of how to make the socket accept only a specific custom gem. Would scripting be the answer or is it done through using a counter to increment/decrement when the gem is placed or removed?
What I'm trying to do in this is to understand how it's done in the retail release before I adapt it to something else.
I'm new to the boards and also to modding. I was wondering if someone could point me in the right direction on how to set a few things up? Firstly, I've never done any scripting before so I'm learning that from scratch, and I've watched the tutorial videos done by Komag (which are awesome by the way).
In the retail game, it's possible to push a secret button which opens a door, plays a sound, and prints a message on the HUD. How would I go about scripting that since buttons don't really have an on or off state, and toggle just returns a nil value if used in the getState part of the code?
Also, how would I script a gem eye socket puzzle? I'm not after doing anything that requires custom gems, just using the stock ones and trying to make it work like the gem puzzle towards the end of level 1 in the retail version. Again, I've tried looking around on the forums but couldn't really find anything outside of how to make the socket accept only a specific custom gem. Would scripting be the answer or is it done through using a counter to increment/decrement when the gem is placed or removed?
What I'm trying to do in this is to understand how it's done in the retail release before I adapt it to something else.