[SOLVED] (Health behavior) heal object not working with number variable!?

Hii

So I’m having a problem with “heal object”.

So these two events are the same. They are both 200

2024-05-05 04 16 43

2nd one (200 health point) works perfectly.

But the variable (1st one) doesn’t work. It keeps healing enemy 0 point.

hmmmmm

I dunno this is a bug or am I missing something here???

Thank you!

Hello, Hii!

I’ve done a test here using an object variable and everything works fine. Health points are healed correctly, so I assume this isn’t a bug:

Something must be out of place in your project even though I can’t recognize it just by looking at your event. Here are some checks:

  • The name of your object is right (boss_lumberjack)?
  • Is there an instance of this boss in the game at the time the enemy is being healed?
  • Are there any other related events that could be influencing?
1 Like

ohhh Thank you!!

hmm if it isn’t a bug, then I should do a deep dive into this.

Thank you so much for testing it!! :blush:

1 Like

@jianforest, is ult_heal_amount a scene/global variable, or an instance variable of the Boss object? Your event screen snip expects the latter.

1 Like

Omg!! How did you know it was the cause!!!? ahhaha

After I changed it to a scene variable, it is now working fine!!

Thank you for the hint!! :blush: :blush: