how to use rng?
Posted: Thu Jul 10, 2014 11:02 am
I was trying to make a randomized chat, but kept failing at it. It seems that rng.table() or rng.percent() just doesn't work in my chat text.
I got "rng.table(greeting)" and "rng.percent(25)" directly printed out in the dialog. I guess the problem is that I haven't required rng, but I don't know how to do it.
This is my source code:
I got "rng.table(greeting)" and "rng.percent(25)" directly printed out in the dialog. I guess the problem is that I haven't required rng, but I don't know how to do it.
This is my source code:
Code: Select all
newChat{ id="Greeting",
text = [[#light_green# rng.percent(25) .. "my friend."]],
answers = {
{[["Greetings. May I ask you something?"]], jump="Question"},
{[[Greetings.]]},
},
}