Snippet Regrowing Trees

Discussion in 'Systems and Snippets' started by AceHart, Aug 31, 2008.

  1. eraserboy

    eraserboy Guest

    Ratings:
    +0 / 0 / -0
    we

    i already download the jassWE that u give me the link above....
    when i already start the newGen.exe and want to open the trigger... there is an error like....

    "send and don't send report"
    how's that? can u help?

    (i already make a dual warcraft )
     
    • Like Like x 1
  2. AceHart

    AceHart Your Friendly Neighborhood Admin

    Ratings:
    +1,489 / 0 / -0
    > Could you make the unit "holdposition" instead of "stop"?

    What for?
     
  3. Tyrande_ma3x

    Tyrande_ma3x .

    Ratings:
    +91 / 0 / -0
    JASS:
    
    private function W2D takes widget w returns destructable
        return w
    endfunction

    I have to put a return null after return w since it shows me INLINED! after one of the lines and doesn't let me completely save my map:
    JASS:
    
        call DestructableRestoreLife(W2D(t), GetDestructableMaxLife(W2D(t)), true) // INLINED !
     
  4. Nums

    Nums New Member

    Ratings:
    +1 / 0 / -0
    This just gives a whole mess of errors when I try to use it.
     
    • Like Like x 1
  5. AceHart

    AceHart Your Friendly Neighborhood Admin

    Ratings:
    +1,489 / 0 / -0
    You need a better editor: NewGen
     
  6. emjlr3

    emjlr3 Change can be a good thing Staff Member

    Ratings:
    +396 / 0 / -0
    whats the purpose of the handle type conversion in the second version?
     
    • Like Like x 1
  7. AceHart

    AceHart Your Friendly Neighborhood Admin

    Ratings:
    +1,489 / 0 / -0
    DestructableRestoreLife doesn't want any widgets.
    Other than that, it's a "pure natives only" version... for reasons of "just because".
     
  8. emjlr3

    emjlr3 Change can be a good thing Staff Member

    Ratings:
    +396 / 0 / -0
    and why on earth would a tree not revive if there were creeps or units nearby? its not as though they carry around an axe and pick at its stub everytime it begins to grow
     
  9. Romek

    Romek Super Moderator Staff Member

    Ratings:
    +961 / 0 / -0
    For gameplay reasons. What if you're cutting your way through some trees to build a base there? Then, just after you finished building everything, all the trees grow back and trap everything inside the forest. Wouldn't be nice, would it? :p
     
  10. AceHart

    AceHart Your Friendly Neighborhood Admin

    Ratings:
    +1,489 / 0 / -0
    Well, why not?
    Personally, I find it somewhat annoying when they do.
    Either way though, it's optional.
     
  11. nerovesper

    nerovesper New Member

    Ratings:
    +0 / 0 / -0
    The first one works but the second (the one with unit condition) doesn't seem to work, though it saves without any trouble. There might be a fault in the code or something. Just saying or it may just be my WE acting up.
     

Share This Page