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

raiseEvent will accept a table but raiseGlobalEvent will not #7208

Open
hungrybeagle opened this issue Apr 19, 2024 · 1 comment
Open

raiseEvent will accept a table but raiseGlobalEvent will not #7208

hungrybeagle opened this issue Apr 19, 2024 · 1 comment

Comments

@hungrybeagle
Copy link

Brief summary of issue / Description of requested feature:

local playerData = {hp,maxHP,sp,gold}
raiseEvent('Status',playerData)
raiseGlobalEvent('Status',playerData)

raiseEvent works fine, but raiseGlobalEvent has an error and is expecting a string, number, boolean or nil but not a table

Steps to reproduce the issue / Reasons for adding feature:

both functions should behave the same way

Error output / Expected result of feature

Extra information, such as the Mudlet version, operating system and ideas for how to solve / implement:

@vadi2
Copy link
Member

vadi2 commented Apr 19, 2024

This is how it is implemented and documented, but certainly an improvement in this area is welcome. https://github.com/Mudlet/Mudlet/pull/1472/files is the PR that added it for raiseEvent() for reference!

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

2 participants