Jump to content

Rewritting a script to needs


skyrimspain

Recommended Posts

Hey,

 

after I found the right door for my project I need to rewrite the script for it.

My plan is to create a room full of the saarthal doors (the one from the winterhold academy quest) that you can destroy without the need to wear the amulet and withouth it need to be a spell.

 

So I found the script and it reads as followed:

Scriptname MG02WallAliasScript extends ReferenceAlias

Spell Property AmuletSpell Auto

ObjectReference Property SpikeTrigger Auto

ObjectReference Property MG02AmuletResonanceRef Auto

Event OnActivate(ObjectReference ActionRef)

; if AmuletTaken == 0
; if ActionRef == Game.GetPlayer()
; Self.GetReference().PlayAnimation("Take")
; endif
; endif


EndEvent




;Event OnHit(ObjectReference AkAggressor, Form AkSource, Projectile AkProjectile, bool PowerAttack, bool AbSneakAttack, bool abBashAttack, bool AbHitBlocked)

Event OnMagicEffectApply(ObjectReference AkCaster, MagicEffect AkEffect)

if AkCaster == Game.GetPlayer()
if Game.GetPlayer().IsEquipped(MG02Amulet)== 1

if (MG02 as MG02QuestScript).TrapCollisionToggle== -1


MG02QuestScript QuestScript = MG02 as MG02QuestScript
if QuestScript.TolfdirUpdate == 0
QuestScript.TolfdirUpdate=1
MG02AmuletResonanceRef.PlayAnimation("PlayAnim01")
MG02TrapCollision01Ref.Disable()
Self.GetReference().PlayAnimation("Open")
SpikeTrigger.Activate(Game.GetPlayer())
MG02.SetObjectiveDisplayed(30,0)
MG02.SetObjectiveCompleted(35,1)
MG02.SetObjectiveDisplayed(40,1)
MG02TolfdirAmuletScene.Stop()
TolfdirTunnelScene.Start()
endif
endif
endif
endif

EndEvent
Quest Property MG02 Auto

int Property AmuletTaken Auto
Armor Property MG02Amulet Auto

scene Property TolfdirTunnelScene Auto

Scene Property MG02TolfdirAmuletScene Auto

ObjectReference Property MG02TrapCollision01Ref Auto

 

 

 

Again, the goal is to rewrite it so that you don't need the quest, the amulett or a spell.

Can someone help me with that?

 

Thanks

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...