SPRK Flash?

  • dom2mom
    13th Jun 2012 Member 0 Permalink

    Earlier on I saw a creation that sparked all conductible materials with a flash that went through anything. Unfortunately the save was deleted, so I didn't have time to study it. Does anyone know how something like this might work?

  • DarkSpirit1293
    13th Jun 2012 Member 0 Permalink

    It would probably be emp. Was the flash blue? ;D

  • boxmein
    13th Jun 2012 Former Staff 0 Permalink
    @DarkSpirit1293 (View Post)
    EMP doesn't spark, it breaks sparked elements.
    @dom2mom (View Post)
    You most likely saw compressed LIGH (tmp2: 4, life high). Try re-creating it by using this code:

    -- File name: drawrect.lua
    function drawPartRect(x, y, w, h, part, coords)
    if coords then -- If you want to draw with two points
    for ry = y, h, 1 do
    for rx = x, w, 1 do
    tpt.create(rx,ry,part)
    end
    end
    else -- Otherwise draw with width and height
    for ry = y, y+h, 1 do
    for rx = x, x+w, 1 do
    tpt.create(rx, ry, part)
    end
    end
    end
    end

    Now for the LIGH creating and properties.
    -- File name: creator.lua
    dofile("drawrect.lua")
    x = 20
    y = 20
    width = 300
    height = 300
    drawPartRect(x, y, width, height, "ligh", false)
    tpt.set_property("tmp2", "4", x, y, width, height) -- mode (-1: remove, 0: branches, 1: bend, 2: branch, 3: destruction, 4: starting)
    tpt.set_property("life", "30", x, y, width, height) -- power of strike
    tpt.set_property("tmp", "270", x, y, width,height) -- angle from east, counterclockwise

    First, load your ligh generator:
    dofile("creator.lua")
    And after all this, compressing code:

    !set x ligh 20
    !set y ligh 20