Event appear at random time (or once a week!?)

Post » Thu Jun 21, 2012 1:07 pm

How would i do this ? Making a scene / event etc. appear at a random time in the game .... or like once a week. You might know the Khajiit merchants sitting in front of some cities sometimes. Is that scripted weekly or random ? And how would I do this with the Creation Kit ?
User avatar
Izzy Coleman
 
Posts: 3336
Joined: Tue Jun 20, 2006 3:34 am

Post » Wed Jun 20, 2012 10:01 pm

Off the top of my head, something like this should work.


float MyVar

Function RandomScene()
MyVar = (Random(1, 7) * 24)
RegisterForUpdate(MyVar)
EndFunction

Event OnUpdate()
; play scene code
RandomScene()
EndEvent
User avatar
JUDY FIGHTS
 
Posts: 3420
Joined: Fri Jun 23, 2006 4:25 am


Return to V - Skyrim