BSKGetDiceParts

Module: BSKValue
void BSKGetDiceParts( BSKValue* value, BSKI16* count,
                      BSKUI16* type, BSKCHAR* op, BSKI16* modifier );
Inputs:

Description: Returns the different parts of the given dice value. If the value is not a dice value, but IS a number, the count is the number itself, and the type is '1', and the modifier is 0. If the value is not a dice or a number, this function sets all parts to 0.

Note that a dice value supports the following formats:

The count part may be negative, in which case the random number is intended to be negative.

Return to the API
Return to the function listing


Last updated on 9 Feb 2001 by Jamis Buck (minam@rpgplanet.com)