Hi,
I’m trying to have 3 print statements and when a input is given it randomly chooses one of them and prints it.
Printing to the console will be enough.
My main issue is working with tables.{} (incase i want to increase the number later on).
I imagine it’d be something like:
local printtable = {} -- Creation of table for print statements.
Then i’d need to write the print statements into the table ad associate them with a number.
And then use the random function to call a number.
(math.random (3))
And print that print statement out that correspondes.
I realise i’ve left alot of holes in this, but have i got the right idea on how to accomplish this?
Thanks,
Matt
[import]uid: 91798 topic_id: 16334 reply_id: 316334[/import]
[import]uid: 3826 topic_id: 16334 reply_id: 60874[/import]