FG Spreadshirt Swag
  1. #1

    Join Date
    Mar 2009
    Location
    Lidingö, Sweden, Europe
    Posts
    374

    Barebone dice function

    Just wondered if there's a helper function that just generates the result of a dice roll, i.e result = roll(3, 6). All dice related code that I found presents the result in the chat window, I just need the result. It's easy to write my own, I just wondered if there already was such a function.

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,411
    Try StringManager.evalDice or DiceManager.evalDiceString - these are defined in the CoreRPG scripts\manager_string.lua file and call similar functions in the DiceManager script package. Have a look in these and see which function is appropriate for what you want to do.
    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!

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
  •  
5E Product Walkthrough Playlist

Log in

Log in