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
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top