• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Item; ability level

Status
Not open for further replies.
Level 2
Joined
Nov 20, 2013
Messages
7
Item; ability level

How do I increase the ability level of a item equal to the item level? With other words do I want to know how I can make equipment like swords with different damage, which only use one and the same ability.

If you know a other post on webside you can leave a link for me please.
 
Level 16
Joined
May 25, 2004
Messages
1,170
I'm am 99% sure that it's not possible to increase levels of abilities on items.
You will have to make several of the same item with different abilities to resemble what you want to do.
He could trigger it to replace the item with a copied item, but at a higher level.

Example:
Sword item (Level 1)
replaces with
Sword item (Level 2)
 
Actually if you set the item ability of e.g. +15 damage (Claws of Attack) and have let's say 5 levels of it and attached to the item (Item-> Abilities - Abilities), use an event you want the unit to acquire the new level of ability and then use "Unit - Increase level of Ability for Unit" and for the ability use the item's ability. The downside is that once you drop the item, the level returns back to 1. This is however easily solved, by storing the level of the ability directly to the item through a hashtable process and then load it once the unit acquires the item.

However, since stat modifiers tend to get buggy, I would definitely go with visual enhancement instead. Thus, I suggest making the item Charged, in terms of classification, and once you want the ability to increase in level, set charges of the item to (charges of the item + 1). This will eventually have an indicator, which much friendlier to players' understanding of what's going on (as neither of the two options I suggest will allow you to refresh the item's tooltip - in that case, make sure your tooltip is flexible enough, e.g. The damage of this item is upgraded as (level of item * 10) [or any other formula you want]). To increase the stats bonuses, e.g. Attack Speed, Attack Damage, Max Health, Max Mana, I really recommend you used a library (we have quite a lot around, with BonusMod being one of them).
 
Status
Not open for further replies.
Top