• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
Jer8m8 said:
Thanks, with a few other fixes they now work fine. For the Italian events, I have a question: Can an event create peace if peace already exists? Or likewise, can it create war if a war is ongoing?

Presumably nothing would happen in such situations. If A is at war with B and an event orders A and B to go to war, then it would simply reinforce the status quo.
 
Next set of events

I have allowed for a slim chance of the Italians ceding provinces, and a slim chance the Ottomans try to puppet or go to war


Code:
# Fall of Tripoli (ITALY)

event = { 
    country = ITA
    id = 27900
    random = no 
    style = 0 

    name = "Tripoli has fallen" 
    desc = "After their victory at Qasr Bu Hadi, the Sanusis attacked and captured Tripoli, 

the most important city in Libya.  This is worrisome at home, especially with the war in 

Europe.  Most people suggest that we should settle for a truce and resolve our issues 

later.  A radical few insist on fighting on.  There are also some who believe we should 

renounce imperialism after our defeats at Adowa and now at Tripoli, and that all of 

Libya should be given to the Sanusi bedouins.  This might also incite trouble between 

Turkey and Sanusia." 

    trigger = { 
        control = { province = 1085 data = U02 }     
    } 

    date = { day = 0 month = september year = 1914 } 
    offset = 20 
    deathdate = { day = 0 month = january year = 1925 } 

    action_a = { 
        name = "A truce is a reasonable idea" 
        command = { type = dissent value = -1 } 
        command = { type = peace which = U02 value = 1}

    } 
    action_b = { 
        name = "There can never be peace with the bedouins" 
        command = { type = dissent value = 1 } 
        command = { type = war which = U02 }
        command = { type = manpowerpool value = 5 }
    } 
   action _c = {
        name = "We shall renounce imperialism"
        command = { type = peace which = U02 value = 1 }
        command = { type = dissent value = 15 } 
        command = { type = secedeprovince which = U02 value = 1084 }
        command = { type = secedeprovince which = U02 value = 1085 }
        command = { type = secedeprovince which = U02 value = 1086 }
        command = { type = secedeprovince which = U02 value = 1087 }
        command = { type = secedeprovince which = U02 value = 1088 }
        command = { type = secedeprovince which = U02 value = 1089 }
        command = { type = secedeprovince which = U02 value = 1092 }
        command = { type = secedeprovince which = U02 value = 1094 }
        command = { type = secedeprovince which = U02 value = 1095 }
        command = { type = secedeprovince which = U02 value = 1096 }
        command = { type = secedeprovince which = U02 value = 1097 }
        command = { type = secedeprovince which = U02 value = 1098 }
        command = { type = secedeprovince which = U02 value = 1106 }
        command = { type = secedeprovince which = U02 value = 1105 }
        command = { type = trigger which = 27901}
     }
}

# Cessation of Libya (ITALY)

event = { 
    country = ITA
    id = 27901
    random = no 
    style = 0 

    name = "We have ceded Libya" 
    desc = "We have renounced imperialism and ceded our Libyan territories to the 

bedouins" 

  

    action_a = { 
        name = "Okay" 

    } 

}



# Ottomans demand Libya (ally)

event = { 
    country = TUR
    id = 41900
    random = no 
    style = 0 

    name = "Demand Libya " 
    desc = "The Italians have decided to cede their Libyan provinces to the Sanusi 

bedouins after the bedouins captured Tripoli.  But those provinces were originally under 

our control.  We can either let them strengthen our ally in the fight against the Entente, 

we can demand them, or we can demand to puppet the Sanusis." 

    trigger = { 
        event = 27901
    } 

    date = { day = 0 month = september year = 1914 } 
    offset = 20 
    deathdate = { day = 0 month = january year = 1925 } 

    action_a = { 
        name = "Do nothing" 

    } 
    action_b = { 
        name = "Demand that the Sanusis return Libya" 
        command = { type = trigger value = 49011 } 
    } 
    action_c = {
        name = "Demand that the Sanusis recognize us as master"
        command = { type = trigger value = 49012 }
}
# Ottomans demand Libya (not ally)

event = { 
    country = TUR
    id = 41900
    random = no 
    style = 0 

    name = "Demand Libya " 
    desc = "The Italians have decided to cede their Libyan provinces to the Sanusi 

bedouins after the bedouins captured Tripoli.  But those provinces were originally under 

our control.  We can either do nothing, we can demand them, we can demand to puppet 

the Sanusis, or we can declare war on them." 

    trigger = { 
        event = 27901
    } 

    date = { day = 0 month = september year = 1914 } 
    offset = 20 
    deathdate = { day = 0 month = january year = 1925 } 

    action_a = { 
        name = "Do nothing" 

    } 
    action_b = { 
        name = "Demand that the Sanusis return Libya" 
        command = { type = trigger value = 49011 } 
    } 
    action_c = {
        name = "Demand that the Sanusis recognize us as master"
        command = { type = trigger value = 49012 }
    }
    action_d = {
        name = "Declare war"
        command = { type = trigger value = 49013 }
        command = { type = war which = U02 }
    }
}

# Ottomans demand provinces Sanusia

event = { 
    country = U02
    id = 49011
    random = no 
    style = 0 

    name = "Ottomans demand Libya" 
    desc = "The Ottomans believe that Libya is rightfully theirs, and that the Italians stole 

it from them.  They have asked that we return the provinces." 

    action_a = { 
        name = "We conquered them for ourselves" 

    } 

   action _b = {
        name = "They will benefit the Ottomans"
        command = { type = dissent value = 15 } 
        command = { type = secedeprovince which = TUR value = 1084 }
        command = { type = secedeprovince which = TUR value = 1085 }
        command = { type = secedeprovince which = TUR value = 1086 }
        command = { type = secedeprovince which = TUR value = 1087 }
        command = { type = secedeprovince which = TUR value = 1088 }
        command = { type = secedeprovince which = TUR value = 1089 }
        command = { type = secedeprovince which = TUR value = 1092 }
        command = { type = secedeprovince which = TUR value = 1094 }
        command = { type = secedeprovince which = TUR value = 1095 }
        command = { type = secedeprovince which = TUR value = 1096 }
        command = { type = secedeprovince which = TUR value = 1097 }
        command = { type = secedeprovince which = TUR value = 1098 }
        command = { type = secedeprovince which = TUR value = 1106 }
        command = { type = secedeprovince which = TUR value = 1105 }
        command = { type = trigger which = 41902}
     }
}

# Ottomans demand puppeting Sanusia

event = { 
    country = U02
    id = 49012
    random = no 
    style = 0 

    name = "Ottomans demand Libya" 
    desc = "The Ottomans believe that Libya is rightfully theirs, and that the Italians stole 

it from them.  They have asked that we become their puppet state." 

    action_a = { 
        name = "We conquered them for ourselves" 

    } 

    action_b = { 
        name = "We shall submit to their rule" 
        command = { type = trigger which = 41903}
    } 

   action _c = {
        name = "They will benefit the Ottomans"
        command = { type = dissent value = 15 } 
        command = { type = secedeprovince which = TUR value = 1084 }
        command = { type = secedeprovince which = TUR value = 1085 }
        command = { type = secedeprovince which = TUR value = 1086 }
        command = { type = secedeprovince which = TUR value = 1087 }
        command = { type = secedeprovince which = TUR value = 1088 }
        command = { type = secedeprovince which = TUR value = 1089 }
        command = { type = secedeprovince which = TUR value = 1092 }
        command = { type = secedeprovince which = TUR value = 1094 }
        command = { type = secedeprovince which = TUR value = 1095 }
        command = { type = secedeprovince which = TUR value = 1096 }
        command = { type = secedeprovince which = TUR value = 1097 }
        command = { type = secedeprovince which = TUR value = 1098 }
        command = { type = secedeprovince which = TUR value = 1106 }
        command = { type = secedeprovince which = TUR value = 1105 }
        command = { type = trigger which = 41902}
        command = { type = trigger which = 41903}
     }
}

# Sanusia has ceded provinces

event = { 
    country = TUR
    id = 41902
    random = no 
    style = 0 

    name = "Sanusia has ceded provinces" 
    desc = "The Sanusis have ceded Libya to us" 


    action_a = { 
        name = "Okay" 
    } 
}

# Sanusia has been puppeted

event = { 
    country = TUR
    id = 41903
    random = no 
    style = 0 

    name = "Sanusia has agreed to be puppeted" 
    desc = "The Sanusis have agreed to become our puppet" 


    action_a = { 
        name = "Okay" 
        command = { type = make_puppet which = U02 }
    } 
}

# Ottomans demand puppeting Sanusia

event = { 
    country = U02
    id = 49012
    random = no 
    style = 0 

    name = "Ottomans declare war" 
    desc = "The Ottomans have declared war on us for not ceding Libya!" 

    action_a = { 
        name = "Prepare for war!" 

    } 
}

####Older events fixed
# Sanusia has retaken the Fezzan

event = { 
    country = U02
    id = 49003
    random = no 
    style = 0 

    name = "Sanusia has retaken the Fezzan" 
    desc = "In 1914 the Sanusis recaptured the Fezzan, southwestern Libya, wiping out 

Italian advances there" 

    trigger = { 
        war = { country = ITA country = U02 }
       control = { province = 1084 data = U02 }	
    } 

    date = { day = 0 month = january year = 1914 } 
    offset = 20 
    deathdate = { day = 0 month = january year = 1925 } 

    action_a = { 
        name = "We will retake more of our homeland soon" 
        command = { type = supplies value = 100 } 
        command = { type = dissent value = -1}
    } 
}
# Ally with the nationalists?  Triggered by 49004

event = { 
    country = U02
    id = 49005
    random = no 
    style = 0 

    name = "Should we deal with the urban nationalists?" 
    desc = "After their victory at Qasr Bu Hadi, some Sanusis speculated that an alliance 

with the urban nationalists in Tripoli might advance their cause.  Most disagreed, relying 

on the traditional hostility between the two." 


    action_a = { 
        name = "They don't understand what we are fighting for" 
        command = { type = dissent value = -10 } 
        command = { type = trigger value = 49006}
    } 
    action_b = { 
        name = "Absolutly!  Together we will crush the Italians" 
        command = { type = dissent value = 10 } 
        command = { type = trigger which = 49007}
    } 
}

# Ally with the nationalists?  No

event = { 
    country = U02
    id = 49006
    random = no 
    style = 0 

    name = "We will fight by ourselves" 
    desc = "We have chosen not to ally with the nationalists" 


    action_a = { 
        name = "Ok" 
        } 
}

# Ally with the nationalists?  Yes

event = { 
    country = U02
    id = 49007
    random = no 
    style = 0 

    name = "We will fight with the nationalists" 
    desc = "We have chosen to ally with the nationalists" 


    action_a = { 
        name = "Ok" 
    } 
}
# Civil war after tripoli falls

event = { 
    country = U02
    id = 49010
    random = no 
    style = 0 

    name = "The nationalists are unhappy" 
    desc = "After capturing Tripoli, some of the nationalists have become very unhappy 

with bedouin rule. " 

    trigger = { 
        event = 49009
    } 

    date = { day = 0 month = september year = 1914 } 
    offset = 200 
    deathdate = { day = 0 month = january year = 1925 } 

    action_a = { 
        name = "Uh oh" 
        command = { type = dissent value = 15 } 
    } 
}
 
You seem to have two identical 41900 events. If one requires an alliance being present and the other doesn't, then the appropriate condition should be included into one of the two events' triggers. Also, you may want to make on event sleep the other....

How do they play out?
 
The second should be 41901. I haven't been able to test these do to the impossibility of Sanusia attempting to attack Sirt, let alone Tripoli...I know how to add units to a save game file-can I put them in provinces another country controls?
 
I believe you can, but I do not know how. I have heard that if you do so and enemy units are already in that province also that the units will immediately begin to fight.
 
Shadow Knight said:
I believe you can, but I do not know how. I have heard that if you do so and enemy units are already in that province also that the units will immediately begin to fight.

They'll automatically lose due to the lack of organisation, surely?
 
Allenby said:
They'll automatically lose due to the lack of organisation, surely?
I have no idea, I just read somewhere on the boards that someone had done it, but I do not recall if they did it successfully or to what extent they tested it.
 
For what it's worth: when I was playing around with the November scenario, I changed the control of a couple of Serbian provinces to Austrian, and repositioned their start-up forces appropriately.

What I'd forgotten was the Serbian mobilisation event, which puts divisions in some of the provinces I'd already given to A-H. When I tested the scenario, those units appeared in the A-H controlled provinces, and began fighting. However, they also immediately 'liberated' the provinces back to Serbian control, before the battle had even started! (Bear in mind that they were Austrian controlled but Serbian owned areas, which probably made a difference.)