mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2010
Posts: 3
2
Self-satisified door
OP Offline
Self-satisified door
2
Joined: Jul 2010
Posts: 3
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.
Joined: May 2007
Posts: 37
C
Ameglian cow
Offline
Ameglian cow
C
Joined: May 2007
Posts: 37
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