Go to Cafe Tropico Cafe Tropico
Go to the Blue Parrot Inn
Search:     Advanced search
06/19/13 at 04:44 AM
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: Forcing random events
Pages: 1 [2]   Go Down
  Send this topic  |  Print  
Author Topic: Forcing random events  (Read 2937 times)
0 Members and 1 Guest are viewing this topic.
artemais
General
****
Offline Offline

Gender: Male
Posts: 365


Hawaii's Pineapple King


« Reply #25 on: 03/12/05 at 10:40 PM »

Okay, now add in 60 more events, each looping.

I am certain that there is processor bog down when enough looping occurs.  Some time ago I tried to write a scenario that had about 15 events looping through all units at the end of each month.  In addition, I had another 5 or 6 events looping thorugh all buildings at the end of each month (I'm a checkfrequencymonthend kinda guy).  Anyhow, the scenario worked slow, but fine, until the mid 70's, until my script fired to add a massive population increase at one time (added 100 unemployed "immigrants" from a nearby island to simulate a complete natural disaster there).  It was at this point that my computer could no longer loop through all the units and froze.  I continually loaded saved games to try to remedy it.  Still, every time that script hit, I could count on it freezing the game.  I know that it was not a bad script as sometimes I would get another two months in before it happened, sometimes three months, sometimes none.  I even switched the game speed and checked it on every level except pause.  On the slowest speed I was actually able to get an additional five months before it overloaded the computer.  This was the longest I got out of my tests.  Please keep in mind that this is on MY ANCIENT COMPUTER.

I backburnered the project for obvious reasons...
Report to moderator   Logged
rickrick
Tourist
*
Offline Offline

Posts: 25



« Reply #26 on: 03/13/05 at 01:39 AM »

Okay, now add in 60 more events, each looping.

Sigh  Undecided ... There's just no point in continuing this.
Report to moderator   Logged
rickrick
Tourist
*
Offline Offline

Posts: 25



« Reply #27 on: 03/13/05 at 01:04 PM »

This information provided in the interests of clarity.

lol, I've just been Coconofied. Thats my redneck coming thru. Mom says "Handburger" (Hamburger), Mom-in-Law says "Pasghetti" (spaghetti), Aunt says "Tatters" (Potatoes), and I often say "Turn left here" when I actually mean right. But we all understand what each other are meaning and thats good enough for us.
Report to moderator   Logged
Railnut
Senior Ranking Member of the Board, Second Only to CafeDave
Global Moderator
Deity
*****
Offline Offline

Gender: Male
Posts: 3872



« Reply #28 on: 03/13/05 at 01:35 PM »

Let's see if I got this right.

If two guys who cannot speak had a debate, whatever conclusion they reach would be a mute moot point? Huh

Or even funnier, to quote Friends.
Joey: "It's a moo point."
Ross: "Moo, Joe?"
Joey: "Yeah. You know, like a cow's opinion. It's moo."
Report to moderator   Logged

(((())))
\\  //
\/
Cool
The sky is not the limit......the ground is!
Live to jump. Jump to live.
Servant Corps
Tourist
*
Offline Offline

Posts: 46


« Reply #29 on: 05/03/09 at 10:47 PM »

Is it possible to create an event on a scenario, that forces one of the events from the random events list, to happen? Like, forcing a marine strike to take place in a specific date...

A bit too late, I admit, but I think...erm...maybe?

Quote
Condition Random0To100 < 4
Condition Year > 1960
Condition Year <= 1990

GeneralEffect CallEvent DoStrike

MessageTypeDossier

MessageText "Presidente,\n\nAre you yawning, Presidente? Perhaps you could use a little nappie.  The people of Tropico are all doing just that, right now. \n\nThey also ask when you will go away.\n\nI only report this as your loyal servant, Presidente."   

This is from the "Cowboy" mission. I haven't played it, so I don't know exactly what "DoStrike" does, altough from the description, it imply a temporary work stoppage. Ther is also two "CallEvents", "DoUnhap" and "Dohappy", and both events occur in the Torpmina mission.

Since all three 'callevents' come after "GeneralEffect", it would mean that all three events should be in the actual mission. But they aren't there at all. This states that prehaps it is possible to force these "Random Events" to occur, such as Strikes.


I am wrong. Dohappy and DoUnhap are events that are inside the code, and they just basically change the respect of everyone either up or down.

The event "DoStrike", in order to simulate a work stoppage, did this:
Quote
LoopThroughAllUnits

GeneralEffect SetTo UnitUIRestNeed 100

Sadly, this has the effect of forcing everyone to go on strike, not just a marine strike! No wonder the event was stating that the people of Tropico were 'resting'. At least this provide another way to simulate an national strike rather than having buildings mysteriously explode when you deny them wages.
« Last Edit: 05/03/09 at 11:03 PM by Servant Corps » Report to moderator   Logged
Pages: 1 [2]   Go Up
  Send this topic  |  Print  
Cafe Tropico  |  Tropico  |  Scenario Editor / User Scenarios / Competitions (Moderator: CafeDave)  |  Topic: Forcing random events
 
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!