Skip to content

inkunzi-m/inkunzi-m.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

General Format

This is how every event will be structured. When writing a new event, copy and paste this into a .json file before making any changes. Personally (this is totally optional), I would recommend using vscode.dev to make it as it will point out some common formatting errors. Just click "New File" -> "Text File" -> "Select a Language" -> "JSON", and paste the stuff in.

{
    "name": "",
    "description": "",
    "image": "",

    "weight": 0,
    "predicates": {

    },
    "effects": {

    }
}

Name

The title of the event. Displayed in bold at the top of the event.

Example:

"name": "Supply Shortage"

Description

Flavor text that appears in smaller text.

Example:

"description": "Lack of manpower to work the forges has made us unable to create enough supplies to fully equip our armies!"

Image

Image that accompanies the event. (Shamelessly ripped from EU4). A list of all the images is available here at .../events

Example:

"image": "EUROPEAN_city_view.png"

Weight

How likely the event is to happen (higher number = more likely).

Example:

"weight": 30

Predicates

Things that must be true for this event to be able to trigger.
Here's a code block showing an example of usage for every predicate:

"name": "Alzha",
"culture": "Alzhaic",
"religion": "Bytos",
"government_type": "Republic",
"trait": "Warlike",
"at_war": true,
"ruler_condition": "Sick",
"min_ruler_age": 18,
"max_ruler_age": 60,
"min_stability": 10,
"max_stability": 20,
"min_warsupport": 10,
"max_warsupport": 20,
"min_infamy": 10,
"max_infamy": 20,
"min_legitimacy": "None",
"max_legitimacy": "Absolute",
"min_centralization": "None",
"max_centralization": "Absolute",
"player_id": 39820732973,
"independence_level": "Vassal",
"either": [
    {"trait": "warlike"},
    {"trait": "isolationist"}
]

Effects

Things that will happen when the event fires.
Here's a code block showing an example of usage for every effect:

"dummy": "Anything custom/manually edited would go here",
"add_warsupport": 10,
"add_stability": 10,
"add_infamy": 10,
"add_income": 20000,
"add_income": "15%",
"add_legitimacy": 1,
"add_centralization": -1,
"add_revolt_sentiment": "10%",
"set_ruler_condition": "Sick",
"add_cultural_stability": 0.5,
"add_religious_strength": 1.0,
"add_religious_authority": 0.75,
"add_units": {
    "Infantry": 2000,
    "Archers": 500
},
"add_ruler_stats": {
    "Rulership": 1,
    "Intrigue": 2
},
"add_defensive_advantage": 1.0,
"add_offensive_advantage": 1.0,
"add_casualties": -2000,
"add_manpower": 5000,

You can also randomize outcomes, like so:

"add_stability": {"randint": [15, 30]},
"add_income": {"randpercentstr": [-50, 50]}

Event Examples

super_generic.json

{
    "name": "Status Quo",
    "description": "The land feels still. Every day, the sun rises, and every night, the sun sets. Life is quiet, but isn't that how we always wanted it? There's no better time than now to go outside and smell the roses...",
    "image": "EUROPEAN_city_view.png",

    "weight": 1,
    "predicates": {

    },
    "effects": {

    }
}

isolationist_bad_1.json

{
    "name": "Looking Inwards",
    "description": "Lack of effective national fervor has led to both the nobility and general populace becoming completely disinterested in international affairs.",
    "image": "EUROPEAN_free_city.png",

    "weight": 30,
    "predicates": {
        "trait": "isolationist"
    },
    "effects": {
        "add_warsupport": -10
    }
}

isolationist_good_1.json

{
    "name": "National Introspection",
    "description": "Our isolationism has prompted us to pursue a policy of decreasing our foreign involvements and focusing our efforts on national defence and bettering the conditions of our people.",
    "image": "EUROPEAN_city_view.png",

    "weight": 30,
    "predicates": {
        "trait": "isolationist"
    },
    "effects": {
        "dummy": "Joining allies' offensive wars grants -40 war support for this session",
        "add_units": {
            "Strongmen": 1000
        },
        "add_stability": 5
    }
}

ruler_sick_0_start.json

{
    "name": "Ruler falls ill",
    "description": "The king has been struck by a sudden illness! As would be expected, he has been removed from public view and the finest medical practitioners in the realm have been summoned to help treat him. All that is left to do is wait and hope for the best.",
    "image": "EUROPEAN_st_peters_church.png",

    "weight": 10,
    "predicates": {
        "ruler_condition": "Fine"
    },
    "effects": {
        "set_ruler_condition": "Sick"
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published