I'm having trouble with this timer script.
scn blah
(floats and the like here( variables) )
begin gamemode
set fQuestDelayTime 0.001
if ( DoOnce01 )
return
elseif ( timer == 1 )
set timer to timer + getsecondspassed
else
set cityofsoulsAI to 1
AASkeletonSpawn.placeatme AASkeletonSoldier, 1
SoulStorage.additem Soul, 1
set DoOnce01 to 1
endif
endif
if ( DoOnce02 )
return
elseif ( timer == 4 )
set timer to timer + getsecondspassed
else
AASkeletonSpawn.placeatme AASkeletonSoldier, 1
SoulStorage.additem Soul, 1
set DoOnce02 to 1
endif
endif
if ( DoOnce03 )
return
elseif ( timer == 6 )
set timer to timer + getsecondspassed
else
SoulStorage.additem Soul, 1
set DoOnce03 to 1
endif
endif
if ( DoOnce05 )
return
elseif ( timer == 8 )
set timer to timer + getsecondspassed
else
SoulStorage.additem Soul, 1
set DoOnce05 to 1
endif
endif
if ( DoOnce06 )
return
elseif ( timer == 10 )
set timer to timer + getsecondspassed
else
SoulStorage.additem Soul, 1
set DoOnce06 to 1
endif
endif
if ( DoOnce07 )
return
elseif ( timer == 12 )
set timer to timer + getsecondspassed
else
SoulStorage.additem Soul, 1
set DoOnce07 to 1
endif
endif
end
The problem is that it adds all the "Souls" into the container at the moment the conditions begin ( note, I didn't put those if statments into this thread) rather then just one then wait two seconds then add another etc. Any help would be helpful!
Sil