Jump to content

[LE] How to make a quest update on entering a tomb?


Recommended Posts

So I've been playing with the CK lately, and I'm trying to get a simple quest going. Basically what I'm after is: Read note --> Enter tomb --> Fight boss --> Loot item --> Success! I've figured out most of it, but is there a way to get the quest to update/display a new objective after the player enters the tomb, but before doing anything else? I'm thinking something similar to the vanilla house purchase, where you get the misc quest to visit your new home, then when you enter the house for the first time it completes.

Link to comment
Share on other sites

There are two ways you can do this.
1) Add to your quest a script that when the Player (PlayerRef) enters the tomb (OnCellAttach or OnCellLoad) will "set stage".
2) Probably the easiest, make a trigger box in your cell just in front of the door's teleport marker and add to it a script that "OnTriggerEnter" will set stage.
This are the default vanilla script you can use:

defaultsetMultiStageAliasScript
This script will set the specified stage (2 possible) if the owning quest is at the specified stage (2 possible) when the alias is activated, dies, is hit, or the trigger is entered - depending on a property set. The script will then go to a state wherein nothing will happen in any of those events. This script will only work for Reference Aliases.
defaultSetStageActorRefScript
This script will set the specified stage on the specified quest (with optional prerequisite stage) if the proper event is called on the actor. Possible events are OnActivate, OnDeath, OnHit, OnTriggerEnter, OnEquipped, OnCombatBegin, OnCellLoad, self added to player inventory, self removed from player inventory, OnOpen, or OnRead.
defaultsetStageAliasScript
This script will set the specified stage on the specified quest (with optional prerequisite stage) if the proper event is called on the alias. Possible events are OnActivate, OnDeath, OnHit, OnTriggerEnter, OnEquipped, OnCombatBegin, OnCellLoad, self added to player inventory, self removed from player inventory, OnOpen, or OnRead. Only works for Reference Aliases.

 

defaultSetStageOnEnter
This script will set a stage on the specified quest when the specified reference(s) are in the triggerbox. This will only work on triggerboxes.
defaultSetStageOnLoad
This script will set the specified stage on the specified quest when the object's 3D is loaded,.

 

defaultsetStageTrigSCRIPT
This script will set the specified stage on the specified quest when the trigger is entered. This only works on triggerboxes. I.e. setting a stage when you enter a maze.
defaultSetStageTRIGSpecificActor
This script will set the specified stage on the specified quest when the trigger is entered by a specific actor. This only works on triggerboxes. I.e. setting a stage when you enter a maze.

 

 

 

* Avoid using "Notes" to set stages (SetStageOnRead), they don't always work correctly, instead use "Journals".

Link to comment
Share on other sites

  • Recently Browsing   0 members

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