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

Some curious findings about events #136

Open
WaterKnight opened this issue Apr 23, 2024 · 0 comments
Open

Some curious findings about events #136

WaterKnight opened this issue Apr 23, 2024 · 0 comments

Comments

@WaterKnight
Copy link
Contributor

WaterKnight commented Apr 23, 2024

Since there are gaps in the event ids (https://docs.google.com/spreadsheets/d/1-NSMX9DMqIEAqvLgb_dYNZnM3bKYkittpePcB5_cnAc/edit#gid=0), I have been searching for hidden events with bruteforce methods. So far, there has not been too much luck, but still there were some curious things to be observed.

TriggerRegisterDialogEvent emits event id 92 rather than EVENT_DIALOG_CLICK = ConvertDialogEvent(91). 92 is not listed, seems to be a confusion. I could not get 91 to be emitted.

The unnamed event id 316 is used for TriggerRegisterCommandEvent and TriggerRegisterUpgradeCommandEvent.

The newer 1.31 event responses can be called in unrelated contexts and tap into (seemingly other event) data. See attached picture where they are called in a mouse move event (event id 307) or unit damaged event (event id 52).

image

image

In TriggerRegisterPlayerChatEvent context, BlzGetTriggerFrameText and BlzGetTriggerSyncPrefix yield the entered chat string.

BlzGetTriggerFrameText, BlzGetTriggerSyncPrefix, and BlzGetTriggerSyncData can crash the game when called in wrong context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant