Skip to content

Instantly share code, notes, and snippets.

@mackal
Created August 22, 2018 01:30
Show Gist options
  • Save mackal/7691f2de47e8df09c00957b9b9040804 to your computer and use it in GitHub Desktop.
Save mackal/7691f2de47e8df09c00957b9b9040804 to your computer and use it in GitHub Desktop.
local index = 0;
local casting_data = {
{
"pulls his right arm back, preparing to cut a swathe through his opponents with his razor sharp claws.",
"claws at those on his right flank.",
6554
},
{
"pulls his left arm back, preparing to cut a swathe through his opponents with his razor sharp claws.",
"claws at those on his left flank.",
6555
},
{
"twirls his tail, preparing to sweat away those foolish enough to take up position behind him.",
"swats at those behind him with his tail.",
6553
},
{
"rears backs and fills his lungs, preparing to exhale a cone of ice.",
"exhales a cone of deadly ice.",
6552
}
};
-- PEQ handles this for us already, so don't need to seed
math.randomseed(os.time())
local num = math.random(1,table.getn(casting_data));
print(num)
print(casting_data[num][1])
print(casting_data[num][2])
print(casting_data[num][3])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment