I want to create different ways of saying the same thing. Any ideas for a function that will handle a list?
ex.
game.use = {'. OK ',' got it. ',' Used. ',' Did it. ',' All right. ',' Right on. ',' Success. ',' Ok. ',' Got it. ',' Used . ',' done. ',' okay. ',' right on. ', 'Finished.'};
I like to create a fortune on page 1 of the russian questions. There was a good idea:
function (s) luckf = {i = rnd (100); if i <to then return -1; else if i <(100-s) then return 0; else if i> = (100-s) then return 1; end end end end,
s = 10; -- s is the weight of fortune here 10%bad outcome 80% good and 10% really good
The part that is left is using it
useit = function(s)
success = luckf(5); -- here there is a weight of 5. 5%misfortune 90% normal success or critical hit etc...
if success then p' extra good fortune'; else if success == false then p 'Too bad, not enough luck'; else p 'done'; end end end,
I want to know how to use italics and bold in the text, so I can create a theme to use different fonts for a better story. I read somewhere on the corners to change as the narrator tells the story. Maybe all CAPITAL LETTERS! or adding a semi random text.