• 🏆 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!

[Trigger] Stacking Item Abilities

Status
Not open for further replies.
Level 4
Joined
Aug 1, 2007
Messages
66
If you mean stacking it with armor from another item, just give the item armor and it'll stack. If you mean stacking more of those on top of each other, just give it multiple levels and increase the level through triggers or replace it by removing that ability and giving the unit another ability with the combined armor if you're trying to add different amounts. If you're just giving the ability to the unit, you might wanna make it a unit ability by unchecking item ability. Not sure if that will change how it works. What exactly are you trying to accomplish?
 
Level 4
Joined
Aug 1, 2007
Messages
66
Unfortunately, since your weapons are probably not all gonna have the same amount of damage or armor or whatever, you'd probably have to make an ability for every possible combination and use triggers to switch them. You'd probably need some variable as well to keep track of which items the unit has since they won't actually have them. You might try to look into some of the inventory systems in the spell section to see if they can make it easier for you.

Edit: Maybe you could use an invisible spellbook and store your items there as abilities. You could base the ability version of the item on some ability with the bonuses you want and, at least, the abilities could keep track of the items you have instead of variables. Just an idea.
 
Level 4
Joined
Aug 1, 2007
Messages
66
You'd be better off with a bunch of 1 lvl abilites than a 99 lvl ability, since you're gonna have to set the level of that through triggers anyway. You should really look into some of the inventory systems, there's quite a few in the spells section. Just search in there for inventory.
 
Level 4
Joined
Aug 1, 2007
Messages
66
I'd say the 99 levels is a bit much. Anytime you try to preload something it's either gonna make your load longer if you do it on initialization or it's gonna lag ingame whenever you do it. Personally, I prefer a slightly longer load than ingame lag.

I'm thinkin a spellbook would be a good way to do this. Things like damage and armor can easily be gotten basing your ability on some sort of aura. You could leave the spellbook visible and use that to show what items you have as well. How many items are you planning on letting people have and how are you planning on showing the items that aren't actually in the inventory?
 
Status
Not open for further replies.
Top