Go to Cafe Tropico Cafe Tropico
Go to the Blue Parrot Inn
Search:     Advanced search
06/18/13 at 07:07 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  |  Scenario Editor / User Scenarios / Competitions (Moderator: CafeDave)  |  Topic: Event priority?
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: Event priority?  (Read 408 times)
0 Members and 1 Guest are viewing this topic.
Olle_Petersson
General
****
Offline Offline

Gender: Male
Posts: 405


USA love commies!


WWW
« on: 10/05/01 at 07:30 AM »

I've been checking around the events in current scenarios, and found a few where more than one event was triggered simultaneously (by date).
Here a group variable was set in one event and used in another, which wouldn't work if the "use" event was processed before the "set" event.

In another scenario one event checked for victory at the end of each month and another event checked for game lost (by time) at the end of each year.
This means that if I meet the victory conditions during december 1999, then at 2400hrs 1999-12-28 both the victory and loss events will have their conditions met.
Will it be a win or loss?

In short:
What determines in which order events are processed?

TIA
Olle
« Last Edit: 12/31/69 at 07:00 PM by 1013846400 » Report to moderator   Logged
CafeDave
Administrator
Emperor
*****
Offline Offline

Gender: Male
Posts: 2381

Cafe Tropico Founder


WWW
« Reply #1 on: 10/08/01 at 06:05 PM »

Hi Olle,
I have come up against this problem a few times in my scenario too.   It seems that with Tropico, like in RRT2, there are a few built-in event priorities, which I think are as follows:
1. Month end will occur before year end and year begin before month begin.  Same for weeks and days.  This is how RRT2 worked anyway.
2. A called event will actually show its message before any message in the event that called it, even though the conditions and other settings would have been evaluated first in the calling event.  In my scenario I set up a briefing event with a message to appear after the briefing then called the actual intro event which appears first.
3. I think a choice event occurring at the same time as another event will show its message first.

That's all I know of right now.
« Last Edit: 12/31/69 at 07:00 PM by 1013846400 » Report to moderator   Logged

Cafe Tropico: You can log out any time you like, but you can never leave. - Railnut/Robbo/The Eagles

Visit the Blue Parrot Inn and Tavern: http://strategyplanet.com/tropico/trop2/index.shtml

Visit The RIP Track: http://riptrack.iwarp.com
Olle_Petersson
General
****
Offline Offline

Gender: Male
Posts: 405


USA love commies!


WWW
« Reply #2 on: 10/09/01 at 05:03 AM »

Thanks for the reply. I guess I'll have to make a few tests.

Quote
1. Month end will occur before year end ...
This much I guessed too, and it seems sensible.

    Priority by CheckFrequency, from top to bottom:
    • OnlyWhenCalled
    • YearBegin
    • MonthBegin
    • WeekBegin
    • DayBegin
    • DayEnd
    • WeekEnd
    • MonthEnd
    • YearEnd
    Added: This posting was my 100th, which made me a Rebel!!! Cool

    Cheers
    Olle
    Report to moderator   Logged
    CafeDave
    Administrator
    Emperor
    *****
    Offline Offline

    Gender: Male
    Posts: 2381

    Cafe Tropico Founder


    WWW
    « Reply #3 on: 10/09/01 at 08:08 PM »

    Woohoo!  Congrats Olle!  Watch out for Eddy though.  Grin
    « Last Edit: 12/31/69 at 07:00 PM by 1013846400 » Report to moderator   Logged

    Cafe Tropico: You can log out any time you like, but you can never leave. - Railnut/Robbo/The Eagles

    Visit the Blue Parrot Inn and Tavern: http://strategyplanet.com/tropico/trop2/index.shtml

    Visit The RIP Track: http://riptrack.iwarp.com
    Coconut Kid
    Tempus Fugit
    Deus Ex Machina
    ********
    Offline Offline

    Gender: Male
    Posts: 7118

    ˇay caramba! ~~ ˇparedón!


    WWW
    « Reply #4 on: 10/13/12 at 11:38 AM »

    There seems to be a principle here.

    A specifically called event shows its message first no matter if other related events transpired to call it.

    Calendar scheduled events work their way from year begin through to year end. It's cutting it very fine to distinguish between day begin and day end.

    It may be helpful to remember that all the data in the Almanac is produced with these same priorities. The Almanac automatically appears at year end. However, it can be called at any time -- when is the data produced for the 'called' Almanac?
    « Last Edit: 10/13/12 at 11:43 AM by Coconut Kid » Report to moderator   Logged

    Pages: [1]   Go Up
      Send this topic  |  Print  
    Cafe Tropico  |  Tropico  |  Scenario Editor / User Scenarios / Competitions (Moderator: CafeDave)  |  Topic: Event priority?
     
    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!