Go to Cafe Tropico Cafe Tropico
Go to the Blue Parrot Inn
Search:     Advanced search
06/19/13 at 06:21 PM
Welcome, Guest. Please login or register.

Login with username, password and session length
207424 Posts in 10531 Topics by 2074 Members
Latest Member: cpmoneymakertutorials
   Home   Help Search Calendar Login Register  
Cafe Tropico  |  Tropico 2: Pirate Cove  |  Pirate Cove Editor/Scripting Help (Moderator: CafeDave)  |  Topic: Day, month, year or game tick?
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: Day, month, year or game tick?  (Read 648 times)
0 Members and 1 Guest are viewing this topic.
garyamort
Tourist
*
Offline Offline

Posts: 4


« on: 01/18/05 at 10:02 AM »

Looking through the various codes, I see a lot of code where events are based on game ticks.

For example, an event that occurs after 5 years, a variable is set to current game tick + (3652*5)

And than a daily action is setup to check for game tick greater than the variable.

What I'm curious about, is why not just use a yearly action to update a variable(number of years)

Than use a monthly action to check that value?

My thinking is that I'd rather miss the "exact" 5 year turnover by a month or so than add more daily or game tick checks to the game.

So is there any rhyme or reason to game ticks, like being more accurate or is it just the way the scenarios were written so people wrote their scenarios that way?
Report to moderator   Logged
s_stabeler
Emperor
******
Offline Offline

Gender: Male
Posts: 1008


el presidante- no coups yet.


« Reply #1 on: 01/29/05 at 05:25 AM »

more accurate, and have you looked at the official senasrios? they use game tick, so it means the player gets an extra 1/2 second real time playing at most.
Report to moderator   Logged
Pages: [1]   Go Up
  Send this topic  |  Print  
Cafe Tropico  |  Tropico 2: Pirate Cove  |  Pirate Cove Editor/Scripting Help (Moderator: CafeDave)  |  Topic: Day, month, year or game tick?
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!