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

Add a hero ability that is still level dependent?

Status
Not open for further replies.
Level 3
Joined
Jun 29, 2008
Messages
44
Its a simple problem yet I didn't find any solution for it. I want some heroes to start with an ability as learnt but unusable until they reach the appropriate level.

I appreciate any help.
 
Level 8
Joined
Aug 3, 2008
Messages
391
Maybe make the ability require an upgrade, then when the hero reached X level, set the upgrade to finish so that the hero can use the ability. But the "upgrade complete" message would come up and it'd look ugly.

Another is to make two versions of the ability, one requiring an upgrade and one that don't require an upgrade. The hero starts off with the ability which requires the upgrade, but when the hero reaches X level, replace the ability that needs the upgrade with the other one which requires no upgrade.
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
When the ability is learned, check for the hero's level. If the level requirement isn't met, replace the ability with a passive ability (with passive icon) without the effect.
When the hero levels up, check which ability's requirements are met and replace those with the real abilities.
 
Status
Not open for further replies.
Top