Advertisement
Guest User

Untitled

a guest
May 24th, 2014
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 65.30 KB | None | 0 0
  1. -- Original function by Craig_Sutter
  2. -- Modified version by Barbarian_King
  3. -- Derivative version by Crake
  4.  
  5. -- Found a religion (function by Craig_Sutter)
  6. function FoundReligion(pCity, religion, pantheonBelief, founderBelief, followerBelief, followerBelief2, enhancerBelief)
  7.     local iPlayer = pCity:GetOwner()
  8.     local iReligion = GameInfoTypes[religion]
  9.  
  10.     -- Optional extra beliefs
  11.     local iBelief4 = followerBelief2 and GameInfoTypes[followerBelief2] or -1
  12.     local iBelief5 = enhancerBelief and GameInfoTypes[enhancerBelief] or -1
  13.  
  14.     Game.FoundPantheon(iPlayer, GameInfoTypes[pantheonBelief])
  15.     Game.FoundReligion(iPlayer, iReligion, nil, GameInfoTypes[founderBelief], GameInfoTypes[followerBelief], iBelief4, iBelief5, pCity)
  16. end
  17.  
  18. -- Set up the religions to be present in the scenario
  19. function SetupReligions()
  20.  
  21.     if Game.GetElapsedGameTurns() == 0 then
  22.  
  23.         for iPlayer=0, GameDefines.MAX_MAJOR_CIVS-1, 1 do
  24.            
  25.             local pPlayer = Players[iPlayer];
  26.             print("Iterating players..." .. pPlayer:GetName());
  27.  
  28.             if pPlayer:IsEverAlive() then
  29.                
  30.                 for cityIndex = 0, pPlayer:GetNumCities() - 1, 1 do
  31.                    
  32.                     local pCity = pPlayer:GetCityByID(cityIndex)
  33.  
  34.                     -- Found Catholicism
  35.                     if pCity ~= nil and pCity:GetName() == "Rome" then
  36.                         FoundReligion(pCity, "RELIGION_CHRISTIANITY", "BELIEF_FERTILITY_RITES", "BELIEF_PAPAL_PRIMACY", "BELIEF_CATHEDRALS", "BELIEF_CHORAL_MUSIC", "BELIEF_HOLY_ORDER");
  37.                         print("Founding Christianity in " .. pCity:GetName());
  38.                         --return pCity;
  39.                     end
  40.                     -- Found Protestantism
  41.                     if pCity ~= nil and pCity:GetName() == "London" then
  42.                         FoundReligion(pCity, "RELIGION_PROTESTANTISM", "BELIEF_GOD_CRAFTSMEN", "BELIEF_TITHE", "BELIEF_RELIGIOUS_CENTER", "BELIEF_RELIGIOUS_COMMUNITY", "BELIEF_ITINERANT_PREACHERS");
  43.                         print("Founding Protestantism in " .. pCity:GetName());
  44.                         --return pCity;
  45.                     end
  46.                     -- Found Orthodoxy
  47.                     if pCity ~= nil and pCity:GetName() == "Constantinople" then
  48.                         FoundReligion(pCity, "RELIGION_ORTHODOXY", "BELIEF_RELIGIOUS_IDOLS", "BELIEF_CHURCH_PROPERTY", "BELIEF_MONASTERIES", "BELIEF_FORMAL_LITURGY", "BELIEF_RELIGIOUS_UNITY");
  49.                         print("Founding Orthodoxy in " .. pCity:GetName());
  50.                         --return pCity;
  51.                     end
  52.                     -- Found Islam
  53.                     if pCity ~= nil and pCity:GetName() == "Mecca" then
  54.                         FoundReligion(pCity, "RELIGION_ISLAM", "BELIEF_DESERT_FOLKLORE", "BELIEF_PILGRIMAGE", "BELIEF_MOSQUES", "BELIEF_DIVINE_INSPIRATION", "BELIEF_DEFENDER_FAITH");
  55.                         print("Founding Islam in " .. pCity:GetName());
  56.                         --return pCity;
  57.                     end
  58.                     -- Found Hinduism
  59.                     if pCity ~= nil and pCity:GetName() == "Delhi" then
  60.                         FoundReligion(pCity, "RELIGION_HINDUISM", "BELIEF_SACRED_WATERS", "BELIEF_INTERFAITH_DIALOGUE", "BELIEF_GURUSHIP", "BELIEF_PEACE_GARDENS", "BELIEF_MESSIAH");
  61.                         print("Founding Hinduism in " .. pCity:GetName());
  62.                         --return pCity;
  63.                     end
  64.                     -- Found Buddhism
  65.                     if pCity ~= nil and pCity:GetName() == "Lhasa" then
  66.                         FoundReligion(pCity, "RELIGION_BUDDHISM", "BELIEF_ANCESTOR_WORSHIP", "BELIEF_INITIATION_RITES", "BELIEF_PAGODAS", "BELIEF_FEED_WORLD", "BELIEF_RELIQUARY");
  67.                         print("Founding Buddhism in " .. pCity:GetName());
  68.                         --return pCity;
  69.                     end
  70.                     -- Found Shintoism
  71.                     if pCity ~= nil and pCity:GetName() == "Kyoto" then
  72.                         FoundReligion(pCity, "RELIGION_SHINTO", "BELIEF_GOD_SEA", "BELIEF_CEREMONIAL_BURIAL", "BELIEF_ASCETISM", "BELIEF_SWORD_PLOWSHARES", "BELIEF_JUST_WAR");
  73.                         print("Founding Shintoism in " .. pCity:GetName());
  74.                         --return pCity;
  75.                     end
  76.                    
  77.                 end
  78.             end
  79.         end
  80.     end
  81. end
  82.  
  83. Events.SequenceGameInitComplete.Add(SetupReligions);
  84.  
  85. -- Add religions to all major player cities on the map
  86. function SpreadReligions()
  87.  
  88.     if Game.GetElapsedGameTurns() == 0 then
  89.        
  90.         for iPlayer=0, GameDefines.MAX_MAJOR_CIVS-1, 1 do
  91.  
  92.             local pPlayer = Players[iPlayer];
  93.  
  94.             if pPlayer:IsEverAlive() then
  95.                
  96.                 print("Adding religions to the cities of " .. pPlayer:GetName());
  97.                 -- Enumerate cities
  98.                 for cityIndex = 0, pPlayer:GetNumCities() - 1, 1 do
  99.                     local pCity = pPlayer:GetCityByID(cityIndex);
  100.  
  101.                     print("Cycling through cities.");
  102.                     -- City exists and has the proper name?
  103.                     -- Italy Start
  104.                     if pCity ~= nil and pCity:GetName() == "Genoa" then
  105.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  106.                         print("Adding Catholicism to " .. pCity:GetName());
  107.                     if pCity ~= nil and pCity:GetName() == "Rome" then
  108.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  109.                         print("Adding Catholicism to " .. pCity:GetName());
  110.                     if pCity ~= nil and pCity:GetName() == "Taranto" then
  111.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  112.                         print("Adding Catholicism to " .. pCity:GetName());
  113.                     if pCity ~= nil and pCity:GetName() == "Messina" then
  114.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  115.                         print("Adding Catholicism to " .. pCity:GetName());
  116.                     if pCity ~= nil and pCity:GetName() == "Palermo" then
  117.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  118.                         print("Adding Catholicism to " .. pCity:GetName());
  119.                     if pCity ~= nil and pCity:GetName() == "Cagliari" then
  120.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  121.                         print("Adding Catholicism to " .. pCity:GetName());
  122.                     if pCity ~= nil and pCity:GetName() == "Bosaso" then
  123.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  124.                         print("Adding Islam to " .. pCity:GetName());
  125.                     if pCity ~= nil and pCity:GetName() == "Mogadiscio" then
  126.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  127.                         print("Adding Islam to " .. pCity:GetName());
  128.                     if pCity ~= nil and pCity:GetName() == "Asmara" then
  129.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  130.                         print("Adding Islam to " .. pCity:GetName());                      
  131.                     -- Italy End
  132.                     -- Spain Start
  133.                     if pCity ~= nil and pCity:GetName() == "La Coruna" then
  134.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  135.                         print("Adding Catholicism to " .. pCity:GetName());
  136.                     if pCity ~= nil and pCity:GetName() == "Madrid" then
  137.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  138.                         print("Adding Catholicism to " .. pCity:GetName());
  139.                     if pCity ~= nil and pCity:GetName() == "Barcelona" then
  140.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  141.                         print("Adding Catholicism to " .. pCity:GetName());
  142.                     if pCity ~= nil and pCity:GetName() == "Alicante" then
  143.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  144.                         print("Adding Catholicism to " .. pCity:GetName());
  145.                     if pCity ~= nil and pCity:GetName() == "Seville" then
  146.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  147.                         print("Adding Catholicism to " .. pCity:GetName());
  148.                     if pCity ~= nil and pCity:GetName() == "Mellila" then
  149.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  150.                         print("Adding Islam to " .. pCity:GetName());  
  151.                     if pCity ~= nil and pCity:GetName() == "Santa Cruz" then
  152.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  153.                         print("Adding Catholicism to " .. pCity:GetName());
  154.                     if pCity ~= nil and pCity:GetName() == "Las Palmas" then
  155.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  156.                         print("Adding Islam to " .. pCity:GetName());
  157.                     if pCity ~= nil and pCity:GetName() == "Villa Cisneros" then
  158.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  159.                         print("Adding Islam to " .. pCity:GetName());      
  160.                     -- Spain End
  161.                     --France Start
  162.                     if pCity ~= nil and pCity:GetName() == "Marseille" then
  163.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  164.                         print("Adding Catholicism to " .. pCity:GetName());    
  165.                     if pCity ~= nil and pCity:GetName() == "Lyon" then
  166.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  167.                         print("Adding Catholicism to " .. pCity:GetName());
  168.                     if pCity ~= nil and pCity:GetName() == "Bordeaux" then
  169.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  170.                         print("Adding Catholicism to " .. pCity:GetName());
  171.                     if pCity ~= nil and pCity:GetName() == "Paris" then
  172.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  173.                         print("Adding Catholicism to " .. pCity:GetName());
  174.                     if pCity ~= nil and pCity:GetName() == "Brest" then
  175.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  176.                         print("Adding Protestantism to " .. pCity:GetName());                          
  177.                     --France End
  178.                     --Portugal Start
  179.                     if pCity ~= nil and pCity:GetName() == "Lisbon" then
  180.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  181.                         print("Adding Catholicism to " .. pCity:GetName());
  182.                     if pCity ~= nil and pCity:GetName() == "Ponta Delgada" then
  183.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  184.                         print("Adding Catholicism to " .. pCity:GetName());    
  185.                     --Portugal End
  186.                     --England Start
  187.                     if pCity ~= nil and pCity:GetName() == "London" then
  188.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  189.                         print("Adding Protestantism to " .. pCity:GetName());  
  190.                     if pCity ~= nil and pCity:GetName() == "Exeter" then
  191.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  192.                         print("Adding Protestantism to " .. pCity:GetName());  
  193.                     if pCity ~= nil and pCity:GetName() == "Liverpool" then
  194.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  195.                         print("Adding Protestantism to " .. pCity:GetName());  
  196.                     if pCity ~= nil and pCity:GetName() == "Newcastle" then
  197.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  198.                         print("Adding Protestantism to " .. pCity:GetName());  
  199.                     if pCity ~= nil and pCity:GetName() == "Edinburgh" then
  200.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  201.                         print("Adding Protestantism to " .. pCity:GetName());  
  202.                     if pCity ~= nil and pCity:GetName() == "Dublin" then
  203.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  204.                         print("Adding Catholicism to " .. pCity:GetName());
  205.                     --England end
  206.                     --Germany start
  207.                     if pCity ~= nil and pCity:GetName() == "Berlin" then
  208.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  209.                         print("Adding Protestantism to " .. pCity:GetName());  
  210.                     if pCity ~= nil and pCity:GetName() == "Kiel" then
  211.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  212.                         print("Adding Protestantism to " .. pCity:GetName());  
  213.                     if pCity ~= nil and pCity:GetName() == "Frankfurt" then
  214.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  215.                         print("Adding Protestantism to " .. pCity:GetName());  
  216.                     if pCity ~= nil and pCity:GetName() == "Koningsberg" then
  217.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  218.                         print("Adding Protestantism to " .. pCity:GetName());      
  219.                     --Germany end
  220.                     --Netherlands start
  221.                     if pCity ~= nil and pCity:GetName() == "Amsterdam" then
  222.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  223.                         print("Adding Protestantism to " .. pCity:GetName());  
  224.                     --Netherlands end
  225.                     --Austro-Hungarian Empire start
  226.                     if pCity ~= nil and pCity:GetName() == "Vienna" then
  227.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  228.                         print("Adding Catholicism to " .. pCity:GetName());
  229.                     if pCity ~= nil and pCity:GetName() == "Budapest" then
  230.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  231.                         print("Adding Catholicism to " .. pCity:GetName());
  232.                     if pCity ~= nil and pCity:GetName() == "Prague" then
  233.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  234.                         print("Adding Protestantism to " .. pCity:GetName());  
  235.                     if pCity ~= nil and pCity:GetName() == "Krakow" then
  236.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  237.                         print("Adding Protestantism to " .. pCity:GetName());      
  238.                     --Austro-Hungarian Empire end
  239.                     --Sweden start
  240.                     if pCity ~= nil and pCity:GetName() == "Bergen" then
  241.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  242.                         print("Adding Protestantism to " .. pCity:GetName());  
  243.                     if pCity ~= nil and pCity:GetName() == "Oslo" then
  244.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  245.                         print("Adding Protestantism to " .. pCity:GetName());  
  246.                     if pCity ~= nil and pCity:GetName() == "Stockholm" then
  247.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  248.                         print("Adding Protestantism to " .. pCity:GetName());  
  249.                     if pCity ~= nil and pCity:GetName() == "Trondheim" then
  250.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  251.                         print("Adding Protestantism to " .. pCity:GetName());  
  252.                     if pCity ~= nil and pCity:GetName() == "Harstad" then
  253.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  254.                         print("Adding Protestantism to " .. pCity:GetName());  
  255.                     if pCity ~= nil and pCity:GetName() == "Lulea" then
  256.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  257.                         print("Adding Protestantism to " .. pCity:GetName());  
  258.                     if pCity ~= nil and pCity:GetName() == "Tromso" then
  259.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  260.                         print("Adding Protestantism to " .. pCity:GetName());  
  261.                     --Sweden end
  262.                     --Imperial Russia start
  263.                     if pCity ~= nil and pCity:GetName() == "Murmansk" then
  264.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  265.                         print("Adding Orthodox to " .. pCity:GetName());       
  266.                     if pCity ~= nil and pCity:GetName() == "Lesozavodskiy" then
  267.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  268.                         print("Adding Protestantism to " .. pCity:GetName());  
  269.                     if pCity ~= nil and pCity:GetName() == "Helsinki" then
  270.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  271.                         print("Adding Protestantism to " .. pCity:GetName());  
  272.                     if pCity ~= nil and pCity:GetName() == "Riga" then
  273.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  274.                         print("Adding Protestantism to " .. pCity:GetName());  
  275.                     if pCity ~= nil and pCity:GetName() == "Warsaw" then
  276.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  277.                         print("Adding Protestantism to " .. pCity:GetName());  
  278.                     if pCity ~= nil and pCity:GetName() == "Kursk" then
  279.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  280.                         print("Adding Orthodox to " .. pCity:GetName());   
  281.                     if pCity ~= nil and pCity:GetName() == "Kiev" then
  282.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  283.                         print("Adding Orthodox to " .. pCity:GetName());   
  284.                     if pCity ~= nil and pCity:GetName() == "Sevastopol" then
  285.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  286.                         print("Adding Orthodox to " .. pCity:GetName());   
  287.                     if pCity ~= nil and pCity:GetName() == "St. Petersburg" then
  288.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  289.                         print("Adding Orthodox to " .. pCity:GetName());   
  290.                     if pCity ~= nil and pCity:GetName() == "Arkhangelsk" then
  291.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  292.                         print("Adding Orthodox to " .. pCity:GetName());   
  293.                     if pCity ~= nil and pCity:GetName() == "Moscow" then
  294.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  295.                         print("Adding Orthodox to " .. pCity:GetName());   
  296.                     if pCity ~= nil and pCity:GetName() == "Stalingrad" then
  297.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  298.                         print("Adding Orthodox to " .. pCity:GetName());   
  299.                     if pCity ~= nil and pCity:GetName() == "Syktyvkar" then
  300.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  301.                         print("Adding Orthodox to " .. pCity:GetName());   
  302.                     if pCity ~= nil and pCity:GetName() == "Novgorod" then
  303.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  304.                         print("Adding Orthodox to " .. pCity:GetName());   
  305.                     if pCity ~= nil and pCity:GetName() == "Samara" then
  306.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  307.                         print("Adding Orthodox to " .. pCity:GetName());   
  308.                     if pCity ~= nil and pCity:GetName() == "Perm" then
  309.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  310.                         print("Adding Orthodox to " .. pCity:GetName());   
  311.                     if pCity ~= nil and pCity:GetName() == "Rostov" then
  312.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  313.                         print("Adding Orthodox to " .. pCity:GetName());   
  314.                     if pCity ~= nil and pCity:GetName() == "Kostani" then
  315.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  316.                         print("Adding Orthodox to " .. pCity:GetName());   
  317.                     if pCity ~= nil and pCity:GetName() == "Yekaterinburg" then
  318.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  319.                         print("Adding Orthodox to " .. pCity:GetName());   
  320.                     if pCity ~= nil and pCity:GetName() == "Omsk" then
  321.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  322.                         print("Adding Orthodox to " .. pCity:GetName());   
  323.                     if pCity ~= nil and pCity:GetName() == "Novosibirsk" then
  324.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  325.                         print("Adding Orthodox to " .. pCity:GetName());   
  326.                     if pCity ~= nil and pCity:GetName() == "Baurnal" then
  327.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  328.                         print("Adding Orthodox to " .. pCity:GetName());   
  329.                     if pCity ~= nil and pCity:GetName() == "Norilsk" then
  330.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  331.                         print("Adding Orthodox to " .. pCity:GetName());   
  332.                     if pCity ~= nil and pCity:GetName() == "Kansk" then
  333.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  334.                         print("Adding Orthodox to " .. pCity:GetName());   
  335.                     if pCity ~= nil and pCity:GetName() == "Chita" then
  336.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  337.                         print("Adding Orthodox to " .. pCity:GetName());   
  338.                     if pCity ~= nil and pCity:GetName() == "Khabarovsk" then
  339.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  340.                         print("Adding Orthodox to " .. pCity:GetName());   
  341.                     if pCity ~= nil and pCity:GetName() == "Magadan" then
  342.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  343.                         print("Adding Orthodox to " .. pCity:GetName());   
  344.                     if pCity ~= nil and pCity:GetName() == "Vladivostok" then
  345.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  346.                         print("Adding Orthodox to " .. pCity:GetName());   
  347.                     if pCity ~= nil and pCity:GetName() == "Petropavlosk" then
  348.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  349.                         print("Adding Orthodox to " .. pCity:GetName());   
  350.                     if pCity ~= nil and pCity:GetName() == "Tiflis" then
  351.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  352.                         print("Adding Islam to " .. pCity:GetName());
  353.                     if pCity ~= nil and pCity:GetName() == "Aqtau" then
  354.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  355.                         print("Adding Islam to " .. pCity:GetName());      
  356.                     if pCity ~= nil and pCity:GetName() == "Baikonur" then
  357.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  358.                         print("Adding Islam to " .. pCity:GetName());      
  359.                     if pCity ~= nil and pCity:GetName() == "Astana" then
  360.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  361.                         print("Adding Islam to " .. pCity:GetName());      
  362.                     if pCity ~= nil and pCity:GetName() == "Almaty" then
  363.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  364.                         print("Adding Islam to " .. pCity:GetName());  
  365.                     --Imperial Russia end
  366.                     --Ottoman Empire start
  367.                     if pCity ~= nil and pCity:GetName() == "Thessaloniki" then
  368.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  369.                         print("Adding Orthodox to " .. pCity:GetName());       
  370.                     if pCity ~= nil and pCity:GetName() == "Heraklion" then
  371.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  372.                         print("Adding Orthodox to " .. pCity:GetName());       
  373.                     if pCity ~= nil and pCity:GetName() == "Istanbul" then
  374.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  375.                         print("Adding Islam to " .. pCity:GetName());      
  376.                     if pCity ~= nil and pCity:GetName() == "Ankara" then
  377.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  378.                         print("Adding Islam to " .. pCity:GetName());      
  379.                     if pCity ~= nil and pCity:GetName() == "Trabzon" then
  380.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  381.                         print("Adding Islam to " .. pCity:GetName());      
  382.                     if pCity ~= nil and pCity:GetName() == "Baghdad" then
  383.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  384.                         print("Adding Islam to " .. pCity:GetName());      
  385.                     if pCity ~= nil and pCity:GetName() == "Jerusalem" then
  386.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  387.                         print("Adding Islam to " .. pCity:GetName());                                              
  388.                     if pCity ~= nil and pCity:GetName() == "Basra" then
  389.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  390.                         print("Adding Islam to " .. pCity:GetName());      
  391.                     if pCity ~= nil and pCity:GetName() == "Mecca" then
  392.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  393.                         print("Adding Islam to " .. pCity:GetName());
  394.                     --Ottoman Empire end
  395.                     --Ottoman African Colonies start
  396.                     if pCity ~= nil and pCity:GetName() == "Benghazi" then
  397.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  398.                         print("Adding Islam to " .. pCity:GetName());      
  399.                     if pCity ~= nil and pCity:GetName() == "Tripoli" then
  400.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  401.                         print("Adding Islam to " .. pCity:GetName());                              
  402.                     --Ottoman African colonies End
  403.                     --French West Africa start
  404.                     if pCity ~= nil and pCity:GetName() == "Tunis" then
  405.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  406.                         print("Adding Islam to " .. pCity:GetName());      
  407.                     if pCity ~= nil and pCity:GetName() == "Fort Laperrine" then
  408.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  409.                         print("Adding Islam to " .. pCity:GetName());      
  410.                     if pCity ~= nil and pCity:GetName() == "Timbuktu" then
  411.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  412.                         print("Adding Islam to " .. pCity:GetName());      
  413.                     if pCity ~= nil and pCity:GetName() == "Djenne" then
  414.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  415.                         print("Adding Islam to " .. pCity:GetName());      
  416.                     if pCity ~= nil and pCity:GetName() == "Dakar" then
  417.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  418.                         print("Adding Islam to " .. pCity:GetName());      
  419.                     if pCity ~= nil and pCity:GetName() == "Fort Lamy" then
  420.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  421.                         print("Adding Islam to " .. pCity:GetName());      
  422.                     if pCity ~= nil and pCity:GetName() == "Libreville" then
  423.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  424.                         print("Adding Islam to " .. pCity:GetName());  
  425.                     if pCity ~= nil and pCity:GetName() == "Dijibouti" then
  426.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  427.                         print("Adding Islam to " .. pCity:GetName());  
  428.                     if pCity ~= nil and pCity:GetName() == "Libreville" then
  429.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  430.                         print("Adding Islam to " .. pCity:GetName());  
  431.                     if pCity ~= nil and pCity:GetName() == "Dijibouti" then
  432.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  433.                         print("Adding Islam to " .. pCity:GetName());  
  434.                     if pCity ~= nil and pCity:GetName() == "Tananarive" then
  435.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  436.                         print("Adding Catholicism to " .. pCity:GetName());
  437.                     if pCity ~= nil and pCity:GetName() == "Saint-Denis" then
  438.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  439.                         print("Adding Catholicism to " .. pCity:GetName());                        
  440.                     --French West Africa end
  441.                     --English African colonies start                       
  442.                     if pCity ~= nil and pCity:GetName() == "Alexandria" then
  443.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  444.                         print("Adding Islam to " .. pCity:GetName());      
  445.                     if pCity ~= nil and pCity:GetName() == "Khartoum" then
  446.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  447.                         print("Adding Islam to " .. pCity:GetName());      
  448.                     if pCity ~= nil and pCity:GetName() == "Nairobi" then
  449.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  450.                         print("Adding Islam to " .. pCity:GetName());      
  451.                     if pCity ~= nil and pCity:GetName() == "Mombasa" then
  452.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  453.                         print("Adding Islam to " .. pCity:GetName());      
  454.                     if pCity ~= nil and pCity:GetName() == "Accra" then
  455.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  456.                         print("Adding Islam to " .. pCity:GetName());      
  457.                     if pCity ~= nil and pCity:GetName() == "Abuja" then
  458.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  459.                         print("Adding Islam to " .. pCity:GetName());      
  460.                     if pCity ~= nil and pCity:GetName() == "Lilongewe" then
  461.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  462.                         print("Adding Islam to " .. pCity:GetName());      
  463.                     if pCity ~= nil and pCity:GetName() == "Gaberone" then
  464.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  465.                         print("Adding Protestantism to " .. pCity:GetName());
  466.                     if pCity ~= nil and pCity:GetName() == "Durban" then
  467.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  468.                         print("Adding Protestantism to " .. pCity:GetName());      
  469.                     if pCity ~= nil and pCity:GetName() == "Cape Town" then
  470.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  471.                         print("Adding Protestantism to " .. pCity:GetName());  
  472.                     if pCity ~= nil and pCity:GetName() == "Port Louis" then
  473.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  474.                         print("Adding Protestantism to " .. pCity:GetName());                          
  475.                     --English African colonies end
  476.                     --German African colonies start
  477.                     if pCity ~= nil and pCity:GetName() == "Kigoma" then
  478.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  479.                         print("Adding Islam to " .. pCity:GetName());      
  480.                     if pCity ~= nil and pCity:GetName() == "Zanzibar" then
  481.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  482.                         print("Adding Islam to " .. pCity:GetName());      
  483.                     if pCity ~= nil and pCity:GetName() == "Garoua" then
  484.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  485.                         print("Adding Islam to " .. pCity:GetName());      
  486.                     if pCity ~= nil and pCity:GetName() == "Lome" then
  487.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  488.                         print("Adding Islam to " .. pCity:GetName());      
  489.                     if pCity ~= nil and pCity:GetName() == "Windhoek" then
  490.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  491.                         print("Adding Protestantism to " .. pCity:GetName());  
  492.                     --German African colonies end
  493.                     --Abyssinia start
  494.                     if pCity ~= nil and pCity:GetName() == "Addis Ababa" then
  495.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  496.                         print("Adding Islam to " .. pCity:GetName());      
  497.                     if pCity ~= nil and pCity:GetName() == "Mek'ele" then
  498.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  499.                         print("Adding Islam to " .. pCity:GetName());      
  500.                     --Abyssinia end
  501.                     --Portugal African colonies start
  502.                     if pCity ~= nil and pCity:GetName() == "Luanda" then
  503.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  504.                         print("Adding Islam to " .. pCity:GetName());
  505.                     if pCity ~= nil and pCity:GetName() == "Lourenco Marques" then
  506.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  507.                         print("Adding Islam to " .. pCity:GetName());
  508.                     if pCity ~= nil and pCity:GetName() == "Praria" then
  509.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  510.                         print("Adding Islam to " .. pCity:GetName());      
  511.                     --Portugal African colonies end
  512.                     --English Arabian colonies start
  513.                     if pCity ~= nil and pCity:GetName() == "Aden" then
  514.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  515.                         print("Adding Islam to " .. pCity:GetName());  
  516.                     if pCity ~= nil and pCity:GetName() == "Al Mukalla" then
  517.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  518.                         print("Adding Islam to " .. pCity:GetName());  
  519.                     if pCity ~= nil and pCity:GetName() == "Muscat" then
  520.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  521.                         print("Adding Islam to " .. pCity:GetName());      
  522.                     --English Arabian colonies end                 
  523.                     --Persia start
  524.                     if pCity ~= nil and pCity:GetName() == "Tabriz" then
  525.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  526.                         print("Adding Islam to " .. pCity:GetName());      
  527.                     if pCity ~= nil and pCity:GetName() == "Tehran" then
  528.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  529.                         print("Adding Islam to " .. pCity:GetName());      
  530.                     if pCity ~= nil and pCity:GetName() == "Bushehr" then
  531.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  532.                         print("Adding Islam to " .. pCity:GetName());      
  533.                     if pCity ~= nil and pCity:GetName() == "Zahedan" then
  534.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  535.                         print("Adding Islam to " .. pCity:GetName());      
  536.                     if pCity ~= nil and pCity:GetName() == "Mashhad" then
  537.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  538.                         print("Adding Islam to " .. pCity:GetName());      
  539.                     if pCity ~= nil and pCity:GetName() == "Bandar Behesti" then
  540.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  541.                         print("Adding Islam to " .. pCity:GetName());  
  542.                     --Perisa end
  543.                     --British India start
  544.                     if pCity ~= nil and pCity:GetName() == "Delhi" then
  545.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_HINDUISM"]);
  546.                         print("Adding Hinduism to " .. pCity:GetName());   
  547.                     if pCity ~= nil and pCity:GetName() == "Hyderabad" then
  548.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_HINDUISM"]);
  549.                         print("Adding Hinduism to " .. pCity:GetName());       
  550.                     if pCity ~= nil and pCity:GetName() == "Calcutta" then
  551.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_HINDUISM"]);
  552.                         print("Adding Hinduism to " .. pCity:GetName());       
  553.                     if pCity ~= nil and pCity:GetName() == "Rangoon" then
  554.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_HINDUISM"]);
  555.                         print("Adding Hinduism to " .. pCity:GetName());       
  556.                     if pCity ~= nil and pCity:GetName() == "Madras" then
  557.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_HINDUISM"]);
  558.                         print("Adding Hinduism to " .. pCity:GetName());       
  559.                     if pCity ~= nil and pCity:GetName() == "Bombay" then
  560.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_HINDUISM"]);
  561.                         print("Adding Hinduism to " .. pCity:GetName());       
  562.                     if pCity ~= nil and pCity:GetName() == "Kerala" then
  563.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_HINDUISM"]);
  564.                         print("Adding Hinduism to " .. pCity:GetName());   
  565.                     if pCity ~= nil and pCity:GetName() == "Islamabad" then
  566.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  567.                         print("Adding Islam to " .. pCity:GetName());      
  568.                     if pCity ~= nil and pCity:GetName() == "Karachi" then
  569.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  570.                         print("Adding Islam to " .. pCity:GetName());  
  571.                     --British India end
  572.                     --British SEA colonies end
  573.                     if pCity ~= nil and pCity:GetName() == "Singapore" then
  574.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  575.                         print("Adding Islam to " .. pCity:GetName());  
  576.                     if pCity ~= nil and pCity:GetName() == "Kuching" then
  577.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  578.                         print("Adding Islam to " .. pCity:GetName());  
  579.                     if pCity ~= nil and pCity:GetName() == "Port Moresby" then
  580.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  581.                         print("Adding Islam to " .. pCity:GetName());  
  582.                     if pCity ~= nil and pCity:GetName() == "Suva" then
  583.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  584.                         print("Adding Islam to " .. pCity:GetName());  
  585.                     if pCity ~= nil and pCity:GetName() == "Tonga" then
  586.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  587.                         print("Adding Islam to " .. pCity:GetName());
  588.                     --British SEA colonies end
  589.                     --New Zealand
  590.                     if pCity ~= nil and pCity:GetName() == "Auckland" then
  591.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  592.                         print("Adding Protestantism to " .. pCity:GetName());
  593.                     if pCity ~= nil and pCity:GetName() == "Wellington" then
  594.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  595.                         print("Adding Protestantism to " .. pCity:GetName());  
  596.                     if pCity ~= nil and pCity:GetName() == "Christchurch" then
  597.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  598.                         print("Adding Protestantism to " .. pCity:GetName());  
  599.                     if pCity ~= nil and pCity:GetName() == "Queenstown" then
  600.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  601.                         print("Adding Protestantism to " .. pCity:GetName());  
  602.                     --New Zealand end
  603.                     --Dutch SEA start
  604.                     if pCity ~= nil and pCity:GetName() == "Palembang" then
  605.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  606.                         print("Adding Islam to " .. pCity:GetName());  
  607.                     if pCity ~= nil and pCity:GetName() == "Surabaja" then
  608.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  609.                         print("Adding Islam to " .. pCity:GetName());  
  610.                     if pCity ~= nil and pCity:GetName() == "Samarinda" then
  611.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  612.                         print("Adding Islam to " .. pCity:GetName());  
  613.                     if pCity ~= nil and pCity:GetName() == "Kendari" then
  614.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  615.                         print("Adding Islam to " .. pCity:GetName());  
  616.                     if pCity ~= nil and pCity:GetName() == "Sorong" then
  617.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  618.                         print("Adding Islam to " .. pCity:GetName());          
  619.                     --Dutch SEA end
  620.                     --German SEA
  621.                     if pCity ~= nil and pCity:GetName() == "Finschhafen" then
  622.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  623.                         print("Adding Islam to " .. pCity:GetName());  
  624.                     if pCity ~= nil and pCity:GetName() == "Herbertshohe" then
  625.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  626.                         print("Adding Islam to " .. pCity:GetName());  
  627.                     if pCity ~= nil and pCity:GetName() == "Majuro" then
  628.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  629.                         print("Adding Islam to " .. pCity:GetName());  
  630.                     if pCity ~= nil and pCity:GetName() == "Palikir" then
  631.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  632.                         print("Adding Islam to " .. pCity:GetName());  
  633.                     --German SEA
  634.                     --Phillipines start
  635.                     if pCity ~= nil and pCity:GetName() == "Manila" then
  636.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  637.                         print("Adding Protestantism to " .. pCity:GetName());  
  638.                     if pCity ~= nil and pCity:GetName() == "Guam" then
  639.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  640.                         print("Adding Protestantism to " .. pCity:GetName());  
  641.                     if pCity ~= nil and pCity:GetName() == "Cebu" then
  642.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  643.                         print("Adding Protestantism to " .. pCity:GetName());  
  644.                     if pCity ~= nil and pCity:GetName() == "Davao" then
  645.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  646.                         print("Adding Protestantism to " .. pCity:GetName());      
  647.                     --Phillipines end
  648.                     --French SEA
  649.                     if pCity ~= nil and pCity:GetName() == "Saigon" then
  650.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  651.                         print("Adding Buddhism to " .. pCity:GetName());       
  652.                     if pCity ~= nil and pCity:GetName() == "Hanoi" then
  653.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  654.                         print("Adding Buddhism to " .. pCity:GetName());   
  655.                     --French SEA end
  656.                     --China
  657.                     if pCity ~= nil and pCity:GetName() == "Kunming" then
  658.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  659.                         print("Adding Buddhism to " .. pCity:GetName());   
  660.                     if pCity ~= nil and pCity:GetName() == "Wuhan" then
  661.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  662.                         print("Adding Buddhism to " .. pCity:GetName());   
  663.                     if pCity ~= nil and pCity:GetName() == "Shanghai" then
  664.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  665.                         print("Adding Buddhism to " .. pCity:GetName());   
  666.                     if pCity ~= nil and pCity:GetName() == "Nanjing" then
  667.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  668.                         print("Adding Buddhism to " .. pCity:GetName());   
  669.                     if pCity ~= nil and pCity:GetName() == "Tsingtao" then
  670.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  671.                         print("Adding Protestantism to " .. pCity:GetName());  
  672.                     if pCity ~= nil and pCity:GetName() == "Chengdu" then
  673.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  674.                         print("Adding Buddhism to " .. pCity:GetName());   
  675.                     if pCity ~= nil and pCity:GetName() == "Xi'an" then
  676.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  677.                         print("Adding Buddhism to " .. pCity:GetName());   
  678.                     if pCity ~= nil and pCity:GetName() == "Peking" then
  679.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  680.                         print("Adding Buddhism to " .. pCity:GetName());   
  681.                     if pCity ~= nil and pCity:GetName() == "Port Arthur" then
  682.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  683.                         print("Adding Buddhism to " .. pCity:GetName());   
  684.                     if pCity ~= nil and pCity:GetName() == "Jining" then
  685.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  686.                         print("Adding Buddhism to " .. pCity:GetName());   
  687.                     if pCity ~= nil and pCity:GetName() == "Chifeng" then
  688.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  689.                         print("Adding Buddhism to " .. pCity:GetName());   
  690.                     if pCity ~= nil and pCity:GetName() == "Ulaanbataar" then
  691.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  692.                         print("Adding Buddhism to " .. pCity:GetName());   
  693.                     if pCity ~= nil and pCity:GetName() == "Hulun Buir" then
  694.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  695.                         print("Adding Buddhism to " .. pCity:GetName());   
  696.                     if pCity ~= nil and pCity:GetName() == "Harbin" then
  697.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  698.                         print("Adding Buddhism to " .. pCity:GetName());       
  699.                     if pCity ~= nil and pCity:GetName() == "Shenyang" then
  700.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  701.                         print("Adding Buddhism to " .. pCity:GetName());   
  702.                     if pCity ~= nil and pCity:GetName() == "Lhasa" then
  703.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  704.                         print("Adding Buddhism to " .. pCity:GetName());
  705.                     if pCity ~= nil and pCity:GetName() == "Gerze" then
  706.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  707.                         print("Adding Buddhism to " .. pCity:GetName());   
  708.                     if pCity ~= nil and pCity:GetName() == "Turpan" then
  709.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  710.                         print("Adding Islam to " .. pCity:GetName());      
  711.                     if pCity ~= nil and pCity:GetName() == "Urumqi" then
  712.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  713.                         print("Adding Islam to " .. pCity:GetName());      
  714.                     if pCity ~= nil and pCity:GetName() == "Kashi" then
  715.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  716.                         print("Adding Islam to " .. pCity:GetName());      
  717.                     if pCity ~= nil and pCity:GetName() == "Hong Kong" then
  718.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  719.                         print("Adding Protestantism to " .. pCity:GetName());      
  720.                     if pCity ~= nil and pCity:GetName() == "Macau" then
  721.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  722.                         print("Adding Catholicism to " .. pCity:GetName());
  723.                     if pCity ~= nil and pCity:GetName() == "Taihoku" then
  724.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  725.                         print("Adding Buddhism to " .. pCity:GetName());   
  726.                     --china end
  727.                     --korea start
  728.                     if pCity ~= nil and pCity:GetName() == "Cheolsan" then
  729.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  730.                         print("Adding Buddhism to " .. pCity:GetName());   
  731.                     if pCity ~= nil and pCity:GetName() == "Cheongjin" then
  732.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  733.                         print("Adding Buddhism to " .. pCity:GetName());   
  734.                     if pCity ~= nil and pCity:GetName() == "Hanseong" then
  735.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  736.                         print("Adding Buddhism to " .. pCity:GetName());   
  737.                     if pCity ~= nil and pCity:GetName() == "Cheju-do" then
  738.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  739.                         print("Adding Buddhism to " .. pCity:GetName());   
  740.                     --korea end
  741.                     --japan start
  742.                     if pCity ~= nil and pCity:GetName() == "Kagoshima" then
  743.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  744.                         print("Adding Protestantism to " .. pCity:GetName());  
  745.                     if pCity ~= nil and pCity:GetName() == "Hiroshima" then
  746.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_SHINTO"]);
  747.                         print("Adding Shinto to " .. pCity:GetName()); 
  748.                     if pCity ~= nil and pCity:GetName() == "Tokushima" then
  749.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_SHINTO"]);
  750.                         print("Adding Shinto to " .. pCity:GetName()); 
  751.                     if pCity ~= nil and pCity:GetName() == "Kyoto" then
  752.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_SHINTO"]);
  753.                         print("Adding Shinto to " .. pCity:GetName()); 
  754.                     if pCity ~= nil and pCity:GetName() == "Tokyo" then
  755.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_SHINTO"]);
  756.                         print("Adding Shinto to " .. pCity:GetName()); 
  757.                     if pCity ~= nil and pCity:GetName() == "Sendai" then
  758.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_SHINTO"]);
  759.                         print("Adding Shinto to " .. pCity:GetName()); 
  760.                     if pCity ~= nil and pCity:GetName() == "Sapporo" then
  761.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_SHINTO"]);
  762.                         print("Adding Shinto to " .. pCity:GetName()); 
  763.                     if pCity ~= nil and pCity:GetName() == "Iwo Jima" then
  764.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_SHINTO"]);
  765.                         print("Adding Shinto to " .. pCity:GetName());     
  766.                     --japan end
  767.                     --australia start
  768.                     if pCity ~= nil and pCity:GetName() == "Melbourne" then
  769.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  770.                         print("Adding Protestantism to " .. pCity:GetName());  
  771.                     if pCity ~= nil and pCity:GetName() == "Sydney" then
  772.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  773.                         print("Adding Protestantism to " .. pCity:GetName());      
  774.                     if pCity ~= nil and pCity:GetName() == "Brisbane" then
  775.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  776.                         print("Adding Protestantism to " .. pCity:GetName());      
  777.                     if pCity ~= nil and pCity:GetName() == "Cairns" then
  778.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  779.                         print("Adding Protestantism to " .. pCity:GetName());
  780.                     if pCity ~= nil and pCity:GetName() == "Darwin" then
  781.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  782.                         print("Adding Protestantism to " .. pCity:GetName());  
  783.                     if pCity ~= nil and pCity:GetName() == "Alice Springs" then
  784.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  785.                         print("Adding Protestantism to " .. pCity:GetName());      
  786.                     if pCity ~= nil and pCity:GetName() == "Karratha" then
  787.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  788.                         print("Adding Protestantism to " .. pCity:GetName());      
  789.                     if pCity ~= nil and pCity:GetName() == "Perth" then
  790.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  791.                         print("Adding Protestantism to " .. pCity:GetName());  
  792.                     if pCity ~= nil and pCity:GetName() == "Albany" then
  793.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  794.                         print("Adding Protestantism to " .. pCity:GetName());  
  795.                     if pCity ~= nil and pCity:GetName() == "Esperance" then
  796.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  797.                         print("Adding Protestantism to " .. pCity:GetName());  
  798.                     if pCity ~= nil and pCity:GetName() == "Adelaide" then
  799.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  800.                         print("Adding Catholicism to " .. pCity:GetName());    
  801.                     if pCity ~= nil and pCity:GetName() == "Hobart" then
  802.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  803.                         print("Adding Catholicism to " .. pCity:GetName());
  804.                     --australia end
  805.                     --Canada start
  806.                     if pCity ~= nil and pCity:GetName() == "St. John's" then
  807.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  808.                         print("Adding Protestantism to " .. pCity:GetName());  
  809.                     if pCity ~= nil and pCity:GetName() == "Cartwright" then
  810.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  811.                         print("Adding Protestantism to " .. pCity:GetName());      
  812.                     if pCity ~= nil and pCity:GetName() == "Halifax" then
  813.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  814.                         print("Adding Protestantism to " .. pCity:GetName());      
  815.                     if pCity ~= nil and pCity:GetName() == "Winisk" then
  816.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  817.                         print("Adding Protestantism to " .. pCity:GetName());  
  818.                     if pCity ~= nil and pCity:GetName() == "Thunder Bay" then
  819.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  820.                         print("Adding Protestantism to " .. pCity:GetName());  
  821.                     if pCity ~= nil and pCity:GetName() == "Churchill" then
  822.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  823.                         print("Adding Protestantism to " .. pCity:GetName());      
  824.                     if pCity ~= nil and pCity:GetName() == "Winnipeg" then
  825.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  826.                         print("Adding Protestantism to " .. pCity:GetName());      
  827.                     if pCity ~= nil and pCity:GetName() == "Calgary" then
  828.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  829.                         print("Adding Protestantism to " .. pCity:GetName());  
  830.                     if pCity ~= nil and pCity:GetName() == "Edmonton" then
  831.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  832.                         print("Adding Protestantism to " .. pCity:GetName());  
  833.                     if pCity ~= nil and pCity:GetName() == "Whitehorse" then
  834.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  835.                         print("Adding Protestantism to " .. pCity:GetName());      
  836.                     if pCity ~= nil and pCity:GetName() == "Vancouver" then
  837.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  838.                         print("Adding Protestantism to " .. pCity:GetName());      
  839.                     if pCity ~= nil and pCity:GetName() == "Toronto" then
  840.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  841.                         print("Adding Catholicism to " .. pCity:GetName());
  842.                     if pCity ~= nil and pCity:GetName() == "Ottawa" then
  843.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  844.                         print("Adding Catholicism to " .. pCity:GetName());
  845.                     --canada end
  846.                     --USA start
  847.                     if pCity ~= nil and pCity:GetName() == "Boston" then
  848.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  849.                         print("Adding Catholicism to " .. pCity:GetName());
  850.                     if pCity ~= nil and pCity:GetName() == "New York" then
  851.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  852.                         print("Adding Catholicism to " .. pCity:GetName());
  853.                     if pCity ~= nil and pCity:GetName() == "Washington" then
  854.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  855.                         print("Adding Protestantism to " .. pCity:GetName());      
  856.                     if pCity ~= nil and pCity:GetName() == "Detroit" then
  857.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  858.                         print("Adding Protestantism to " .. pCity:GetName());      
  859.                     if pCity ~= nil and pCity:GetName() == "Atlanta" then
  860.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  861.                         print("Adding Protestantism to " .. pCity:GetName());      
  862.                     if pCity ~= nil and pCity:GetName() == "St. Louis" then
  863.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  864.                         print("Adding Protestantism to " .. pCity:GetName());      
  865.                     if pCity ~= nil and pCity:GetName() == "New Orleans" then
  866.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  867.                         print("Adding Protestantism to " .. pCity:GetName());      
  868.                     if pCity ~= nil and pCity:GetName() == "Miami" then
  869.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  870.                         print("Adding Protestantism to " .. pCity:GetName());      
  871.                     if pCity ~= nil and pCity:GetName() == "Dallas" then
  872.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  873.                         print("Adding Protestantism to " .. pCity:GetName());      
  874.                     if pCity ~= nil and pCity:GetName() == "Phoenix" then
  875.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  876.                         print("Adding Catholicism to " .. pCity:GetName());
  877.                     if pCity ~= nil and pCity:GetName() == "Denver" then
  878.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  879.                         print("Adding Protestantism to " .. pCity:GetName());      
  880.                     if pCity ~= nil and pCity:GetName() == "Salt Lake City" then
  881.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  882.                         print("Adding Protestantism to " .. pCity:GetName());      
  883.                     if pCity ~= nil and pCity:GetName() == "San Francisco" then
  884.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  885.                         print("Adding Protestantism to " .. pCity:GetName());      
  886.                     if pCity ~= nil and pCity:GetName() == "Los Angeles" then
  887.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  888.                         print("Adding Protestantism to " .. pCity:GetName());      
  889.                     if pCity ~= nil and pCity:GetName() == "Seattle" then
  890.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  891.                         print("Adding Protestantism to " .. pCity:GetName());  
  892.                     if pCity ~= nil and pCity:GetName() == "Honolulu" then
  893.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  894.                         print("Adding Protestantism to " .. pCity:GetName());  
  895.                     if pCity ~= nil and pCity:GetName() == "Pearl Harbor" then
  896.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  897.                         print("Adding Protestantism to " .. pCity:GetName());
  898.                     if pCity ~= nil and pCity:GetName() == "Fairbanks" then
  899.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  900.                         print("Adding Protestantism to " .. pCity:GetName());  
  901.                     if pCity ~= nil and pCity:GetName() == "Anchorage" then
  902.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  903.                         print("Adding Protestantism to " .. pCity:GetName());                          
  904.                     --america end
  905.                     --mexico start
  906.                     if pCity ~= nil and pCity:GetName() == "Juarez" then
  907.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  908.                         print("Adding Catholicism to " .. pCity:GetName());
  909.                     if pCity ~= nil and pCity:GetName() == "Monterrey" then
  910.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  911.                         print("Adding Catholicism to " .. pCity:GetName());
  912.                     if pCity ~= nil and pCity:GetName() == "Cabo San Lucas" then
  913.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  914.                         print("Adding Catholicism to " .. pCity:GetName());
  915.                     if pCity ~= nil and pCity:GetName() == "Mexico City" then
  916.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  917.                         print("Adding Catholicism to " .. pCity:GetName());
  918.                     if pCity ~= nil and pCity:GetName() == "Merida" then
  919.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  920.                         print("Adding Catholicism to " .. pCity:GetName());
  921.                     --mexico end
  922.                     --england caribbean start
  923.                     if pCity ~= nil and pCity:GetName() == "Kingston" then
  924.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  925.                         print("Adding Catholicism to " .. pCity:GetName());
  926.                     --england caribbean end
  927.                     --brazil
  928.                     if pCity ~= nil and pCity:GetName() == "Manuas" then
  929.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  930.                         print("Adding Catholicism to " .. pCity:GetName());
  931.                     if pCity ~= nil and pCity:GetName() == "Sao Luis" then
  932.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  933.                         print("Adding Catholicism to " .. pCity:GetName());
  934.                     if pCity ~= nil and pCity:GetName() == "Recife" then
  935.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  936.                         print("Adding Catholicism to " .. pCity:GetName());
  937.                     if pCity ~= nil and pCity:GetName() == "Palmas" then
  938.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  939.                         print("Adding Catholicism to " .. pCity:GetName());
  940.                     if pCity ~= nil and pCity:GetName() == "Aracaju" then
  941.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  942.                         print("Adding Catholicism to " .. pCity:GetName());
  943.                     if pCity ~= nil and pCity:GetName() == "Porto Velho" then
  944.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  945.                         print("Adding Catholicism to " .. pCity:GetName());
  946.                     if pCity ~= nil and pCity:GetName() == "Baurau" then
  947.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  948.                         print("Adding Catholicism to " .. pCity:GetName());
  949.                     if pCity ~= nil and pCity:GetName() == "Rio de Janeiro" then
  950.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  951.                         print("Adding Catholicism to " .. pCity:GetName());
  952.                     if pCity ~= nil and pCity:GetName() == "Sao Paulo" then
  953.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  954.                         print("Adding Catholicism to " .. pCity:GetName());
  955.                     --SA colonies start
  956.                     if pCity ~= nil and pCity:GetName() == "Georgetown" then
  957.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  958.                         print("Adding Catholicism to " .. pCity:GetName());
  959.                     if pCity ~= nil and pCity:GetName() == "Paramibio" then
  960.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  961.                         print("Adding Catholicism to " .. pCity:GetName());
  962.                     if pCity ~= nil and pCity:GetName() == "Cayenne" then
  963.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  964.                         print("Adding Catholicism to " .. pCity:GetName());    
  965.                     --SA colonies end
  966.                     --Argentina start
  967.                     if pCity ~= nil and pCity:GetName() == "Cordoba" then
  968.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  969.                         print("Adding Catholicism to " .. pCity:GetName());
  970.                     if pCity ~= nil and pCity:GetName() == "Buenos Aires" then
  971.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  972.                         print("Adding Catholicism to " .. pCity:GetName());
  973.                     if pCity ~= nil and pCity:GetName() == "Bahia Blanca" then
  974.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  975.                         print("Adding Catholicism to " .. pCity:GetName());
  976.                     if pCity ~= nil and pCity:GetName() == "Santa Cruz" then
  977.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  978.                         print("Adding Catholicism to " .. pCity:GetName());
  979.                     if pCity ~= nil and pCity:GetName() == "Tierra Del Fuego" then
  980.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  981.                         print("Adding Protestantism to " .. pCity:GetName());  
  982.                     --Argentina end
  983.                     --French Pacific start
  984.                     if pCity ~= nil and pCity:GetName() == "Papeete" then
  985.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  986.                         print("Adding Islam to " .. pCity:GetName());  
  987.                     if pCity ~= nil and pCity:GetName() == "Anau" then
  988.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  989.                         print("Adding Islam to " .. pCity:GetName());                          
  990.                     --French Pacific end                       
  991.                     end
  992.                 end
  993.             end
  994.         end
  995.     end
  996. end
  997.  
  998. Events.SequenceGameInitComplete.Add(SpreadReligions);
  999.  
  1000. function SpreadReligionsCS()
  1001.  
  1002.     print("Adding Religions to City States");
  1003.  
  1004.     if Game.GetElapsedGameTurns() == 0 then
  1005.  
  1006.         for iPlayer=GameDefines.MAX_MAJOR_CIVS, GameDefines.MAX_CIV_PLAYERS-1, 1 do
  1007.  
  1008.             local pPlayer = Players[iPlayer];
  1009.  
  1010.             if pPlayer:IsEverAlive() then
  1011.  
  1012.                 print("Adding religions to the cities of " .. pPlayer:GetName());
  1013.                 -- Enumerate cities
  1014.                 for cityIndex = 0, pPlayer:GetNumCities() - 1, 1 do
  1015.                     local pCity = pPlayer:GetCityByID(cityIndex);
  1016.  
  1017.                     print("Cycling through cities.");
  1018.                     -- City exists and has the proper name?
  1019.                     --Colombia
  1020.                     if pCity ~= nil and pCity:GetName() == "Panama City" then
  1021.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  1022.                         print("Adding Catholicism to " .. pCity:GetName());                
  1023.                     elseif pCity ~= nil and pCity:GetName() == "Bogota" then
  1024.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  1025.                         print("Adding Catholicism to " .. pCity:GetName());                
  1026.                     --Colombia 
  1027.                     --Venezuela
  1028.                     elseif pCity ~= nil and pCity:GetName() == "Caracas" then
  1029.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  1030.                         print("Adding Catholicism to " .. pCity:GetName());
  1031.                     --Venezuela
  1032.                     --Haiti - Dominican Republic
  1033.                     elseif pCity ~= nil and pCity:GetName() == "Port-au-Prince" then
  1034.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  1035.                         print("Adding Catholicism to " .. pCity:GetName());    
  1036.                     elseif pCity ~= nil and pCity:GetName() == "Santo Domingo" then
  1037.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  1038.                         print("Adding Catholicism to " .. pCity:GetName());
  1039.                     --Haiti - Dominican Republic
  1040.                     --Cuba
  1041.                     elseif pCity ~= nil and pCity:GetName() == "Havana" then
  1042.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  1043.                         print("Adding Catholicism to " .. pCity:GetName());    
  1044.                     --Cuba
  1045.                     --Ecuador
  1046.                     elseif pCity ~= nil and pCity:GetName() == "Quito" then
  1047.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  1048.                         print("Adding Catholicism to " .. pCity:GetName());
  1049.                     elseif pCity ~= nil and pCity:GetName() == "Puerto Baquerizo" then
  1050.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  1051.                         print("Adding Catholicism to " .. pCity:GetName());                
  1052.                     --Ecuador
  1053.                     --Peru
  1054.                     elseif pCity ~= nil and pCity:GetName() == "Iquitos" then
  1055.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  1056.                         print("Adding Catholicism to " .. pCity:GetName());
  1057.                     elseif pCity ~= nil and pCity:GetName() == "Piura" then
  1058.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  1059.                         print("Adding Catholicism to " .. pCity:GetName());
  1060.                     elseif pCity ~= nil and pCity:GetName() == "Yarinacocha" then
  1061.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  1062.                         print("Adding Catholicism to " .. pCity:GetName());
  1063.                     elseif pCity ~= nil and pCity:GetName() == "Lima" then
  1064.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  1065.                         print("Adding Catholicism to " .. pCity:GetName());
  1066.                     --Peru
  1067.                     --Chile
  1068.                     elseif pCity ~= nil and pCity:GetName() == "Hanga Roa" then
  1069.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  1070.                         print("Adding Catholicism to " .. pCity:GetName());
  1071.                     elseif pCity ~= nil and pCity:GetName() == "Iquique" then
  1072.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  1073.                         print("Adding Catholicism to " .. pCity:GetName());
  1074.                     elseif pCity ~= nil and pCity:GetName() == "Santiago" then
  1075.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  1076.                         print("Adding Catholicism to " .. pCity:GetName());
  1077.                     elseif pCity ~= nil and pCity:GetName() == "Punta Arenas" then
  1078.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  1079.                         print("Adding Catholicism to " .. pCity:GetName());                    
  1080.                     --Chile                
  1081.                     --Bolivia
  1082.                     elseif pCity ~= nil and pCity:GetName() == "La Paz" then
  1083.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  1084.                         print("Adding Catholicism to " .. pCity:GetName());
  1085.                     --Bolivia
  1086.                     --Paraguay
  1087.                     elseif pCity ~= nil and pCity:GetName() == "Asuncion" then
  1088.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  1089.                         print("Adding Catholicism to " .. pCity:GetName());
  1090.                     --Paraguay
  1091.                     --Uruguay
  1092.                     elseif pCity ~= nil and pCity:GetName() == "Montevideo" then
  1093.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  1094.                         print("Adding Catholicism to " .. pCity:GetName());
  1095.                     --Uruguay
  1096.                     --Belgium
  1097.                     elseif pCity ~= nil and pCity:GetName() == "Brussels" then
  1098.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  1099.                         print("Adding Catholicism to " .. pCity:GetName());
  1100.                     elseif pCity ~= nil and pCity:GetName() == "Leopoldville" then
  1101.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  1102.                         print("Adding Islam to " .. pCity:GetName());
  1103.                     elseif pCity ~= nil and pCity:GetName() == "Boma" then
  1104.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  1105.                         print("Adding Islam to " .. pCity:GetName());
  1106.                     elseif pCity ~= nil and pCity:GetName() == "Bukhama" then
  1107.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  1108.                         print("Adding Islam to " .. pCity:GetName());                      
  1109.                     --Belgium
  1110.                     --Switzerland
  1111.                     elseif pCity ~= nil and pCity:GetName() == "Bern" then
  1112.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_CHRISTIANITY"]);
  1113.                         print("Adding Catholicism to " .. pCity:GetName());
  1114.                     --Switzerland
  1115.                     --Iceland
  1116.                     elseif pCity ~= nil and pCity:GetName() == "Reykjavik" then
  1117.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  1118.                         print("Adding Protestantism to " .. pCity:GetName());
  1119.                     --Iceland
  1120.                     --Denmark
  1121.                     elseif pCity ~= nil and pCity:GetName() == "Copenhagen" then
  1122.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_PROTESTANTISM"]);
  1123.                         print("Adding Protestantism to " .. pCity:GetName());
  1124.                     --Denmark
  1125.                     --Bulgaria
  1126.                     elseif pCity ~= nil and pCity:GetName() == "Sofia" then
  1127.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  1128.                         print("Adding Orthodoxy to " .. pCity:GetName());
  1129.                     --Bulgaria
  1130.                     --Romania
  1131.                     elseif pCity ~= nil and pCity:GetName() == "Bucharest" then
  1132.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  1133.                         print("Adding Orthodoxy to " .. pCity:GetName());
  1134.                     --Romania
  1135.                     --Serbia   
  1136.                     elseif pCity ~= nil and pCity:GetName() == "Belgrade" then
  1137.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  1138.                         print("Adding Orthodoxy to " .. pCity:GetName());
  1139.                     --Serbia
  1140.                     --Greece
  1141.                     elseif pCity ~= nil and pCity:GetName() == "Athens" then
  1142.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ORTHODOXY"]);
  1143.                         print("Adding Orthodoxy to " .. pCity:GetName());
  1144.                     --Greece           
  1145.                     --Egypt
  1146.                     elseif pCity ~= nil and pCity:GetName() == "Cairo" then
  1147.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  1148.                         print("Adding Islam to " .. pCity:GetName());
  1149.                     elseif pCity ~= nil and pCity:GetName() == "al-Qasr" then
  1150.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  1151.                         print("Adding Islam to " .. pCity:GetName());
  1152.                     --Egypt
  1153.                     --Morocco
  1154.                     elseif pCity ~= nil and pCity:GetName() == "Rabat" then
  1155.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  1156.                         print("Adding Islam to " .. pCity:GetName());
  1157.                     --Morocco
  1158.                     --Arabian Tribes
  1159.                     elseif pCity ~= nil and pCity:GetName() == "Riyadh" then
  1160.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  1161.                         print("Adding Islam to " .. pCity:GetName());
  1162.                     --Arabian Tribes
  1163.                     --Afghanistan
  1164.                     elseif pCity ~= nil and pCity:GetName() == "Kabul" then
  1165.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_ISLAM"]);
  1166.                         print("Adding Islam to " .. pCity:GetName());
  1167.                     --Afghanistan  
  1168.                     --Nepal-Bhutan
  1169.                     elseif pCity ~= nil and pCity:GetName() == "Kathmandu" then
  1170.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  1171.                         print("Adding Buddhism to " .. pCity:GetName());
  1172.                     elseif pCity ~= nil and pCity:GetName() == "Thimphu" then
  1173.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_BUDDHISM"]);
  1174.                         print("Adding Buddhism to " .. pCity:GetName());
  1175.                     --Nepal-Bhutan
  1176.                     --Thailand
  1177.                     elseif pCity ~= nil and pCity:GetName() == "Bangkok" then
  1178.                         pCity:AdoptReligionFully(GameInfoTypes["RELIGION_HINDUISM"]);
  1179.                         print("Adding Hinduism to " .. pCity:GetName());                               
  1180.                     end
  1181.                 end
  1182.             end
  1183.         end
  1184.     end
  1185. end
  1186.    
  1187.  
  1188. Events.SequenceGameInitComplete.Add(SpreadReligionsCS);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement