Jump to content

A gift to the mods


Maelstrom Vortex

Recommended Posts

/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 by Maelstrom Vortex
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...