testebr wrote:in function "on text". See my first por.
I think what he meant, is color inside the words, not just at their start/ending boundaries.
Code: Select all
on *:text:*Wha*is*xxx?*:#:{ msg # sexy }
1. What(ctrl+o) is xxx*sexy
2. W(ctrl+o)hat is xxx*sexy
In case 1, the code will msg sexy. The wildcards obscure the control code. Cheater prospers.
In case 2, the code will fail. The wildcards haven't obscured the control code. Cheater is foiled. The control code keeps cheating at bay.
You will need to edit your question files to add these control codes or have the script dynamically insert them into words. If your using color then you may not want to use (ctrl+o) which is plaintext, use ctrl+k your color code instead.
It shouldn't be that hard to edit the script to randomly insert them into the questions before they are asked. It would be as simple as splitting the question into a list using space as the splitter " ", then use a foreach to inject a ctrl+whatever (the control code used should be the same as the question text is currently using so the effect is invisible and seamless) into every word using a random lindex position based on that word's string length, then join this list back into a string for the rest of the script to go with. Sir_Fz has already offered to realize this for you, you would be wise to take him up on his offer.