Giter VIP home page Giter VIP logo

Comments (8)

Whizzer avatar Whizzer commented on July 3, 2024

For which title tiers do we want to implement these two mechanics?

from ck2plus_rewrite.

schwarherz avatar schwarherz commented on July 3, 2024

I was thinking of making them universal

from ck2plus_rewrite.

Whizzer avatar Whizzer commented on July 3, 2024

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.

schwarherz avatar schwarherz commented on July 3, 2024

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.

Whizzer avatar Whizzer commented on July 3, 2024

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.

schwarherz avatar schwarherz commented on July 3, 2024

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.

Whizzer avatar Whizzer commented on July 3, 2024

The simpler this can be, the better. I'll leave you to it.

from ck2plus_rewrite.

schwarherz avatar schwarherz commented on July 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.