Random Events Mod V0.1 - Olympics

Discussion in 'Civ4 - Creation & Customization' started by DireAussie, Nov 14, 2005.

Thread Status:
Not open for further replies.
  1. Xanthra

    Xanthra Chieftain

    Joined:
    Nov 13, 2005
    Messages:
    29
    Location:
    Vancouver,BC
    Does it stop all fighting and invoke complete world peace like in real life? wasnt that the prpose of the Olympics? all fighting would stop and nations would prove there strengths by competing in the games.
     
  2. mayonaise

    mayonaise Chieftain

    Joined:
    Oct 29, 2005
    Messages:
    62
    just wanted to chime in, awesome idea! i can't wait until more of this stuff is out, each step makes the game much better

    ideas for random events:

    climate shifts: although they were rare they did happen. the "little ice age" for example.

    alien landing!: grants all techs to random civ. okay just kidding

    Revolutions/civil wars: This would be my favorite, although I think it should be based less on randomness and more on controllable factors such as having your whole state one religion except one city, etc.
     
  3. Enigma

    Enigma Chieftain

    Joined:
    Jan 5, 2003
    Messages:
    31
    Historically, the Ancient Olympics tended to to do something along those lines, namely wars were suspended for the duration of the Olympics. Conversely, for the Modern Olympics, the Olympics were suspended during WWI and WWII.
     
  4. thescaryworker

    thescaryworker Builder

    Joined:
    Jul 21, 2003
    Messages:
    480
    Location:
    In my mind
    Of course not!:rolleyes: It only EVER stopped wars in ancient greece. Athens&Sparta would stop quabbling, comptete, and start bashing eachother with spears for 4 years. Now, wars stop the Olympics. (may I recall 1918 when the olympics wasn't held because of WW1, and they didn't have them during WW2, I think, either)
     
  5. Enigma

    Enigma Chieftain

    Joined:
    Jan 5, 2003
    Messages:
    31
    Woah, synced responses :)
     
  6. R-A-N-M-A

    R-A-N-M-A Chieftain

    Joined:
    Nov 9, 2005
    Messages:
    51
    Location:
    Canookada.
    That having been said, is one of the parameters that the Olympics cannot occure in a nation at war?
     
  7. Herandar IV

    Herandar IV Pondering... pondering...

    Joined:
    Nov 11, 2005
    Messages:
    391
    Location:
    On the location locating locator.
    Great idea. Can you set it up to use Roman numerals instead of Arabic? The 3 Olympiad does sound as cool as the III Olympiad.

    Now does it end as soon as the first player moves out of the Ancient Era?
     
  8. Kid_icoris

    Kid_icoris Chieftain

    Joined:
    Feb 7, 2005
    Messages:
    69
    Location:
    Kelowna BC Canada
    one thing to also consider with the random events mod is terrorist attacks, say once you get to the modern area implement a new tech called fanatism and with that terrorist attacks, they work againts you and AI civs, maybe say destroying a city improvement and reducing pop, and also if a terrorist attack originates from a certain nation that will allow you to attack that nation without getting a bad rep from other nations, i dont know how that would work but i think it would be a *****en' idea :>
     
  9. Shadowlord

    Shadowlord Rare Poster!

    Joined:
    Apr 22, 2002
    Messages:
    138
    Personally, I'd rather terrorist attacks be a spy mission, but who knows if that's possible.

    Well, it could always be possible for random terrorist attacks to happen, of course. :p
     
  10. DireAussie

    DireAussie Chieftain

    Joined:
    Nov 12, 2005
    Messages:
    60
    Thanks for the feedback everyone!

    You can change the values in the CvRandomEventsScreen file. Its really easy as I've commented which values do what.

    I'm pretty sure there's no function that lets you increase the current amount of research. I'd have to double check.
    That's what I was going to look into. As I was saying I think there's a function that lets you save script data into cities which I think is included in save games. It requires more investigation.

    Yes, and the AI's get the bonus too.

    I'm planning to add all types of events. I'm still not sure about how feasable some of them are though with present script capabilities. Plagues will be the next thing in, assuming I'm able to find a good solution for file input/output for saving/loading games, and a few other things I have planned.

    Ideally I would have liked to do volcanoes or hurricanes and have graphics on the map for it but I dont think its possible at this stage.

    You can only query this value, its not possible to directly change the health of a city as the game calculates it automatically from the tiles around the city and the city's building.

    One thing I need to investigate is whether it is possible to adjust the resources on an individual tile. Perhaps one way is to create a new resource type, like the "fallout", which you can add around cities by scripts. I'm not sure if this is possible.

    Will do.

    Roman numerals was how I originally wanted to do it but it requires a fair bit of extra work. Maybe someone else could do it for me :p

    That's what I was going to do, assuming its possible to read city locations (I'm not at home now so I cant check this).
     
  11. Kid_icoris

    Kid_icoris Chieftain

    Joined:
    Feb 7, 2005
    Messages:
    69
    Location:
    Kelowna BC Canada
    I just got finished playing with this mod enabled and it rocks hard!!. a couple of suggestions and comments, a couple people have suggested having to build a wonder to enable the random event, i think this would be a whicked idea but to elaberate on this i tihnk that you should have to build two wonders, one for the ancient era and one for the modern area. Im not too up on my history but im pretty sure there was a period of time when the olympics werent around. i think it should happen through out the game but have it so that when you build the ancient era it gives certain bonuses and when you build the mordern one it gives different ones. Also it was suggested that you should have to vote on which city its held. This is another whicked idea, when i played the olympics where just held in the same two cities the whole time, this would help make the mod more real. This is also where building the wonders to enable the olympics would come in, this would enable the vote. Another comment on the plague as a religion type to set up, this is a good idea but how would you get rid of it, im pretty sure in mordern days its hard to find somewhere with the plague. Also i made a suggestion for another mod in another thread that i think would work well, having a buildable wonder such as the NFL, or NHL or NBA, and for a random event having the super bowl or the stanely cup playoffs, you could have the benefits be something like +10 commerece for the turn and +5 sheilds in every city for the turn. Just some suggestions, and again awesome idea for a mod i love it!!!
     
  12. Enigma

    Enigma Chieftain

    Joined:
    Jan 5, 2003
    Messages:
    31
    Ignore, mispost
     
  13. Enigma

    Enigma Chieftain

    Joined:
    Jan 5, 2003
    Messages:
    31
    Just a thought for a bit better formatting:

    Code:
    self.TITLE_TEXT = "<font=4>" + "Ancient Games of the " + str(self.olympicCounter) + suffix(self.olympicCounter) + " Olympiad" + "</font>"
    
    def suffix(counter):
           if(((counter % 100) == 11)||((counter % 100) == 12)||((counter % 100) == 13)):
              return "th"
           else if ((counter % 10) == 1) :
              return "st"
          else if ((counter % 10) == 2):
              return "nd"
          else if ((counter % 10) == 3):
              return "rd"
          else:
              return "th"
    
    Note: I'm fairly fluent in most other programming languages besides python, so if my syntax is a bit off, that's why.

    || = or
     
  14. Shadowlord

    Shadowlord Rare Poster!

    Joined:
    Apr 22, 2002
    Messages:
    138
    If the plague is a religion, you would be able to easily block it by switching to the civic which prevents non-state religion spread.

    IMHO it might be worth making plagues be a building instead, and using scripts to spread them.
     
  15. Michel Keijzers

    Michel Keijzers Chieftain

    Joined:
    Nov 15, 2005
    Messages:
    20
    Winning an olympics is a nice feature. Maybe winning the olympics can be made on something interactive. Too bad there are no sport schools (is this english?) as building to build. However when an olympics is held the number of great cultural people or something like that can be used to 'spend' for the olympics. The higher the spending the more chances. The winner should be rewarded likewise (more culture points and/or gold). Or maybe a free artist since it will influence lots of people.
     
  16. Tunch Khan

    Tunch Khan King

    Joined:
    Jun 19, 2005
    Messages:
    805
    Location:
    Williamsburg, Brooklyn
    Very nice mod. Some people here have suggested to have wonders etc, but my suggestion would be to have a colosseum / stadium type of building as a prerequiste.
     
  17. Thracius

    Thracius Chieftain

    Joined:
    Nov 4, 2005
    Messages:
    17
    Location:
    Michigan
    Haven't tried this mod yet, but it sounds great! :goodjob:

    Some ideas... I think the vote for the Olympic Games would be great. If certain Civ's are at war at the time the vote comes up, give them the option to sign a Peace Treaty (this would have to be unanimous between the parties involved). If they don't sign the treaty, they can't compete.

    Also, what about adding events to the Olympic Games? In ancient times, it could be chariot races and the like, and once railroads come into play, the modern events like football/soccer could take place. Maybe start out with 6 events, and add more as time progresses. The winners of the different events would have happiness/culture added to the cities or entire civs until the next Olympic Games take place.

    Also, maybe as time progresses the summer/winter games could alternate as they do currently. Geography could come into place with tundras/ice cities having a better chance of getting the winter games, and cities with warmer climates hosting the summer games.

    Also, what about an option for adding some of your tax/research/culture percentage to Olympic Training for a short duration prior or during the Games? It could maybe work something like the unit promotions?

    I like the idea of the IOC, too!

    This could bring a whole new dimension of competition to the game. :crazyeye:
     
  18. hajmyis

    hajmyis Chieftain

    Joined:
    Jun 19, 2005
    Messages:
    68
    Location:
    colorado
    where would i save this file?????
     
  19. Wizard of OU

    Wizard of OU Chieftain

    Joined:
    Nov 8, 2005
    Messages:
    14
    I have a fabulous idea. Have religions be the same way. When the tech to "found" a religion is discovered it chooses the city at random that is the Holy City. This makes people (like me) who never pick a spiritual leader get Buddhism. Also, it burns people who only go after Religious techs. I played one game where I founded 4 religions, I'm playing one game where there was a civ that had no religion, because they got Theocracy with no Religion! I think that there should be a way to get it, like population size and technological advancement to help. That would be awesome to me. Also, the only reason I can think of the Olympics stopping was the Greek states really fell apart, If a Civilization kept them up they might not have ended.
     
  20. sgrig

    sgrig Comrade

    Joined:
    Nov 29, 2001
    Messages:
    1,123
    Location:
    Isaac Newton's College
    Have you looked at the Desert War scenario script? It seems to save some data using setScriptData for the CyPlayer class.
     
Thread Status:
Not open for further replies.

Share This Page