Can someone explain this?

Started by buddy3315 on

Topic category: Help with MCreator software

Last seen on 20:19, 16. Apr 2020
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can someone explain this?

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:36, 3. Mar 2020
Joined Sep 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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 20:19, 16. Apr 2020
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@ 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 20:19, 16. Apr 2020
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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 20:19, 16. Apr 2020
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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