• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[General] Can you simplify upgrading an item?

Status
Not open for further replies.

Jampion

Code Reviewer
Level 15
Joined
Mar 25, 2016
Messages
1,327
Use charges remaining to indicate its levels. The effect can be triggered (for example adding/removing abilities depending on charges remaining).

Description cannot be changed I think.
 
Level 4
Joined
Feb 7, 2015
Messages
67
Like Jampion said, use charges.
Create item abilities (with levels) every 10 multiples.
Ability A will give +1 damage every level
Ability B will give +10 damage every level
Ability C will give +100 damage every level
All three abilities give +0 damage at level 1.

Let's say item start with 0 charges. Hero picks item, give all three abilities to hero at level 1.
Hero levels up the item, increase ability A level by 1. If Ability A has reached level 11, reset ability A to level 1 and increase ability B by 1 level.

If somehow the item of yours must have charges, then create a dummy, preferably a tree. Or a doodad. Set ability level = hit point of the dummy. Link the two with arrays.

Description, unfortunately, cannot be changed (probably it can but i just don't know it).
It's much easier to create a spell book ability. When the item is used, it will open the spell book containing passive which describes the item's functionality. Or just use game message when item is clicked. :/
 
Last edited:

Jampion

Code Reviewer
Level 15
Joined
Mar 25, 2016
Messages
1,327
Create item abilities (with levels) every 10 multiples.
Ability A will give +1 damage every level
Ability B will give +10 damage every level
Ability C will give +100 damage every level
All three abilities give +0 damage at level 1.
These item abilities cannot be leveled (they will always have the effect of level 1).
Here is an old system, that allows to change a unit's stats (attack damage, armor, ...)
[System] Bonus Mod & SetUnitMaxState
https://www.hiveworkshop.com/threads/system-bonus-mod-setunitmaxstate.65622/
I don't know if there is a newer/better system, since this one is graveyarded.
 
Status
Not open for further replies.
Top