![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 | |
Silent Hunter
![]() |
![]() Quote:
Hmmm, I plan to play with randomisation 40% or 50% ! Are these then the correct entries: ChooseFrom=40 (for 40%) ChooseFrom=50 (for 50%) Is this correct ? Sorry for my dumb questions ![]() Best regards, Magic ![]() |
|
![]() |
![]() |
![]() |
#2 |
Admiral
![]() |
![]()
Hi Magic, no this is not correct.
The probability that Q-Ship is armed is calculated as follows (see Readme.txt or first post): Prob = 100% / ChooseFrom. ChooseFrom=1 => Prob = 100% ChooseFrom=2 => Prob = 50% ChooseFrom=4 => Prob = 25% ChooseFrom=10 => Prob = 10% ChooseFrom=100 => Prob = 1% h.sie |
![]() |
![]() |
![]() |
#3 | |
Sea Lord
![]() Join Date: Nov 2007
Location: In sight of Stonehenge
Posts: 1,750
Downloads: 51
Uploads: 26
|
![]() Quote:
You need ChooseFrom=4 for 25% ChooseFrom=3 for 33% ChooseFrom=2 for 50% You need to use whole numbers - ChooseFrom=2.5 won't work. RandomizedEvents.cfg tells SH3 Commander how many sets of variables to choose from (a bit like rolling a dice). In my randomised intro messages there are 82 messages and I use ChooseFrom=82 to tell it to select one of the 82 variables. RandomizedEvents.cfg rolls an 82 sided dice and comes up with a number (lets call it 12) then looks for the line beginning 12_ and applies the information in that line. h.sie has just one variable in his mod, so by setting ChooseFrom=3 a three sided dice is rolled, but only if the dice shows 0 will his mod be enabled. If it shows 1 or 2 nothing is applied, therefore you get a 33% chance of his mod enabling. BTW, the dice goes from 0 therefore a three sided dice is 0, 1, 2. An 82 sided dice is 0, 1, 2... 80, 81. It's the way the mod was written and JScones kindly taught me how SH3 Commander worked when I got confused!
__________________
![]() All my mods are available at MediaFire: SH3 Mods Other modders SH3 mods SH4 Mods ...you can't please all of the people all of the time... |
|
![]() |
![]() |
![]() |
#4 | ||
Silent Hunter
![]() |
![]() Quote:
Quote:
![]() ![]() Now I understand the system..... ![]() ![]() Best regards, Magic ![]() |
||
![]() |
![]() |
![]() |
#5 |
Sea Lord
![]() Join Date: Nov 2007
Location: In sight of Stonehenge
Posts: 1,750
Downloads: 51
Uploads: 26
|
![]()
You're welcome.
I'm working on an SH3 Commander 'How to' based on what I've learned by creating SH3 Commander mods and a lot of information that JScones has been kind enough to share with me - RandomizedEvents.cfg is one of the chapters. It should help modders recognise what a powerful tool SH3 Commander is and help people create mods using Commander. At the moment we're just scratching the surface...
__________________
![]() All my mods are available at MediaFire: SH3 Mods Other modders SH3 mods SH4 Mods ...you can't please all of the people all of the time... |
![]() |
![]() |
![]() |
#6 | |
Silent Hunter
![]() |
![]() Quote:
That sounds very good, mate ! ![]() ![]() Good luck for your work ! ![]() Best regards, Magic ![]() |
|
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|