Talk:Special variables

Revision as of 14:43, 9 June 2006 by imported>JOG (fQuestDelayTime==0 => Quest Script runs all 5 seconds.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

fQuestDelayTime == 0 means that the quest script will run with the default setting value of 5 seconds.

scn TestQuestScript

float fQuestDelayTime 
float timer
float count

Begin Gamemode
  set count to count + 1
  set timer to timer + getsecondspassed
  if timer > 10
     message "%G" count
     set count to 0
     set timer to 0
  endif 
end

This displays "2" every 10 seconds; q.e.d.

see also here: Quest script

Return to "Special variables" page.