Gametime

From Blood Wiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
Time spent since game was started and keeped from level to level.
 
Time spent since game was started and keeped from level to level.
  
In Blood omnicide gametime is represented by vector:
+
In Blood Omnicide gamecode, gametime is represented by vector:
* x - days since game started
+
* x - minutes
* y - day hours
+
* y - hours
* z - hour minutes
+
* z - days since game started
  
== Representations ==
+
But in scripts, gametime may be represented in different ways.
=== String ===
+
  
Gametime is represented as string vector:
+
=== String gametime ===
  
Example:
+
String vector:
 
  // day 5, 21 hour 31 minutes
 
  // day 5, 21 hour 31 minutes
  '5 21 31'
+
  '32 21 5'
  
 
=== Float (daytime) ===
 
=== Float (daytime) ===
  
Daytime float is days spent since game start + day fraction.
+
Days spent since game start + day fraction:
 +
// day 5, 21 hour 31 minutes
 +
5.8965
 +
 
 +
=== Float (yeartime) ===
 +
 
 +
Year spent since game start + year fraction:
 +
// day 5, 21 hour 31 minutes
 +
0.0161549
 +
 
 +
=== Moon time float ===
 +
 
 +
Moon cycle time is 28 days.
 +
Moon cycle origin is 12 AM.
 +
In order to get full mon at game start, moon cycle origin is set to -10 days.
 +
 
 +
Moon phases (0-100%):
 +
* 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
 +
0.5499
  
Example:
 
// 6 days 17 hours 4 minutes
 
6.711
 
  
 
== Known constants ==
 
== Known 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
 +
 +
== Console commands (debug only) ==
 +
 +
* '''cmd gametime''' - show current time
 +
* '''timeflow''' ''X'' - set time flow speed
 +
* '''timetest''' ''X'' - start a level with certain gametime string
  
 
[[Category:Glossary]]
 
[[Category:Glossary]]
  
 
__NOTOC__
 
__NOTOC__

Revision as of 01:16, 18 July 2012

Time spent since game was started and keeped from level to level.

In Blood Omnicide gamecode, gametime is represented by vector:

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

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

String gametime

String vector:

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

Float (daytime)

Days spent since game start + day fraction:

// day 5, 21 hour 31 minutes
5.8965

Float (yeartime)

Year spent since game start + year fraction:

// day 5, 21 hour 31 minutes
0.0161549

Moon time float

Moon cycle time is 28 days. Moon cycle origin is 12 AM. In order to get full mon at game start, moon cycle origin is set to -10 days.

Moon phases (0-100%):

  • 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
0.5499


Known constants

  • Kain starts a game at day 0 ~8 PM
  • When Kain is being ressurected as vampire, gametime day 4 ~8 PM

Console commands (debug only)

  • cmd gametime - show current time
  • timeflow X - set time flow speed
  • timetest X - start a level with certain gametime string
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox