Procedure help - external trigger does not provide argument?

Started by blockheadnoob on

Topic category: Help with modding (Java Edition)

Last seen on 00:12, 14. Jan 2023
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure help - external trigger does not provide argument?

Hello!

I'm trying to set a boolean in one procedure and access it in another one.

In the screen cap, when a player is vulnerable (a variable I set in another procedure) accumulate all damage taken. When I try to add an If condition about If (Vulnerable = True), I get an error that "You have selected external trigger that does not provide the following dependencies: Arguments". 

Is Get Command Logic Param the wrong call?

 

Entity attacked is not When…
Thu, 12/22/2022 - 18:29

Entity attacked is not When command is executed, so it obviously can not pass arguments from a command, as there is no command.

I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei

Last seen on 00:12, 14. Jan 2023
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm sorry I'm not following…
Thu, 12/22/2022 - 22:23

I'm sorry I'm not following you. I don't expect the above command to be when the attack command is executed. 

When a player is attacked, I'm trying to check for a property on the attacked player called Vulnerable, and if it's true get the damage done to the player and add it to another variable to get the total amount of hit points. 

What I've been looking for is a way to determine what entity was attacked from this event, and if it's a player, be able to get and assign variables to that player. Is there a better way to accomplish this as maybe I've got the wrong approach?

Last seen on 04:04, 3. Feb 2023
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You want get/set NBT logic…
Sat, 12/24/2022 - 10:48

You want get/set NBT logic value, not command logic parameter.

Set 'Vulnerable' as NBT on the player

Last seen on 00:12, 14. Jan 2023
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
will give this a shot Lofty,…
Tue, 12/27/2022 - 05:16

will give this a shot Lofty, thank you!