please tell me

  • Darkwrist
    3rd Jun 2012 Member 0 Permalink

    ok i want this element to conduct electricity when it is sparked .please tell me the code.here is the code

     

    NOTE;the codes in the script are half mine and half are modified codes of others so if you think i have stealed it .then NO!.description- the super bomb goes upwards and destroys everything it touches.its just

    a experimentin first element from me and their is a clock and password too (v8.1)is the current password, any feedback will be appreciated.thanks for readind .now here is the code;

     

     

    clockactive = 1 function drawclock() if clockactive == 1 then tpt.drawrect(4,367,95,11,300,0,0) tpt.drawtext(6,369,os.date(day,os.time()),49,193,226) end end tpt.register_keypress(clocktoggle); tpt.register_step(drawclock) local pass = tpt.input("rodos v8","status:ok","enter the password:"); if pass ~= "v8.1" then do os.exit(); end; end; tpt.el.bran.name="kaha" tpt.el.bran.enabled=1 tpt.el.bran.menu=1 tpt.el.bran.menusection=1 tpt.el.bran.description="moves.and destroys!" tpt.el.bran.color=0X0E38E3 tpt.el.bran.gravity=-3 tpt.el.bran.diffusion=0 tpt.el.bran.hardness=999 tpt.el.bran.hconduct=999 tpt.el.bran.explosive=1 tpt.el.bran.weight=9999 tpt.el.bran.heat=9999 tpt.el.bran.airloss=40 tpt.el.bran.collision=9999

  • vanquish349
    3rd Jun 2012 Member 0 Permalink
    @rodo (View Post)
    ???? you want it to conduct when it is sparked?
  • mniip
    3rd Jun 2012 Developer 0 Permalink
    can you add some newlines maybe?
  • boxmein
    3rd Jun 2012 Former Staff 0 Permalink
    clockactive = 1
    function drawclock()
    if clockactive == 1 then
    tpt.drawrect(4,367,95,11,300,0,0)
    tpt.drawtext(6,369,os.date(day,os.time()),49,193,226)
    end
    end
    tpt.register_keypress(clocktoggle);
    tpt.register_step(drawclock)
    local pass = tpt.input("rodos v8","status:ok","enter the password:");
    if pass ~= "v8.1" then
    do
    os.exit();
    end;
    end;
    tpt.el.bran.name="kaha"
    tpt.el.bran.enabled=1
    tpt.el.bran.menu=1
    tpt.el.bran.menusection=1
    tpt.el.bran.description="moves.and destroys!"
    tpt.el.bran.color=0X0E38E3
    tpt.el.bran.gravity=-3
    tpt.el.bran.diffusion=0
    tpt.el.bran.hardness=999
    tpt.el.bran.hconduct=999
    tpt.el.bran.explosive=1
    tpt.el.bran.weight=9999
    tpt.el.bran.heat=9999
    tpt.el.bran.airloss=40
    tpt.el.bran.collision=9999
  • mniip
    3rd Jun 2012 Developer 0 Permalink
    that's foolish
  • Darkwrist
    3rd Jun 2012 Member 0 Permalink

    is there anyone who can tell me how to make an element conduct electric current(sprk).I DONT WANT a

    corrected script JUST a answer to my real question

          i want this element to conduct electricity when it is sparked .please tell me the code

  • Felix
    3rd Jun 2012 Member 0 Permalink

    @rodo (View Post)

     I want a lambo.

  • AngrySpam
    3rd Jun 2012 Member 0 Permalink
    @rodo (View Post)
    In a sentence it goes:
    [sentence] [period] [space]
    Please quit putting space before the period. :D
    (Just so you know, i'm certainly not a Grammar Nazi, but it was bothering me...)
  • jacob1
    3rd Jun 2012 Developer 0 Permalink
    @rodo (View Post)
    add:
    tpt.el.bran.properties = 0x04024


    Edit: each digit in that hex number adds a needed property. The 0x04000 is PROP_LIFE_DEC, making the life go back to 0 after the spark sets it to 4, allowing it to conduct more than once. The 0x00020 is PROP_CONDUCTS, which actually makes it conductive. The 0x00004 is just PROP_SOLID, assuming this is a solid.
    Also, use 0x00800, PROP_HOT_GLOW or something, to make it glow when it gets hot like many metals do
  • boxmein
    3rd Jun 2012 Former Staff 0 Permalink