Suppose I want to speedwalk. Halfway through the speedwalk there is a chasm I need to surpass, and I can surpass it with any of 3 abilities. I want to surpass with one ability at random.
Is it possible to put functions in tables? Alternatively, could I change a variable using a table?
Not sure if Send would be the proper method of delivery.
Thanks for the help, guys!
abilities = {"jump", "climb", "cast fly" }
function surpassObstacle()
Send(abilities[math.random(#abilities)])
end
speedWalk = {
"n",
"n",
surpassObstacle(),
"n",
"s"
}
Is it possible to put functions in tables? Alternatively, could I change a variable using a table?
Not sure if Send would be the proper method of delivery.
Thanks for the help, guys!