PDA

View Full Version : Modding Martial Arts Skill, needing a little help


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.-->

Saiphae
12th Jan 2012, 4:08 PM
I see many views but no responses, so I'm assuming there are people out there just as stumped as I am. I ended up redoing my mod, just in case there was some sort of goofup, and starting a new game (because I didn't have Late Night, bought late night and wanted to try the new World). The results are below:

Number of Hours needed to Master Meditation -- Working with 90 hours, could be tweaked any way now, if others would like my mod.

Number of Wins to become Grand Master -- Working, Currently set to rank you up after every two wins, so at 10 wins grand total, you are a grand Master.

Board Breaking speed -- My sims now take 5 sim-minutes instead of 30 to break space rocks.

Chances of a space rock returning a gem (See below):

The chances of a space rock returning a gem is still a little buggy. I still used the same numbers (0% chance of no gem, 1% chance of low quality, 2% of medium quality) and I will say I am getting more gems on average than I was before the tweak, and yes a majority of them are high quality. However, I'm only getting a gem about 90% of the time, so the 0% chance of no gem does not seem to be working as a true 0% chance.

I am writing this post from work, so I do not have access to my .package file right now. But if others would like this mod, please reply and I will upload it when I get home. I'm actually quite happy with the results seeing as this is my first mod, and would love to share with people.

I'm also working on a skill mod that not only increases your speed of learning, but also reduces the number of friends/relationships needed for charisma, so far it is going well, but I still need to test a few more things. If anyone would like that mod, also just let me know. (I know there are other skill mods out there, so it might not be necessary, I used it mostly as training.)

Srikandi
13th Jan 2012, 2:12 AM
Congratulations on your mod :)

If you want to share your mods with people via MTS, please submit them to the moderation queue via the Upload Items link under the Create menu.