PDA

View Full Version : Slash Handler Question



Stv
May 8th, 2020, 12:09
Hi All,
Can you point me in the right direction of how to pass a paramater to a new slash command?

i.e
If I had the following '/test this is test text' in the chat window
what do I need to do to access the text written after the /test in my registered slashhandler function?

Hope that makes sense :)

Cheers, Steve.

Trenloe
May 8th, 2020, 12:15
Have a look in CoreRPG desktop\scripts\manager_gmidentity.lua - both of the slash handlers in there use parameters.

For more examples search in your favourite ruleset for registerSlashHandler

Stv
May 8th, 2020, 12:20
Thanks for the pointer Trenloe.

Cheers, Steve.