So I'm making items, some have buffs when holding, and some usable. My problem is the usable items! I've watched tutorial after tutorial and read posts about instant effects and whatnot, but it still doesn't work. This is what I have:
An item, potion, inside the container, healing bad, which holds item class, healing (the item and class are linked as well). It is an 'instant' item with linked effect, potion. The effect is -500 spell damage, or in essence, healing 500 points (I didn't mess with charge counts).
My hero has the ability inventory with 6 slots, and I can buy 6 potions (ill figure out how to stack them later), but when i click on the potion, nothing happens. The item is not used, I am not healed, and I die.
I also have a unit and actor for the potion, the only thing I actually can do with it is put it on the ground and pick it up... But I can't actually use it...
Update on this:
I figured out when I click the button in my inventory it is in fact doing something! It hurts me by some % it would seem but I don't understand that as I have the item use the effect which deals -500 damage...
I guess my question is unclear. I am not asking about the infinite item ( I know there are other posts about that). I'm asking if I am linking all this stuff together properly, or if I am missing something, because I am clearly writing -500 but that number is not coming through in game.
maybe you should make the effect just do -500 damage, rather than "spell damage".
i'm a bit rusty (it's been months) but tweak that damage effect. If it's doing "something", then the problem isn't getting it to do it but rather what it's doing. try other effect parameters if you can. i forgot if there's a simple "add life" effect rather than a negative damage number, but just try something other than spell damage, like a basic damage effect.
OH WAIT
also make sure the parameter for the effect isn't a percentile parameter and that it's a clear cut damage parameter (rather than -500 damage it does -500% or maybe -0.05%.
Do you think instead of an 'instant' item, maybe I should use an 'ability' item? In which case, it would be linked to the ability potion, which is linked to the effect. I don't think this would change anything from my initial 'instant' item which is directly linked to the effect, but I'm trying to look for the best ways of connecting things from more experienced editors.
So I'm making items, some have buffs when holding, and some usable. My problem is the usable items! I've watched tutorial after tutorial and read posts about instant effects and whatnot, but it still doesn't work. This is what I have:
An item, potion, inside the container, healing bad, which holds item class, healing (the item and class are linked as well). It is an 'instant' item with linked effect, potion. The effect is -500 spell damage, or in essence, healing 500 points (I didn't mess with charge counts). My hero has the ability inventory with 6 slots, and I can buy 6 potions (ill figure out how to stack them later), but when i click on the potion, nothing happens. The item is not used, I am not healed, and I die.
I also have a unit and actor for the potion, the only thing I actually can do with it is put it on the ground and pick it up... But I can't actually use it...
Where am I missing something?
Update on this: I figured out when I click the button in my inventory it is in fact doing something! It hurts me by some % it would seem but I don't understand that as I have the item use the effect which deals -500 damage...
I guess my question is unclear. I am not asking about the infinite item ( I know there are other posts about that). I'm asking if I am linking all this stuff together properly, or if I am missing something, because I am clearly writing -500 but that number is not coming through in game.
maybe you should make the effect just do -500 damage, rather than "spell damage".
i'm a bit rusty (it's been months) but tweak that damage effect. If it's doing "something", then the problem isn't getting it to do it but rather what it's doing. try other effect parameters if you can. i forgot if there's a simple "add life" effect rather than a negative damage number, but just try something other than spell damage, like a basic damage effect.
OH WAIT
also make sure the parameter for the effect isn't a percentile parameter and that it's a clear cut damage parameter (rather than -500 damage it does -500% or maybe -0.05%.
I am pretty sure, negative damage will just be ignored. Try to use a Modify Unit effect instead, which can heal a unit.
Do you think instead of an 'instant' item, maybe I should use an 'ability' item? In which case, it would be linked to the ability potion, which is linked to the effect. I don't think this would change anything from my initial 'instant' item which is directly linked to the effect, but I'm trying to look for the best ways of connecting things from more experienced editors.
You are just goung about it the wrong way. The Damage tyoe effect cannot do negative damage. As Kueken531 said use a Modify Unit effect.
You can also use the Modify Unit effect to replenish charges so use the Ability type item in that situation.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg