Replies: 6 (Who?), Viewed: 2847 times.
Original Poster
#1 Old 1st Jul 2018 at 7:16 PM
Default Mods that add moodlets added by other mods.
Gaybie's potion mod got me thinking and making a mod that adds other potions...
Lets say i wanted to make a mod that adds a potion that adds certain moodlets to a sim. Easy Peazy, just follow Gabie's XML tuning mod.
But ah, now I want to make a potion that gives a sim a moodlet that isn't an EA moodlet.
How would I do that? I've tried and it doesn't work. I think the namespace is different so it can't find the moodlet.

Sims are better than us.
Original Poster
#2 Old 2nd Jul 2018 at 3:58 AM
Well, made some interesting new (not replacement) potions, like one to give the alien abduction pregnancy. Potion doesn't work on female sims, which I didn't anticipate. If there is an EA moodlet, you can make a potion for it. I can do EA moodlets and EA commodities all day long.
Doesn't look like the same can be done with the chemist bench - those are done in a script mod not an XML mod.
Then I screwed up the mod and messed up my game. This is why there are things like "git". Gonna have to start over.

Sims are better than us.
Original Poster
#3 Old 3rd Jul 2018 at 5:01 PM
My sim is starting an alien invasion with his "Alien Abduction Pregnancy" potion. He just throws 'em at every young adult and adult man on the street.
Yep, the town's goin' green...

Sims are better than us.
Site Helper
4th Jul 2018 at 3:38 PM
This message has been deleted by Ghost sdoj. Reason: never mind: I didn't read
Forum Resident
#4 Old 7th Jul 2018 at 2:38 PM
I don't know if you can add custom moodlets through xml. I think you'll have to add the hash of the moodlet that is created by the modder

public class BuffUnluckyCustom : Buff
private const ulong kCustomBadLuckBuffGuid = 0x0822598C6222E445;
public static ulong StaticGuid
return 0x0822598C6222E445;

And this is the xml for the moodlet


So if you have my Enhanced Witches mod installed. Try adding 0x0822598C6222E445 instead of the EA moodlet. If that doesn't work try CustomBadLuckBuff or CustomBadLuckBuff=0x0822598C6222E445.
If you try this let me know how it went.
Good luck and Happy Simming
Original Poster
#5 Old 12th Jul 2018 at 6:19 PM
i see the Hex and custom class names in the mod with the modlets, as well as the hex call outs in the mod's dll.
But what I want to know is how to add this buff in a potion XML..
I've tried adding the <Hex> and <CustomClassName> entries, using the appropriate entries. That didn't work.
Example of potion XML that adds the nausea buff...
DOH!! I forgot to add it to the initial definition XML!! there's no hex in it
It still may not work, but what I did shouldn't work!

Sims are better than us.
Forum Resident
#6 Old 12th Jul 2018 at 9:24 PM
Oh it didn't work?
Right now I don't have any other ideas. I'll reply again if I can think of something else. Please let us know if you figure it out on your own.
Lab Assistant
#7 Old 13th Jul 2018 at 7:11 AM
You probably need to add the namespace before it. I have no time to look at the code right now, but to understadn what I mean: I think it has to be Skydome.EnhancedWitches.CustomBadLuckBuff, just with the real namespace and classname used.
Back to top