4
Fork 0

Moved single-use ShowHelpMessage() from _00E_QuestFunctions

Eddoursul 3 months ago
parent 53e1027e8e
commit 4dc08bce05
  1. BIN
      scripts/_00e_phasmalist_playeraliasscript.pex
  2. BIN
      scripts/_00e_questfunctions.pex
  3. 9
      source/scripts/_00e_phasmalist_playeraliasscript.psc
  4. 7
      source/scripts/_00e_questfunctions.psc

Binary file not shown.

@ -10,9 +10,9 @@ Event OnLocationChange(Location akOldLoc, Location akNewLoc)
If ControlQuest.IsBadApparitionLocation(akNewLoc)
If ControlQuest.IsBadApparitionLocation(akOldLoc) == False && ControlQuest.IsApparitionSpawned()
If akNewLoc && akNewLoc.HasKeyword(_00E_Phasmalist_NoSummonLocationTown)
_00E_QuestFunctions.ShowHelpMessage(_00E_Phasmalist_ForceDesummonMessageTown, 3.0)
ShowHelpMessage(_00E_Phasmalist_ForceDesummonMessageTown, 3.0)
Else
_00E_QuestFunctions.ShowHelpMessage(_00E_Phasmalist_ForceDesummonMessage, 3.0)
ShowHelpMessage(_00E_Phasmalist_ForceDesummonMessage, 3.0)
EndIf
RegisterForSingleUpdate(6.0)
EndIf
@ -24,3 +24,8 @@ EndEvent
Event OnUpdate()
ControlQuest.UnsummonApparition()
EndEvent
Function ShowHelpMessage(Message msg, Float fDuration = 5.0, String sEvent = "Empty")
Message.ResetHelpMessage(sEvent)
msg.ShowAsHelpMessage(sEvent, fDuration, 1.0, 1)
EndFunction

@ -172,13 +172,6 @@ Function RefreshFace() Global
EndFunction
Function ShowHelpMessage(Message msg, Float fDuration = 5.0, String sEvent = "Empty") Global
Message.ResetHelpMessage(sEvent)
msg.ShowAsHelpMessage(sEvent, fDuration, 1.0, 1)
EndFunction
Function SafeMoveTo(ObjectReference refToMove, ObjectReference targetRef, Bool bFadeIn = False) Global
; A safer way to move an object reference to another ref than just MoveTo.

Loading…
Cancel
Save