Forum Discussion

ZerbuTabek's avatar
11 years ago

@SimGuruModSquad: Game ignores affordance modifiers

I am trying to make it so that a Sim with a certain buff (in this case, a trait buff) will be poor at telling jokes. As a test just to make sure it's working, I've done the complete opposite and made it so jokes will always be successful, with code copied from the Hilarious trait. The final version will make Sims bad at telling jokes, but this is just the test version:

(I've split it into multiple lines to make it easier to read, but the actual version is on one line)




39b2aa4a:00000000:8af8b916cf64c646
39b2aa4a:00000000:3bf33216a25546ea





18225237257155725030



Skill_Mental
1.1


Skill_Social
0.5


Skill_Charisma
2.1







24509
24505

3
100




2f7d0004:00000000:30f0846c783606f9
2f7d0004:00000000:30f0846c783606f9True
0
1
False



I have nothing else to say except... it simply doesn't work. I looked very closely at the code and can't see what I did wrong. I tried moving the tags to the start of game_effect_modifiers, I tried giving the trait to a new Sim that didn't already have it, but the game just acts as if the affordance modifiers aren't there.

(I'm 1000% sure the Sim actually has the buff, as the other effects work fine)
  • @Zerbu, is the XML in the original post the most up-to-date version of your buff? I can give it a go in game (it might take me a few days to get back to you, though).
  • Looks plausible to me. Since the effect is additive, could it be that other buffs interfere?
  • "velocitygrass;12821376" wrote:
    Looks plausible to me. Since the effect is additive, could it be that other buffs interfere?


    I tried giving a Sim the "Hilarious" trait which the code was cloned from. That worked fine, so if it was a conflict it should have effected that too. :(
  • Thanks! :) though since that's an older mod I've pretty much abandoned it for newer and better ones, so I'm not in any kind of rush to have the problem solved. My other question about clothing buffs (http://forums.thesims.com/en_US/discussion/793685/still-not-solved-simgurumodsquad-need-help-with-clothing-buffs?new=1) which I asked at about the same time is still waiting for an answer though.