Jump to content

[Oblivion] Creating Oblivion Gates


Arthmoor

Recommended Posts

The process for creating an Oblivion gate that behaves like other gates in the game can be somewhat confusing. Yes, you could simply place two gates, call them doors, and be done with it. That doesn't really work though if you're a perfectionist like I am. I wanted a gate that worked like expected, including the possibility to have it modify weather while you're near it. In the end, my gate ended up underground, but after getting some help from WillieSea working out the kinks, I figured I'd document exactly what I did so others could do the same.

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 SomeCleverScriptNamefloat timershort countshort destroyed        ; set to 1 after destroyed script runsshort ignorebegin onload    ; reset count    if count > 0        set timer to 60    endif    set count to 0endbegin 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	    returnendbegin 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    endifend

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)

SigilFireBoom01

TrigZoneCloseCurrentOblivionGate01

CitadelDeadraLordsCenterRing

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...