HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

[Help] Upgrading spells in a spellbook

03-03-2009, 06:08 AM#1
Tide-Arc Ephemera
Alrighty, so what I have is a series of spells inside a spell book. Each require a basic research to enable them.

What I want to do is a secondary research that increases the spell's level.

It all looks correct, but none of it works. I have it on both "apply to all units" and "upgrades applied to this unit", but nothing changes inside the spell book.

What do I do?
03-03-2009, 06:22 AM#2
fX_
Just use
Collapse JASS:
SetUnitAbilityLevel(theSpellInsideTheSpellBookYouWantToLevelUp, level)

NOTE: theSpellInsideTheSpellBookYouWantToLevelUp. So if it is Pocket Factory ('ANsy') in the spellbook and this is what you want to level up, do
Collapse JASS:
SetUnitAbilityLevel('ANsy', 2billiondollarzmuwahahahaa)
03-03-2009, 06:40 AM#3
Tide-Arc Ephemera
Jesus, it's never simple...

Right on the +rep
03-04-2009, 04:32 AM#4
fX_
It is simple...

But you should know that you cannot do GetUnitAbilityLevel() for abilities inside spellbooks; not as SetUnitAbilityLevel().
03-07-2009, 04:53 AM#5
Tide-Arc Ephemera
Quote:
Originally Posted by fX_
It is simple...

But you should know that you cannot do GetUnitAbilityLevel() for abilities inside spellbooks; not as SetUnitAbilityLevel().

Yes it does, I'm working on a map and it does work.
03-07-2009, 05:01 AM#6
fX_
maybe i did something wrong when i tested it. but that is good.