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. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Choose your ride to damnation in the 5th Special Effect Contest Poll.
    Dismiss Notice
  5. The winners of the 13th Techtree Contest have been announced!
    Dismiss Notice
  6. The 13th Music Contest Poll is up! Vote for the best tracks in this symphony of frost and flame.
    Dismiss Notice
  7. Race against the odds and Reforge, Don't Refund. The 14th Techtree Contest has begun!
    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.

Help with spell

Discussion in 'Triggers & Scripts' started by SlayerII, Dec 11, 2009.

  1. SlayerII

    SlayerII

    Joined:
    Aug 21, 2008
    Messages:
    526
    Resources:
    2
    Maps:
    1
    Tutorials:
    1
    Resources:
    2
    Do you think this is possible in wc3 as a spell?
    SLow time(D3)
    I started to make it but im not sure if it was a good idea to try:con:
     
  2. splashy5

    splashy5

    Joined:
    Jul 22, 2007
    Messages:
    259
    Resources:
    0
    Resources:
    0
    if you use dummies for missiles then yes :)
     
  3. Dark_Axl

    Dark_Axl

    Joined:
    Dec 12, 2007
    Messages:
    473
    Resources:
    2
    Maps:
    1
    Spells:
    1
    Resources:
    2
    yes, and probably not only that...
    you will need to make the whole map to use dummy unit as projectile if you want it to affect too against all kinds of missile.
    also you will have to check whether the projectile is in the slow area in each of the spell trigger...
    so yes, it is possible, but very hard to achieve.
     
  4. SlayerII

    SlayerII

    Joined:
    Aug 21, 2008
    Messages:
    526
    Resources:
    2
    Maps:
    1
    Tutorials:
    1
    Resources:
    2
    I already use a system so that all missles are dummys:grin: The problem i know have is, that units with locust look like there arent effect by auras... Maybe someone know what i have to do that they are effected by auras...
     
  5. SlayerII

    SlayerII

    Joined:
    Aug 21, 2008
    Messages:
    526
    Resources:
    2
    Maps:
    1
    Tutorials:
    1
    Resources:
    2
    sry for doulbepost but this is something new
    ok now i have a weird bug:
    Code (vJASS):
    function Slowing takes nothing returns nothing
    local unit u = GetEnumUnit()
    local group g = CreateGroup()
    local real x = GetUnitX(u)
    local real y = GetUnitY(u)
    call GroupEnumUnitsInRange(g, x,y,350,null)
    set u = null
    set g = null
    endfunction

    This only picks units which dont have the locust ability.... but the missles have the locust ability...
    After the missles die(cause the hit something) this suddenly begunns to work(till they get removed-they jsut they berfoe i remove them so there is a sound and a death anim)
     
  6. Maker

    Maker

    Joined:
    Mar 6, 2006
    Messages:
    9,181
    Resources:
    17
    Maps:
    2
    Spells:
    14
    Tutorials:
    1
    Resources:
    17
    GroupEnumUnitsInRange() doesn't pick units with locust. It's not a bug, it's just how it's meant to work I guess.
     
  7. SlayerII

    SlayerII

    Joined:
    Aug 21, 2008
    Messages:
    526
    Resources:
    2
    Maps:
    1
    Tutorials:
    1
    Resources:
    2
    so what i may do now? pick all units at map wich have locust, remove locust, add units to group, pick all units which had locust and add locust????????????

    Code (vJASS):
    function LocustSux takes nothing returns nothing
        local unit u = GetEnumUnit()
        call UnitRemoveAbility(u,'Aloc')
        set u = null
    endfunction

    function LocustSuxNot takes nothing returns nothing
        local unit u = GetEnumUnit()
        call UnitAddAbility(u,'Aloc')
        set u = null
    endfunction

    function Slowing takes nothing returns nothing
        local unit u = GetEnumUnit()
        local group g = CreateGroup()
        local real x = GetUnitX(u)
        local real y = GetUnitY(u)  
        call GroupEnumUnitsInRange(g, x,y,350,null)//Filter(function MissleFilter
        call ForGroup(g, function Slow )
        call DestroyGroup(g)
        set u = null
        set g = null
    endfunction

    function Trig_Slowing_Actions takes nothing returns nothing
            call ForGroup(udg_misslegroup,function LocustSux)
            call ForGroup(udg_Slowgroup, function Slowing )
            call ForGroup(udg_misslegroup,function LocustSuxNot)
    endfunction


    //===========================================================================
    function InitTrig_Slowing takes nothing returns nothing
        set gg_trg_Slowing = CreateTrigger(  )
        call TriggerRegisterTimerEventPeriodic( gg_trg_Slowing, 0.03 )
        call TriggerAddAction( gg_trg_Slowing, function Trig_Slowing_Actions )
    endfunction

     


    still does not work...
     
    Last edited: Dec 11, 2009
  8. Dark_Axl

    Dark_Axl

    Joined:
    Dec 12, 2007
    Messages:
    473
    Resources:
    2
    Maps:
    1
    Spells:
    1
    Resources:
    2
  9. SlayerII

    SlayerII

    Joined:
    Aug 21, 2008
    Messages:
    526
    Resources:
    2
    Maps:
    1
    Tutorials:
    1
    Resources:
    2
    :mwahaha:
    ty for the link now it works
    i searched for something like this but i dont found cause it was old and had a bad name to find
    btw: THE SPELL ROX:cool: