Spoiler:Written in GDCC over a couple of days.
Simply named execute Hackscript (WinScriptNumber, WinScriptArgument, Difficulty) off a line or actor, and create your own win scripts.
Will named execute HackFail (no arguments) if you lose, the example map simply takes 5hp.
Difficulty should range from 0-5, 5 being pretty much impossible.
download: https://dl.dropboxusercontent.com/u/109003827/hack.pk3