Place the riddle_door script on the OnFailToOpen of the door scripts.
Place the doorattack2 script on OnPhysicalAttack, OnDamaged, and OnSpellCastAt.
This will cause the door to have a convo with the char. It has 9 random riddles that the player has to answer to get the door to open (he only has to answer one correctly). If the Player gets the answer wrong he gets zapped. If the player tries to bash the door he gets zapped.
Make sure you have the door set on lock other wise the script is usless ! :)
There is a working version on my server, Dawn of Nordock, PW Story, but you will have to find it :)
Edited to include the correct name of script, and added 2 forgoten scripts.
Posted by AmanShadar at 2007-07-09 08:12:38 Voted 8.50 on 07/09/07
Interesting idea, but it needs some tweaking.
First off, in the readme it states to put "riddle door" in the OnFailToOpen event, and the script that need to go there is called "talkingdoor". Not too bad there.
The problem is that the riddles are chosen based on a 10% chance, but that means they all have a 10% cahnce, not*bleep*ulative, so sometimes, (actually most of the time for some reason) I was not getting a riddle.
I reccommend using custom tokens for the questions, and answers, and set a variable on the door to set the correct answer, so you do not always have the same numbered response as the correct one. Then have one script choose at random one of the riddles and sets the question as one Custom token, and the answers as a few others (depeneding on how many answers you want available).
With a setup similar to taht you would also not be limited to 10 riddles.
Otherwise, good stuff. _________________________
AmanShadar's Spawn System (Creatures, Placeables, Items, and Traps) AmanShadar's Death System AmanShadar's Ship System Critter Info Module
Posted by Pattycake1 at 2007-07-09 06:44:51 Voted 10.00 on 07/08/07
I added the Correct name of the script and added 2 forgoten scripts to the erf. So for those that downloaded the old erf, I suggest you redownload it. Sorry for the inconvenience.
Posted by Pattycake1 at 2007-07-09 06:18:23 Voted 10.00 on 07/08/07
I will double check it.. sounds like I exported the wrong script.
Posted by AmanShadar at 2007-07-09 02:36:37 Voted 8.50 on 07/09/07
You might want to check your "riddle_door_open" script as the one I downloaded on had this in it:
void main()
{