• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

spell upgrade.

Status
Not open for further replies.
Level 7
Joined
Dec 8, 2005
Messages
319
ok so you know when you play warcraft and you upgrade the units attack or give them spells. well i have 10 lvls of upgrades and 10 lvls of spells. and everytime you upgrade spell 1 then the spell in the tower should upgrade as well. does anyone know how to use the upgrade sytem?
 
Level 3
Joined
Mar 2, 2008
Messages
62
to upgrade the spells themselves, use the Engineering Upgrade ability. it replaces a target spell with another target spell.

to add a new spell with upgrades, mod the spell's techtree requirements to have the necessary upgrade, and add the ability to the unit. change upgrades used for the unit to the appropriate upgrades.

To set the level of an existing ability, use the following trigger

  • Upgrade
    • Events
      • Unit - A unit Finishes research
    • Conditions
      • (Researched tech-type) Equal to YourUpgrade
    • Actions
      • Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) of type YourUnit) and do (Actions)
        • Loop - Actions
          • Unit - Set level of IncreasingAbility for (Picked unit) to (Current research level of YourUpgrade for (Owner of (Triggering unit)))
 
Level 7
Joined
Dec 8, 2005
Messages
319
ya figured i had to use a trigger and had something in mind according to what you gave me. yet what a drag.

ah Ctrl+C and Ctrl+V are going to get alot of work in this next hour. was hoping that there was somthing that i missed. hmm i have to play around with it.

thanks metov.
 
Last edited:
Level 7
Joined
Dec 8, 2005
Messages
319
and scooby.. i dont need a trigger like that... it is for my towers that would already be on the map... thanks though

but here are 2 question for you...
1: How would i go about increasing the units attack damage and attackspeed?
2: Using purge as an ability to cast chainlightning on attack. mine is bugged.. any ideas you can see the spell but it is greyed out on the unit.
 
Level 3
Joined
Oct 19, 2007
Messages
51
Attack damage and attack speed can be easily upgraded by making a new upgrade and modifying the fields "Data - Effect 1" and 2 to say "Attack Damage Bonus" and "Attack Speed Bonus" and modify the new fields that appear appropriately.
 
Level 7
Joined
Dec 8, 2005
Messages
319
ah but not for towers. because it works when i use a unit but not on my tower. unless i am missing any a condition the tower has to have. but i dont know how to make it work for the tower
 
Level 3
Joined
Oct 19, 2007
Messages
51
Works for the towers I've done it with... did you add the upgrade into the field "Techtree - Upgrades used" for the tower unit? Remember that a tower is just a unit that's classified as a structure. You can do almost anything with a building that you can do with a unit.
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
For auto-cast abilities use orb abilities.

Orb abilities - auto casted spells that work without bugging like triggerd aut-casted spells do.
You can change the spell, the precentage of it firing (in your case just do 100% which is 1.0 in the object editor).
They are called Orb abilities because they are used with orbs ('Orb of Frost' for example)

Making triggerd auto-casted spells is not adviced as they tend to bug.

A example for an orb ability is the 'Item Attack Frost Bonus' which the Orb of Frost uses.
 
Level 7
Joined
Dec 8, 2005
Messages
319
ok i know how to add spells scooby. that is not my question. and ghost wolf... i am using the purge orb ability. chance on hit to cast a spell. and i am using chain lightning. but i am not using it as an item, yet as a unit ability but it is always grey. like it never comes on and not work. not sure why though. and with tower upgrades? any conditions that are needed? i guess screen shots will be better for the upgrades and spells... when i get home i will post them if anyone can see if anything is wrong
 
Level 3
Joined
Oct 19, 2007
Messages
51
When you make a spell, there is a section pertaining to the techtree requirements. If you put an upgrade in that field, it will be grayed out, and will say "requires <upgrade name>" until the player researches the upgrade. This example is taken directly from the ability Flak Cannons, which requires the Flak Cannons upgrade. If you set 'check dependencies' to true, it will make sure that the player has the proper upgrade to use the ability.

attachment.php


with regards to the orb ability, make sure you do not have the box "Stats - Item Ability" set to true. That might maybe cause your problem.
 

Attachments

  • pic1.jpg
    pic1.jpg
    18.9 KB · Views: 262
Level 7
Joined
Dec 8, 2005
Messages
319
well yes i know about the requirements... and no that is not the reason it is greyed... and yes the item ability is false... that is why i said it was a unit ability. it is greyed with the requirement met... or if i take the requirements offf... still greyed.
 
Level 2
Joined
Mar 29, 2006
Messages
24
Do you mean that if you do the requirement off the icon is still grey and unclickable, this is normal when you do the orb of lightning/slow on a unit. It's always greyed out but this doens't mean it doens't work on attack ;P. If you give it a 100% fire chance it will fire your skill on attack :) and the upgrade spells can't be that hard I think, there's a undead upgrade which upgrades a skill once it's researched.
Go to Object editor > Upgrades > undead and look at "Skeletal Mastery"
If you take that upgrade as base and just change the ability which is affected into your orb of lightning.
Now give your modified upgrade to your tower at "Techtree - Upgrades Used"
I didn't test it but this should upgrade the skill each time the upgrade was researched.
 
Level 7
Joined
Dec 8, 2005
Messages
319
hmm.. well the custom purge is not working to cast chainlightning. and to upgrade the towers attack/AS/Range using the upgrade ability, does not seem to be working very well either. any ideas?
 
Level 7
Joined
Dec 8, 2005
Messages
319
anyone else checked out the map? all problem left is my purge spell. if i click attack unit. then it will cast the spell. yet if i do not click attack unit manually and let it auto attack. then it will not cst it. any ideas guys?
 
Level 3
Joined
Oct 19, 2007
Messages
51
That's a common bug. The only solution i've ever seen is that whenevr a unit attacks a unit, and that unit has the ability, issue an attack order.

E - Unit is attacked
C - Attacking unit has ability (ability that doesnt work on autoattack)
A - Unit - Issue order to (attacking unit) to attack (attacked unit)
 
Level 7
Joined
Dec 8, 2005
Messages
319
ya... and I have seen that fix.. but was hoping there would be a differant way... since i think that might cause leaks.. but not sure...
 
Status
Not open for further replies.
Top