Khet Posted September 21, 2008 Share Posted September 21, 2008 Alrighty, I can't figure this out. The door won't activate, nor am I able to bring up the message box again if I choose 'Don't touch the Crystal Ball' any help would be great. Oh, and does anyone know how to lock an item in place so it can't be moved? Despite my crystal ball being a 'door' you can still move it with Z (and the spell causes it to fly around :biggrin: ) SCN MCCrystalBall Short controlvar Short button Begin OnActivate If ( controlvar == 0 ) && GetStage MC01Library == 10 MessageBox "The Crystal Ball appears undamaged despite the condition of the house.", "Do not touch the ball", "Say 'E Ruhun dra Pcyyt' and touch the ball." Set controlvar to 1 ElseIf ( controlvar > 1 ) Activate Elseif getstage MC01Library < 10 Cast Mg05FingerSpell05 Player MessageBox "When I touched the Crystal Ball I was struck by a shock spell." EndIf End Begin GameMode If ( controlvar == 1 ) Set button to GetButtonPressed If ( button == 1 ) Return Set Controlvar to 0 ElseIf ( button == 2) Set controlvar to 2 EndIf ElseIf ( controlvar == 2 ) Activate Set controlvar to 3 EndIf End What does work, is if you touch it before reading a nearby note then you get hit by the spell. After reading the note the message box comes up about either touching it, or leaving it be. Whichever of the two I chose, nothing happens (great if you choose Don't touch it) but even if you choose the second option the door doesn't activate. Link to comment Share on other sites More sharing options...
Vagrant0 Posted September 21, 2008 Share Posted September 21, 2008 You need to use "<doorref>.activate <activatorref> 1" for one object to open the other. Alternatively you can use <doorref>.Setopenstate, but that is only a good idea when the door is not a load door. Link to comment Share on other sites More sharing options...
Khet Posted September 21, 2008 Author Share Posted September 21, 2008 Ack, I knew it was probably simple. CS just crashed on me so once I load it back up I'll make the changes and let ya know if it works. As for the second question though, any idea how to keep the crystal ball from moving since it's technically my 'door?' I must be brain damaged from lack of sleep. Changing the Activate lines to Activate MCCrystalBallRef didn't do a thing, nor can I reaccess the message box after the first time. Edit: Nevermind! Got it all working. I had my Buttons wrong, it should have been Button == 0 and Button == 1 not Button == 1 and Button == 2. Works spiffy now, and I can continue to access the menu if I click on Don't touch. Now if only I could figure out how to keep the bloody thing from moving on me I'd be good to go... Thanks for shoving me in the right directions Vagrant! Link to comment Share on other sites More sharing options...
Vagrant0 Posted September 21, 2008 Share Posted September 21, 2008 As for the second question though, any idea how to keep the crystal ball from moving since it's technically my 'door?'Need to make a different version of the .nif with the havok layer set to static. Or take the nitristrips from the ball and implant it into something static with similar dimentions. Link to comment Share on other sites More sharing options...
Khet Posted September 21, 2008 Author Share Posted September 21, 2008 As for the second question though, any idea how to keep the crystal ball from moving since it's technically my 'door?'Need to make a different version of the .nif with the havok layer set to static. Or take the nitristrips from the ball and implant it into something static with similar dimentions. Awesome! Thanks a bunch, I now have a fully work Magically Trapped Teleporting Static Crystal Ball. Phew, that was a mouthful. Think I got lucky finding the answer so quick as to how to make a static item, but hey, I'm not complaining! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.