Difference between revisions of "A beginner's guide, lesson 7 - Using Scripts in Quests"

Jump to navigation Jump to search
→‎Aleswell Phase: editing a little more
imported>Pyrocow2
(→‎Aleswell Phase: Redoing this section.)
imported>Pyrocow2
(→‎Aleswell Phase: editing a little more)
Line 452: Line 452:
!  RESULT SCRIPT
!  RESULT SCRIPT
|   
|   
<pre>SetStage BGM001 70</pre>
<pre>
SetStage BGM001 70
Player.Additem "BGHideoutKey" 1
ShowMap BGCaveMapMarker
</pre>
|}
|}


We can then use the result script to bump the stage to 70
The result script bumps the quest stage to 70 and gives the player the key and map marker. In the quest stage section for stage 70 we can add an appropriate journal entry.


In the quest stage section for stage 70 we can add an appropriate journal entry and a quest stage result script to add a key and activate another map marker.
Of course before we do this we need to add the MapMarker to the exterior of our cave. The cave system cell is ''BGmodtSugglersCaveCOPY0000'' in the ''Interiors'' worldspace. The cave exterior cell is ''BGTutMCaveExt'' in the ''Tamriel'' worldspace.
Of course before we do this we need to add the MapMarker to the exterior of our cave. The cave system cell is BGmodtSugglersCaveCOPY0000 in the Interiors worldspace. The cave exterior cell is BGTutMCaveExt in the Tamriel worldspace.


Again we can use the door teleport marker to get ourselves to the exterior location.  
Again we can use the door teleport marker to get ourselves to the exterior location.  
Drop in a MapMarker and give it a Suitable reference name like BGCaveMapMarker.  
Drop in a MapMarker and give it a Suitable reference name like ''BGCaveMapMarker''.  


Journal entry:
Journal entry:
  ''Smith has given me a key for the Red Rose Brigades hideout. I should go to the hideout and see if I can recover my uncle's key and house deed.''
  ''Smith gave me a key for the Red Rose Brigade's hideout. I should go to the hideout and see if I can recover my uncle's key and house deed.''
 
Result Script:
<pre>
Player.Additem "BGHideoutKey" 1
ShowMap BGCaveMapMarker
</pre>


==Red Rose Hideout Phase==
==Red Rose Hideout Phase==
Anonymous user

Navigation menu