Difference between revisions of "Talk:Special variables"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>TyrHi7
m
imported>Qazaaq
(revert)
Line 9: Line 9:
  Begin Gamemode
  Begin Gamemode
   set fQuestDelayTime to 0
   set fQuestDelayTime to 0
   set count to count   1
   set count to count + 1
   set timer to timer   getsecondspassed
   set timer to timer + getsecondspassed
   if timer > 10
   if timer > 10
       message "%G" count
       message "%G" count
Line 28: Line 28:
  Begin Gamemode
  Begin Gamemode
   set fQuestDelayTime to 0.01
   set fQuestDelayTime to 0.01
   set count to count   1
   set count to count + 1
   set timer to timer   getsecondspassed
   set timer to timer + getsecondspassed
   if timer > 10
   if timer > 10
       message "%G" count
       message "%G" count

Revision as of 17:31, 1 September 2007

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)