HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How do I increase the lvl of the ability after using Unit-Add Ability?

02-15-2004, 06:38 PM#1
yewtee
It seems like after using the Unit-Add Ability function on a hero, that ability's lvl cannot be raised in normal game after a hero has increased in lvls. I've tried using the tome of retraining, but it cannot work.

I know you can replace that ability with the same ability but with a higher lvl. But this is not normal gameplay.

Is there a way where after adding the ability, you can increase its lvl normally as with the red cross thingy, if you know what I mean...

Anyone knows how to solve this? Thanks...
02-15-2004, 07:14 PM#2
Dalten
I don't think there is a way. Personally I think it's a bug that Blizzard should fix.
02-15-2004, 08:15 PM#3
MysticGeneral
Please check the trigger repository. There are many systems that do this.
02-16-2004, 04:37 AM#4
yewtee
I think it certainly is a bug. Since it's weird that once you've added an ability, it just got stuck at that lvl.

Anyone can really help?
02-16-2004, 04:41 AM#5
Dalten
As Mystic pointed out, you can create a system that will let you simulate the Plus sign in some form or another.

Basically you store the level of the spell in a variable, and if you do certain things the variables increase and you use that variable to take away the old spell and give the hero the new spell based on the variable.

Good luck.
02-16-2004, 04:45 AM#6
Shimrra
You can either create a different spell for each level and remove the old and add the new one, or create an upgrade that upgrades ability (I think) innate level. I created a system that allows spells to work in a way like this. Try searching for it if you need additional help.
02-16-2004, 04:46 AM#7
yewtee
Thanks for the replies. It seems that using a variable and then replacing the ability is the only way at the moment now....sigh... *bonk* Blizzard on the head

Okay, I'll get to work!
02-16-2004, 07:36 AM#8
yewtee
Seems like in the Trigger Repository, there are 2 ability select systems and both uses Dialogs.

I wonder if there's a way not to use dialogs? Or are dialogs necessary?
02-16-2004, 07:42 AM#9
Dalten
no needed, study the Events of their triggers and customize it to whatever you want.

You can make them level automatically as they are used, or by how many of a certain unit is killed, or how many wirts legs are collected, whatever you want pretty much. Buying abilities from vendors is used too somtimes.
02-16-2004, 07:47 AM#10
yewtee
Thanks for the ideas, seems like we have to come up with innovative alternate ideas to counter this replusive bug, but oh well that's what our brains are used for ...
02-16-2004, 01:55 PM#11
Shimrra
The problem I've found is if you add a Hero ability, it doesn't show up the learn abilities, so there is no way of upgrading it without creating a dialog system. So, to the best of my knowledge, you dialog.

[edit] Just thought of this, maybe you could give the unit a Spellbook with each spell in it and when they select that spell in the spellbook, it gets upgraded. You could remove the spellbook after the skill is chosen. The only downside is that a spellbook can only hold so many spells...
02-16-2004, 02:09 PM#12
Vexorian
It is not a bug, I think blizzard figured out that adding learnable hero abilities could be really problematic for them (it was impossible to make them handle as learnable or it could cause lag or crash) I wouldn't call it a bug but a limitationof war3's engine.

The thing is that if you add a hero ability with triggers it will just be added as if it was a normal ability, that's the way it works.

To level up them you need a way to let the player choose the spell, the best way at this moment is by using dialogs, (althought I am making *something* to let it use items (somehow like in weaaddar's stuff))

Then you need them to use extra spells for each level, or to make upgrades. And that is really the lame part of this, I wonder why blizzard didn't make a SetUnitAbilityLevel native, it didn't look impossible for them and they even made a way to change an item's charges.
02-16-2004, 03:12 PM#13
yewtee
I agree that using dialogs would be the best method for a Hero Ability Select system at the moment.

Thanks Shimrra and Lord Vexorian, I'll be using your files as references for a system that I'm currently working on.
02-16-2004, 03:21 PM#14
weaaddar
The truly best method would be to use a spellbook, although I'm not sure how many dumby abilities truly meet the cirteria of having no target and generally doing nothing and then have it research an upgrade.

Alternatively, you can use Items but the Item API is just unwielding, and I hate paging so badly.
02-16-2004, 05:56 PM#15
yewtee
A spellbook would be great too, but as I'm doing a Hero Arena, (yes I know there's too many hero arena maps already but I just love them okay?!) so I'll just use 1 dialog in the entire game just to make things simple.