Frost Trap - Like in WoW

dyablohunter

New Member
Reaction score
2
I have done these triggers so far:
The trap:
Code:
Ally Frost Trap
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        ((Casting unit) belongs to an ally of (Owner of Ally_Beastmastery_Hunter)) Equal to True
        (Ability being cast) Equal to Frost Trap [Hunter]
    Actions
        Unit Group - Pick every unit in (Units owned by (Owner of (Casting unit)) of type Frost Trap) and do (Actions)
            Loop - Actions
                Set Ally_Frost_Trap = (Picked unit)
        Set Ally_Frost_Trap_Point = (Target point of ability being cast)
        Region - Center Frost Trap Ally <gen> on Ally_Frost_Trap_Point
        Custom script:   call RemoveLocation(udg_Ally_Frost_Trap_Point)
        If ((Level of Frost Trap [Hunter] for Ally_Beastmastery_Hunter) Equal to 1) then do (Trigger - Turn on Ally Frost Trap LvL 1 <gen>) else do (Do nothing)
        If ((Level of Frost Trap [Hunter] for Ally_Beastmastery_Hunter) Equal to 2) then do (Trigger - Turn on Ally Frost Trap LvL 2 <gen>) else do (Do nothing)
        If ((Level of Frost Trap [Hunter] for Ally_Beastmastery_Hunter) Equal to 3) then do (Trigger - Turn on Ally Frost Trap LvL 3 <gen>) else do (Do nothing)
        If ((Level of Frost Trap [Hunter] for Ally_Beastmastery_Hunter) Equal to 4) then do (Trigger - Turn on Ally Frost Trap LvL 4 <gen>) else do (Do nothing)

The lvl 1 trigger effect:

Code:
Ally Frost Trap LvL 1
    Events
        Unit - A unit enters Frost Trap Ally <gen>
    Conditions
        ((Entering unit) is A Hero) Equal to True
        ((Entering unit) belongs to an enemy of (Owner of Ally_Beastmastery_Hunter)) Equal to True
        (Level of Frost Trap [Hunter] for Ally_Beastmastery_Hunter) Equal to 1
    Actions
        Unit - Kill Ally_Frost_Trap
        Unit - Pause (Entering unit)
        Special Effect - Create a special effect attached to the chest of (Entering unit) using Abilities\Spells\Undead\FreezingBreath\FreezingBreathTargetArt.mdl
        Set Ally_FrostTrap_Effect = (Last created special effect)
        Wait 5.00 game-time seconds
        Unit - Unpause (Entering unit)
        Special Effect - Destroy Ally_FrostTrap_Effect
        Trigger - Turn off (This trigger)

The trapped unit is freed if it is attacked:
Code:
Ally Frost Trap Debuff
    Events
        Unit - A unit Is attacked
    Conditions
        (Attacked unit) Equal to Ally_Frost_Trap_Target
    Actions
        Unit - Unpause Ally_Frost_Trap_Target
        Special Effect - Destroy Ally_FrostTrap_Effect

It doesn't work... please smb tell me what I'm doing wrong. My guess so far is that the region doesn't get centered on the target point properly. Because I tested the region manually by luring an enemy hero into it and it works so please tell me why the region does not move to where I want it to? :banghead:
I have been struggling for almost 2 days with it. :D
 
A Very easy way to do it is this...

Code:
Ally Frost Trap Lvl 1
        Events
             Unit dies
        Conditions
             Dying unit equal to Frost Trap
        Actions
             Set AllyFrostTrap = (Position of Dying Unit)
             Set AllyFrostGroup = (Units within 110.00 of AllyFrostTrap matching (((Matching unit) belongs to an enemy of (Owner of Ally_Beastmastery_Hunter)) Equal to True))
             Set AllyFrostTarget = (Random Unit from AllyFrostGroup)
             Custom script:   call RemoveLocation(udg_AllyFrostTrap)
             Unit - Pause AllyFrostTarget
             Special Effect - Create a special effect attached to the chest of (AllyFrostTarget) using Abilities\Spells\Undead\FreezingBreath\FreezingBreathTargetArt.mdl
             Set Ally_FrostTrap_Effect = (Last created special effect)
             Wait 5.00 game-time seconds
             Unit - Unpause (AllyFrostTarget)
             Special Effect - Destroy Ally_FrostTrap_Effect
             Trigger - Turn off (This trigger)

Now the Dispel...

Code:
Ally Frost Trap Debuff
    Events
        Unit - A unit Is attacked
    Conditions
        (Attacked unit) Equal to AllyFrostTarget
    Actions
        Unit - Unpause Ally_Frost_Trap_Target
        Special Effect - Destroy Ally_FrostTrap_Effect

I just made this without W/E so I'm not a hundred percent sure, but give it a go ^_^.
 
That would be easy but there is one problem: The only ability that can do that to my "frost trap unit" is the explosion ability from goblin land mines and why would i want a fire explosion to a frost trap? So I can't use that.. and you have (entering unit) as triggering unit on each action and ur event is (dying unit) :) but you did give me another idea... let me try... brb...
 
Because I tried and didn't manage to find the actual stasis trap abillity that uses Stunned as buff and on the ability could not modify the activation delay to 0, it takes few seconds to activate.
 
It's possible to modify the delay... Set it to 0.01 or something... And "Stunned" is easy to change...
 
You can use Stasis Trap, but just make it stun for 0.01 seconds and then it'll activate the trigger, pausing it...

Here is how it happens:

Stasis Trap Dies
Unit Gets Mini-Stunned
Run Trigger
Unit Gets Frozen
(If Attacked, gets unfrozen)
Wait 5.00 Seconds
Unit Gets Thawed

Pretty easy...
 
No guys.. it just doesn't work.. the stasis trap has a few seconds activation time when it detects units that can't be changed. I allready tried that like 10 thousand times.

Well... I used the landmine ability although the explosion is not kool in a frost spell :). It was my last resort.
This is the map that the ability was needed for: http://www.thehelper.net/forums/showthread.php?p=589296
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good
  • The Helper The Helper:
    I would like to see it again like Ghan had it the first time with pagination though - without the pagination that view will not work but with pagination it just might...
  • The Helper The Helper:
    This drink recipe I have had more than a few times back in the day! Mind Eraser https://www.thehelper.net/threads/cocktail-mind-eraser.194720/

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top