| 09-03-2004, 02:40 PM | #1 |
Is there an action (I can't find one) or way, to deal an amount of damage to a triggering unit? |
| 09-03-2004, 02:49 PM | #2 |
Look for this trigger after the official release of 1.17: New triggers: Special Effect - Create Lightning Special Effect - Destroy Lightning Special Effect - Move Lightning Special Effect - Color Lightning Unit - Drop Item on Point Unit - Drop Item on Target Unit - Drop Item in Slot Unit - Damage Unit Unit - Damage Point Unit - Decrease Ability Level Unit - Increase Ability Level Unit - Set Ability Level Unit - Inventory Capacity Event Response - Damage Source GetAbilityEffect (returns a filepath) GetAbilitySound (returns a filepath) There are other ways to do damage to a unit, but if you can wait for the update it would probably make things easier. |
| 09-03-2004, 03:29 PM | #3 |
if you cant wait, then try this Events Conditions Actions Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) - # of damage) should work |
| 09-03-2004, 04:15 PM | #4 | |
Quote:
What function is: - # of damage All I can get is Unit - Set life of (Triggering unit) to (Life of (Triggering unit))\ :/ ... |
| 09-03-2004, 04:34 PM | #5 | |
Quote:
For the second portion, do "arithmitic" which allows you to do +-/* with two values |
| 09-03-2004, 04:41 PM | #6 | |
Quote:
closest I could get is: Unit - Set life of (Triggering unit) to ((1.00 + 0.00) - 30.00) where is the current life function? That I can arthimetically damage lol. |
| 09-03-2004, 05:02 PM | #7 |
Got it! Thanx for the help! :D |
| 09-03-2004, 05:12 PM | #8 | |
Quote:
|
| 09-03-2004, 05:51 PM | #9 | |
Quote:
I think he knows.. he was just using it as a test to see if he could get the trigger right. |
| 09-03-2004, 06:00 PM | #10 |
Yeah. Just making a spell that uses HP instead of Mana. Also, is there anyway to make this detect levels? Or is that impossible? I.e: lose more HP as the levels get higher. |
| 09-03-2004, 08:20 PM | #11 |
If you want it to depend on level of hero, try something like this: Unit - Set life of (Triggering unit) to ((Current life of (Triggering unit)) - ((Hero - Level of (Triggering unit) * 30) If you want it to depend on the level of the ability you can do it as this: Unit - Set life of (Triggering unit) to ((Current life of (Triggering unit)) - ((Unit - Level of (Ability being cast) for (Triggering unit) * 30) The first one will reduce life by level of the casting hero multiplied by 30, second the same with level of the ability! I hope I could help |
| 09-03-2004, 08:25 PM | #12 |
just add a variant(integer) and an action Actions Set Damage = [level of(hero) * Damage] Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) - # Damage) In my example i'm multiplying. Of course you only need to change the values. |
| 09-03-2004, 09:02 PM | #13 | |
Quote:
Where is level of ability being cast?? Or Triggering ability? Also, how do add a buff to a unit in a trigger? I am trying to make a buff appear when a unit casts a spell... I made it add the ability, but that just makes the unit "have" the ability when casting the spell, not just be afflicted by it. Also, how do you add a special effect "ability art etc" _on a triggering unit_ ? |
| 09-04-2004, 12:52 AM | #14 |
look at a spell that shiggityshwa did you need to make a unit and a spell though to it's called reddeath use Hellstorm triggers ![]() |
