Need help with custom Ability (WarStomp, but for tower's missile)

LearningCode

New Member
Reaction score
24
Thanks for the suggestion,
But adding this Condition works:
GDD_DamageSource Equal to "Tower name"


GDD_Event only turns to 0.00 when a unit receives damage.
So, Event, GDD reaches 0.00
Check Condition, DamageSource = TowerBash

Do actions. xD
 

avalya

New Member
Reaction score
37
Then again, that only works for towers and units without abilities, since spell damage is also damage taken, but since your tower does not have that, it's no problem (otherwise it'd work whenever it damages anyone, with a spell or attack).
 

LearningCode

New Member
Reaction score
24
Oh..
If it becomes a question of a Hero with spells..
Then Glenphir's method would be the only way?

What if the hero has 4 Active skills and no passive?
Then we can't use the envenom spears thing, can we?
 

Ayanami

칼리
Reaction score
288
You can. It still works.

Note: Do you have any other buff placer spells on your tower?
 

LearningCode

New Member
Reaction score
24
But if we want the Hero to only have 4 skills and add the "Envenom Spears" thing to the hero..
Won't there be a 5th skill appearing that that looks real ugly and out of place? o.0

Can I make it:
Events
A unit owned by Player X (XXXX) is attacked
Conditions
(Attacking unit) equals to (Hero-Name)
Actions
Wait till GDD_Event is equal to 0.00 checking every 0.1 seconds
// All our actions regarding this trigger
 

Ayanami

칼리
Reaction score
288
Hmm, try remove the "Remove Buff" part. See if the enemy receives the poison buff properly.
 

LearningCode

New Member
Reaction score
24
Apparently, the enemy does not get the buff.
But I've given up on the envenom spears method =x
Thanks for trying so hard to help, though.

I'm just thankful this was for a TD and not a hero arena or I'd be screwed.
bleargh.
 

Ayanami

칼리
Reaction score
288
Hmm, oh well. If you want, you can try Slow Poison. It's the same. It should work though 0.o Used it in my map.
 

LearningCode

New Member
Reaction score
24
Oh..
I see.
At least I learned something out of this.

But I still want to know if this will work:
Events
A unit owned by Player X (XXXX) is attacked
Conditions
(Attacking unit) equals to (Hero-Name)
Actions
Wait till GDD_Event is equal to 0.00 checking every 0.1 seconds
// All our actions regarding this trigger



Checking if the value of a real variable (GDD_Event) hits zero every 0.1 seconds before continuing on to whatever awesome custom skill we were planning to dish out on the damaged unit.
 

Ayanami

칼리
Reaction score
288
Well, I'm not that sure if this will work. However, imagine you have immolation. When you attack, your projectile flies to the enemy. Before the projectile lands, the immolation deals damage. This would cause a problem.
 

LearningCode

New Member
Reaction score
24
._.
Omg, how do you guys think of all these issues.

Err..
Hmm..
You would need a very long range immolation for that to happen, wouldn't you, but that's not the argument..

Okay, I give up xD
Yea, placing the buff would be a better idea =/
 

sunshinex3

You can change this now in User CP.
Reaction score
7
Erm..
Okay, I'm lost again.

Installation of GUI-friendly damage detection: Check
Applying trigger you gave me: err..

I made sure the ability based off envenom spears gave the Poison buff (Both of them)
I gave the ability to my tower
The ability has a cast range Equal to my tower range
I even made the duration 999 and made it do 0.01 damage per second

No luck, it won't stun
The trigger I'll post was with the chance to stun set at 100%
And I only built ONE tower, so it shouldn't be clashing with anything else

Trigger:
  • Events
    • Game - GDD_Event becomes Equal to 0.00
    • Conditions
    • ((GDD_DamagedUnit has buff Poison (Non-Stacking)) Equal to True) or ((GDD_DamagedUnit has budd Poison (Stacking)) Equal to True)
    • Actions
    • Trigger - Turn off (This trigger)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Random integer number between 1 and 100) Less than or equal to 100)
      • Then - Actions
        • Set TempPointStun = (Position of (Attacked unit))
        • Unit - Create 1 Dummy for (Owner of (Attacking unit)) at TempPointStun facing Default building facing degrees
        • Unit - Add War Stomp (Neutral Hostile 1) to (Last Created Unit)
        • Unit - Set level of War Stomp (Neutral Hostile 1) for (Last created unit) to 1
        • Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
        • Unit - Remove (Last created unit) from the game
        • Custom script: call RemoveLocation(udg_Temp_PointStun)
      • Else - Actions
    • Unit - Remove Poison (Non-stacking) buff from GDD_DamagedUnit
    • Unit - Remove Poison (Stacking) buff from GDD_DamagedUnit
    • Trigger - Turn on (This trigger)


I tried adding "Custom script: local location udg_TempPointStun" above "Trigger - Turn off (This trigger)" but it didn't work either.

Any help?

Trigger:
  • Stasis Field
    • Events
    • Unit - A unit Is attacked
    • Conditions
    • ((Unit-type of (Attacked unit)) Equal to Basilisk (guardian)) and ((Level of Stasis Field (guardian) for (Attacked unit)) Equal to 1)
    • Actions
    • Unit - Create 1 dummy (stasis field) for (Owner of (Attacked unit)) at (Position of (Attacked unit)) facing Default building facing degrees
    • Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp


this worked i dont think your other one worked because it was netural war stomp.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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