Ajneb97 / ConditionalEvents

MIT License
22 stars 12 forks source link

[Suggestion] Add variable to retrieve UUID of victim in victim-related events #73

Open Feniksovich opened 1 month ago

Feniksovich commented 1 month ago

Add variable %victim_uuid% in victim-related events like %entity_uuid% in entity-related events.

Feniksovich commented 2 weeks ago

Closing an issue without any explanation is pretty rude. A quick comment would be appreciated next time.

Ajneb97 commented 2 weeks ago

This was added a long time ago https://ajneb97.gitbook.io/conditionalevents/global-variables#entity-variables

Feniksovich commented 2 weeks ago

This was added a long time ago https://ajneb97.gitbook.io/conditionalevents/global-variables#entity-variables

It's not the same things actually. There is no variable to retrieve UUID of attacked entity for player_attack event type for example. %entity_uuid% never seems to get parsed here and for any "victim-related" events too I guess.

  realms_poster_button_lmb:
    type: player_attack
    conditions:
    - '%victim% == INTERACTION'
    - '%entity_uuid% == 198bff12-cbc5-41c3-afe1-a5b25d25c324' # doesn't work
    # ...
Ajneb97 commented 1 week ago

Oh ok, since the issue was a missing %entity_uuid% variable I thought you meant entity events, but player_attack has victim variables, so I should add a %victim_uuid% as well.