| 11-17-2003, 03:42 PM | #1 |
Because my Dreamwalker spell isn't progressing, i'm gonna do something else that's really unique, cool and amazing (or not)... I'm making a Hero ability based on Ensnare (This is an ultimate ability). The idea is, that the web makes the unit bleed and to lose 3% hitpoints per sec, lasting total of 20 secs. I didin't manage to do $hIt. Heres the triggers i'm using: (btw, these are pretty basic, so don't laugh.:bgrun: ) Trigger 1 Events: Unit - [insert name here] Finishes casting an ability Conditions: (Ability being cast) Equal to Web of Bleeding Actions: Trigger - Run Trigger 2 (Checking conditions) Trigger 2 Events: Time - every 2.00 seconds of game time Conditions: Actions: Special effect - create a special effect attached to the overhead of (targeted unit of issued order) using [ Im too lazy to type the path here. the effect is Herobloodelfblood.mdl] Unit - ((percentage life of (target unit of issued order)) -2.00)% It's not working.... Why is that? And also, what is the value, ( in this trigger it's "overhead") which will attach the effect on the unit's torso? (No, it isn't "torso", i tried it.) Could someone give me some help with those? |
| 11-17-2003, 04:16 PM | #2 |
just edit Death and Decay, if u want it on multiple units like in SC (the spell the scorpion-guy casts, with blood) :) and try with "beggins and effect of ability" :) |
| 11-17-2003, 05:03 PM | #3 |
Create a unit variable, Target Trigger 1 E - A unit is issued an order targeting a unit C - (Issued Order) equals (Your Spell Order String) C - Unit Type of Issued Unit (Is there a condition?) Equals to I AM THE CASTER of this DND/ROOT spell!! A - Set Target = Target Issue of Order A - Turn on Trigger 2 A - Wait 20.00 seconds A - Turn off Trigger 2 Trigger 2 (Make sure it's not already on, meaning it's not initially on. E - Every 1 second of game A - Special effect - create a special effect attached to the overhead of (targeted unit of issued order) using [ Im too lazy to type the path here. the effect is Herobloodelfblood.mdl] A - Unit - Set Life of (Target) = Max Life of (Target) X 0.97 0.97 means the target will lose 3% of it's max life every 1 second. |
| 11-17-2003, 05:09 PM | #4 |
but he will lose 3% of his actual health, so if he has 100, after 1 sec he will have 97, but after that he will take 3% of 97, which is not 3 :) |
| 11-17-2003, 05:31 PM | #5 | |
But that's what you asked for. Quote:
3 hit points per seconds over 20 seconds is really pathetic damage for an ultimate, don't you think? Losing 3% over 20 seconds is much more impressive. |
| 11-17-2003, 05:38 PM | #6 |
This is what you need (assuming only 1 unit will need the spell, if more you will need variables): Trigger 1 E - A unit is issued an order targeting a unit C - (Issued Order) equals (Your Spell Order String) A - Turn on tigger 2. Add target to unit group X. Wait 20.999 seconds. Turn off trigger 2. Trigger 2 (Make sure it's not already on, meaning it's not initially on. E - Every 1 second of game A - Special effect - create a special effect attached to the overhead of (targeted unit of issued order) using [ Im too lazy to type the path here. the effect is Herobloodelfblood.mdl] A - Pick every unit in unit group X and: Unit - Set Life of (picked unit) = Life of (picked unit) X 0.97 |
| 11-17-2003, 05:47 PM | #7 |
Why dont you take entangle? |
| 11-17-2003, 06:32 PM | #8 |
Oppz, I forgot about the "Turn Off" part :P And you can't use entangle because it doesn't do % damage, and if you wish to do damage of the max life, I believe you take Max Life of (Target) X 0.97 (Bleh, even DnD does more damage for an ultimate and it even does an AoE!) Bleh, it's your map, lol, maybe set it to 10% damage for 8 seconds? Or 5% damage for 15 seconds? Because 3% per second, over 20 second, it's only 60% life gone from the target, where else Death and Decay does 140% life gone from an area of effect. Think about changing it to whatever you wish. Btw, you could use Entangle Root that does 0 damage and you can create an invulnerable unit that casts DnD in a super small area on that Entangled unit, that should be easier since when the unit dies, the player gets the bounty instead of being a trigger kill. If you wish to use triggers to kill the unit, you might as well get a unit called the killer with a KaBoom spell that does 0 radius and 9999 damage. C - If Life of (Target) is less than or equal to 1. A - Then Create 1 Killer at Position of Target A - Hide Last Created Unit A - Give Last Created Unit an expiration timer of 2.00 seconds (In case another unit has the amazing speed to kill the Target within the giving time when his life is 1, it would kill the last created unit (Killer) ) A - Order Last Created Unit to Neutral - KaBoom! Target Bleh, it could work, it's the best chance for wanting a that spell...Unless you can be simple and live with DnD. :D |
| 11-17-2003, 07:35 PM | #9 | |
Quote:
10% for 8 seconds is 80% damage?!?!? If a hero has 2k hits, its a 1600 dmg spells. 60% are 1200 hitpoints. AND the unit cannot move. with d&d you can kill ****, but this holds the target... and u just need to cast it 2 times and the enemy hero is dead, no matter what his hitpoints are |
| 11-17-2003, 08:21 PM | #10 |
To get 3% of the hero's HP per second you might want to try something like this action Unit - Set life of (Target unit) to ((Life of (Target unit)) - ((Max life of (Target unit)) x 0.97)) Edit: Yes, x 0.03 :D I knew that.. really.. |
| 11-17-2003, 08:47 PM | #11 |
@Ferret Er... You just dropped the guy's life to 3% of max.. but the idea's there. Life of (targeted Unit) = (life of targeted unit) - (max life of targeted unit x 0.03) And if you're thinking about the 8sec 10% thing, if you put it to work on current life, it'll be fine. Present life = 100% 1 sec = 90% 2 sec = 81.9% 3 sec = 74.xx% 4 sec = 67.xx% 5 sec = 61.xx% 6 sec = 55.xx% 7 sec = 50.xx% 8 sec = 45.xx% You can't kill with it, because a 10% dmg means, the guy will always have 90% of his [last sec life] Life of (targeted unit) = (life of targeted unit x 0.9) Of course you could try nicer friendly values, like 5% dmg for 12 sec or something, which would be 100% x (.95^12) = 54.xx% Heh you get the drift. :D |
| 11-17-2003, 09:33 PM | #12 |
I have a similar spell in my map based upon Inferno. It summons a tiny critter that lasts only .2 seconds, but that's enough time for the trigger to hit off. Basically, when Inferno is cast, said trigger swings into action. It picks all units within a set range of the summoned unit and deals damage to each equal to 33% of their current health. It sets the HP of picked unit to (current HP / 3) x 2. Here's a guide for you: Trigger 1: Event: A unit issues an order targeting an object. Conditions: Issued order is equal to Entangling Roots (base spell in our example) Unit being issued order is equal to Dreamwalker. Actions: Set Variable "EntangleTarget" to "Target of issued order" Enable Trigger 2. Wait (duration of the spell) seconds. Disable Trigger 2. Trigger 2 (initially turned off): Event: Every X seconds. Conditions: None Actions: Set Life of "EntangleTarget" to ((Current Life of "Entangle Target" / 3) - 1) x 3. |
| 11-17-2003, 09:59 PM | #13 |
why use the [(x/3) -1] x 3 ? if X = 9, then u have 3-1=2; 2x3 = 6 he needs 3% not 30 :) 99/3 =33 - 1 = 32 x 3 = 96 ....interesting :) the larger numbers u use, the more acurate u get :) |
| 11-18-2003, 01:15 AM | #14 |
Hmmm. True dat. My last equation reduces the amount by a solid 3 every time. Lets try the cut-and-dry percent-conversion method than. Set life of "EntangleTarget" to [Current life of "EntangleTarget" x 97] / 100 |
| 11-18-2003, 02:44 PM | #15 |
Holy christ. I was only half a day gone and there's 13 replys...emote_sweat Btw, i suck in math pretty much. :ggani: The hero i'm using this ability is always computer controlled, (Yeah, i know. It's a waste, kinda.) so it doesn't matter if it's a trigger kill or not. I'l propably need an AI which makes the hero use the spell too. Could someone help me with this? (Man. At this rate, my "Thanks to" list is going to be 10 miles long...) Well, i'm off to try those triggers already posted here... Back soon. Edit: stupid fu**ing WE... MaliceDR, i think your trigger would work, but when i put "issued order equal to entangling roots" I can't find the entangling roots part...:bangH: (Noobish isn't it?) |
