- Site Map >
- Modding and Creation >
- Sims 3 Creation >
- Modding Discussion >
- Trying to create a buff
- Site Map >
- Modding and Creation >
- Sims 3 Creation >
- Modding Discussion >
- Trying to create a buff
Replies: 4 (Who?), Viewed: 365 times.
#1
21st Feb 2024 at 7:04 PM
Posts: 58
Trying to create a buff
I'm trying to create a buff using CCLoader that should be linked to eating an ingredient but for some reason i can't manage to make it appear in game. I suspect that my problem has to do with the hash value that as I read in the CCLoader tutorial has to be a positive. As I'm not a programmer and my math knowledge is pretty basilar I don't even know how to check if the value is positive. Below is what I've done till now.
Code:
<BuffList> <BuffName>Milky</BuffName> <BuffDescription>MilkyDescription</BuffDescription> <Category>Mental</Category> <AxisEffected>Happy</AxisEffected> <EffectValue>20</EffectValue> <TimeoutLength>240</TimeoutLength> <SKU>BaseGame</SKU> <Stackable>False</Stackable> <Hex>Milky=0xD456E260531B5C31</Hex> <ThumbFilename>MilkyThumb</ThumbFilename> <Version>0.1</Version> <Effect1>AddToCommodity,Fun,5</Effect1> <Effect2></Effect2> <Effect2></Effect2> <Effect3></Effect3> </BuffList>
Code:
<BuffOrigin> <Hex>FromMilk=0xEE0DD8A1FE90E654</Hex> </BuffOrigin>
Code:
<EventHandler> <EventTypeId>kEatIngredient</EventTypeId> <Parameters>Milk</Parameters> <BuffName>Milky</BuffName> <BuffOrigin>FromMilk</BuffOrigin> <DelegateMethod></DelegateMethod> </EventHandler>
Advertisement
#2
22nd Feb 2024 at 10:56 AM
Posts: 156
Quote: Originally posted by reira_chan
I'm trying to create a buff using CCLoader that should be linked to eating an ingredient but for some reason i can't manage to make it appear in game. I suspect that my problem has to do with the hash value that as I read in the CCLoader tutorial has to be a positive. As I'm not a programmer and my math knowledge is pretty basilar I don't even know how to check if the value is positive. Below is what I've done till now.
Code:
<BuffList> <BuffName>Milky</BuffName> <BuffDescription>MilkyDescription</BuffDescription> <Category>Mental</Category> <AxisEffected>Happy</AxisEffected> <EffectValue>20</EffectValue> <TimeoutLength>240</TimeoutLength> <SKU>BaseGame</SKU> <Stackable>False</Stackable> <Hex>Milky=0xD456E260531B5C31</Hex> <ThumbFilename>MilkyThumb</ThumbFilename> <Version>0.1</Version> <Effect1>AddToCommodity,Fun,5</Effect1> <Effect2></Effect2> <Effect2></Effect2> <Effect3></Effect3> </BuffList>
Code:
<BuffOrigin> <Hex>FromMilk=0xEE0DD8A1FE90E654</Hex> </BuffOrigin>
Code:
<EventHandler> <EventTypeId>kEatIngredient</EventTypeId> <Parameters>Milk</Parameters> <BuffName>Milky</BuffName> <BuffOrigin>FromMilk</BuffOrigin> <DelegateMethod></DelegateMethod> </EventHandler> |
You should also add the buff in the code at Sims3GameplaySystems/GameplayActorSystems/Buffnames and also add the conditions for the buff to appear.
#3
22nd Feb 2024 at 11:12 AM
Posts: 58
Ty! I thought that CCLoader loaded the xml files without needing to edit the script code :D
#4
23rd Feb 2024 at 3:59 AM
Posts: 486
Thanks: 10 in 2 Posts
I've never actually seen a mod that used CCLoader for buffs (I'm sure they're out there, just much more familiar with the recipes), so I'm not sure if there is a specific method it was meant to be combined with.
But there is an archive of NonaMena's pure script buff tutorial here, which borrows one of EA's own buff booting methods without any need for modifying existing scripts.
Scribe of tutorials. Oracle of questions at NRaas. Blog staller at thecardinalsims. Feel free to @ me for input on any TS3/TS4 modding questions.
But there is an archive of NonaMena's pure script buff tutorial here, which borrows one of EA's own buff booting methods without any need for modifying existing scripts.
Scribe of tutorials. Oracle of questions at NRaas. Blog staller at thecardinalsims. Feel free to @ me for input on any TS3/TS4 modding questions.
#5
23rd Feb 2024 at 9:06 AM
Posts: 58
Ty! I gonna try that tutorial!!!
Who Posted
|