Part five of a tutorial on making your own quest in the creation kit.
1:06 - 5:30 Bug Fix 1 - Quest Giver could die during Quest
5:32 - 9:23 Bug Fix 2 - Could pickpocket Item instead of killing Enemy
9:28 - 12:57 Bug Fix 3 - Enenmy could die before the Quest began
12:59 - 14:06 Bug Fix 4 - Player could lose the Item
14:28 - 19:11 Testing
Code:
//On The Quest Giver Script
Event OnDeath(Actor killer)
if (!MODQuest.IsCompleted())
MODQuest.SetStage(100)
endif
EndEvent
//On Quests Stage 30 Script
if (!GetStageDone(20))
SetObjectiveDisplayed(10, False)
endif
//On Enemy Script
Event OnDeath(Actor killer)
if (MODQuest.GetStage() *PUT A LESS THAN SIGN HERE* 30)
MODQuest.SetObjectiveDisplayed(20)
MODQuest.SetStage(20)
endif
EndEvent
//On Quests Stage 10 Script
Alias_Thief.GetReference().Enable()
Download
0 formats
No download links available.
Creation Kit Tutorial 6 - Making a Quest (Part 5) | NatokHD