Tes4Mod:Cobl/Modding/Clock
The UESPWiki – Your source for The Elder Scrolls since 1995
Cobl's clock (added v1.47) will display a message with the current time, day, and date. To use it
- Create your object or item and apply this script (note this will work for both inventory items in Journal mode and objects in the game mode)
scn MyModObjectScript ;Use whichever name suits your mod
begin onActivate
if (IsActionRef player)
set cobClockFAR.Format to 0 ;0 = player chosen format, 1 = time only, 2 = time and day, 3 = time and date
set cobClockFAR.Chime to 0 ;0 = no chime, 1 = chime
cobClockFAR.Activate cobGenActRef, 1
endif
end
begin onEquip
if (GetContainer == player)
set cobClockFAR.Format to 0 ;0 = player chosen format, 1 = time only, 2 = time and day, 3 = time and date
set cobClockFAR.Chime to 0 ;0 = no chime, 1 = chime
cobClockFAR.Activate cobGenActRef, 1
endif
end
[edit] Advanced
If you've used them,the Clock is a Functional Activator) and can be called from any script with
set cobClockFAR.Format to 0 ;0 = player chosen format, 1 = time only, 2 = time and day, 3 = time and date set cobClockFAR.Chime to 0 ;0 = no chime, 1 = chime cobClockFAR.Activate cobGenActRef, 1
If you want the defaults (0, player-chosen format and no chime) you can leave the lines out and just use
cobClockFAR.Activate cobGenActRef, 1

![[Content is available under Attribution-ShareAlike]](http://www.uesp.net/w/images/Somerights.png)