paladicprince Posted October 4, 2009 Share Posted October 4, 2009 Hmm, I can't seem to get this to work help! Just kidding I know you need more details. Here's the basics, I'm running a script on a door that gives you various options when you attempt to activate it, one of the options is to burn it down. I've got the visuals and everything looking great except for one part: I'd really like the door to disappear once it's been torched. But I still want it to be useable. I'm not sure how I could go about this any help would be appreciated. Here's what I've got currently: scn SteadyStreamsScriptedDoorScript Short Animate Short Disable Float Delay Short Working Short Choosing Short Choice Begin OnActivate If (GetStage Charactergen < 9) Set Working to 1 Set Choosing to -1 Else Activate EndIf End Begin GameMode If Working If (Choosing == -1) MessageBox "The door seems to have gotten itself jammed while you slept. It seems some things go wrong no matter how much money you throw at it.", "Burn the door down" Set Choosing to 1 Set Choice to -1 ElseIf (Choosing == 1) If (Choice == -1) Set Choice to GetButtonPressed ElseIf (Choice == 0) player.AddSpell StandardFireDamageTouch1Novice SelectPlayerSpell StandardFireDamageTouch1Novice TapControl 7 Set Animate to 1 Set Delay to 1 SetStage Charactergen 10 Set Working to 0 EndIf Else Activate EndIf EndIf If Animate If (Delay > 0) Set Delay to Delay - GetSecondsPassed Else PlayMagicShaderVisuals effectFireDamage 5 Set Animate to 0 Set Disable to 1 Set Delay to 5 EndIf EndIf If Disable If (Delay > 0) Set Delay to Delay - GetSecondsPassed Else Disable Set Disable to 0 Set Charactergen.WasDoorBurned to 1 EndIf EndIf End That's attached to the door, then I have an activator on the other side of the door with this script: scn aaatestscript Begin GameMode If Charactergen.WasDoorBurned If player.GetDistance aaaTestItemRef < 100 player.moveto SteadyStreamsPrivateDoor EndIf EndIf End This almost works, as it removes the model of the door after it's been burned, but I have issues I can't figure out. First, when you get within range of the aaatestscript it goes to a load screen and locks up everytime. The other issue being that since the door in one room is now disabled the other attached door won't teleport you anywhere. I hope everything was specific enough, I'll continue working on other parts of my mod until I hear back. :thanks: Link to comment Share on other sites More sharing options...
Recommended Posts