Jump to content

MCM Reversal Question


Recommended Posts

Posted

I am currently working on my Mod Wasteland Dairy Framework and finally have a working version of MCM running

however there is a slight problem with leveled Lists.

because it reverses the chances of getting Loot

 

0% ------100% - MCM view of chances

100%-------0% - in game chances

 

for example if you have 25% in mcm of getting an impregnated NPC

in game, it would be 25% of not getting an impregnated NPC

 

(in short, MCM actually controls the chances of not getting Impregnated NPC's)

is there a fix for this issue?

 

 

(I have written that it is an reversal issue in the MCM itself but I would prefer a better solution)

Posted

How are you implementing the percent chance?

 

I use quite a few percentage chances set by MCM in my mods.  The MCM value is placed into a global variable, and then in my script I do something like this:

If Utility.RandomInt(0,99) < AFV_Global_RHCuffsChance.GetValue() as Int

In other words, the random number must be less than the chance in order for the event to happen.

Posted
2 minutes ago, EgoBallistic said:

How are you implementing the percent chance?

 

I use quite a few percentage chances set by MCM in my mods.  The MCM value is placed into a global variable, and then in my script I do something like this:


If Utility.RandomInt(0,99) < AFV_Global_RHCuffsChance.GetValue() as Int

In other words, the random number must be less than the chance in order for the event to happen.

thanks I will have a look at doing this tomorrow (it is nearly midnight here)

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...