5E Character Create Playlist
  1. #1

    Slash Handler Question

    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.

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,404
    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
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  3. #3
    Thanks for the pointer Trenloe.

    Cheers, Steve.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in