How to make a nuke!

  • Videogamer555
    6th Jan 2012 Member 1 Permalink
    Use this Lua code to turn BOMB into NUKE. Put one pixel of NUKE on the simulation, and when it touches something it goes BOOOOOOOOM!!!!!!!!!.

    math.randomseed(os.time())

    function mousefunc(x, y, button, event)
    if event==1 then
    if button==1 then
    nukecounter=0
    end
    end
    end
    tpt.register_mouseclick(mousefunc)



    tpt.el.bomb.description="BOOOOOOOOOOOOM!!!!!!!!!!"
    tpt.el.bomb.name="nuke"

    function bomb_update(i, x, y, s, n)
    if tpt.get_property("tmp",i)==1 then
    randnum = math.random(0,nukecounter/100)
    if randnum==0 then
    tpt.set_property("type","nuke",i)
    tpt.set_property("tmp","0",i)
    nukecounter=nukecounter+1
    elseif randnum < nukecounter/750 then
    tpt.set_property("type","dest",i)
    else
    tpt.set_property("type","thdr",i)
    end
    end

    end
    tpt.element_func(bomb_update, tpt.el.bomb.id)
  • ZER02541714
    6th Jan 2012 Member 0 Permalink
    I love this script
  • Videogamer555
    6th Jan 2012 Member 0 Permalink
    Thanks.

    Let me tell you one pixel of this is enough to completely level Super Bunker II.
  • MAYHEM747
    6th Jan 2012 Member 0 Permalink

    umm sorry but how do i use this? do i poot dis into the console or...?

  • ArtMaster
    6th Jan 2012 Banned 0 Permalink
    This post is hidden because the user is banned
  • limelier
    6th Jan 2012 Member 0 Permalink
    @ArtMaster (View Post)
    Wow, 23 day necro. Amazing.. -.-'
  • ArtMaster
    6th Jan 2012 Banned 0 Permalink
    This post is hidden because the user is banned
  • CAC-Boomerang
    6th Jan 2012 Member 2 Permalink
    @ArtMaster (View Post)

    You seem to have a problem comprehending "sarcasm" and "metaphores". If you cannot understand such properly, calling another person an idiot or facepalming at rules really isn't the other persons fault at all.

    Firstly, tudoreleuu was using sarcasm to indicate that 23 days of a necro is not something to shout "necro!" About. (compared to something like 6 months or so)

    Secondly, we all can tell it's a necro. Wailing NECRO NECRO NECRO!!!! Won't do anything but confuse new people looking at this thread.

    Thirdly, MAYHEM747 asked a question, and still needs time to familiarize himself with the privileges and controls of TPT. Is it not fair that his question should be answered?
  • MAYHEM747
    6th Jan 2012 Member 0 Permalink

    Agreed

     

  • XenoGenesis
    20th Dec 2013 Member 0 Permalink

    How do i Use this??