32 lines
895 B
Plaintext
32 lines
895 B
Plaintext
Scriptname _00E_CapitalCityUaljaanVuulPotionSc extends activemagiceffect
|
|
|
|
Event OnEffectStart(Actor akCaster, Actor akTarget)
|
|
|
|
NQ33.RegisterForPotion()
|
|
_00E_NQ33_sPotionDrink.Show()
|
|
_00E_MagicRandomM.Play(Game.GetPlayer())
|
|
MAGRestorationConcentrationFire2D.Play(Game.GetPlayer())
|
|
FXReadScrollsImod.Apply()
|
|
RegisterForSleep()
|
|
|
|
EndEvent
|
|
|
|
Event OnSleepStart(float afSleepStartTime, float afDesiredSleepEndTime)
|
|
|
|
; Dispel this effect when two days are passed (and the player
|
|
; goes to sleep -- for technical reasons).
|
|
|
|
if NQ33.GetCurrentStageID() >= 5
|
|
UnregisterForSleep()
|
|
Dispel()
|
|
endif
|
|
|
|
EndEvent
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
Message Property _00E_NQ33_sPotionDrink Auto
|
|
Sound Property _00E_MagicRandomM Auto
|
|
Sound Property MAGRestorationConcentrationFire2D Auto
|
|
ImageSpaceModifier Property FXReadScrollsImod Auto
|
|
_00E_NQ33_Functions Property NQ33 Auto |