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

onChangeMap event #4284

Merged
merged 4 commits into from
Sep 13, 2023
Merged

onChangeMap event #4284

merged 4 commits into from
Sep 13, 2023

Conversation

Jmr3366
Copy link
Contributor

@Jmr3366 Jmr3366 commented Sep 11, 2023

Identify the Bug or Feature request

Feature request: #1574

Description of the Change

When changing maps, any library token with a macro named onChangeMap will execute.

Possible Drawbacks

For any pre-existing library tokens with a macro named onChangeMap, this could cause unintended macro execution and/or unexpected results.

Documentation Notes

Any time the map is changed and this includes first loading a campaign, the onChangeMap macro will execute if found on a library token.

Release Notes

Examples:

Create a macro on an existing or new library token, named onChangeMap.
Within this macro place:
[h: broadcast(getPlayerName() +" " + getCurrentMapName(),"self")]

When you change the map, your Player Name and the current map name will output to chat.


This change is Reviewable

@cwisniew cwisniew added this pull request to the merge queue Sep 13, 2023
Merged via the queue into RPTools:develop with commit 119be07 Sep 13, 2023
4 checks passed
@Jmr3366 Jmr3366 deleted the jmr-onchangemap branch November 3, 2023 19:43
@cwisniew cwisniew added the feature Adding functionality that adds value label Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding functionality that adds value
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants