Difference between revisions of "Exampelscript: Time of Day in 24 Hour Format"

m
fix grammar in explanation of script
imported>NNW
(Description improved)
m (fix grammar in explanation of script)
 
Line 3: Line 3:




The Global Variable [http://www.creationkit.com/Global GameHour] can be used to return the actual Ingame Time. However, the return value is in 100 format: So is the output value: 10.25 for 10:15 'clock.
The Global Variable [http://www.creationkit.com/Global GameHour] can be used to return the actual time in-game. However, the return value is in float format: So the output value is, for example: 10.25 for 10:15 o'clock.


Because of that, we must use the Papyrus Function: [http://www.creationkit.com/Floor_-_Math Math.Floor] to remove the portion after the Decimal point and then store the remaining integer in a additional Variable.
Because of that, we must use [http://www.creationkit.com/Floor_-_Math Math.Floor] to remove the portion after the decimal point and then store the remaining integer in a additional variable.