Why isnt this trigger reducing my target's health?

irgan

New Member
Reaction score
3
Code:
Dirge of the Wanderer
    Events
        Unit - A unit Begins casting an ability
    Conditions
        And - All (Conditions) are true
            Conditions
                (Ability being cast) Equal to Dirge of the Wanderer 
                (Unit-type of (Triggering unit)) Equal to Blind
    Actions
        Region - Center Dirge of the Wanderer Spirit Summon <gen> on (Position of (Target unit of ability being cast))
        Unit - Hide (Triggering unit)
        Unit - Order (Triggering unit) to Stop
        Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon <gen>) facing (Position of (Target unit of ability being cast))
        Unit - Make (Last created unit) Invulnerable
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon <gen>) facing (Position of (Target unit of ability being cast))
        Unit - Make (Last created unit) Invulnerable
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon <gen>) facing (Position of (Target unit of ability being cast))
        Unit - Make (Last created unit) Invulnerable
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon <gen>) facing (Position of (Target unit of ability being cast))
        Unit - Make (Last created unit) Invulnerable
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon <gen>) facing (Position of (Target unit of ability being cast))
        Unit - Make (Last created unit) Invulnerable
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon <gen>) facing (Position of (Target unit of ability being cast))
        Unit - Make (Last created unit) Invulnerable
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon <gen>) facing (Position of (Target unit of ability being cast))
        Unit - Make (Last created unit) Invulnerable
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon <gen>) facing (Position of (Target unit of ability being cast))
        Unit - Make (Last created unit) Invulnerable
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon <gen>) facing (Position of (Target unit of ability being cast))
        Unit - Make (Last created unit) Invulnerable
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon <gen>) facing (Position of (Target unit of ability being cast))
        Unit - Make (Last created unit) Invulnerable
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon <gen>) facing (Position of (Target unit of ability being cast))
        Unit - Make (Last created unit) Invulnerable
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon <gen>) facing (Position of (Target unit of ability being cast))
        Unit - Make (Last created unit) Invulnerable
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon <gen>) facing (Position of (Target unit of ability being cast))
        Unit - Make (Last created unit) Invulnerable
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon <gen>) facing (Position of (Target unit of ability being cast))
        Unit - Make (Last created unit) Invulnerable
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon <gen>) facing (Position of (Target unit of ability being cast))
        Unit - Make (Last created unit) Invulnerable
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon <gen>) facing (Position of (Target unit of ability being cast))
        Unit - Make (Last created unit) Invulnerable
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon <gen>) facing (Position of (Target unit of ability being cast))
        Unit - Make (Last created unit) Invulnerable
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon <gen>) facing (Position of (Target unit of ability being cast))
        Unit - Make (Last created unit) Invulnerable
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon <gen>) facing (Position of (Target unit of ability being cast))
        Unit - Make (Last created unit) Invulnerable
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon <gen>) facing (Position of (Target unit of ability being cast))
        Unit - Make (Last created unit) Invulnerable
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Order (Triggering unit) to Orc Blademaster - Mirror Image
        Wait 2.00 seconds
       [B] If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Real((Level of Dirge of the Wanderer  for (Triggering unit)))) Equal to 1.00
            Then - Actions
                Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - 5000.00)
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Real((Level of Dirge of the Wanderer  for (Triggering unit)))) Equal to 2.00
                    Then - Actions
                        Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - 15000.00)
                    Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                (Real((Level of Dirge of the Wanderer  for (Triggering unit)))) Equal to 3.00
                            Then - Actions
                                Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - 25000.00)
                            Else - Actions
                                Do nothing[/B]
        Unit - Unhide (Triggering unit)
        Unit - Move (Triggering unit) instantly to (Center of Dirge of the Wanderer Spirit Summon <gen>), facing (Position of (Target unit of ability being cast))
 

Moridin

Snow Leopard
Reaction score
144
Quick note. To ensure people actually read your code and are not put off by it's length...use GUI tags like so:

Trigger:
  • &lt;your code pasted here&gt; [/wc3.] ----&gt; without the &quot;.&quot; dot
 

irgan

New Member
Reaction score
3
better? and can someone help me this time with the trigger? i cant move ahead in my map creating without this fix :(
 

irgan

New Member
Reaction score
3
oh yeah, and this one is acting funny too :/

Code:
Gift
    Events
        Unit - A unit Spawns a summoned unit
    Conditions
        (Unit-type of (Summoned unit)) Equal to Chicken
    Actions
        Unit - Make (Summoned unit) Invulnerable
        Floating Text - Create floating text that reads 5 above (Summoned unit) with Z offset 0.00, using font size 20.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
        Wait 1.00 seconds
        Floating Text - Destroy (Last created floating text)
        Floating Text - Create floating text that reads 4 above (Summoned unit) with Z offset 0.00, using font size 20.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
        Wait 1.00 seconds
        Floating Text - Destroy (Last created floating text)
        Floating Text - Create floating text that reads 3 above (Summoned unit) with Z offset 0.00, using font size 20.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
        Wait 1.00 seconds
        Floating Text - Destroy (Last created floating text)
        Floating Text - Create floating text that reads 2 above (Summoned unit) with Z offset 0.00, using font size 20.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
        Wait 1.00 seconds
        Floating Text - Destroy (Last created floating text)
        Floating Text - Create floating text that reads 1 above (Summoned unit) with Z offset 0.00, using font size 20.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
        Wait 1.00 seconds
        Floating Text - Destroy (Last created floating text)
        Special Effect - Create a special effect at (Position of (Summoned unit)) using Abilities\Spells\Human\MarkOfChaos\MarkOfChaosTarget.mdl
        Unit - Cause (Summoned unit) to damage circular area after 0.01 seconds of radius 1000.00 at (Position of (Summoned unit)), dealing ((Real((Level of Gift  for (Triggering unit)))) x 500.00) damage of attack type Chaos and damage type Normal
        Unit - Remove (Summoned unit) from the game
 

cleeezzz

The Undead Ranger.
Reaction score
268
probably cuz of the wait, also, why are you converting the level to a real? keep it an integer.
 

Joccaren

You can change this now in User CP.
Reaction score
54
Also, use 'Unit starts the effects of an ability'

Unit begins casting can be manipulated by casting the ability then quickly stopping, recieving the affects of the ability without the cooldown and mana cost.

And also, please do use WC3 tags, it is much easier to read triggers in them.
 

Moridin

Snow Leopard
Reaction score
144
Okay. Here's my input:

Trigger 1:

It doesn't work because of the wait 2.00 seconds. This is because the value "Target unit of ability cast" get's overwritten after a wait, no matter how small it is. To fix this, set the targeted unit to a unit variable and use that variable instead.

Trigger 2:

Again with the waits. "Last created unit" get's overwritten by the game.

A few notes:
1) Please use Wc3 tags and not code tags. They are specifically different.
2) When showing a faulty trigger, try and specify what seems to be the problem (what's happening / not happening, etc).
 

irgan

New Member
Reaction score
3
2) When showing a faulty trigger, try and specify what seems to be the problem (what's happening / not happening, etc).

i bolded it?
and thank you for the help, i'll try and fix it later and see if it helps taking out the waits and keeping it an integer
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Here, for any1 who wants it are the codes in
Trigger:
  • tags <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" />
    • <div class="bbCodeBlock bbCodeBlock--screenLimited bbCodeBlock--code"><div class="bbCodeBlock-title">Trigger:</div><div class="wc3trigger"><ul class="wc3" id="wc3_2">
    • <li class="lastopen"><span class="default">Dirge of the Wanderer</span>
    • <ul>
    • <li class="open"><span class="events">Events</span>
    • <ul>
    • <li class="lasttree"><span class="unit">Unit - A unit Begins casting an ability</span></li>
    • </ul>
    • </li>
    • <li class="open"><span class="conditions">Conditions</span>
    • <ul>
    • <li class="lastopen"><span class="and">And - All (Conditions) are true</span>
    • <ul>
    • <li class="lastopen"><span class="conditions">Conditions</span>
    • <ul>
    • <li class="tree"><span class="default">(Ability being cast) Equal to Dirge of the Wanderer</span></li>
    • <li class="lasttree"><span class="default">(Unit-type of (Triggering unit)) Equal to Blind</span></li>
    • </ul>
    • </li>
    • </ul>
    • </li>
    • </ul>
    • </li>
    • <li class="lastopen"><span class="actions">Actions</span>
    • <ul>
    • <li class="tree"><span class="region">Region - Center Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt; on (Position of (Target unit of ability being cast))</span></li>
    • <li class="tree"><span class="unit">Unit - Hide (Triggering unit)</span></li>
    • <li class="tree"><span class="unit">Unit - Order (Triggering unit) to Stop</span></li>
    • <li class="tree"><span class="unit">Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt;) facing (Position of (Target unit of ability being cast))</span></li>
    • <li class="tree"><span class="unit">Unit - Make (Last created unit) Invulnerable</span></li>
    • <li class="tree"><span class="unit">Unit - Add a 2.00 second Generic expiration timer to (Last created unit)</span></li>
    • <li class="tree"><span class="unit">Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt;) facing (Position of (Target unit of ability being cast))</span></li>
    • <li class="tree"><span class="unit">Unit - Make (Last created unit) Invulnerable</span></li>
    • <li class="tree"><span class="unit">Unit - Add a 2.00 second Generic expiration timer to (Last created unit)</span></li>
    • <li class="tree"><span class="unit">Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt;) facing (Position of (Target unit of ability being cast))</span></li>
    • <li class="tree"><span class="unit">Unit - Make (Last created unit) Invulnerable</span></li>
    • <li class="tree"><span class="unit">Unit - Add a 2.00 second Generic expiration timer to (Last created unit)</span></li>
    • <li class="tree"><span class="unit">Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt;) facing (Position of (Target unit of ability being cast))</span></li>
    • <li class="tree"><span class="unit">Unit - Make (Last created unit) Invulnerable</span></li>
    • <li class="tree"><span class="unit">Unit - Add a 2.00 second Generic expiration timer to (Last created unit)</span></li>
    • <li class="tree"><span class="unit">Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt;) facing (Position of (Target unit of ability being cast))</span></li>
    • <li class="tree"><span class="unit">Unit - Make (Last created unit) Invulnerable</span></li>
    • <li class="tree"><span class="unit">Unit - Add a 2.00 second Generic expiration timer to (Last created unit)</span></li>
    • <li class="tree"><span class="unit">Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt;) facing (Position of (Target unit of ability being cast))</span></li>
    • <li class="tree"><span class="unit">Unit - Make (Last created unit) Invulnerable</span></li>
    • <li class="tree"><span class="unit">Unit - Add a 2.00 second Generic expiration timer to (Last created unit)</span></li>
    • <li class="tree"><span class="unit">Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt;) facing (Position of (Target unit of ability being cast))</span></li>
    • <li class="tree"><span class="unit">Unit - Make (Last created unit) Invulnerable</span></li>
    • <li class="tree"><span class="unit">Unit - Add a 2.00 second Generic expiration timer to (Last created unit)</span></li>
    • <li class="tree"><span class="unit">Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt;) facing (Position of (Target unit of ability being cast))</span></li>
    • <li class="tree"><span class="unit">Unit - Make (Last created unit) Invulnerable</span></li>
    • <li class="tree"><span class="unit">Unit - Add a 2.00 second Generic expiration timer to (Last created unit)</span></li>
    • <li class="tree"><span class="unit">Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt;) facing (Position of (Target unit of ability being cast))</span></li>
    • <li class="tree"><span class="unit">Unit - Make (Last created unit) Invulnerable</span></li>
    • <li class="tree"><span class="unit">Unit - Add a 2.00 second Generic expiration timer to (Last created unit)</span></li>
    • <li class="tree"><span class="unit">Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt;) facing (Position of (Target unit of ability being cast))</span></li>
    • <li class="tree"><span class="unit">Unit - Make (Last created unit) Invulnerable</span></li>
    • <li class="tree"><span class="unit">Unit - Add a 2.00 second Generic expiration timer to (Last created unit)</span></li>
    • <li class="tree"><span class="unit">Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt;) facing (Position of (Target unit of ability being cast))</span></li>
    • <li class="tree"><span class="unit">Unit - Make (Last created unit) Invulnerable</span></li>
    • <li class="tree"><span class="unit">Unit - Add a 2.00 second Generic expiration timer to (Last created unit)</span></li>
    • <li class="tree"><span class="unit">Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt;) facing (Position of (Target unit of ability being cast))</span></li>
    • <li class="tree"><span class="unit">Unit - Make (Last created unit) Invulnerable</span></li>
    • <li class="tree"><span class="unit">Unit - Add a 2.00 second Generic expiration timer to (Last created unit)</span></li>
    • <li class="tree"><span class="unit">Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt;) facing (Position of (Target unit of ability being cast))</span></li>
    • <li class="tree"><span class="unit">Unit - Make (Last created unit) Invulnerable</span></li>
    • <li class="tree"><span class="unit">Unit - Add a 2.00 second Generic expiration timer to (Last created unit)</span></li>
    • <li class="tree"><span class="unit">Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt;) facing (Position of (Target unit of ability being cast))</span></li>
    • <li class="tree"><span class="unit">Unit - Make (Last created unit) Invulnerable</span></li>
    • <li class="tree"><span class="unit">Unit - Add a 2.00 second Generic expiration timer to (Last created unit)</span></li>
    • <li class="tree"><span class="unit">Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt;) facing (Position of (Target unit of ability being cast))</span></li>
    • <li class="tree"><span class="unit">Unit - Make (Last created unit) Invulnerable</span></li>
    • <li class="tree"><span class="unit">Unit - Add a 2.00 second Generic expiration timer to (Last created unit)</span></li>
    • <li class="tree"><span class="unit">Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt;) facing (Position of (Target unit of ability being cast))</span></li>
    • <li class="tree"><span class="unit">Unit - Make (Last created unit) Invulnerable</span></li>
    • <li class="tree"><span class="unit">Unit - Add a 2.00 second Generic expiration timer to (Last created unit)</span></li>
    • <li class="tree"><span class="unit">Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt;) facing (Position of (Target unit of ability being cast))</span></li>
    • <li class="tree"><span class="unit">Unit - Make (Last created unit) Invulnerable</span></li>
    • <li class="tree"><span class="unit">Unit - Add a 2.00 second Generic expiration timer to (Last created unit)</span></li>
    • <li class="tree"><span class="unit">Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt;) facing (Position of (Target unit of ability being cast))</span></li>
    • <li class="tree"><span class="unit">Unit - Make (Last created unit) Invulnerable</span></li>
    • <li class="tree"><span class="unit">Unit - Add a 2.00 second Generic expiration timer to (Last created unit)</span></li>
    • <li class="tree"><span class="unit">Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt;) facing (Position of (Target unit of ability being cast))</span></li>
    • <li class="tree"><span class="unit">Unit - Make (Last created unit) Invulnerable</span></li>
    • <li class="tree"><span class="unit">Unit - Add a 2.00 second Generic expiration timer to (Last created unit)</span></li>
    • <li class="tree"><span class="unit">Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt;) facing (Position of (Target unit of ability being cast))</span></li>
    • <li class="tree"><span class="unit">Unit - Make (Last created unit) Invulnerable</span></li>
    • <li class="tree"><span class="unit">Unit - Add a 2.00 second Generic expiration timer to (Last created unit)</span></li>
    • <li class="tree"><span class="unit">Unit - Order (Triggering unit) to Orc Blademaster - Mirror Image</span></li>
    • <li class="tree"><span class="wait">Wait 2.00 seconds</span></li>
    • <li class="open"><span class="if">If (All Conditions are True) then do (Then Actions) else do (Else Actions)</span>
    • <ul>
    • <li class="open"><span class="if">If - Conditions</span>
    • <ul>
    • <li class="lasttree"><span class="default">(Real((Level of Dirge of the Wanderer for (Triggering unit)))) Equal to 1.00</span></li>
    • </ul>
    • </li>
    • <li class="open"><span class="ifthen">Then - Actions</span>
    • <ul>
    • <li class="lasttree"><span class="unit">Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - 5000.00)</span></li>
    • </ul>
    • </li>
    • <li class="lastopen"><span class="ifelse">Else - Actions</span>
    • <ul>
    • <li class="lastopen"><span class="if">If (All Conditions are True) then do (Then Actions) else do (Else Actions)</span>
    • <ul>
    • <li class="open"><span class="if">If - Conditions</span>
    • <ul>
    • <li class="lasttree"><span class="default">(Real((Level of Dirge of the Wanderer for (Triggering unit)))) Equal to 2.00</span></li>
    • </ul>
    • </li>
    • <li class="open"><span class="ifthen">Then - Actions</span>
    • <ul>
    • <li class="lasttree"><span class="unit">Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - 15000.00)</span></li>
    • </ul>
    • </li>
    • <li class="lastopen"><span class="ifelse">Else - Actions</span>
    • <ul>
    • <li class="lastopen"><span class="if">If (All Conditions are True) then do (Then Actions) else do (Else Actions)</span>
    • <ul>
    • <li class="open"><span class="if">If - Conditions</span>
    • <ul>
    • <li class="lasttree"><span class="default">(Real((Level of Dirge of the Wanderer for (Triggering unit)))) Equal to 3.00</span></li>
    • </ul>
    • </li>
    • <li class="open"><span class="ifthen">Then - Actions</span>
    • <ul>
    • <li class="lasttree"><span class="unit">Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - 25000.00)</span></li>
    • </ul>
    • </li>
    • <li class="lastopen"><span class="ifelse">Else - Actions</span>
    • <ul>
    • <li class="lasttree"><span class="default">Do nothing</span></li>
    • </ul>
    • </li>
    • </ul>
    • </li>
    • </ul>
    • </li>
    • </ul>
    • </li>
    • </ul>
    • </li>
    • </ul>
    • </li>
    • <li class="tree"><span class="unit">Unit - Unhide (Triggering unit)</span></li>
    • <li class="lasttree"><span class="unit">Unit - Move (Triggering unit) instantly to (Center of Dirge of the Wanderer Spirit Summon &amp;lt;gen&amp;gt;), facing (Position of (Target unit of ability being cast))</span></li>
    • </ul>
    • </li>
    • </ul>
    • </li>
    • </ul>
    • </div></div>
    • <div class="bbCodeBlock bbCodeBlock--screenLimited bbCodeBlock--code"><div class="bbCodeBlock-title">Trigger:</div><div class="wc3trigger"><ul class="wc3" id="wc3_3">
    • <li class="lastopen"><span class="default">Gift</span>
    • <ul>
    • <li class="open"><span class="events">Events</span>
    • <ul>
    • <li class="lasttree"><span class="unit">Unit - A unit Spawns a summoned unit</span></li>
    • </ul>
    • </li>
    • <li class="open"><span class="conditions">Conditions</span>
    • <ul>
    • <li class="lasttree"><span class="default">(Unit-type of (Summoned unit)) Equal to Chicken</span></li>
    • </ul>
    • </li>
    • <li class="lastopen"><span class="actions">Actions</span>
    • <ul>
    • <li class="tree"><span class="unit">Unit - Make (Summoned unit) Invulnerable</span></li>
    • <li class="tree"><span class="default">Floating Text - Create floating text that reads 5 above (Summoned unit) with Z offset 0.00, using font size 20.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency</span></li>
    • <li class="tree"><span class="wait">Wait 1.00 seconds</span></li>
    • <li class="tree"><span class="default">Floating Text - Destroy (Last created floating text)</span></li>
    • <li class="tree"><span class="default">Floating Text - Create floating text that reads 4 above (Summoned unit) with Z offset 0.00, using font size 20.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency</span></li>
    • <li class="tree"><span class="wait">Wait 1.00 seconds</span></li>
    • <li class="tree"><span class="default">Floating Text - Destroy (Last created floating text)</span></li>
    • <li class="tree"><span class="default">Floating Text - Create floating text that reads 3 above (Summoned unit) with Z offset 0.00, using font size 20.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency</span></li>
    • <li class="tree"><span class="wait">Wait 1.00 seconds</span></li>
    • <li class="tree"><span class="default">Floating Text - Destroy (Last created floating text)</span></li>
    • <li class="tree"><span class="default">Floating Text - Create floating text that reads 2 above (Summoned unit) with Z offset 0.00, using font size 20.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency</span></li>
    • <li class="tree"><span class="wait">Wait 1.00 seconds</span></li>
    • <li class="tree"><span class="default">Floating Text - Destroy (Last created floating text)</span></li>
    • <li class="tree"><span class="default">Floating Text - Create floating text that reads 1 above (Summoned unit) with Z offset 0.00, using font size 20.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency</span></li>
    • <li class="tree"><span class="wait">Wait 1.00 seconds</span></li>
    • <li class="tree"><span class="default">Floating Text - Destroy (Last created floating text)</span></li>
    • <li class="tree"><span class="specialeffect">Special Effect - Create a special effect at (Position of (Summoned unit)) using Abilities\Spells\Human\MarkOfChaos\MarkOfChaosTarget.mdl</span></li>
    • <li class="tree"><span class="unit">Unit - Cause (Summoned unit) to damage circular area after 0.01 seconds of radius 1000.00 at (Position of (Summoned unit)), dealing ((Real((Level of Gift for (Triggering unit)))) x 500.00) damage of attack type Chaos and damage type Normal</span></li>
    • <li class="lasttree"><span class="unit">Unit - Remove (Summoned unit) from the game</span></li>
    • </ul>
    • </li>
    • </ul>
    • </li>
    • </ul>
    • </div></div>
    • And, for your first trigger try changing the event to &quot;A unit Starts the effect of an ability&quot;, and why the &amp;%$@ did you use a I2R (Real conversion) here:
    • <div class="bbCodeBlock bbCodeBlock--screenLimited bbCodeBlock--code"><div class="bbCodeBlock-title">Trigger:</div><div class="wc3trigger"><ul class="wc3" id="wc3_4">
    • <li class="lasttree"><span class="default">(Real((Level of Dirge of the Wanderer for (Triggering unit)))) Equal to 1.00</span></li>
    • </ul>
    • </div></div>
    • When you can simply use a normal integer comparison ? :S
    • And, you can skip thos &quot;If&quot;s by simply doing this:
    • <div class="bbCodeBlock bbCodeBlock--screenLimited bbCodeBlock--code"><div class="bbCodeBlock-title">Trigger:</div><div class="wc3trigger"><ul class="wc3" id="wc3_5">
    • <li class="lasttree"><span class="unit">Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - (((Level of Dirge of the Wanderer for (Triggering unit)) - 1) * 5000.00))</span></li>
    • </ul>
    • </div></div>
    • And, as cleeezzz said, for the seconds trigger you&#039;ll need to store (Summoned unit) in a variable, because it won&#039;t work after waits <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" />
 

irgan

New Member
Reaction score
3
And, for your first trigger try changing the event to "A unit Starts the effect of an ability", and why the &%$@ did you use a I2R (Real conversion) here:
Trigger:
  • (Real((Level of Dirge of the Wanderer for (Triggering unit)))) Equal to 1.00


When you can simply use a normal integer comparison ? :S

And, you can skip thos "If"s by simply doing this:
Trigger:
  • Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - (((Level of Dirge of the Wanderer for (Triggering unit)) - 1) * 5000.00))


And, as cleeezzz said, for the seconds trigger you'll need to store (Summoned unit) in a variable, because it won't work after waits ;)

ha, ty again. and idky i did use that. it was late and i hope u guys know how it gets late at night staring at a screen. but there is one thing, where u have

Trigger:
  • Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - (((Level of Dirge of the Wanderer for (Triggering unit)) - 1) * 5000.00))


wouldnt that make it do 0 dmg on lvl1? ((1-1)*5000)=0?
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Oh, I wrote wrong XD (Freehanded)

What I meant was:
Trigger:
  • Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - (((Level of Dirge of the Wanderer for (Triggering unit)) * 10000) - 5000.00))


Did some calculations wrong there XD
 

irgan

New Member
Reaction score
3
alright, this is getting annoying looking for this, where the f@#$ is "Level of Dirge of the Wanderer for Triggering Unit"?

Edit:the only place where i can find it is in "Hashtable:load Real Value" section. and idt that's it..
 

irgan

New Member
Reaction score
3
is this better?

Trigger:
  • Gift
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • (Unit-type of (Summoned unit)) Equal to Chicken
    • Actions
      • Unit - Make (Summoned unit) Invulnerable
      • Set Chicken = (Summoned unit)
      • Floating Text - Create floating text that reads 5 above Chicken with Z offset 0.00, using font size 20.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Wait 1.00 seconds
      • Floating Text - Destroy (Last created floating text)
      • Floating Text - Create floating text that reads 4 above Chicken with Z offset 0.00, using font size 20.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Wait 1.00 seconds
      • Floating Text - Destroy (Last created floating text)
      • Floating Text - Create floating text that reads 3 above Chicken with Z offset 0.00, using font size 20.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Wait 1.00 seconds
      • Floating Text - Destroy (Last created floating text)
      • Floating Text - Create floating text that reads 2 above Chicken with Z offset 0.00, using font size 20.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Wait 1.00 seconds
      • Floating Text - Destroy (Last created floating text)
      • Floating Text - Create floating text that reads 1 above Chicken with Z offset 0.00, using font size 20.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Wait 1.00 seconds
      • Floating Text - Destroy (Last created floating text)
      • Special Effect - Create a special effect at (Position of Chicken) using Abilities\Spells\Human\MarkOfChaos\MarkOfChaosTarget.mdl
      • Unit - Cause Chicken to damage circular area after 0.01 seconds of radius 1000.00 at (Position of Chicken), dealing ((Real((Level of Gift for (Triggering unit)))) x 500.00) damage of attack type Chaos and damage type Normal
      • Unit - Remove Chicken from the game
      • Set Chicken = No unit
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Yeah, sure though both leaks and isn't MUI, but it'll probably work ;)
 

irgan

New Member
Reaction score
3
i still havent found that "Level of Dirge of the Wanderer" yet, any ideas where it is?
 

Komaqtion

You can change this now in User CP.
Reaction score
469
It's "Integer Comparison -> Unit - Level Of Ability For Unit" and here choose your ability, and Triggering unit ;)
 

irgan

New Member
Reaction score
3
It's "Integer Comparison -> Unit - Level Of Ability For Unit" and here choose your ability, and Triggering unit ;)

hmm, it's not taking Integers in that function line it's taking Reals only. it's only letting me either type in the Integer manually (which is no good) or convert integer to real, or use another real to be placed in that spot

sooo....is this any better??
Trigger:
  • Dirge of the Wanderer
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Ability being cast) Equal to Dirge of the Wanderer
          • (Unit-type of (Triggering unit)) Equal to Blind
    • Actions
      • Region - Center Dirge of the Wanderer Spirit Summon &lt;gen&gt; on (Position of (Target unit of ability being cast))
      • Set DirgeLevel[1] = (Real((Level of Dirge of the Wanderer for (Triggering unit))))
      • Unit - Hide (Triggering unit)
      • Unit - Order (Triggering unit) to Stop
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &lt;gen&gt;) facing (Position of (Target unit of ability being cast))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &lt;gen&gt;) facing (Position of (Target unit of ability being cast))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &lt;gen&gt;) facing (Position of (Target unit of ability being cast))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &lt;gen&gt;) facing (Position of (Target unit of ability being cast))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &lt;gen&gt;) facing (Position of (Target unit of ability being cast))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &lt;gen&gt;) facing (Position of (Target unit of ability being cast))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &lt;gen&gt;) facing (Position of (Target unit of ability being cast))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &lt;gen&gt;) facing (Position of (Target unit of ability being cast))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &lt;gen&gt;) facing (Position of (Target unit of ability being cast))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &lt;gen&gt;) facing (Position of (Target unit of ability being cast))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &lt;gen&gt;) facing (Position of (Target unit of ability being cast))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &lt;gen&gt;) facing (Position of (Target unit of ability being cast))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &lt;gen&gt;) facing (Position of (Target unit of ability being cast))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &lt;gen&gt;) facing (Position of (Target unit of ability being cast))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &lt;gen&gt;) facing (Position of (Target unit of ability being cast))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &lt;gen&gt;) facing (Position of (Target unit of ability being cast))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &lt;gen&gt;) facing (Position of (Target unit of ability being cast))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &lt;gen&gt;) facing (Position of (Target unit of ability being cast))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &lt;gen&gt;) facing (Position of (Target unit of ability being cast))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &lt;gen&gt;) facing (Position of (Target unit of ability being cast))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Order (Triggering unit) to Orc Blademaster - Mirror Image
      • Wait 1.00 seconds
      • Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - ((DirgeLevel[1] x 10000.00) - 5000.00))
      • Unit - Unhide (Triggering unit)

Edit:damnit it wont let me bold or underline things in a wc3 trigger :/
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Use the Integer - Real conversion.

No, instead make the variable "DirgeLevel[1]" an integer, and then it'll work ;)

And also, to shorten your code a bit, use an Integer A/B/Variable loop, like this:
Trigger:
  • For each (Integer A) from 1 to 20, do (Actions)
    • Loop - Actions
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Random point in Dirge of the Wanderer Spirit Summon &lt;gen&gt;) facing (Position of (Target unit of ability being cast))
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)


Instead of all those 40 line of the same actions...

Also, your trigger leaks quite a bit, and I'd suggest you remove them ;)
(If you don't know how to remove them, or don't know what leaks are, then read this ;))
 
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