• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Nyarlathotep854

Recruit
18 Badges
Aug 18, 2019
9
0
  • Crusader Kings II: Holy Fury
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Crusader Kings II: Jade Dragon
  • Crusader Kings Complete
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Majesty 2
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
I am modding a custom hunger system into the game, but the chance isn't changing at all when it is supposed to (depending on the victim's and vamp's combat rating)

see snippet below (the first random_list weigh and the logic for variable creation/subtraction)
 

Attachments

  • Faulty event snippet.txt
    10,5 KB · Views: 0
Those modifiers can't be properly applied until after the option is clicked. Try moving your logic inside the hidden tooltip to an immediate block.
 
Those modifiers can't be properly applied until after the option is clicked. Try moving your logic inside the hidden tooltip to an immediate block.
Thank you so much sir, that fixed it completely!
I still have one question if you don't mind, when I gave up on this issue i tried a simpler solution, to use "combat_rating" directly, which didn't work for some reason which still baffles me.
Thank you again, I wasted this entire day just trying to fix this/trying other methods, it turned out to be really simple to fix :)
 

Attachments

  • Weird thing.txt
    3,1 KB · Views: 0
Thank you so much sir, that fixed it completely!
I still have one question if you don't mind, when I gave up on this issue i tried a simpler solution, to use "combat_rating" directly, which didn't work for some reason which still baffles me.
Thank you again, I wasted this entire day just trying to fix this/trying other methods, it turned out to be really simple to fix :)

Odd, that should work without problem.