Skip to content

Commit

Permalink
add misc quest to temple
Browse files Browse the repository at this point in the history
  • Loading branch information
mort65 committed Oct 15, 2024
1 parent 5dc3f59 commit f963a5e
Show file tree
Hide file tree
Showing 18 changed files with 210 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 4
Scriptname qf_zzzmrt_dibellan_lust_qst_04000092 Extends Quest Hidden

;BEGIN ALIAS PROPERTY Priestess
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Priestess Auto
;END ALIAS PROPERTY

;BEGIN FRAGMENT Fragment_2
Function Fragment_2()
;BEGIN AUTOCAST TYPE zzzmrt_sp_dibellan_lust_qst_script
Quest __temp = self as Quest
zzzmrt_sp_dibellan_lust_qst_script kmyQuest = __temp as zzzmrt_sp_dibellan_lust_qst_script
;END AUTOCAST
;BEGIN CODE
kmyQuest.DibellanLustCustomers_g.SetValue(0)
UpdateCurrentInstanceGlobal(kmyQuest.DibellanLustCustomers_g)
setObjectiveDisplayed(0, abForce = true)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_0
Function Fragment_0()
;BEGIN CODE
FailAllObjectives()
Stop()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_3
Function Fragment_3()
;BEGIN CODE
SetObjectiveCompleted(0)
setObjectiveDisplayed(1, abForce = true)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_1
Function Fragment_1()
;BEGIN AUTOCAST TYPE zzzmrt_sp_dibellan_lust_qst_script
Quest __temp = self as Quest
zzzmrt_sp_dibellan_lust_qst_script kmyQuest = __temp as zzzmrt_sp_dibellan_lust_qst_script
;END AUTOCAST
;BEGIN CODE
CompleteAllObjectives()
kmyQuest.MainScript.giveTempleQuestReward()
Stop()
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 5
Scriptname qf_zzzmrt_temple_escort_04000098 Extends Quest Hidden

;BEGIN ALIAS PROPERTY Client01
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_Client01 Auto
;END ALIAS PROPERTY

;BEGIN FRAGMENT Fragment_4
Function Fragment_4()
;BEGIN AUTOCAST TYPE zzzmrt_sp_temple_escort_qst_script
Quest __temp = self as Quest
zzzmrt_sp_temple_escort_qst_script kmyQuest = __temp as zzzmrt_sp_temple_escort_qst_script
;END AUTOCAST
;BEGIN CODE
FailAllObjectives()
Stop()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_2
Function Fragment_2()
;BEGIN AUTOCAST TYPE zzzmrt_sp_temple_escort_qst_script
Quest __temp = self as Quest
zzzmrt_sp_temple_escort_qst_script kmyQuest = __temp as zzzmrt_sp_temple_escort_qst_script
;END AUTOCAST
;BEGIN CODE
CompleteAllObjectives()
Stop()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_3
Function Fragment_3()
;BEGIN AUTOCAST TYPE zzzmrt_sp_temple_escort_qst_script
Quest __temp = self as Quest
zzzmrt_sp_temple_escort_qst_script kmyQuest = __temp as zzzmrt_sp_temple_escort_qst_script
;END AUTOCAST
;BEGIN CODE
setObjectiveDisplayed(1)
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 1
Scriptname zzzmrt_sp_dibel_lust_end_tif_0400009e Extends TopicInfo Hidden

;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
getowningquest().setstage(15)
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 1
Scriptname zzzmrt_sp_dibel_lust_init_tif_0400009b Extends TopicInfo Hidden

;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
zzzmrt_sp_main_qst_script MainScript = GetOwningQuest() As zzzmrt_sp_main_qst_script
MainScript.DibellanLust_Qst.start()
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Scriptname zzzmrt_sp_dibellan_lust_qst_script extends Quest Conditional

GlobalVariable property DibellanLustCustomers_g Auto
Int property iRequiredTotalCustomers = 10 Auto Hidden Conditional
Quest property DibellanLust_Qst Auto
zzzmrt_sp_main_qst_script property MainScript auto

Function updateQuest(int iNum)
if (iNum < 1)
return
endif
if (DibellanLust_Qst.isrunning() && DibellanLust_Qst.getStage() == 1)
if DibellanLust_Qst.ModObjectiveGlobal(iNum, DibellanLustCustomers_g, 0, iRequiredTotalCustomers)
DibellanLust_Qst.setStage(5)
endif
endif
endfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Scriptname zzzmrt_sp_temple_escort_qst_script extends Quest Conditional

ReferenceAlias Property ClientAlias Auto
zzzmrt_sp_main_qst_script property MainScript auto

Event OnInit()
actor client = ClientAlias.GetReference() as Actor
Debug.trace("Simple Prostitution: Temple of Dibella client: "+ client.GetDisplayName() + " | " + client)
EndEvent



Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Scriptname zzzmrt_sp_temple_qst_client_alias_scr extends ReferenceAlias Conditional

event OnReset()
Debug.Trace("Simple Prostitution: Client is gone.")
GetOwningQuest().setStage(10)
endevent

event OnDying(Actor akKiller)
Debug.Trace("Simple Prostitution: Client is dying.")
GetOwningQuest().setStage(10)
endevent
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 1
Scriptname zzzmrt_temple_escort_end_tif_0400075b Extends TopicInfo Hidden

;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
zzzmrt_sp_temple_escort_qst_script escortScript = GetOwningQuest() As zzzmrt_sp_temple_escort_qst_script
escortScript.MainScript.setTempleClient(akSpeaker)
GetOwningQuest().setStage(15)
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 1
Scriptname zzzmrt_temple_escort_tif_04000758 Extends TopicInfo Hidden

;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
zzzmrt_sp_main_qst_script MainScript = GetOwningQuest() As zzzmrt_sp_main_qst_script
if MainScript.TempleEscort_Qst.isRunning()
MainScript.TempleEscort_Qst.setstage(10)
while MainScript.TempleEscort_Qst.isRunning()
utility.wait(0.1)
endWhile
endif
MainScript.TempleEscort_Qst.start()
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit f963a5e

Please sign in to comment.