Maelstrom Vortex Posted February 16, 2009 Report Share Posted February 16, 2009 (edited) /nukecalculator { msg # $me is verifying the impact of $1 missiles. set %nukes $1 set %i 0 set %success 0 set %roll 0 if ($1 !isnum) { msg $chan Invalid Parameters halt } if (%nukes <= 0) { msg $chan Invalid Parameters halt } while (%i < %nukes) { inc %i 1 %roll = $rand(1,100) if (%roll >= 60) { inc %success 1 } } /msg $chan Successful Nuclear Strikes: %success set %success 0 } Simply type /nukecalculator (the number of nukes you want to test) IE: /nukecalculator 1000 It should yield a number around 200. This is to test nukes against SDI defenses. Edited February 16, 2009 by Maelstrom Vortex Quote Link to comment Share on other sites More sharing options...
LeVentNoir Posted February 16, 2009 Report Share Posted February 16, 2009 (edited) Awesome. EDIT: SDI its 60% not 80%. Edited February 16, 2009 by LeVentNoir Quote Link to comment Share on other sites More sharing options...
Chancellor Bismarck Posted February 16, 2009 Report Share Posted February 16, 2009 Doesn't work, you didn't write the code properly. You can't add a /command . I'll re-write it for you. Quote Link to comment Share on other sites More sharing options...
Maelstrom Vortex Posted February 16, 2009 Author Report Share Posted February 16, 2009 Awesome.EDIT: SDI its 60% not 80%. Thank you for the feedback, updated it to 60%. I wish to note this is an alias, it is not a remote. Quote Link to comment Share on other sites More sharing options...
MercyFallout Posted February 16, 2009 Report Share Posted February 16, 2009 You rock. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.