As in the example below is use 2 commands to get the result.
Is there a way to do accomplish something like this?
results=rollDice[dice$]
or is the 2 lines I use the best way?
Code: Select all
sTART:
CLS
RANDOMIZE TIMER
PROCEDURE rollDice[diceStr$]
{some code to parse and create a total}
RETURN total
END PROC
INPUT "ENTER DICE TO ROLL. EXAMPLE 3D6 ",dice$
rollDice[dice$]
results=PARAM(rollDice)
PRINT "RESULT = ";results
PRINT
PRINT "PRESS ANY KEY TO ROLL AGAIN"
WAIT KEY RELEASE
GOTO sTART