CamDawg Posted February 24, 2008 Share Posted February 24, 2008 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
Avenger Posted February 24, 2008 Share Posted February 24, 2008 So a never set global timer returns false in bg2 but returns true in totl? Link to comment
CamDawg Posted February 24, 2008 Author Share Posted February 24, 2008 So a never set global timer returns false in bg2 but returns true in totl? Yep. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.