new elements code (for lua!)

  • Darkwrist
    2nd Jun 2012 Member 1 Permalink

    first learn how to run scripts(Lua scripts) and then paste this in that file .it will appear in first menu e.i.electronics. paste this code-

    <code>tpt.el.bran.name="desr"
    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=465234123854891
    tpt.el.bran.gravity=-5tpt.el.bran.name="desr"
    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=465234123854891
    tpt.el.bran.gravity=-5

  • boxmein
    2nd Jun 2012 Former Staff 1 Permalink
    @rodo (View Post)
    1) Code looks better when inside <code> tags.
    This is code.
    2) Why do you have every property twice?
    -- Corrected:
    tpt.el.bran.name="desr"
    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=465234123854891
    tpt.el.bran.gravity=-5

    3) The title is a slight bit misleading. :(
  • mniip
    2nd Jun 2012 Developer 1 Permalink
    and again
    scripts look like config files -_-
  • jenn4
    2nd Jun 2012 Member 1 Permalink
    @mniip (View Post)
    Looks? That is only re-config file for already existing element.
  • Darkwrist
    2nd Jun 2012 Member 0 Permalink

    @jenn4 (View Post)

     yes but it is for those who dont know how to script a simple script

  • mniip
    2nd Jun 2012 Developer 2 Permalink
    like you -_-
  • Darkwrist
    3rd Jun 2012 Member 1 Permalink

    @mniip (View Post)

    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=0Xfff75154872158452189412 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 2 Permalink
    uhh. could you add some line breaks... maybe?
  • MZproductions
    23rd Aug 2012 Member 1 Permalink

    okay, why bran?

  • limelier
    23rd Aug 2012 Member 1 Permalink

    @MZproductions (View Post)

     because bran is

    1. amazingly useless

    2. I heard it's a good element to start from or something