Help - Search - Members - Calendar
Full Version: Need some help with my script
The Nexus Forums > Specific Games > Oblivion > Oblivion Modifications > Mod Troubleshooting
AlexKnight1978
I'm again working on my Stargate Mod, to get it to go to every city.

That part works, but I can't seem to get the gates to disable if I don't go back there by Gate.

I do this:

I travel by Stargate from Chorrol to Paradise Home, I then go to the Imperial City by Stargate, after that, I fast travel to Chorrol, only to see the gate still open.


In the Chorrol DHD script it says to move aaaaPlayerMarker to aaaaGateMarkChorrol, so the marker is in Chorrol.

Then it runs this script when Player enters the Paradise Home:

CODE
scn aaaaHomeGateDisablerScript

Begin GameMode

if ( Player.GetInSameCell aaaaGateMarkHome )
if HomeGateOn == 1
if GateOn == 1
if ( aaaaPlayerMarker.GetInSameCell aaaaGateMarkChorrol )
aaaaStarGateChorrol.Disable
Chevron1Chorrol.Disable
Chevron2Chorrol.Disable
Chevron3Chorrol.Disable
Chevron4Chorrol.Disable
Chevron5Chorrol.Disable
Chevron6Chorrol.Disable
Chevron7Chorrol.Disable
set aaaaDisableGates to 1
endif
if ( aaaaDisableGates == 1 )
playsound aaaaStargateSoundClose
aaaaStarGateHome.Disable
Chevron1Home.Disable
Chevron2Home.Disable
Chevron3Home.Disable
Chevron4Home.Disable
Chevron5Home.Disable
Chevron6Home.Disable
Chevron7Home.Disable
set aaaaLocationChoice to 0
set aaaaDisableGates to 0
set aaaaTriggered to 0
set ChevronInit to 0
set GateOn to 0
set aaaaTriggered1 to 0
set HomeChevronInit to 0
set HomeGateOn to 0
StopQuest aaaaHomeGateDisabler
endif
endif
endif
endif


End


The Home Gate shuts down just like it should, so aaaaDisableGates gets turned to 1, otherwise, that wouldn't happen, but the Chorrol Gate and lights are still on when I get there...

Could use some help with this, because I'm stuck.

Thanks in advance
Warmstar219
Your script seems fine. Just a question: did you possibly change the EditorIDs of the Chorrol Chevrons?
AlexKnight1978
The ID's were fine, I found the problem in the meantime, I set a Global variable for activating the Gate and Chevrons, but when i activated another gate, the same variable got used... thus, all the other gates became active again. I have now changed them, so each gate has his own global variable.

The network works, I'll be posting it soon. banana.gif laugh.gif laugh.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.