Thread: Barebone dice function
-
January 19th, 2024, 09:44 #1
- Join Date
- Mar 2009
- Location
- Lidingö, Sweden, Europe
- Posts
- 378
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.
-
January 19th, 2024, 11:44 #2
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