Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Event Condition trigger by target #202

Open
3 tasks done
Andrzejone opened this issue Nov 24, 2024 · 1 comment
Open
3 tasks done

Custom Event Condition trigger by target #202

Andrzejone opened this issue Nov 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Andrzejone
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Are you running the latest bot and plugin version?

  • I have confirmed i'm running the latest bot version

Can anyone else reproduce the issue?

  • I have confirmed with someone else that they can reproduce the issue too.

Describe the bug

CustomEvents module, condition string is not triggered as it should.
equal(name(target()), string(\ Mindfire Behemoth //)) - should trigger (Ship Ability) if Target is only this NPC.
But it spam Ability non stop.
even all(has-relation(npc, target()), equal(name(target()), string(\\ Mindfire Behemoth //))) isn't changing it behaviour.

Ability is Citadel Plus Travel

Expected Behavior

It should trigger ability when condition is meet.

Steps To Reproduce

Set custom event in module.
Start the bot
Watch as it spam

Screenshots, Video, or other media

image

Bot Version

1.131.2

Plugin version

2.3.5

Anything else?

No response

@Andrzejone Andrzejone added the bug Something isn't working label Nov 24, 2024
@dm94
Copy link
Owner

dm94 commented Dec 2, 2024

As these functions are very generic the behaviour bot detects that this ability is available and every time it checks it and the condition is valid it uses it.
You can avoid the problem by setting a more concrete and limited condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants