| 03-03-2009, 06:08 AM | #1 |
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 |
Just use 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 JASS:SetUnitAbilityLevel('ANsy', 2billiondollarzmuwahahahaa) |
| 03-03-2009, 06:40 AM | #3 |
Jesus, it's never simple... Right on the +rep |
| 03-04-2009, 04:32 AM | #4 |
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 | |
Quote:
Yes it does, I'm working on a map and it does work. |
| 03-07-2009, 05:01 AM | #6 |
maybe i did something wrong when i tested it. but that is good. |
