HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Custom Spells and their Levels

07-15-2003, 04:31 PM#1
cbc22
Hi!

First time posting, but long time fan... :)

I have a question:

I'm trying to create a trigger for a custom spell. However, I need to know it's level...

My initial plan was I will try using the event "Learned Hero Spell", and just set a variable whenever the player chooses to learn or upgrade the spell I want to monitor.

However, there is no way to determine what spell I just learned. There is no such thing as:

Learned Skill of Triggerring Unit == Custom Spell 001

The only possible choices are the preset ones, like Storm Bolt, Frost Nova, Blizzard, etc. Even if my custom spell is based on, say Frost Nova, using the preset Frost Nova for the condition checking does not work...

Is there a way to solve this? Thanks :)
07-15-2003, 08:27 PM#2
Pesmerga
Make the whole trigger and convert it to JASS. Replace the default spell to your own spells code.
07-15-2003, 09:58 PM#3
cbc22
I see... Thanks for the tip :D

Another quick question though... how do I know the spell code for my custom spells?
07-15-2003, 11:12 PM#4
Guest
some guy explained it pretty good here:

http://wc3campaigns.com/forums/showt...threadid=21827