mIRC Homepage
Posted By: 26736243 I need help to modify a code, tanks! - 03/08/10 09:41 AM
I have the following code.
Code:
hide { 
  var %a, %b = $regsub($1,/(?<=\S{ $+ $2})\S/g,$replace($$3,\,\\,$,\$),%a)
  return %a 
}
hint-1 { 
  msg # $hide($gettok(%temporary,2,169),0,$chr(149)) 
}
hint-2 { 
  msg # $hide($gettok(%temporary,2,169),1,$chr(149))
}
hint-3 { 
  msg # $hide($gettok(%temporary,2,169),2,$chr(149)) 
}

Shows the response "Hello world"
Code:
Hint 1: H---- w----
Hint 2: He--- wo---
Hint 3: Hel-- wor--

Is there any way to do the same but at random?
Example:
Code:
Hint 1: ---l- -o---
Hint 2: -e-l- -o--d
Hint 3: -ell- -or-d

Thank you very much!
Posted By: Chessnut Re: I need help to modify a code, tanks! - 03/08/10 10:26 AM
This was done as a shortcode challenge on SwiftIRC a while ago. You can find all the entries here:

http://forum.swiftirc.net/viewtopic.php?f=35&p=162311#p162311

Obviously a load of shortcoded scripts isn't the most ideal in terms of practicality, but at the very least they'll give you some ideas.
© mIRC Discussion Forums