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

[General] ability question

Status
Not open for further replies.

ABM

ABM

Level 7
Joined
Jul 13, 2005
Messages
279
hi,

i have created an ability wich is called "bite" and i have given these ability to a unit named "dog".

the dog can increase his level despite being a non hero,
so i have puppy (lvl 1) wich when the dog grow is replaced by dog (lvl 2), wich then become hound (lvl 3) and then greater hound (lvl 4).
of course each dog get the bite ability according to his level.
ability 1 bite(lvl 1)
ability 2 bite(lvl 2)
ability 3 bite(lvl 3)
ability 4 bite(lvl 4)

all is set in object editor, so when unit is replaced it allready has all his ability and everyting.

but this is a waste of space, i want to get 1 ability "bite" with 4 lvl and give the same ability to all the dogs.
is there a way through the object editor to specify the lvl of the ability to be used by the unit?
i know a way through upgrade but this would change the ability level for all units possessing the ability, i need each dog type to have his corresponding level.
i know a way to do this through triggers but this would imply that each time i replace the unit or raise the unit, to use trigger to reset the ability lvl.
 

ABM

ABM

Level 7
Joined
Jul 13, 2005
Messages
279
Thanks everyone for answers..

but i actually found the holy grail :p

Maker let me enlight you on the method i discovered:

when using different units:
puppy (1)
dog (2)
hound (3)
etc...

and using "Bite (1-2-3)
with upgrade you can auto upgrade the value of ability to correct number only for concerned unit and by a sepcial ammount.

here is the trick:
upgrade puppy (increase level of Bite by 0)
upgrade dog (increase the level of Bite by 1)
upgrade hound (increase the upgrade of Bite by 2)

the puppy upgrade is unneeded it is just for show in the example.

give upgrade dog to unit dog
give upgrade hound to hound
at map ini/start set upgrade dog and hound to 1 (researched)

and then puppy will start and all game will have Bite (1)
dog will get Bite (2) and hound Bite (3)
the great thing is you can modify up to 4 abilities...

i have actually 6 upgrade of dog with 3 abilities each
dog1 no bite enrage 1 critical 1
dog2 bite 1 enrage 2 critical 1
dog3 bite 2 enrage 3 critical 2
dog4 bite 3 enrage 4 critical 2
dog5 bite 4 enrage 5 critical 3
dog6 bite 5 enrage 6 critical 3

and everything work absolutely fine ^^
i only use 5 upgrades for dog2 to dog6. and the upgrade only need to add the correct level for the ability: ex: upgrade dog2 only increase enrage lvl by 1
since each dog type get his own upgrade then all have tailored lvl ability.

:) yes "UndeadImmortal it is JTR
 
Status
Not open for further replies.
Top