1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  4. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  5. The results are out! Check them out.
    Dismiss Notice
  6. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  7. The raddest synthwave tracks were chosen - Check out our Music Contest #12 - Results and congratulate the winners!
    Dismiss Notice
  8. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Cracked Earth

Discussion in 'World Editor Help Zone' started by Saishy, Feb 3, 2009.

  1. Saishy

    Saishy

    Joined:
    Mar 23, 2008
    Messages:
    947
    Resources:
    0
    Resources:
    0
    I want to create a spell that cracks the earth and creates a crater stunning and damaging all enemy, The stun and damage is provided by the base War Stomp, but I can't get a nice effect of crater + cracked earth.

    Someone can help? Thanks
     
  2. Omniferous

    Omniferous

    Joined:
    Jul 4, 2007
    Messages:
    174
    Resources:
    0
    Resources:
    0
    Earthquake and Warstomp both provide cracked earth effects (The Earthquake one is probably the best). If you want an actual depression, consider triggering a terrain depression.
     
  3. Saishy

    Saishy

    Joined:
    Mar 23, 2008
    Messages:
    947
    Resources:
    0
    Resources:
    0
    Yeah but the crack is lame, and cannot be resized :(
    I want to use a dummy unit as a crack, so I can have more freedom!

    I'm trying that trigger, but the terrain deformation never go away! If I use a number lower than the terrain formation time I can make it disappear. I think once the terrain deformation become permanent its impossible to remove it, and setting the duration to 3s make it slowing going down, not very good :(

    (Maybe use a negative deformation with 3s?)

    Code (vJASS):
    function Trig_Tsuuten_Kyaku_Conditions takes nothing returns boolean
        return ( GetSpellAbilityId() == 'A00M' )
    endfunction

    function Trig_Tsuuten_Kyaku_Actions takes nothing returns nothing
        local real x = GetUnitX(GetTriggerUnit())
        local real y = GetUnitY(GetTriggerUnit())
        local terraindeformation td
        local unit te
        set td = TerrainDeformCrater( x, y, 600, 150, 300, true )
        set te = CreateUnit(GetOwningPlayer(GetTriggerUnit()), 'h013', x, y, 0 )
        call UnitApplyTimedLife(te, 'BTLF', 3)
        call TerrainDeformStop(td, 3000)
    endfunction

    //===========================================================================
    function InitTrig_Tsuuten_Kyaku takes nothing returns nothing
        set gg_trg_Tsuuten_Kyaku = CreateTrigger(  )
        call TriggerRegisterAnyUnitEventBJ( gg_trg_Tsuuten_Kyaku, EVENT_PLAYER_UNIT_SPELL_EFFECT )
        call TriggerAddCondition( gg_trg_Tsuuten_Kyaku, Condition( function Trig_Tsuuten_Kyaku_Conditions ) )
        call TriggerAddAction( gg_trg_Tsuuten_Kyaku, function Trig_Tsuuten_Kyaku_Actions )
    endfunction

     
     
  4. Soga-

    Soga-

    Joined:
    Jul 20, 2008
    Messages:
    374
    Resources:
    0
    Resources:
    0
    Just perform the same deform action in the same location in the opposite direction (up!) after 3s.
     
  5. Saishy

    Saishy

    Joined:
    Mar 23, 2008
    Messages:
    947
    Resources:
    0
    Resources:
    0
    Uhm, TerrainDeformation leaks? Need to be nulled?
     
  6. Soga-

    Soga-

    Joined:
    Jul 20, 2008
    Messages:
    374
    Resources:
    0
    Resources:
    0
    You only null local variables when you're -done- using them. Mostly, at the end of the function.
     
  7. Saishy

    Saishy

    Joined:
    Mar 23, 2008
    Messages:
    947
    Resources:
    0
    Resources:
    0
    Thanks!

    Before I forgot, there is a model of a "crack" in warcraft? I can't find one!
     
  8. Super-Sheep

    Super-Sheep

    Joined:
    Oct 21, 2006
    Messages:
    2,823
    Resources:
    1
    Maps:
    1
    Resources:
    1
    But if you an unit as an effect, you can change it's size.

    btw you might want to try buffs - volcano.
     
  9. Saishy

    Saishy

    Joined:
    Mar 23, 2008
    Messages:
    947
    Resources:
    0
    Resources:
    0
    Yeah, I'm using it xD

    But I would really like to make the floor looks cracked :(