Selecting random table
zoidbergsghost
Member Posts: 6
Hi everyone,
I was wondering if it is possible to select a random table to pull values from? I haven't found a solution to this and was wondering if it is even possible
thanks
I was wondering if it is possible to select a random table to pull values from? I haven't found a solution to this and was wondering if it is even possible
thanks
Comments
Hi @zoidbergsghost It could be simpler to just have the one Table but with added columns for different sets of values; in other words, select random column.
So something like:
Rule: When touch is pressed
Change Attribute ChooseValue to tableCellValue(game.YourTable, game.YourColNum,random(1,5))
--- the value 5 are as an example of course, change to your actual amount columns in your table--
(Display Text game.ChooseValue)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps