Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
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 by Frodie; May 2nd, 2014 at 04:38 PM. |
#1 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
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.
|
#2 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
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.
|
#3 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
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 |
#4 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Seems to work fine, BTW - is there a number limit 0-99? I do have a table that is 0 -999, lol
|
#5 |
|
|