Guest User

Adamantium

a guest
Jun 16th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.07 KB | None | 0 0
  1. local logan = elements.allocate("TPT" , "XMEN")
  2.  elements.element(logan, elements.element(elements.DEFAULT_PT_METL))
  3.  elements.property(logan, "Name" , "ADMT")
  4.  elements.property(logan, "Description" , "Adamantium, incredibly durable material. Almost virtually indestructible. An alloy of steel and vibranium")
  5.  elements.property(logan, "Color", 0xC8C8D0)
  6.  elements.property(logan, "HighTemperature", 9500.50)
  7.  elements.property(logan, "Weight", 1010)
  8.  elements.property(logan, "Hardness", 0)
  9.  
  10.  elements.property(elem.DEFAULT_PT_LAVA, "Update", --*1
  11.  function(i,x,y,s,nt) --1
  12.   if math.random(1,2) == 2 then --2
  13.    for r in sim.neighbors(x,y,1,1) do --3
  14.     if sim.partProperty(r, "type") == elements.DEFAULT_PT_LAVA then --4
  15.      if sim.partProperty(r, "ctype") == elements.DEFAULT_PT_METL then --5
  16.       if sim.partProperty(i, "ctype") == elements.DEFAULT_PT_VIBR then --6
  17.        sim.partProperty(r, "type", elements.TPT_PT_XMEN)
  18.        sim.partProperty(i, "type", elements.TPT_PT_XMEN)
  19.        end --6
  20.       end --5
  21.      end --4
  22.     end --3
  23.    end --2
  24.   end --1
  25.   ) --*1
Add Comment
Please, Sign In to add comment