Help: How to reliably decrease a dinosaurs food by 2%?

Hi - I’m new here, this is my first post. So please be kind :slight_smile:

I’m working on a mod to add more arrow choices to the Compound Bow that I have called Compound Bow Plus (Alpha is up on Steam Workshop: Steam Workshop::Compound Bow Plus v0.32 Alpha ). I’ve got my first basiic arrow working already. It’s a child of the Metal Arrow and I’ve called it Tranq Metal Arrow. Essentially it is what the name suggests: a Metal Arrow that does a bunch of torpor to targets too. I want this to be quite powerful as it cannot be used on lower level animals (the damage of the arrow is too high and many dinosaurs die from a single shot). To make it more useful I want the Tranq Metal Arrow to also decrease the dinosaurs food by 2% of their total food per arrow.

I’m running into problems though:

  • The tranq arrow reliably tranqs dinosaurs relative to their torpor/level/etc
  • The food drain for some dinos in minimal (like the Rex and the Spino)
  • The food drain for some other dinos takes their food to ZERO (like the Raptor)

I’ve included screenshots. The first three screenshots are the stats of unconscious dinos I have hit with the Tranq Metal Arrow. Notice their food reading specifically. The 300~ food missing from the Rex vs. the 200~ food missing from the Spino is because the Rex took 8~ arrows while the Spino took 5~ arrows. The raptor took a single arrow though and it has ZERO food…

The last screenshot shows DmgType_ProjectileWithImpactFX_PiercingTranq, a custom DmgType I have created for my Tranq. The [0] item relates to the Torpidity. The [1] item (expanded) relates to the Food. I’ve tried it as shown, but I’ve also tried ticking ‘Use Percentual Damage’ with a ‘Percentual Damage’ of -2.0 and I see the same variation between species in how much food they lose :frowning:

If you could help me I would really appreciate it. My specific questions are:

  • What have I done wrong in DmgType_ProjectileWithImpactFX_PiercingTranq to make the food reduce so variably between species?
  • How do I change DmgType_ProjectileWithImpactFX_PiercingTranq so each arrow reduces the dinosaurs food by a fixed 2% per hit?
  • What does ‘Stats Value Modifier Description Index’ do?

bump

Would really love some help with this if anybody has any ideas!

I’ve figured it out now. No need to reply to this post anymore.

I am trying to make a consumable item do this, What did you do to get it to work? When I feed my item to a creature it’s hunger goes to zero. which I do not want.

Ive got the opposite problem, I too am making a consumable the causes minor starvation but when i use it on a dino it has no effect. Works fine though on me. So I too would love to know the answer