Scriptname _00E_NQ23_Functions extends Quest  

;=====================================================================================
;              							 FUNCTIONS                   					 
;=====================================================================================

Function CastExplosion()
	NQ23ShockSpawn.PlaceAtMe(ExplosionRuneShock02)
	Utility.Wait(0.6)
	NQ23ShockSpawn.KnockAreaEffect(1.0, 256)
	Yerai.PlayIdle(Cower)
EndFunction


Function EnableMuldir()

	NQ23_PathiraThoughtBox.Enable()
	MuldirRef.Enable()
	NQ23Target.Enable()
	
EndFunction

Function EnableSteuereinheit()
	Steuereinheit.GetRef().Enable()
	NQ23_PathiraThoughtBox.Disable()
EndFunction


Function StartSC03()
	MuldirRef.MoveTo(NQ23PortMarker)
	MuldirRef.EvaluatePackage()
	NQ23_SC3.ForceStart()
EndFunction
	

Function CompleteQuest()
	Game.GetPlayer().AddItem(Gold001, 450)
	Game.GetPlayer().AddItem(_00E_HandwerksbuchSmithingTo99,1)
	NQ26.SetCurrentStageID(5)
	_00E_EPHandler.GiveEP(2800)
	NQ23Target.Disable()
EndFunction

;=====================================================================================
;              							 PROPERTIES                   					 
;=====================================================================================

MiscObject Property Gold001 Auto

ReferenceAlias Property Steuereinheit Auto

Explosion Property ExplosionRuneShock02 Auto

ObjectReference Property NQ23ShockSpawn Auto
ObjectReference Property NQ23PortMarker Auto
ObjectReference Property NQ23Target  Auto  
ObjectReference Property NQ23_PathiraThoughtBox  Auto  

Idle Property Cower Auto

Actor Property Yerai Auto
Actor Property MuldirRef Auto

Scene Property NQ23_SC3 Auto

Potion Property _00E_HandwerksbuchSmithingTo99 Auto

Quest Property NQ26 Auto