Gametime

From Blood Wiki
(Difference between revisions)
Jump to: navigation, search
(Console commands (debug only))
 
(11 intermediate revisions by one user not shown)
Line 1: Line 1:
Time spent since game was starte. Keeped from level to level.
+
Time spent since game was started. Keeped from level to level.
  
== Blood Omnicide constants ==
+
Blood Omnicide gametime constants:
 
* Kain starts a game at day 0 ~8 PM
 
* Kain starts a game at day 0 ~8 PM
 
* When Kain is being ressurected as vampire, gametime: day 4 ~8 PM
 
* When Kain is being ressurected as vampire, gametime: day 4 ~8 PM
Line 7: Line 7:
 
* 60 minutes per hour
 
* 60 minutes per hour
 
* 24 hours per day
 
* 24 hours per day
* 265 days per year
+
* 365 days per year
 
* 28 days per moon cycle
 
* 28 days per moon cycle
 
* moon cycle origin - day 9, 12 AM
 
* moon cycle origin - day 9, 12 AM
  
In gamecode, gametime is represented by vector:
+
== Representation ==
 +
 
 +
Generally gametime is represented by vector:
 
* x - minutes
 
* x - minutes
 
* y - hours
 
* y - hours
Line 37: Line 39:
 
=== Moon time ===
 
=== Moon time ===
  
Moon phases (0-100%):
+
Current moon cycle fraction:
* 0% - new
+
* 0-50% - raise
+
* 50% - full
+
* 50-100% - fall
+
 
+
Moon time is represented by float moon cycles + cycle fraction.
+
 
  // day 5, 21 hour 31 minutes
 
  // day 5, 21 hour 31 minutes
 
  0.5499
 
  0.5499
  
== Console commands (debug only) ==
+
Moon time as phases:
 +
* 0 to 0.04 - new moon
 +
* 0.04 to 0.5 - raise
 +
* 0.5 to 0.54 - full moon
 +
* 0.54 to 1 - fall
  
* '''cmd gametime''' - show current time
+
==Console commands (debug only)==
* '''timeflow''' ''X'' - set time flow speed
+
{{cmd|cmd gametime|show current time}}
* '''timetest''' ''X'' - start a level with certain gametime string
+
{{cmd|timeflow speed|show current time}}
 +
{{cmd|timetest "gametime"|start a level with certain gametime string ('''restart''' required)}}
  
 
[[Category:Glossary]]
 
[[Category:Glossary]]
 
+
{{finished}}
 
__NOTOC__
 
__NOTOC__

Latest revision as of 00:49, 31 July 2012

Time spent since game was started. Keeped from level to level.

Blood Omnicide gametime constants:

  • Kain starts a game at day 0 ~8 PM
  • When Kain is being ressurected as vampire, gametime: day 4 ~8 PM
  • 1 game minute per real second
  • 60 minutes per hour
  • 24 hours per day
  • 365 days per year
  • 28 days per moon cycle
  • moon cycle origin - day 9, 12 AM

[edit] Representation

Generally gametime is represented by vector:

  • x - minutes
  • y - hours
  • z - days since game started

But in scripts, gametime may be represented in different ways.

[edit] Vector string (gametime)

// day 5, 21 hour 31 minutes
'32 21 5'

[edit] Float (daytime)

Days spent since game start + day fraction:

// day 5, 21 hour 31 minutes
5.8965

[edit] Float (yeartime)

Year spent since game start + year fraction:

// day 5, 21 hour 31 minutes
0.0161549

[edit] Moon time

Current moon cycle fraction:

// day 5, 21 hour 31 minutes
0.5499

Moon time as phases:

  • 0 to 0.04 - new moon
  • 0.04 to 0.5 - raise
  • 0.5 to 0.54 - full moon
  • 0.54 to 1 - fall

[edit] Console commands (debug only)

 cmd gametime : show current time
 timeflow speed : show current time
 timetest "gametime" : start a level with certain gametime string (restart required)
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox