Oblivion: Creating Oblivion Gates
Here's how you do it:
1. Duplicate the OblivionGatetoOblivion object, and give it a name you can find later.
2. Duplicate the OblivionGatetoTamriel object and give it a name you can find too.
3. You can use this script:
scn SomeCleverScriptName float timer short count short destroyed ; set to 1 after destroyed script runs short ignore begin OnLoad ; reset count if count > 0 set timer to 60 endif set count to 0 end begin OnActivate if isActionRef player == 1 ; we aren't "near" any gate anymore (we're in Oblivion!) set MQ00.nearOblivionGate to 0 ReleaseWeatherOverride endif Activate set ignore to 1 return end begin gamemode if ignore == 1 set ignore to 0 return endif ; no need to process further if destroyed if destroyed == 1 return endif if getdestroyed == 1 && destroyed == 0 set destroyed to 1 endif ; start churning out creatures when I'm turned on if GetDisabled == 0 && GetDestroyed == 0 if IsAnimPlaying == 0 playgroup specialidle 1 endif if getdistance player < 512 set MQ00.nearOblivionGate to GetSelf else set MQ00.nearOblivionGate to 0 endif if timer > 0 set timer to timer - getsecondspassed elseif count < MQ00.maxCreatureCount set count to count + 1 playgroup forward 1 set timer to 10 endif endif end
4. On your duplicated OblivionGatetoOblivion object, clear all of the worldspaces listed and then drag your Oblivion worldspace into its list. Set it's script to the one above.
5. On your duplicated OblivionGatetoTamriel object, clear out all of the worldspaces, and then drag the interior or worldspace cell for where your gate is located into the list.
6. Place your newly created gate objects where you want them in the respective worldspaces.
7. Create an XMarkerHeading near each one, and set that gate's teleport ref to the XMarkerHeading.
That should be enough to establish the working pair.
If you want to make it closeable with a Sigil stone, you need to find somewhere appropriate and place the following items:
SigilSigilStoneRD004 (probably doesn't specifically matter which one)
The sigil stone needs SigilFireBoom01 set as it's enable parent.
SigilFireBoom01 needs TrigZoneCloseCurrentOblivionGate01 set as its enable parent.
TrigZoneCloseCurrentOblivionGate01 needs CitadelDeadraLordsCenterRing set as its enable parent.
In this manner, taking the sigil stone triggers the chain reaction which will properly close the gate and return you to the entry point in your cell.
That last item, CitadelDeadraLordsCenterRing, it can really be anything you want, but it needs to be an activator with the script that item comes with to be attached to it. If you're not building a sigil tower for your stone, you probably don't want the big bulky chained thing one sits in.
With any luck, you now have yourself a working Oblivion gate system. The gate pair you've just created has one added bonus in that the main quest does not need to still be running for it to work.
"It is pointless to resist, my son." -- Darth Vader
"Resistance is futile." -- The Borg
"Mother's coming for me in the dragon ships. I don't like these itchy clothes, but I have to wear them or it frightens the fish." -- Thurindil
Well. I guess that's that then.
Agreed about the code tag, though in this case it still doesn't look nearly as bad as some unformatted code I've seen in the past. :D