Letter Puzzle
Zephirius
Member Posts: 419
Would anyone know how to tackle coding a puzzle - (for instance), you would need to step on the letters sequetially to spell "enter", and the door unlocks and opens. I'm well out of my league on this one...
0
Comments
https://gist.github.com/dunahan/f7a7e5b11ccf78b204be42091ac735ed
Ah forgot.... This should work with vanilla NWN and even 1.69. But I don't know, if vanilla NWN has letters as placeables. You will also need triggers underneath the placeables on which the player will step.
And another thing to think of, use the letters only once per word. So ENTER wouldn't work with this script, you should ajust the script. But NOSE for example works fine.
I've drawn a trigger around each letter with this version of the script attached. I had to use GetObjectByTag() instead of OBJECT_SELF for the door and I added SetPlotFlag(oDoor, FALSE);
You should place the script in OnEnter at the triggers and OnFailToOpen at the door.
I'll change the solution later, but for now lets compare apples to apples. - so the script I'm running now is exacly the same as yours.
I've placed the script on the OnFailToOpen handler of the door in question. The door is locked -
I'm still getting nothing. I'm sure I'm doing something wrong...
https://github.com/dunahan/wordpuzzle
Beware its NWN EE .34 ;-)
Ah, forgot to change the solution in my module from NOSE to ABCE... Corrected the files on GitHub and the module. Download it for an example 😉
Now - How to Destroy 26 objects (all the letters of the alpabet) simetaneously with just a few lines of code or so?