Difference between revisions of "Talk:Special variables"
Jump to navigation
Jump to search
imported>JOG m |
imported>ShadowDancer |
||
Line 44: | Line 44: | ||
--[[User:JOG|JOG]] 16:07, 9 June 2006 (EDT) | --[[User:JOG|JOG]] 16:07, 9 June 2006 (EDT) | ||
Added game month names for anyone trying to either build a script to display it or just for ease of including the month to a script or quest. --[[User:ShadowDancer|ShadowDancer]] |
Revision as of 10:52, 4 July 2006
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 fQuestDelayTime to 0 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...
scn TestQuestScript float fQuestDelayTime float timer float count Begin Gamemode set fQuestDelayTime to 0.01 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
And this displays your current Framerate * 10
qed.
see also here: Quest script
--JOG 16:07, 9 June 2006 (EDT)
Added game month names for anyone trying to either build a script to display it or just for ease of including the month to a script or quest. --ShadowDancer