kacpersky
Mr. Brightside
- Joined
- Jan 25, 2009
- Messages
- 499
- Reaction score
- 3
im creating some npc. This is like a riddle : Player have to say message but this message is a word one from 4. And npc randomly check if its corect. Im trying to do something like this:
local word = {msgA, msgB, msgC, msgD}
local rando = word[math.rand(1,4)]
if msgcontains(msg, 'word') == rando
how i can get a random word from this table ? and how i can check with said value ?
local word = {msgA, msgB, msgC, msgD}
local rando = word[math.rand(1,4)]
if msgcontains(msg, 'word') == rando
how i can get a random word from this table ? and how i can check with said value ?