Jump to content

IWD Timers


CamDawg

Recommended Posts

From the TotL triggers page:

 

0x4040 GlobalTimerExpired(S:Name*,S:Area*)

Returns true only if the timer with the name specified and of the type in the 2nd parameter has run and expired.

 

... is not entirely accurate, probably owing to the fact that this was copied from the BG2 page. As I discovered while testing, a timer that has never been set will return true:

 

IF
 GlobalTimerExpired("CDThisTimerNeverExisted","GLOBAL")
THEN
 RESPONSE #100
SetGlobal("CDTimerIsTrue","GLOBAL",1)
END

 

This will return true and set CDTimerIsTrue to 1 in IWD. Suggest changing it to:

 

0x4040 GlobalTimerExpired(S:Name*,S:Area*)

Returns true if the timer with the name specified and of the type in the second parameter has expired or if the timer was not set.

Link to comment

Archived

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

×
×
  • Create New...