• Crusader Kings III Available Now!

    The realm rejoices as Paradox Interactive announces the launch of Crusader Kings III, the latest entry in the publisher’s grand strategy role-playing game franchise. Advisors may now jockey for positions of influence and adversaries should save their schemes for another day, because on this day Crusader Kings III can be purchased on Steam, the Paradox Store, and other major online retailers.


    Real Strategy Requires Cunning
Showing developer posts only. Show all posts in this thread.

Johan

Studio Manager Paradox Tinto
Administrator
Super Moderator
Moderator
16 Badges
Dec 14, 1999
18.079
28.874
  • Diplomacy
  • Teleglitch: Die More Edition
  • War of the Roses
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Magicka: Wizard Wars Founder Wizard
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Imperator: Rome Sign Up
  • A Game of Dwarves
  • Lead and Gold
  • Magicka
  • Starvoid
MeanTimeToHappen = the value given after modifiers..
noOfDays = basically, how many days are between checks.. (currently 1)

Code:
		float daylyChance = float(1.0f - exp( log(0.5f) / MeanTimeToHappen ));
		float chance = float(1 - exp( noOfDays * log(1 - daylyChance)) );
		return chance;  //0-1% chance of event happening that day
 

Darkrenown

Star marshal
28 Badges
Jan 8, 2002
24.642
16.661
no
  • Sengoku
  • Crusader Kings II: Reapers Due
  • Stellaris Sign-up
  • Paradox Order
  • Victoria 2 Beta
  • Victoria 2 A House Divided Beta
  • Europa Universalis: Rome Collectors Edition
  • Hearts of Iron II: Beta
  • Cities: Skylines
  • 500k Club
  • 200k Club
  • Rome: Vae Victis
  • Victoria 2
  • Ship Simulator Extremes
  • Hearts of Iron II: Armageddon
  • Semper Fi
  • Europa Universalis: Rome
  • Europa Universalis III Complete
  • Lost Empire - Immortals
  • Europa Universalis III Complete
  • Heir to the Throne
  • Hearts of Iron III Collection
  • Hearts of Iron III
  • For The Glory
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • East India Company
  • Deus Vult
That's source code (C++ maybe) in the box, so it's hardcoded :)