Hall of Traps
Zephirius
Member Posts: 419
I'm trying very hard to create a script that will: when a wand is used it disarms each trap slowly, one by one. There are 10 traps in the hallway...
I've tried to do this but I'm afraid my scripting hasn't caught up with my ambitions.
Any help would be greatly appreciated.
I've tried to do this but I'm afraid my scripting hasn't caught up with my ambitions.
Any help would be greatly appreciated.
0
Comments
void main()
{
object oTrapSeen = GetTrapDetectable();
I have not compiled this or tested it at all, but it should be a good start, I think.
Let me know if you need help getting the wand to call the script using your module OnItemActivated script.
(Added comments to the code)
Under the edit tab, go to module properties. Under the events tab, edit the second script down (OnActivateItem). Ignore all warnings.
The script should already have Somewhere under that, add:
There may be a if(GetIsObjectValid(oItem)) check in the script already, you can copy what you need.
Thank you for your time and your scripting lesson.