trivia hint - 25/01/07 05:05 PM
Code:
alias trivhint { var %a, %b = $regsub($1,/(?<=\S{ $+ $2})\S/g,$replace($$3,\,\\,$,\$),%a) return %a } set %trivia.h1 $trivhint(%trivia.a,2,*) set %trivia.h2 $trivhint(%trivia.a,3,*) set %trivia.h3 $trivhint(%trivia.a,4,*)
this makes like this
1stHint: io******
2ndHint: iop*****
3rdHint: ioph****
But when the answwer is number it will do this
1stHint: 32
2ndHint: 32
3rdHint: 32
How to make this gives a hint randomly letters on the answer and also on numbers it wont show some hint
and if the letters on the answer only have 4 or less it shows all the answer...