Exponential Damage Effect over time

Started by kennywilliams21 on

Topic category: Help with MCreator software

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Exponential Damage Effect over time

Hey, so I'm trying to make a "Pain" effect that deals damage. I want higher levels to decrease the amount of delay between damage, and every time it deals damage, I want the next time it deals damage to become 1.2x stronger. Here's what I've worked out so far:

https://ibb.co/Pcbdhkg
^^Direct link in case the image doesn't work correctly

There's also an "On Effect Started" procedure I made that simply just sets painCounter to 0 and painDamage to 0.1.

In theory, this should work. However, my game crashes whenever it gets applied. I've been able to give myself the effect successfully, but as soon as I apply it as a splash to another entity, the game crashes. What can I do to fix this?