My terrible script

  • QuanTech
    22nd Aug 2017 Member 0 Permalink

    I made a tiny script that converts everything on screen to DMND and deco'es it to make it look like the original elements. Run it and you'll see what I mean. https://pastebin.com/MssUMj2N

    yey, 420th post

    Edited once by QuanTech. Last: 22nd Aug 2017
  • juh9870
    22nd Aug 2017 Member 0 Permalink

    @QuanTech (View Post)

    Hi, i "sightly" edited your script, instead of iterating over x and y, you better iterate over particles indexes, also your script discards exiting deco.

    Also i made it into ready-to-work script - just type into console "deco()" and it will convert all particles into diamonnd with keeping it's color and deco, and if you type "deco(true)" then it will onle add element's color to their deco, but won't convert them into DMND

    https://pastebin.com/0Rpm5ryA

  • jacob1
    22nd Aug 2017 Developer 0 Permalink
    @juh9870 (View Post)
    why not
    for index in sim.parts()
  • juh9870
    22nd Aug 2017 Member 0 Permalink

    @jacob1 (View Post)

    eh, i still can't move from old lua api...

  • CALVIN1390
    23rd Aug 2017 Member 0 Permalink

    how do i use this file