whiterider
4th May 2012, 10:18 PM
So, I've been trying to make a global mod to slowly increase fitness when gardening - seems a little unrealistic that my sims can spend 12 hours a day labouring in the fields and still get fat. The fitness code seems to be very well hidden in the EA semiglobals - I can find lots of ends and no beginnings... but I've now downloaded Sophie-David's axe-throwing fitness mod (http://www.modthesims.info/download.php?t=435442), had a look at it, and I think I'm halfway there.
It seems fitness gain is controlled by two commands; Fitness - Delta - Set and Fitness - Delta - Clear. I presume the Fitness - Delta - Set is done outside of the interaction BHAV for Maxis stuff, since its absence is conspicuous, but David's mod demonstrates that it is possible to get this working simply by including Set at the beginning of the function and Clear at the end, which is what I'd like to do.
Now, here's where I come unstuck. I know that Delta refers to BCONs, so I'm not that surprised that using Literals in this command doesn't seem to work. It may be that I'm using the Literals wrong, though, in which case I'd love it if someone would point out what I should be doing. :) If not, then I'll have to use Constants and a BCON: which is fine, but I think I'm going to have to create the BCON from scratch, and this is where I come unstuck: how do I settle on the new BCON's Name, Group and Instance? Can I use any old thing, or does it have to be somehow related to the other values for this interaction? Do I have to reference it somewhere specific, or can I just plug it straight into the BHAV and go? Tutorials are just as welcome as explanations!
My current file is attached in case anyone wants a look. Feel free to ignore all the skill stuff - I initially had a brain fart whereby I forgot that body skill and fitness are not the same thing.
It seems fitness gain is controlled by two commands; Fitness - Delta - Set and Fitness - Delta - Clear. I presume the Fitness - Delta - Set is done outside of the interaction BHAV for Maxis stuff, since its absence is conspicuous, but David's mod demonstrates that it is possible to get this working simply by including Set at the beginning of the function and Clear at the end, which is what I'd like to do.
Now, here's where I come unstuck. I know that Delta refers to BCONs, so I'm not that surprised that using Literals in this command doesn't seem to work. It may be that I'm using the Literals wrong, though, in which case I'd love it if someone would point out what I should be doing. :) If not, then I'll have to use Constants and a BCON: which is fine, but I think I'm going to have to create the BCON from scratch, and this is where I come unstuck: how do I settle on the new BCON's Name, Group and Instance? Can I use any old thing, or does it have to be somehow related to the other values for this interaction? Do I have to reference it somewhere specific, or can I just plug it straight into the BHAV and go? Tutorials are just as welcome as explanations!
My current file is attached in case anyone wants a look. Feel free to ignore all the skill stuff - I initially had a brain fart whereby I forgot that body skill and fitness are not the same thing.