• 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.

Is it possible to make spells upgradeable with reserach?

Status
Not open for further replies.
Level 12
Joined
Aug 3, 2005
Messages
745
I've made a hero, with 4 summong spells and 1 passive spell that upgrades all the summoned units ability's.

Is it possible to simply do it with techtree requirement,upgrades used etc?

Or will I have to do it with triggers
 
Level 12
Joined
Aug 3, 2005
Messages
745
I meant increase the level of all the summoned units abilities by 1 for each level put into the hero passive ability.

4 summoned units, 5 abilities each, Engineering ability doesnt have the capacity for 20 abilities.

Could I not give each ability a techtree?
 
Level 10
Joined
Jul 2, 2004
Messages
690
use engineering upgrade to upgrade the other abilities so that the summoned units have different abilities.
 
Level 12
Joined
Aug 3, 2005
Messages
745
Think it would be quicker with triggers in that case.
Engineering ability only works on hero abilities.

How can I make a trigger like this.

A unit casts an ability

Ability equal to Summon Water Elemental

Set level of x ability for (that summoned unit) = to level of the hero casting ability.


(that summoned unit) - how could I detect it with triggers?

thx
 
Level 4
Joined
Jul 19, 2005
Messages
90
blah blah trigger
event: unit casts some ability
condition: ability being cast = to whatever
if spell level of passive thing level 1
then create one (summoned dude level 1)
else do if spell level of passive thing level 2
then create one (summoned dude level 2) do this for every level and every summoning spell, *sigh* boringly long trigger making
 
Level 10
Joined
Jul 2, 2004
Messages
690
i think it would be easier to just check the unit spawned. but you will need to use different units for each level then.
 
Level 3
Joined
Oct 21, 2004
Messages
72
If you mean an upgrade like from a building, then do a trigger that checks for that upgrade and then sets a variable to the level of that upgrade, or just give each upgrade a numerical value.

Then when you spawn a unit you just have a trigger that adds certain abilities each time it's spawned and sets them to the variable number of the upgrade.

Or if it's a hero ability, just set a variable that is at 0, and each time a hero learns the ability, increase it by 1, or just check for the level of the ability at the time of summoning.

Something like

Event:
Unit starts casting an ability
Condition:
Ability equal to <summon unit>
Actions:
Set variable X to level of ability of <unit>
Unit> create summon unit at position of spell being cast or something, or position of triggering unit
Unit> Add ability A, B, C

Iunno.. something along those line, sorry in a hurry, otherwise I'd elaborate.

Edit:
Re-read initial post. You have to use Jass or Triggers for this type of thing, there is no way to do this sort of thing ingame without them. You can try all you like... but it won't work. I'm sorry but that's just how it is.
 
Status
Not open for further replies.
Top