Comments (8)
For which title tiers do we want to implement these two mechanics?
from ck2plus_rewrite.
I was thinking of making them universal
from ck2plus_rewrite.
In that case, we'll no doubt have to keep performance in mind while implementing this. I'm fairly certain we can calculate a weighted average opinion of the top 10 or 20 vassals, possibly all of them. Probably best to do that on_yearly_pulse.
from ck2plus_rewrite.
It could probably be calculated on the fly whenever we need it by manipulating realm_character_percent
.
Legitimacy would likely be a bunch of math (still waking up for the day, haven't thought of all of the variables yet) divided by ruled_years
.
Ideally, they'd both be variables that are only calculated when they're needed instead of having to be stored somewhere
from ck2plus_rewrite.
That last part can be done if we recalculate upon game start and loading a save and set the variables to zero, so they won't be part of the save itself.
from ck2plus_rewrite.
I'm thinking it shouldn't need to be stored at all. When we settle on a formula for them we can just have the engine do the math whenever it's needed. A succession/monthly pulse that influences revolt risk, for instance. They numbers themselves aren't important enough to save between calculations (besides, that tends to lead to a mana feeling and having to account for changing the number in nearly every event and that's just ugh annoying)
from ck2plus_rewrite.
The simpler this can be, the better. I'll leave you to it.
from ck2plus_rewrite.
So I think for control it should be something like this:
realm_control = {
# High Control
trigger_if = {
limit = {
realm_character_percent = {
target = 50.0
opinion = { who = ROOT value = 25 }
}
# Some Action Here
}
}
# Mid Control
trigger_else_if = {
limit = {
realm_character_percent = {
target = 25.0
opinion = { who = ROOT value = 25 }
}
}
# Some Action Here
}
# Low Control
trigger_else = {
# Some Action Here
}
}
from ck2plus_rewrite.
Related Issues (20)
- Cultures/Religion: Ensure province history for conflicting provinces is correct HOT 9
- Core: Stillbirth/Miscarriage mechanic
- Bugfix: Mercenary Succession HOT 1
- Religion/Ensure all pagan religions have all vanilla features HOT 2
- Revamp Tribal Reformation
- Cultures/assign_character cultures HOT 1
- Hadrian's Wall and The Danevirke
- Karling Empire Rise/Fall decisions and events
- Titles: Fix various holes in history HOT 5
- Cultures: Melting Pot / Emerging Cultures
- Ambitions: Be Legitimized
- Ambitions: Adopt a Lifestyle
- Societies: Devil Worshippers HOT 2
- Societies: More variety
- Societies: Rework Existing Societies
- Societies: Full Coverage
- Core: Empire Breakup
- Titles: Carolingian Empire/Kingdoms HOT 2
- Core: March Mechanic
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ck2plus_rewrite.