• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Add new diseases, injuries and medicine.

Spudstation

New member
Hi. I'm quite young and have had no experience modding before, so I won't be the best at knowing what to do! However, I am figuring it out and having loads of fun doing so!
I want to add some more injuries and status effects first, such as the common cold or a flu, but am wondering if I can give the player a chance to randomly catch a cold or flu. I was also wondering if I could increase this probability based in how wet a player is. For example, If you weren't wet it would be a 1% chance, if you were 50% wet that would go to a 10% chance to contract a cold, or at 100% wetness have a 50% chance of catching a cold. If anyone knows anything that could help with this I would be very grateful!

 
Last edited by a moderator:
I am also looking to add Diazepam, which will let you move normally when you have a sprain or break just like when you use steroids amongst other effects, but I am struggling to add that function as well as remove the function from the steroids aswell and I'm not sure what to do.
screenshot_1746644408186.png


 
<remove xpath="//requirement[@name='!HasBuff' and @buff='buffDrugSteroids']"/>




Also, if you remove the Steroid buff, the second line won't work as it is looking for the buff you removed.

 
I have this code which works good:       
<effect_group>
            <triggered_effect trigger="onSelfBuffUpdate" action="ModifyCVar" cvar="$critHitNaturalHealingRate" operation="multiply" value="2">
                <requirement name="HasBuff" buff="buffDiazepam"/>
            </triggered_effect>
        </effect_group>
But the display for the timer keeps jumping around to different values unless the code is insterted into where the red line is. If anyone could be of any help as to what I need to do in order make it go there then I would be very grateful.
screenshot_1747074099600.png


 
Back
Top