mIRC Home    About    Download    Register    News    Help

Print Thread
2
26736243
26736243
2
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!

Last edited by 26736243; 03/08/10 09:42 AM.
C
Chessnut
Chessnut
C
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.


Link Copied to Clipboard