HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help -=again=- with a tutorial

12-17-2003, 11:48 PM#1
Ziggurat5
I used the "dummy spell" thing from that tutorial, but im having a problem with doing spells with multiple levels.

http://www.wc3campaigns.com/forums/a...ticle&artid=13

For instance, if i have a spell that damages units within a certain radius of the caster, the damage rising per level, how do i do that?
Since the way this works is that a trigger detects when that "dummy spell" is used, and then does a bunch of other actions.
But how can i detect if a certain spell is being cast at a certain level.
Is there any way to tell the difference between Flamestrike lvl1 and lvl 3 in an event?

I know theres probably a simpler way to do this, but id like to understand how to do it using this "dummy spell" method.
12-18-2003, 02:30 AM#2
Eriond
Yes there is. This has been posted about numerous times before, and if you searched you would've found it... though I'm not one to judge, I think the search system is cluttered and almost completely useless, and I'm happy to answer the question. :D

You have to make a trigger, which detects when the unit levels an ability.

Here's the code:

Events:

Hero - Learns an Ability

Conditions:

(Learned Hero Skill) is equal to Human Blood Mage - Flame Strike

Actions:

Set Flamestrikelvl = Flamestrikelvl + 1

Flamestrikelvl is an integer variable.

That should solve your problem, if it doesn't, just post again, k?

Good luck! :ggani:
12-18-2003, 06:46 PM#3
Ziggurat5
Yes it did solve my problem!!

and im sorry for not using the search box. Im a n00b here, so i didnt know i could use it.

again thanks alot, i cant tell you how much i appreciate someone who takes the time to give a full, detailed answer to a problem.