• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Random Roll Table

Frodie

Well-known member
I want to make a roll for a wild surge. Once it's activated, it will roll 1-100 and show the result. I am not sure where to start. I was thinking an Activated Ability, but I am not sure how to start with the script. Any ideas?

Hum, I did a search and seems I already asked this, lol. Seems it could not be done back then, but has anything changed so it can?
 
Last edited:
I don't believe you can do table rolls, just have to list the tables and use the dice roller. I could be wrong, but I've never seen it.
 
Yea, that's what I was thinking. Too bad, I was thinking about making a Wild Mage dataset. An adjustment button that had the Wild Surge results would have been cool.
 
I think I got something that might work -

Post Levels 10000

~ If we're not enabled, get out now
doneif (field[abilActive].value = 0)

var x as number

x = random(2)

if (x = 0) then
field[livename].text = field[name].text &" Text 1"
done
endif

if (x = 1) then
field[livename].text = field[name].text &" Text 2"
done
endif
 
Seems to work fine, BTW - is there a number limit 0-99? I do have a table that is 0 -999, lol
 
Back
Top