View Single Post
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old March 27th, 2023, 04:17 PM
Hmm. I'm not sure where to look next. Let's add some debugging - test what's going on.

Within the trigger script:
Code:
debug "Strength"
debug "Minimum: " & hero.child[attrStr].field[trtMinimum].value
debug "Maximum: " & hero.child[attrStr].field[trtMaximum].value
debug "Initial: " & hero.child[attrStr].field[trtUser].value hero.child[attrStr].field[trtUser].value = random(6) + random(6) + 1
debug "After Adding Random: " & hero.child[attrStr].field[trtUser].value
To look at the results of the debugs, in the Develop menu, first make sure "Enable Data File Debugging" is turned on, then near the bottom, find floating info windows...show debug output.
Mathias is offline   #6 Reply With Quote