Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

[OB] Problem with activating passage through a door!


KWITS
 Share

Recommended Posts

I have experiencing an issue with executing the following script. I am trying to activate a door.

scn WaVHauntedHallowsPortalSCRIPT

Begin onActivate Player

If ( GetStage WaVRescueMissionQuest == 30 ) && ( WaVHauntedHallowsDoorRef.GetLocked == 1 )

messageBox "You find an ancient portal, sealed magically. With your journey at a dead end, there is no other passage before you but are the dangers within greater than the guards beyind you?"

ElseIf ( WaVHauntedHallowsDoorRef.GetLocked == 0 )

playSound3D AMBEnchantmentBreakFinal

Else

Activate

Endif

End

Link to comment
Share on other sites

I want the player to use magic to activate a door to unlock and open it. Here is another version:

scn WaVHauntedHallowsPortalSCRIPT

Begin OnMagicEffectHit DSPL

If ( GetStage WaVRescueMissionQuest == 30)

endif

End

Begin onActivate Player

If ( GetStage WaVRescueMissionQuest == 30 ) && ( WaVHauntedHallowsDoorRef.GetLocked == 0 )

messageBox "You find an ancient portal, sealed magically. With your journey at a dead end, there is no other passage before you but are the dangers within greater than the guards beyind you?"

ElseIf ( WaVHauntedHallowsDoorRef.IsMagicEffectOnTargetAllowed DSPL == 1 ) && ( WaVHauntedHallowsDoorRef.GetLocked == 0 )

playSound3D AMBEnchantmentBreakFinal

Else

Activate

Endif

End

Link to comment
Share on other sites

I discovered that I had to create a duplicate door on the other side for teleport to occur. So when debugging this code under the console, I was able to trigger entry by typing "activate". Of course I want this process to be automatic. My Player is using a staff with a dispel target spell employed; this same staff will unlock the locked portal. Therefore to gain entry, the Player has to first, magically unlock the spell and then use a target spell for dispel.

Link to comment
Share on other sites

Here is a bug-fixed version of my door script:

scn WaVHauntedHallowsPortalSCRIPT

ref mySelf

Begin OnMagicEffectHit DSPL

If ( GetStage WaVRescueMissionQuest == 30)

Set mySelf to Getself

endif

End

Begin onActivate Player

If ( GetStage WaVRescueMissionQuest == 30 ) && ( WaVHauntedHallowsDoorRef.GetLocked == 1 )

messageBox "You find an ancient portal, sealed magically. With your journey at a dead end, there is no other passage before you but are the dangers within greater than the guards beyind you?"

ElseIf ( WaVHauntedHallowsDoorRef.IsMagicEffectOnTargetAllowed DSPL == 1 ) && ( WaVHauntedHallowsDoorRef.GetLocked == 0 )

playSound3D AMBEnchantmentBreakFinal

Activate

Endif

End

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...