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
 

FrozenShadow

I am a WolfieeifloW fan.
Reaction score
75
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 ^_^.
 

dyablohunter

New Member
Reaction score
2
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...
 

dyablohunter

New Member
Reaction score
2
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.
 
T

Tubba

Guest
It's possible to modify the delay... Set it to 0.01 or something... And "Stunned" is easy to change...
 

FrozenShadow

I am a WolfieeifloW fan.
Reaction score
75
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...
 

dyablohunter

New Member
Reaction score
2
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 Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top