Can someone explain this?

Started by buddy3315 on Sat, 05/19/2018 - 18:15
Last seen on 00:42, 13. Oct 2018
Joined Jan 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Can someone explain this?
Sat, 05/19/2018 - 18:15

image

Why does a custom Variable 'Power" adds 3 instead of incrementing by 1?

The procedure is called by a Mob getting hurt call.

Anyone?

I can't see this being called 3 times every time a mob is hurt.

Last seen on 00:28, 4. Sep 2018
Joined Sep 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
It might be because of the…
Sun, 05/20/2018 - 13:11

It might be because of the time the mob is hurting.

Last seen on 00:42, 13. Oct 2018
Joined Jan 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
@ BrickMaster 5k. You could…
Sun, 05/20/2018 - 16:05

@ BrickMaster 5k.

You could be right, as I can't see it be anything else. I tried to look at the code but I could not see anything. I barely understand it.

Last seen on 00:42, 13. Oct 2018
Joined Jan 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I'm going to add a print…
Mon, 05/21/2018 - 19:47

I'm going to add a print function to see if this routine is being called more than once. As a test

Last seen on 00:42, 13. Oct 2018
Joined Jan 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Yes the procedure is…
Mon, 05/21/2018 - 21:12

Yes the procedure is actually called 3 consecutive times. Is this normal? or a Bug?

Here we see I added a print function that puts to the console the Global variable 'Power'

Image 2

 

Here we see that print command executed 3X.

Image 1