Element suggestion: Rock

  • goatmandude
    24th Jan 2015 Member 0 Permalink

    Idk. I just wish there was a way to make things without supplying the actual element that you would need.

  • greymatter
    25th Jan 2015 Member 0 Permalink
    Finally a suggestion I like.+1.
  • ISproductions
    25th Jan 2015 Member 0 Permalink

    i want soil and seed

  • Catelite
    26th Jan 2015 Former Staff 0 Permalink
    I'm not really sure we want it to be as crazy as COKE, but some simple refining element, still amazing idea.
  • DanielGalrito
    26th Jan 2015 Member 0 Permalink

    i think im going to code this in lua as training ;). Ill post it here if i finish it.

     

    But what elements should it create? and in which conditions?

    Edited once by DanielGalrito. Last: 26th Jan 2015
  • goatmandude
    27th Jan 2015 Member 0 Permalink

    @DanielGalrito (View Post)

    Any element. It would be like that property of lava that causes it to freeze into it's ctype. default ctype would be iron, gold, or ttan. Don't make the default ctype be metl. Metl is made by combining molten iron and bcol, so it is essentially steel. It would melt into molten (ctype).

  • DanielGalrito
    27th Jan 2015 Member 0 Permalink

    Ok, it will be of what you said and more commonly by stne, do you want it to make tungsten too?

  • goatmandude
    28th Jan 2015 Member 0 Permalink

    @DanielGalrito (View Post)

     Not really. Unless you can find a way to make it not explode when it solidifies.

  • DanielGalrito
    28th Jan 2015 Member 0 Permalink

    Rock = elements.allocate("Rock", "ROCK")
    elements.element(Rock, elements.element(elements.DEFAULT_PT_IRON))
    elements.property(Rock, "Name", "ROCK")
    elements.property(Rock, "Description", "Rock, some metals can be extracted from it.")
    elements.property(Rock, "Colour", xFF3D3D3C)
    elements.property(Rock, "MenuSection", 9)
    elements.property(Rock, "Properties", 0x0804)
    elements.property(Rock, "HighTemperature", 10000)

    local function Rock(i,x,y,s,nt)
    if tpt.get_property("tmp2", i) == 0 then
    if math.random(1, 100) <= 70 then
    tpt.set_property("ctype","stne",i)
    tpt.set_property("tmp2", 1, i)
    end
    end

    if tpt.get_property("tmp2", i) == 0 then
    if math.random(1, 100) > 70 and math.random(1, 100) < 86 then
    tpt.set_property("ctype","iron",i)
    tpt.set_property("tmp2", 1, i)
    end
    end

    if tpt.get_property("tmp2", i) == 0 then
    if math.random(1, 100) > 85 and math.random(1, 100) < 96 then
    tpt.set_property("ctype","ttan",i)
    tpt.set_property("tmp2", 1, i)
    end
    end

    if tpt.get_property("tmp2", i) == 0 then
    if math.random(1, 100) > 95 then
    tpt.set_property("ctype","gold",i)
    tpt.set_property("tmp2", 1, i)
    end
    end

     

    if tpt.get_property("temp", i) >= 1200 and tpt.get_property("ctype", i) == tpt.element('stne') then
    tpt.set_property("type","lava",i)
    tpt.set_property("ctype","stne",i)
    end
    if tpt.get_property("temp", i) >= 1200 and tpt.get_property("ctype", i) == tpt.element('iron') then
    tpt.set_property("type","lava",i)
    tpt.set_property("ctype","iron",i)
    end
    if tpt.get_property("temp", i) >= 1200 and tpt.get_property("ctype", i) == tpt.element('ttan') then
    tpt.set_property("type","lava",i)
    tpt.set_property("ctype","ttan",i)
    end
    if tpt.get_property("temp", i) >= 1200 and tpt.get_property("ctype", i) == tpt.element('gold') then
    tpt.set_property("type","lava",i)
    tpt.set_property("ctype","gold",i)
    end
    end
    tpt.element_func(Rock, tpt.element('rock'))

     

    Sorry but in the HTML red box I can't get it to work right, but this script creates a element that when smelted and then cooled, creates stne iron ttan and gold. And im thinking in making this ore concept script more times.

  • goatmandude
    30th Jan 2015 Member 0 Permalink

    Okay. How do i enter in the script to powder toy? (I'm a n00b at coding.)