Jump to content

Using time of day in script


berelinde

Recommended Posts

I'm trying have something happen only at a specific time of day. I don't necessarily want to *set* the time of day, however.

 

If I wanted an action to happen sometime between 2 PM and 8PM, would this work:

 

IF
 OR(14)
AreaCheck("FW2200")
AreaCheck("FW2100")
AreaCheck("FW1600")
AreaCheck("FW1700")
AreaCheck("FW1400")
AreaCheck("FW2400")
AreaCheck("FW5300")
AreaCheck("FW5200")
AreaCheck("FW4200")
AreaCheck("FW4600")
AreaCheck("FW4300")
AreaCheck("FW3800")
AreaCheck("FW0400")
AreaCheck("FW0900")
 TimeGT(13)
 TimeLT(21)
 Global("DoesNotMatter","GLOBAL",1)
 Global("Dialog","LOCALS",0)
 InParty(Myself)
THEN
 RESPONSE #100
SetGlobal("Dialog","LOCALS",1)
StartDialogNoSet(Player1)
END

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...