Guide
Rivalries
1.0.5. A pack can name rivalries between two players, with their own start, pace and words. They are records in data/rivalries.json (or one file each in data/rivalries/). List the type in your mod.json provides as rivalries. The Mod Studio's Rivalries page writes them.
[
{
"id": "mymod.rivalry.north-south",
"a": "mymod.player.north",
"b": "mymod.player.south",
"startHeat": 0.6,
"growth": 1.5,
"perMeeting": 0.02,
"born": "careerStart",
"history": ["{a} and {b} have not shaken hands since the county final"],
"grudge": [
{ "headline": "{a} and {b}: round two", "body": "{history}. They meet again at {event}." }
]
}
]| Field | What it does |
|---|---|
a, b | The two players, by id: a pack's players or the game's. "you" is the player you play as. They must differ |
startHeat | 0 to 1 (0.5): the heat the rivalry starts at when it is born. A hotter rivalry already there is kept |
growth | 0 to 5 (1): how fast their meetings build it, as a multiple of the usual gain |
perMeeting | 0 to 0.5 (0): heat added every time they meet, on top of the usual gain (not multiplied by growth) |
born | "careerStart" (the default): born in the career's first week; "firstMeeting": born when they first meet |
history | Up to 10 lines about their past. {a} and {b} are their names. News on the pair uses one as {history}; the lines take turns by meetings |
grudge | Up to 10 headline and body pairs: the news when the two meet in a big match (the living world's grudge match; for your own rival, a televised or major match). They take turns by meetings |
How it plays. Heat is the game's own rivalry heat between the two players (0 to 1), the same number the World page, the rival lists and stories (againstRival, rivalryMin) read. A rivalry with you shows in your rivals once it is hot enough. Nothing here draws a random number: a pack without rivalries plays exactly as before, and a pack's rivalries change only the heat of the pairs it names and the words of their news.
Careers under way. Rivalries follow the installed packs on every load. One a career has not seen before is born from that load on (at the next week, or at the pair's next meeting): it never rewrites the past head-to-head, and a hotter rivalry already there is kept. A new career has it from its first week.
Checks. A rivalry of a player with themself is an error. A player id nobody has is not an error (the player may come from another pack): the rivalry is simply never born.