skyrimspain Posted September 1, 2014 Share Posted September 1, 2014 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 ReferenceAliasSpell Property AmuletSpell AutoObjectReference Property SpikeTrigger AutoObjectReference Property MG02AmuletResonanceRef AutoEvent OnActivate(ObjectReference ActionRef); if AmuletTaken == 0; if ActionRef == Game.GetPlayer(); Self.GetReference().PlayAnimation("Take"); endif; endifEndEvent;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)== 1if (MG02 as MG02QuestScript).TrapCollisionToggle== -1MG02QuestScript QuestScript = MG02 as MG02QuestScriptif QuestScript.TolfdirUpdate == 0QuestScript.TolfdirUpdate=1MG02AmuletResonanceRef.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()endifendifendifendifEndEventQuest Property MG02 Autoint Property AmuletTaken AutoArmor Property MG02Amulet Autoscene Property TolfdirTunnelScene AutoScene Property MG02TolfdirAmuletScene AutoObjectReference 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now