Saiphae
8th Jan 2012, 3:13 AM
Hello, hopefully someone can help me out as I'm stumped:
What I'm trying to do:
I was trying to do a little XML tuning to the Martial arts skill to change the following:
Number of hours needed to master meditation (still testing)
Number of wins for becoming grand master (still testing)
chances of space rock breaking giving a good gem (not working)
the speed of which you break said space rock boards (Working! Yay!)
So I went into the XML code for Martial Arts and the board breaker, and changed the parameters to 90 hours of meditation to master it, the wins in the tournament being 2, 4, 6, 8, 10 - the speed to break the space rock boards to 5 sim-minutes, and then the following changes:
chance for no gem (originally 20) to 0
chance for low quality gem to 1
chance for medium quality gem to 2
which should give an 97% chance to give high quality gems.
I then went into the game (after putting the package into my mods folder, of course) and the master of meditation looks to have taken hold, I haven't gotten my sims to china to test the tournament, and the boards are breaking really fast, but either I was having the absolute worst RNG or the change to my code is not working and I can't figure out why, because I broke 20 boards and only got 1 gem. Below is a snippet of the code in question, perhaps someone with a little more experience can help me out here.
<kChanceToGiveNoGems value="0">
<!--Advanced board breaker breaks Space rock. Chance of nothing happening. Score between [0, 100). Positive float. Initial GPE default: 30f.-->
</kChanceToGiveNoGems>
<kChanceToGiveLowPricedGems value="1">
<!--Advanced board breaker breaks Space rock. Chance of Low priced gem. Score between (0, 100). Greater than no chance. Positive float. Initial GPE default: 80f.-->
</kChanceToGiveLowPricedGems>
<kChanceToGiveMediumPricedGems value="2">
<!--Advanced board breaker breaks Space rock. Chance of nothing happening. Score between (0, 100). Positive float. Greater than low priced. Anythgin above this is the chance to get high priced gems. Initial GPE default: 95f.-->
What I'm trying to do:
I was trying to do a little XML tuning to the Martial arts skill to change the following:
Number of hours needed to master meditation (still testing)
Number of wins for becoming grand master (still testing)
chances of space rock breaking giving a good gem (not working)
the speed of which you break said space rock boards (Working! Yay!)
So I went into the XML code for Martial Arts and the board breaker, and changed the parameters to 90 hours of meditation to master it, the wins in the tournament being 2, 4, 6, 8, 10 - the speed to break the space rock boards to 5 sim-minutes, and then the following changes:
chance for no gem (originally 20) to 0
chance for low quality gem to 1
chance for medium quality gem to 2
which should give an 97% chance to give high quality gems.
I then went into the game (after putting the package into my mods folder, of course) and the master of meditation looks to have taken hold, I haven't gotten my sims to china to test the tournament, and the boards are breaking really fast, but either I was having the absolute worst RNG or the change to my code is not working and I can't figure out why, because I broke 20 boards and only got 1 gem. Below is a snippet of the code in question, perhaps someone with a little more experience can help me out here.
<kChanceToGiveNoGems value="0">
<!--Advanced board breaker breaks Space rock. Chance of nothing happening. Score between [0, 100). Positive float. Initial GPE default: 30f.-->
</kChanceToGiveNoGems>
<kChanceToGiveLowPricedGems value="1">
<!--Advanced board breaker breaks Space rock. Chance of Low priced gem. Score between (0, 100). Greater than no chance. Positive float. Initial GPE default: 80f.-->
</kChanceToGiveLowPricedGems>
<kChanceToGiveMediumPricedGems value="2">
<!--Advanced board breaker breaks Space rock. Chance of nothing happening. Score between (0, 100). Positive float. Greater than low priced. Anythgin above this is the chance to get high priced gems. Initial GPE default: 95f.-->