| 12-29-2005, 07:53 PM | #1 |
Hi! I have a problem with an item's abilities. I want the item to regain the mana of the hero at the same time that it damages the heroes's health. I have created a new ability that is based on the unholy armor spell, and it works fine until I add another ability (Item Mana Regain (Greater) )to the item, then nothing happens. Please help. |
| 12-29-2005, 07:54 PM | #2 |
It seems like you can't have two abilities that must be casted on the same item. Just make a trigger that does the mana regain. |
| 12-29-2005, 08:13 PM | #3 |
Alright, thanks. A question just, what type of action should I use in the trigger? I used Add ability but then the hero just got that ability, kinda strange.... Edit: I also tried to use the set mana to value action, but then it only sets the heroes mana to a specific value, I want it to work like this (Current mana of Triggering unit + 300). |
| 12-29-2005, 09:47 PM | #4 |
Then use the (Current mana of Triggering unit + 300) as that value, you have the arithmetic function to add/substract/multiply/divide values, and then you just have to look up the function for "unit's current mana". |
| 12-29-2005, 09:51 PM | #5 |
like this Trigger: Actions![]() Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + 300.00) |
| 12-30-2005, 02:19 PM | #6 |
I tried that before but didn't get it to work right. Oh well, it works now, so thanks everybody :). Real nice place here. |
