New Console Commands: Inde and Cinde

  • OmegaSupreme
    11th Jan 2012 Member 0 Permalink
    My Idea First Idea:
    [BEFORE READING: This can't be done any other way, so people won't have to say "No, that's not a good idea and it shouldn't be added because it can be done with something else"]

    IDEA 1A - New Console Command: Inde (Indestructable)
    Console Command: ~Set Type INDE (Element)
    PROP Tool: Property: Inde
    &
    CINDE (Completly Indestructable)
    Console Command: ~Set Type CINDE (Element)
    PROP Tool: Property: CINDE

    When putting the Cursor over an element, it will display ether: indestructable (element) or inde (element), exactly how it displays molten (element) in the top right corner of the screen and at the bottom of the zoom box.

    Option A: It would make the element Completely Indestructable (Ignors Temperture, Pressure and Gravity)
    Console Command: ~Set Type CInde (Element) *Clnde = Completly Indestructable*
    PROP Tool: Property: Clnde

    Option B: It would make the element Indestructable, while retaining the ability to change states.
    Example: if inde METL is heated to its melting point, it then becomes molten inde METL (aka inde LAVA) and behaves like normal LAVA.
    Console Command: ~Set Type Inde (Element)
    PROP Tool: Property: Inde
    ~~~~~~~~~~

    IDEA 1B - Indestructable View
    The reason I came up with this idea, it because people will most likely start making Indestructable Bunkers again, and this will show which elements and indestructable and which elements aren't.

    Color: Indestructable Elements show up as White and Black flashing Pixels. The Background would be Black. I chose a Black background is so that indestructable elements will still show if someone combines Indestrucable View with Heat View.

    If they are Combined, The Heat View's Bluish Background will still show, but inde elements will flash White, then Black, & finally the Color of their TEMP. *The cycle repeats every 3 frames*

    Uses List: (For those that always reject elements that THEY think has no uses or can be done)

    Will be Useful for Creating:
    1. Completly Indestructable INSL - It will be immune to LIGH in lasers and won't catch on Fire or turn into Plasma.
    2. Heat Proof Electronics, in-turn allowing users to Have Working Electronics ajacent to hot elements without melting
    and destroying hours of Work and Designing.
    3. Better and Smaller creations without having to make construct a Fortress of protective material around it.
    4. Better Guns with out using any Walls.
    5. Better Weapons
    6. Something other than DMND that can actually withstand DEST, BOMB, SING, AMTR, and WARP.
    7. CINDE GLAS that will allow Ultra-Hot PHOT's to traval though and change their color without metling.
    8. Singularity and Anti-Matter Guns that can actually shoot more than a round or 2 without being destroyed - Something I've tried creating and fail at.
    9. SING and AMTR Reactors - I've only seen 1 in all of TPT (This could change that bigtime)
    10. Countless other things that only the Imagination can think of.

    In my opinion, this could and most likely would give rise to a ton of new creations by slightly opening the gate of What's Impossible in TPT.

    (Sorry for it being so long)
    Does it sound Good or Bad or What? Please Comment and Discuss, I would love to hear Your Opinions.
  • alecnotalex
    11th Jan 2012 Member 0 Permalink
    @OmegaSupreme (View Post)
    I believe you mean to say ctype when you say type, type refers to the element's actual identity, such as water, fire etc.
    Your idea could come in handy though. I'd say +1, but that's illegal. Your idea would defeat the purpose of diamond, but oh well.
  • limelier
    11th Jan 2012 Member 0 Permalink
    Yes, yes, yes.

    Not to mention it would shut up the mouths of IINSL/IMTL suggesters.
  • BloodLust
    11th Jan 2012 Member 0 Permalink
    i think we should just have the ability to change all the abilites of the elements

    like reacting to other particles, transfering of heat, etc

  • Razvanos
    11th Jan 2012 Member 0 Permalink
    maybe !set inde (element)
  • limelier
    11th Jan 2012 Member 0 Permalink
  • Videogamer555
    11th Jan 2012 Member 0 Permalink

    alecnotalex:

    @OmegaSupreme (View Post)
    I believe you mean to say ctype when you say type, type refers to the element's actual identity, such as water, fire etc.
    Your idea could come in handy though. I'd say +1, but that's illegal. Your idea would defeat the purpose of diamond, but oh well.


    There are some things that you can't just coat with dmnd, and would be better to allow the end-user to set indestructable state of any given material.

    That said there is a way to do it in Lua already. Put this in your autorun.lua file.
    tpt.eltransition.xxxx.tempHighValue=10001
    tpt.eltransition.xxxx.tempLowValue=-2
    tpt.eltransition.xxxx.presHighValue=258
    tpt.eltransition.xxxx.presLowValue=-258


    Replace "xxxx" with the 4 letter (or 3 letter in some cases) name of the element you are modifying.
    These numbers are 2 above and 2 bellow the maximum and minimum allowed in TPT for temperature and pressure. This means that it won't ever break due to temperature or pressure nor due to any glitch which might allow for a part of one frame of calculations for a burst of temperature or pressure of 1 greater than (or less than) the normal boundaries for these values in TPT.

    Element destroying elements like SING and AMTR will destroy it though. To make it immune from that, add these lines of code to the autorun.lua file. Again, change any instance of xxxx to the name of the element you want to protect from "dangerous" elements.
    function fullindestructable(i,x,y,s,n)
    for yoff=-2,2 do
    for xoff=-2,2 do
    elemtype=tpt.get_property("type",x+xoff,y+yoff)
    if elemtype==tpt.el.bomb.id or elemtype==tpt.el.warp.id or elemtype==tpt.el.amtr.id or elemtype==tpt.el.sing.id then
    tpt.delete(x+xoff,y+yoff)
    end
    end
    end
    end
    tpt.element_func(fullindestructable,tpt.el.xxxx.id)

    This will make it immune from everything except destruct. DEST goes so fast that it can end up "pixel skipping" like up to ten pixels near the bottom of the screen when dropped from near the top of the screen, which cause it to easilly bypass my element detector code which would normally destroy it before it could destroy my element. I could increase the scan range to like 15 pixels by 15 pixels (instead of 2 by 2) but this large scan (over 200 pixels to search for 5 different "dangerous" elements) would cause so much lag as to make the game unplayable. So I'm just going to have to be satisfied with just countering everything EXCEPT for DEST.
  • limelier
    11th Jan 2012 Member 0 Permalink
    @Videogamer555 (View Post)
    ...but maybe he wants some of it to be destructable.
  • OmegaSupreme
    11th Jan 2012 Member 0 Permalink
    I would use your code, but sadly, I dont know how to code, but is currently trying to find out how to make a lua script. It looks very promising, but if this made in  into the game (your code and my idea), it could do a lot of great things for everyone and every creation (almost anyway).
  • Videogamer555
    11th Jan 2012 Member 0 Permalink

    OmegaSupreme:

    I would use your code, but sadly, I dont know how to code, but is currently trying to find out how to make a lua script.


    My code IS a lua script.

    Just copy this text from the code box here and paste it into Notepad. Save the file as autorun. Then after saving it, take the file autorun.txt change the file extension from txt to lua, so the file name is now autorun.lua

    Then run The Powder Toy.