Hello, Epic. I wonder if I could ask you for one more thing.
I''m pretty much done with a Trivia script I'm setting up, thanks to your last tip on how to handle the text match. Everything's working fine now, except for one last thing which my novice brain cannot understand. I've spent the last 4 days searching and trying to learn how to do it so I don't bother people with what might be perhaps a newbie question, but to be honest, it's just way too complicated for me to grasp. And that's how to create a hint system from the %answer variable.
My trivia bot reads from a txt file a question and an answer which are then populated into %question and %answer variables using $read and $gettok. So far so good.
For example: Who is the founder of Micrsoft?|Bill Gates
Timer1 1 10 Who is the founder of Microsoft?
Timer2 1 20 Hint: **** *****
Timer3 1 30 B*** G****
Timer4 1 40 B**l G**e*
Timer5 1 50 Bill Gates
I've succeeded with timer 1 and timer 5 and everything else in the entire script apart from the hint system, which basically is timer 2 , 3 and 4. How can I asterisk everything on the first hint, and then on the second and third hints give out random letters depending on total count of characters? For example 10% hint if total character count of %answer is 5 letters, 20% if it's 10 letters, etc. Doesn't matter, really. Just an example. Any number will do. Just giving you an idea.
I've read about creating a separate hint alias that uses regex and calling that alias with the timers, but to be honest, it's all Chinese to me. It's way too complicated for me to understand, as much as I've tried.
