Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scriptname BQ_Necklace extends ObjectReference ;DO NOT COPY THIS, THIS SHOULD AUTOMATICALLY BE GENERATED
- BQ_ControlScript Property qscript Auto ;exchange "BQ_ControlScript" with whatever your script located at the quest is called, be sure to define this variable!
- Event OnEquipped(Actor akActor)
- if (akActor == Game.GetPlayer()) ;checks that the one who equipped the item was the player
- if (qscript.GetCurrentTimeOfDay() >= 11.00) && (qscript.GetCurrentTimeOfDay() <= 13.00) ;checks if the current time is between 11 and 13
- qscript.RequirementsMet() ;launches the tp function
- else ;what the script should do if the condition/s is/are not fullfilled
- qscript.RegisterForSingleUpdateGameTime(qscript.TimeTillEleven()) ;launches onupdate() at 11 am
- ;debug.messagebox("registered for update in: " + qscript.TimeTillEleven() + " hours") ;disabled currently (as seen by the ";". used to check the time till 11
- EndIf
- EndIf
- EndEvent
- Event OnUnequipped(Actor akActor)
- if (akActor == Game.GetPlayer()) ;checks that the player was the one who unequipped the item
- qscript.UnregisterForUpdateGameTime() ;aborts the timer(in the quest script), since the item was unequipped
- EndIf
- EndEvent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement