--My attempt at a rebel spawn
function rebelSpawn()
local activeTribe = civ.getCurrentTribe()
if activeTribe == object.tUSSR then
--Tier I asks which continent to spawn the rebels
dialog = civ.ui.createDialog()
dialog.title = "Cold War Concepts: Rebel Spawn"
dialog.width = 300
dialog:addText("We can attempt to influence world events, expand the reach of Communism, and extend our hegemony by backing rebels in distant lands. The more we invest, the stronger our rebel allies will become.")
dialog:addOption("Fund Communist Revolutionaries in Central America", 1)
dialog:addOption("Fund Communist Revolutionaries in the Caribbean", 2)
dialog:addOption("Fund Communist Revolutionaries in South America", 3)
dialog:addOption("Fund Communist Revolutionaries in Southeast Asia", 4)
dialog:addOption("Fund Communist Revolutionaries in North Africa", 5)
dialog:addOption("Fund Communist Revolutionaries in Central Africa", 6)
dialog:addOption("Fund Communist Revolutionaries in Southern Africa", 7)
dialog:addOption("Fund Communist Revolutionaries in the Middle East", 8)
dialog:addOption("Never mind. We have pressing domestic affairs to contend with.", 9)
state.ussrFundsRebelsTierI = dialog:show()
--These decide the Specific Country
if state.ussrFundsRebelsTierI==1 then
dialog = civ.ui.createDialog()
dialog.title = "Central American Communist Rebels"
dialog.width = 300
dialog:addText("In which country should we fund Communist revolutionaries?")
dialog:addOption("Mexico", 1)
dialog:addOption("Honduras", 2)
dialog:addOption("Nicaragua", 3)
dialog:addOption("Panama", 4)
dialog:addOption("Never mind.", 5)
state.ussrFundsRebelsCentralAmerica = dialog:show()
end
if state.ussrFundsRebelsTierI==2 then
dialog = civ.ui.createDialog()
dialog.title = "Caribbean Communist Rebels"
dialog.width = 300
dialog:addText("In which country should we fund Communist revolutionaries?")
dialog:addOption("Cuba", 1)
dialog:addOption("Haiti", 2)
dialog:addOption("Jamaica", 3)
dialog:addOption("Never mind.", 4)
state.ussrFundsRebelsCaribbean = dialog:show()
end
if state.ussrFundsRebelsTierI==3 then
dialog = civ.ui.createDialog()
dialog.title = "South American Communist Rebels"
dialog.width = 300
dialog:addText("In which country should we fund Communist revolutionaries?")
dialog:addOption("Columbia", 1)
dialog:addOption("Venezuela", 2)
dialog:addOption("Ecuador", 3)
dialog:addOption("Peru", 4)
dialog:addOption("Chile", 5)
dialog:addOption("Argentina", 6)
dialog:addOption("Paraguay", 7)
dialog:addOption("Uruguay", 8)
dialog:addOption("Brazil", 9)
dialog:addOption("Bolivia", 10)
dialog:addOption("Guyana", 11)
dialog:addOption("Never mind.", 12)
state.ussrFundsRebelsSouthAmerica = dialog:show()
end
if state.ussrFundsRebelsTierI==4 then
dialog = civ.ui.createDialog()
dialog.title = "Southeast Asian Communist Rebels"
dialog.width = 300
dialog:addText("In which country should we fund Communist revolutionaries?")
dialog:addOption("Vietnam", 1)
dialog:addOption("Cambodia", 2)
dialog:addOption("Thailand", 3)
dialog:addOption("Malaysia", 4)
dialog:addOption("Indonesia", 5)
dialog:addOption("Burma", 6)
dialog:addOption("Philippines", 7)
dialog:addOption("New Guinea", 8)
dialog:addOption("Sri Lanka", 9)
dialog:addOption("Never mind.", 10)
state.ussrFundsRebelsSoutheastAsia = dialog:show()
end
if state.ussrFundsRebelsTierI==5 then
dialog = civ.ui.createDialog()
dialog.title = "North African Communist Rebels"
dialog.width = 300
dialog:addText("In which country should we fund Communist revolutionaries?")
dialog:addOption("Morocco", 1)
dialog:addOption("Algeria", 2)
dialog:addOption("Tunisia", 3)
dialog:addOption("Libya", 4)
dialog:addOption("Egypt", 5)
dialog:addOption("Sudan", 6)
dialog:addOption("Never mind.", 7)
state.ussrFundsRebelsNorthAfrica = dialog:show()
end
if state.ussrFundsRebelsTierI==6 then
dialog = civ.ui.createDialog()
dialog.title = "Central African Communist Rebels"
dialog.width = 300
dialog:addText("In which country should we fund Communist revolutionaries?")
dialog:addOption("Ethiopia", 1)
dialog:addOption("Somalia", 2)
dialog:addOption("Congo", 3)
dialog:addOption("Nigeria", 4)
dialog:addOption("Chad", 5)
dialog:addOption("Mali", 6)
dialog:addOption("Liberia", 7)
dialog:addOption("Senegal", 8)
dialog:addOption("Kenya", 9)
dialog:addOption("Never mind.", 10)
state.ussrFundsRebelsCentralAfrica = dialog:show()
end
if state.ussrFundsRebelsTierI==7 then
dialog = civ.ui.createDialog()
dialog.title = "South African Communist Rebels"
dialog.width = 300
dialog:addText("In which country should we fund Communist revolutionaries?")
dialog:addOption("Angola", 1)
dialog:addOption("Mozambique", 2)
dialog:addOption("Zimbabwe", 3)
dialog:addOption("Botswana", 4)
dialog:addOption("Namibia", 5)
dialog:addOption("Malawi", 6)
dialog:addOption("Rawanda", 7)
dialog:addOption("Never mind.", 8)
state.ussrFundsRebelsSouthAfrica = dialog:show()
end
if state.ussrFundsRebelsTierI==8 then
dialog = civ.ui.createDialog()
dialog.title = "Middle Eastern Communist Rebels"
dialog.width = 300
dialog:addText("In which country should we fund Communist revolutionaries?")
dialog:addOption("Pakistan", 1)
dialog:addOption("Afghanistan", 2)
dialog:addOption("Iran", 3)
dialog:addOption("Iraq", 4)
dialog:addOption("Syria", 5)
dialog:addOption("Saudi Arabia", 6)
dialog:addOption("Yemen", 7)
dialog:addOption("Oman", 8)
dialog:addOption("U.A.E.", 9)
dialog:addOption("Never mind.", 10)
state.ussrFundsRebelsMidEast = dialog:show()
end
--End of Specific Country
--Start of Payment/Forces provided
if state.ussrFundsRebelsCentralAmerica==1 then
--Tier III asks how much to support
dialog = civ.ui.createDialog()
dialog.title = "The Mexican Communist Party"
dialog.width = 300
dialog:addText("How much support should we provide the Mexican Communist Party?")
dialog:addOption("Minor support at cost of $" ..tostring(specialNumbers.ussrMinorRebelFund).."", 1)
dialog:addOption("Moderate support at cost of $" ..tostring(specialNumbers.ussrModerateRebelFund).."", 2)
dialog:addOption("Massive support at cost of $" ..tostring(specialNumbers.ussrLargeRebelFund).."", 3)
dialog:addOption("Never mind.", 4)
state.ussrFundsRebelsInMexico = dialog:show()
end
if state.ussrFundsRebelsCentralAmerica==2 then
--Tier III asks how much to support
dialog = civ.ui.createDialog()
dialog.title = "Support Communists in Honduras"
dialog.width = 300
dialog:addText("How much support should we provide Communist Rebels in Honduras?")
dialog:addOption("Minor support at cost of $" ..tostring(specialNumbers.ussrMinorRebelFund).."", 1)
dialog:addOption("Moderate support at cost of $" ..tostring(specialNumbers.ussrModerateRebelFund).."", 2)
dialog:addOption("Massive support at cost of $" ..tostring(specialNumbers.ussrLargeRebelFund).."", 3)
dialog:addOption("Never mind.", 4)
state.ussrFundsRebelsInHonduras = dialog:show()
end
if state.ussrFundsRebelsCentralAmerica==3 then
--Tier III asks how much to support
dialog = civ.ui.createDialog()
dialog.title = "Support Communists in Nicaragua"
dialog.width = 300
dialog:addText("How much support should we provide Communist Rebels in Nicaragua?")
dialog:addOption("Minor support at cost of $" ..tostring(specialNumbers.ussrMinorRebelFund).."", 1)
dialog:addOption("Moderate support at cost of $" ..tostring(specialNumbers.ussrModerateRebelFund).."", 2)
dialog:addOption("Massive support at cost of $" ..tostring(specialNumbers.ussrLargeRebelFund).."", 3)
dialog:addOption("Never mind.", 4)
state.ussrFundsRebelsInNicaragua = dialog:show()
end
if state.ussrFundsRebelsCentralAmerica==4 then
--Tier III asks how much to support
dialog = civ.ui.createDialog()
dialog.title = "Support Communists in Panama"
dialog.width = 300
dialog:addText("How much support should we provide Communist Rebels in Panama?")
dialog:addOption("Minor support at cost of $" ..tostring(specialNumbers.ussrMinorRebelFund).."", 1)
dialog:addOption("Moderate support at cost of $" ..tostring(specialNumbers.ussrModerateRebelFund).."", 2)
dialog:addOption("Massive support at cost of $" ..tostring(specialNumbers.ussrLargeRebelFund).."", 3)
dialog:addOption("Never mind.", 4)
state.ussrFundsRebelsInPanama = dialog:show()
end
if state.ussrFundsRebelsCentralAmerica==5 then
return
end
if state.ussrFundsRebelsCaribbean==1 then
--Tier III asks how much to support
dialog = civ.ui.createDialog()
dialog.title = "Support Communists in Cuba"
dialog.width = 300
dialog:addText("How much support should we provide the Cuban Revolutionaries?")
dialog:addOption("Minor support at cost of $" ..tostring(specialNumbers.ussrMinorRebelFund).."", 1)
dialog:addOption("Moderate support at cost of $" ..tostring(specialNumbers.ussrModerateRebelFund).."", 2)
dialog:addOption("Massive support at cost of $" ..tostring(specialNumbers.ussrLargeRebelFund).."", 3)
dialog:addOption("Never mind.", 4)
state.ussrFundsRebelsInCuba = dialog:show()
end
if state.ussrFundsRebelsCaribbean==2 then
--Tier III asks how much to support
dialog = civ.ui.createDialog()
dialog.title = "Support Communists in Haiti"
dialog.width = 300
dialog:addText("How much support should we provide the Haitian Revolutionaries?")
dialog:addOption("Minor support at cost of $" ..tostring(specialNumbers.ussrMinorRebelFund).."", 1)
dialog:addOption("Moderate support at cost of $" ..tostring(specialNumbers.ussrModerateRebelFund).."", 2)
dialog:addOption("Massive support at cost of $" ..tostring(specialNumbers.ussrLargeRebelFund).."", 3)
dialog:addOption("Never mind.", 4)
state.ussrFundsRebelsInHaiti = dialog:show()
end
if state.ussrFundsRebelsCaribbean==3 then
--Tier III asks how much to support
dialog = civ.ui.createDialog()
dialog.title = "Support Communists in Jamaica"
dialog.width = 300
dialog:addText("How much support should we provide the Jamaican Revolutionaries?")
dialog:addOption("Minor support at cost of $" ..tostring(specialNumbers.ussrMinorRebelFund).."", 1)
dialog:addOption("Moderate support at cost of $" ..tostring(specialNumbers.ussrModerateRebelFund).."", 2)
dialog:addOption("Massive support at cost of $" ..tostring(specialNumbers.ussrLargeRebelFund).."", 3)
dialog:addOption("Never mind.", 4)
state.ussrFundsRebelsInJamaica = dialog:show()
end
if state.ussrFundsRebelsCaribbean==5 then
return
end
--{{},{},{},{},{},{},{},{},{},{},},
--Mexico
if state.ussrFundsRebelsInMexico==1 and object.tUSSR.money >= specialNumbers.ussrMinorRebelFund then
civlua.createUnit(object.uLatinRev, object.tProEast, {{204,84,0},{205,85,0},{206,86,0},{206,92,0},{210,94,0},{205,97,0},{209,99,0},{210,98,0},{211,103,0},{197,85,0},}, {count=3, randomize=true, veteran=false})
object.tUSSR.money = object.tUSSR.money - specialNumbers.ussrMinorRebelFund
civ.ui.text(func.splitlines("A small band of Communist Revolutionaries rises up in Mexico!"))
civ.playSound("infantry.wav")
end
if state.ussrFundsRebelsInMexico==1 and object.tUSSR.money <= specialNumbers.ussrMinorRebelFund then
civ.ui.text(func.splitlines("We can't afford to fund these rebels!"))
end
if state.ussrFundsRebelsInMexico==2 and object.tUSSR.money >= specialNumbers.ussrModerateRebelFund then
civlua.createUnit(object.uLatinRev, object.tProEast, {{204,84,0},{205,85,0},{206,86,0},{206,92,0},{210,94,0},{205,97,0},{209,99,0},{210,98,0},{211,103,0},{197,85,0},}, {count=5, randomize=true, veteran=false})
civlua.createUnit(object.uGunTruck, object.tProEast, {{204,84,0},{205,85,0},{206,86,0},{206,92,0},{210,94,0},{205,97,0},{209,99,0},{210,98,0},{211,103,0},{197,85,0},}, {count=1, randomize=true, veteran=false})
object.tUSSR.money = object.tUSSR.money - specialNumbers.ussrModerateRebelFund
civ.ui.text(func.splitlines("A large group of Communist Revolutionaries rises up in Mexico!"))
civ.playSound("infantry.wav")
end
if state.ussrFundsRebelsInMexico==2 and object.tUSSR.money <= specialNumbers.ussrModerateRebelFund then
civ.ui.text(func.splitlines("We can't afford to fund these rebels!"))
end
if state.ussrFundsRebelsInMexico==3 and object.tUSSR.money >= specialNumbers.ussrLargeRebelFund then
civlua.createUnit(object.uLatinRev, object.tProEast, {{204,84,0},{205,85,0},{206,86,0},{206,92,0},{210,94,0},{205,97,0},{209,99,0},{210,98,0},{211,103,0},{197,85,0},}, {count=50, randomize=true, veteran=false})
civlua.createUnit(object.uGunTruck, object.tProEast, {{204,84,0},{205,85,0},{206,86,0},{206,92,0},{210,94,0},{205,97,0},{209,99,0},{210,98,0},{211,103,0},{197,85,0},}, {count=2, randomize=true, veteran=false})
civlua.createUnit(object.uRPG, object.tProEast, {{204,84,0},{205,85,0},{206,86,0},{206,92,0},{210,94,0},{205,97,0},{209,99,0},{210,98,0},{211,103,0},{197,85,0},}, {count=1, randomize=true, veteran=false})
object.tUSSR.money = object.tUSSR.money - specialNumbers.ussrLargeRebelFund
civ.ui.text(func.splitlines("We have sparked a massive Communist revolution in Mexico!"))
civ.playSound("infantry.wav")
end
if state.ussrFundsRebelsInMexico==3 and object.tUSSR.money <= specialNumbers.ussrLargeRebelFund then
civ.ui.text(func.splitlines("We can't afford to fund these rebels!"))
end
if state.ussrFundsRebelsInMexico==4 then
return
end
--Honduras
if state.ussrFundsRebelsInHonduras==1 and object.tUSSR.money >= specialNumbers.ussrMinorRebelFund then
civlua.createUnit(object.uLatinRev, object.tProEast, {{216,102,0},{217,103,0},{218,104,0},{218,102,0},{219,103,0},{217,107,0},{213,103,0},{215,101,0},{216,100,0},{217,101,0},}, {count=3, randomize=true, veteran=false})
object.tUSSR.money = object.tUSSR.money - specialNumbers.ussrMinorRebelFund
civ.ui.text(func.splitlines("A small band of Communist Revolutionaries rises up in Honduras!"))
civ.playSound("infantry.wav")
end
if state.ussrFundsRebelsInHonduras==1 and object.tUSSR.money <= specialNumbers.ussrMinorRebelFund then
civ.ui.text(func.splitlines("We can't afford to fund these rebels!"))
end
if state.ussrFundsRebelsInHonduras==2 and object.tUSSR.money >= specialNumbers.ussrModerateRebelFund then
civlua.createUnit(object.uLatinRev, object.tProEast, {{216,102,0},{217,103,0},{218,104,0},{218,102,0},{219,103,0},{217,107,0},{213,103,0},{215,101,0},{216,100,0},{217,101,0},}, {count=5, randomize=true, veteran=false})
civlua.createUnit(object.uGunTruck, object.tProEast, {{216,102,0},{217,103,0},{218,104,0},{218,102,0},{219,103,0},{217,107,0},{213,103,0},{215,101,0},{216,100,0},{217,101,0},}, {count=1, randomize=true, veteran=false})
object.tUSSR.money = object.tUSSR.money - specialNumbers.ussrModerateRebelFund
civ.ui.text(func.splitlines("A large group of Communist Revolutionaries rises up in Honduras!"))
civ.playSound("infantry.wav")
end
if state.ussrFundsRebelsInHonduras==2 and object.tUSSR.money <= specialNumbers.ussrModerateRebelFund then
civ.ui.text(func.splitlines("We can't afford to fund these rebels!"))
end
if state.ussrFundsRebelsInHonduras==3 and object.tUSSR.money >= specialNumbers.ussrLargeRebelFund then
civlua.createUnit(object.uLatinRev, object.tProEast, {{216,102,0},{217,103,0},{218,104,0},{218,102,0},{219,103,0},{217,107,0},{213,103,0},{215,101,0},{216,100,0},{217,101,0},}, {count=50, randomize=true, veteran=false})
civlua.createUnit(object.uGunTruck, object.tProEast, {{216,102,0},{217,103,0},{218,104,0},{218,102,0},{219,103,0},{217,107,0},{213,103,0},{215,101,0},{216,100,0},{217,101,0},}, {count=2, randomize=true, veteran=false})
civlua.createUnit(object.uRPG, object.tProEast, {{216,102,0},{217,103,0},{218,104,0},{218,102,0},{219,103,0},{217,107,0},{213,103,0},{215,101,0},{216,100,0},{217,101,0},}, {count=1, randomize=true, veteran=false})
object.tUSSR.money = object.tUSSR.money - specialNumbers.ussrLargeRebelFund
civ.ui.text(func.splitlines("We have sparked a massive Communist revolution in Honduras!"))
civ.playSound("infantry.wav")
end
if state.ussrFundsRebelsInHonduras==3 and object.tUSSR.money <= specialNumbers.ussrLargeRebelFund then
civ.ui.text(func.splitlines("We can't afford to fund these rebels!"))
end
if state.ussrFundsRebelsInHonduras==4 then
return
end
--Nicaragua
if state.ussrFundsRebelsInNicaragua==1 and object.tUSSR.money >= specialNumbers.ussrMinorRebelFund then
civlua.createUnit(object.uLatinRev, object.tProEast, {{221,111,0},{222,112,0},{221,109,0},{220,108,0},{219,109,0},{219,111,0},{222,106,0},{220,106,0},{220,110,0},{218,108,0},}, {count=3, randomize=true, veteran=false})
object.tUSSR.money = object.tUSSR.money - specialNumbers.ussrMinorRebelFund
civ.ui.text(func.splitlines("A small band of Communist Revolutionaries rises up in Nicaragua!"))
civ.playSound("infantry.wav")
end
if state.ussrFundsRebelsInNicaragua==1 and object.tUSSR.money <= specialNumbers.ussrMinorRebelFund then
civ.ui.text(func.splitlines("We can't afford to fund these rebels!"))
end
if state.ussrFundsRebelsInNicaragua==2 and object.tUSSR.money >= specialNumbers.ussrModerateRebelFund then
civlua.createUnit(object.uLatinRev, object.tProEast, {{221,111,0},{222,112,0},{221,109,0},{220,108,0},{219,109,0},{219,111,0},{222,106,0},{220,106,0},{220,110,0},{218,108,0},}, {count=5, randomize=true, veteran=false})
civlua.createUnit(object.uGunTruck, object.tProEast, {{221,111,0},{222,112,0},{221,109,0},{220,108,0},{219,109,0},{219,111,0},{222,106,0},{220,106,0},{220,110,0},{218,108,0},}, {count=1, randomize=true, veteran=false})
object.tUSSR.money = object.tUSSR.money - specialNumbers.ussrModerateRebelFund
civ.ui.text(func.splitlines("A large group of Communist Revolutionaries rises up in Nicaragua!"))
civ.playSound("infantry.wav")
end
if state.ussrFundsRebelsInNicaragua==2 and object.tUSSR.money <= specialNumbers.ussrModerateRebelFund then
civ.ui.text(func.splitlines("We can't afford to fund these rebels!"))
end
if state.ussrFundsRebelsInNicaragua==3 and object.tUSSR.money >= specialNumbers.ussrLargeRebelFund then
civlua.createUnit(object.uLatinRev, object.tProEast, {{221,111,0},{222,112,0},{221,109,0},{220,108,0},{219,109,0},{219,111,0},{222,106,0},{220,106,0},{220,110,0},{218,108,0},}, {count=50, randomize=true, veteran=false})
civlua.createUnit(object.uGunTruck, object.tProEast, {{221,111,0},{222,112,0},{221,109,0},{220,108,0},{219,109,0},{219,111,0},{222,106,0},{220,106,0},{220,110,0},{218,108,0},}, {count=2, randomize=true, veteran=false})
civlua.createUnit(object.uRPG, object.tProEast, {{221,111,0},{222,112,0},{221,109,0},{220,108,0},{219,109,0},{219,111,0},{222,106,0},{220,106,0},{220,110,0},{218,108,0},}, {count=1, randomize=true, veteran=false})
object.tUSSR.money = object.tUSSR.money - specialNumbers.ussrLargeRebelFund
civ.ui.text(func.splitlines("We have sparked a massive Communist revolution in Nicaragua!"))
civ.playSound("infantry.wav")
end
if state.ussrFundsRebelsInNicaragua==3 and object.tUSSR.money <= specialNumbers.ussrLargeRebelFund then
civ.ui.text(func.splitlines("We can't afford to fund these rebels!"))
end
if state.ussrFundsRebelsInNicaragua==4 then
return
end
--Panama
if state.ussrFundsRebelsInPanama==1 and object.tUSSR.money >= specialNumbers.ussrMinorRebelFund then
civlua.createUnit(object.uLatinRev, object.tProEast, {{222,112,0},{221,113,0},{222,114,0},{223,115,0},{226,114,0},{227,113,0},{227,115,0},}, {count=3, randomize=true, veteran=false})
object.tUSSR.money = object.tUSSR.money - specialNumbers.ussrMinorRebelFund
civ.ui.text(func.splitlines("A small band of Communist Revolutionaries rises up in Panama!"))
civ.playSound("infantry.wav")
end
if state.ussrFundsRebelsInPanama==1 and object.tUSSR.money <= specialNumbers.ussrMinorRebelFund then
civ.ui.text(func.splitlines("We can't afford to fund these rebels!"))
end
if state.ussrFundsRebelsInPanama==2 and object.tUSSR.money >= specialNumbers.ussrModerateRebelFund then
civlua.createUnit(object.uLatinRev, object.tProEast, {{222,112,0},{221,113,0},{222,114,0},{223,115,0},{226,114,0},{227,113,0},{227,115,0},}, {count=5, randomize=true, veteran=false})
civlua.createUnit(object.uGunTruck, object.tProEast, {{222,112,0},{221,113,0},{222,114,0},{223,115,0},{226,114,0},{227,113,0},{227,115,0},}, {count=1, randomize=true, veteran=false})
object.tUSSR.money = object.tUSSR.money - specialNumbers.ussrModerateRebelFund
civ.ui.text(func.splitlines("A large group of Communist Revolutionaries rises up in Panama!"))
civ.playSound("infantry.wav")
end
if state.ussrFundsRebelsInPanama==2 and object.tUSSR.money <= specialNumbers.ussrModerateRebelFund then
civ.ui.text(func.splitlines("We can't afford to fund these rebels!"))
end
if state.ussrFundsRebelsInPanama==3 and object.tUSSR.money >= specialNumbers.ussrLargeRebelFund then
civlua.createUnit(object.uLatinRev, object.tProEast, {{222,112,0},{221,113,0},{222,114,0},{223,115,0},{226,114,0},{227,113,0},{227,115,0},}, {count=50, randomize=true, veteran=false})
civlua.createUnit(object.uGunTruck, object.tProEast, {{222,112,0},{221,113,0},{222,114,0},{223,115,0},{226,114,0},{227,113,0},{227,115,0},}, {count=2, randomize=true, veteran=false})
civlua.createUnit(object.uRPG, object.tProEast, {{222,112,0},{221,113,0},{222,114,0},{223,115,0},{226,114,0},{227,113,0},{227,115,0},}, {count=1, randomize=true, veteran=false})
object.tUSSR.money = object.tUSSR.money - specialNumbers.ussrLargeRebelFund
civ.ui.text(func.splitlines("We have sparked a massive Communist revolution in Panama!"))
civ.playSound("infantry.wav")
end
if state.ussrFundsRebelsInPanama==3 and object.tUSSR.money <= specialNumbers.ussrLargeRebelFund then
civ.ui.text(func.splitlines("We can't afford to fund these rebels!"))
end
if state.ussrFundsRebelsInPanama==4 then
return
end
elseif activeTribe == object.tUSA then
dialog = civ.ui.createDialog()
dialog.title = "Cold War Concepts: Rebel Spawn"
dialog.width = 300
dialog:addText("We can attempt to influence world events, make the world safe for Democracy, and extend our hegemony by backing nationalist causes in distant lands. The more we invest, the stronger our nationalist allies will become.")
dialog:addOption("Fund Communist Revolutionaries in Latin America", 1)
dialog:addOption("Fund Communist Revolutionaries in Asia", 2)
dialog:addOption("Fund Communist Revolutionaries in Africa", 3)
dialog:addOption("Fund Communist Revolutionaries in the Middle East", 4)
dialog:addOption("Never mind. We have pressing domestic affairs to contend with.", 5)
state.DiegoGarciaLease = dialog:show()
end
end