The Script Animated Clock (animatedClock) is a small, non-synchronized addon for card builders. It cannot be used without being directly installed on a card.
This script ensures that the built-in clocks which are based on this script represent either the InGame time or the real-time.
The archive contains 3 digital and 3 analog clocks that can be used. Of course, everyone can also use their own clocks or displays.
Mod installation and description:
ModDesc.xml entries Only one entry is required in the ModDesc.xml, and the following entry is added to the section:
<sourceFile filename=”{DeinScriptPfad}/animatedClock.lua” />
UserAttribute and explanation
onCreate
Default value: NA
Type: ScriptCallback
modOnCreate.animatedClock to bind the object to the animated clock functions
digits
Default value: NA
Type: String
Index assignment to the digital numbers that represent the time
hour pointer
Default value: NA
Type: String
Index assignment to the hour hand of an analog clock
minute pointer
Default value: NA
Type: String
Index assignment to the minute hand of an analog clock
second pointer
Default value: NA
Type: String
Index assignment to the second hand of an analog clock
Optional: a second hand does not have to be used
pointer steps
Default value: FALSE
Type: Boolean
Applies only to analog clocks
if TRUE then the seconds and minutes are displayed in steps (clicks), if FALSE then fluently continuously
realtime
Default value: FALSE
Type: Boolean
if TRUE then the real time or computer time is displayed, if FALSE the InGame time is displayed
Notes With digital displays there is ONLY the possibility to display 4 or 6 numbers, i.e. either hours and minutes or hours, minutes and seconds.