| 09-20-2004, 02:44 PM | #1 |
Okey... I basically need my Blizzard AoEs to stack. I'm reproducing the blizzard spell from WC2, and have gotten everything to work except for the stacking.... Also, I'm trying to reproduce the Paladin's heal/exorcism as best I can (The ol' use as much mana as possible, 8 mana 1 hp thing), and was wondering what good ideas people here might have. |
| 09-20-2004, 06:46 PM | #2 |
I don't really remember Blizzard from Warcraft 2 - I thought it was like Blizzard from Warcraft 3? Heh, can you give a little bit more detail? For your second question I don't know exactly what you mean. Do you mean you want an ability that will use as much mana as possible in increments of 8? I'll assume you want to heal a unit, though the same basic logic could be transferred to any ability. First, I'd base it off holy light and make it heal 0 HP and 0 mana. All of the HP gain / mana loss is going to be done through triggers. You won't be able to dynamically change the tooltip to accurately represent mana cost, so I would just mention in your extended section that all mana will be spent. Code:
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Holy Light
Actions
-------- Spend all the mana of the Caster to restore HP of target. 8 mana = 1 HP --------
Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + ((Mana of (Triggering unit)) / 8.00))
Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) mod 8.00)If you want to make this a spell that damages, you could modify this code fairly easily (in fact, just change the + to a - on the "Set Life" line). The only real problem is that the caster wouldn't get credit for the kill, and it might mess up XP gain. |
| 09-21-2004, 02:21 PM | #3 |
Sorry about the lack of clarity about the War2 blizzard. Anyways, it works like this: The mage basically casts the blizzard spell in waves. Every wave costs 25 mana. He keeps on doing this till you order him not to or he runs out. I can do that. The problem is that the waves overlap. So, you can cast one wave of blizzard, and it will last, oh, 5 seconds or so. The next wave is cast on top of that one, so it's more like you're casting multiple blizzards on top of each other. Then your little mage runs free as the blizzards come crashing down. I've already figured out how to get the exact effect I want going (lots of dummy casters), but, as I said, one blizzard doesn't stack over another. So, instead of a blizzard with increasing damage intensity, you get a blizzard that looks good but does the same damage the whole way through. Thanks for the holy light thing. It's what I needed. =) |
| 09-21-2004, 02:34 PM | #4 |
I maybe missunderstood you. But why didn't u make blizzard like this: Normal blizzard spell with waves 0 (0 = unlimited*). and cast time 0.25 or something like that. Im not 100% sure the cast time is the time it takes for the blizzards to hit ground or the time between waves...or both. But you can always try it! *Unlimited to most spells (dunno if it is on blizzard) Well...maybe this wont work but you can give it a shot! |
| 09-21-2004, 07:18 PM | #5 |
Okey. Let me clarify one more time. We shall call whenever the mage casts blizzard a single "blizzard". We shall call each time a blizzard hits is a wave. Damage shall be 1 dam per wave, with 10 waves in a single blizzard. Cooldown time between blizzards will be 1 second. Because the blizzard will not force him to channel, he can have 10 blizzards going at once, as long as he has the mana to do so. It works like this: Mage A wants to destroy an enemy farm. He casts his little blizzard spell once. Overall, it deals 10 damage, in 10 seconds. If he casts it twice, he deals 20 damage in 11 seconds. If he casts it three times, he deals 30 damage over 12 seconds. In other words, each blizzard is cumulative. Thus, the intensity (damage/wave) of the overall storm increases up until just as many blizzards are dissipating as are being created. I will now show the damage/wave over time for this example, in columns. Let's say that the mage casts blizzard 3 times. Time: | Damage: | | Total damage dealt so far | Current # of Blizzards 0 s | 0 dam/wave | 0 dam | 0 1 s | 1 dam/wave | 1 dam | 1 2 s | 2 dam/wave | 3 dam | 2 3 s | 3 dam/wave | 6 dam | 3 4 s | 3 dam/wave | 9 dam | 3 ... (skip) ... 9 s | 3 dam/wave |24 dam | 3 10 s | 3 dam/wave | 27 dam | 3 11 s | 2 dam/wave | 29 dam | 2 12 s | 1 dam/wave | 30 dam | 1 Does anyone get what I'm saying now? Please? Please? It's just like the damage is cumulative, and the blizzards the mage casts stack on top of one another. Just like dryads stacking poisen, sort of... Anyways, my problem is that in War3, this doesn't work, because instead of having the dam per wave increasing, it stays constant, no matter how many blizzards you cast on a spot! |
