enderalse/source/scripts/_00e_mq03steinfragmentscn.psc

38 lines
1014 B
Plaintext
Raw Normal View History

Scriptname _00E_MQ03SteinfragmentSCN extends ObjectReference
int DoOnce
int Count
Objectreference Property PlayerRef Auto
Spell Property SoulTrap Auto
MiscObject Property _00E_MQ03Visionsstein Auto
ImagespaceModifier Property _00E_Lighting Auto
EffectShader Property HealFXS Auto
Quest Property _00E_MQ04_StoneofMadness Auto
Book Property _00E_MQ03Forschungsergebnisse Auto
Event OnLoad()
if Count == 0
HealFXS.Play(Self)
Count = 1
endif
endevent
Event OnActivate(ObjectReference akActionRef)
if(akActionRef == Game.GetPlayer())
if DoOnce == 0
self.DisableLinkChain()
SoulTrap.cast(self.GetLinkedRef(), PlayerRef)
Game.GetPlayer().AddItem(_00E_MQ03Visionsstein)
_00E_Lighting.apply()
DoOnce = 1
if (Game.GetPlayer().GetItemCount(_00E_MQ03Visionsstein) >= 6)
_00E_MQ04_StoneofMadness.SetObjectiveCompleted(40)
if (Game.GetPlayer().GetItemCount(_00E_MQ03Forschungsergebnisse) >= 2)
_00E_MQ04_StoneofMadness.setstage(30)
endif
endif
endif
endif
EndEvent