![]() ![]() Note that these roll template functions generally expect an integer value to compare, and attempting to use them to compare string values may not not work as expected. ![]() In addition, the roll template functions rollTotal, rollGreater, rollLess, and rollBetween can use the computed result of a roll: When the roll is output to the chat, hovering the mouse over a custom result will display the quantum roll symbol, and the original results of each die. To use the custom computed results in your roll templates, replace the roll names in the template with computed::: The function requires the rollId from the startRoll function, and can accept an object, where the keys are roll names and the values are the computed results for that roll, as a string or an integer. This function will finish a roll initiated with the startRoll function, and allow for adding computed results to each roll. A breakdown of each “sub-roll” (each part of an expression is rolled separately) An ordered array of the results of all dice in this roll The result of the roll, as calculated by the roll server The results from the roll server will be an object containing the following propertiesĪ unique identifier for this roll, required to finish the rollĪn object containing the roll information from the roll server, where the keys are roll names and the values are an object containing the roll information, for example: The roll will wait for a corresponding finishRoll function call before posting the results to chat, however if the finishRoll call is not made within 5 seconds, the roll will be posted automatically. The function will initiate a roll to the roll server, the results for which will be returned to the callback. This function accepts a roll as a string (generally a roll template string). StartRoll( roll, callback? ) (asynchronous)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |