Warcraft III resources & community, 2003–2006 · archived

Linking spells to upgrades

29 posts
#1

Linking spells to upgrades

Hey,

I made me a nice passive ability, and another nice upgrade. (sounds stupid éh? :D)
Now, my goal is, when i upgrade the ability level 1, the ability becomes available (works already, easy.)
Now, when you upgrade to level 2, i want the ability to upgrade to lvl 2 aswel.
I have already tried the 'ability level bonus', but that just doesn't work. help me?
#2
Hmm... Isn't there a way to verify if an unit learns the ability? Then if the level of the ability is equal to 1 it adds the second ability, else it sets the level of the second ability to the level of the first ability for the learning hero. That should do it!!!
#3
Since its a hero ability, I'm not sure if you can use the "Techtree" fields on the spell, but otherwise you can just use triggers. Use one trigger and a boolean to detect if the unit has learned the ability (there might be a condition for this, I'm not sure). Use another trigger to set the level of the ability.

~The_Raven
#4
The_RavenSince its a hero ability, I'm not sure if you can use the "Techtree" fields on the spell


yes, they work. i know it as i often forget to delete these equivalents and then have to change and retest my spells :wink:
#5
They work for hero spells? In that case, just make the upgrades like you would if you were doing it for a normal unit.

~The_Raven
#6
Umm... I don't really know what he wants but I think I understand what YOU mean Raven. Umm... You want him to get all the skills to the hero and just put requirements? Hmm... there is only one problem if so. Why if he wants to add an armor bonus skill, which increases at every level? Is it possible to give a skill three times? I doubt it though...
#7
oh i'm sorry, but it's not a hero ability, forgot to mention that.

the map i'm using it in, is StarCraft Zone Control, in which you get alot of marines out of each bunker you control, and these marines can be upgraded in various ways.
#8
Oh, then just use upgrades. There are hundreds of examples in the WE to show you how.

~The_Raven
#9
i know, but see, that is the entire problem here, that doesn't work. it just wont, nothing, boosh! :(
#10
Can't you give the skills from the beggining to the unit? Then all you have to do is set the prerequisites needed. First check the Dependency field, then set into the prerequisites field what upgrades it needs and if it only gets activated by level 2 or 3 or more of that upgrade, add it to the level required. ;)
#11
sounds like a plan, problem is that i don't understand what exactly you mean. could you be more specific?
#12
Ok... If you look at any spell you will notice that it has the following fields( in Object Editor btw... Spells Menu)

Techtree - Check Dependencies
Techtree - Requirements
Techtree - Requirements - Levels

Ok, make sure the first one is set to true. Go to Upgrades menu and create a new upgrade based on Defend let's say. Change icon and stuff however you want. NOW, go back to your spell. We have to change the Techtree - Requirements.

Click on Add TechItem and select into the menu up Upgrades. Search for your upgrade depending on the race and stuff and select it. That's all.

Still, if you want an upgrade which has two levels, for example, and have the ability available only at level 2, click on Requirements - Level field, click on Add Integer and write "2" into the field. If you want level 3, write level 3 and so on. If you want level 1 you don't need to add it.

That's all. Do you get it now?
#13
so basically, what you're saying is that i should make three spells, and make each one use a different tier of the upgrade to work.

Strange though, it doesn't just upgrade when the dependancy is set.
#14
Umm... I don't get what you really want. You want your spell to actually have three levels? Or you want three different spells? If you want three different spells use the trick up. If not, the whole stuff went kinda down. You'll need quite a lot triggers. I'll check some...
#15
okay, well, here's what i want.

I've got one upgrade with 3 levels.
I've got one ability with 3 levels.

When the upgrade goes up one level, so must the ability.

E.g.:
Upgrade lvl 1 = enables the skill
Upgrade lvl 2 = makes the skill lvl2
Upgrade lvl 3 = makes the skill lvl3