| 01-28-2006, 07:06 PM | #1 |
I have an item that has a dummy ability, what i want to do is that when someone clicks the item, the charge would stay the same. Adding one to charge would work but when the charge in the item is 0, it would also add one instead of staying at 0 like i want. Even if you add an if to check if the charge is 0 it doesn't work because for the event im using "a unit uses an item", the charge is subtracted from the item then the trigger runs. What I basically want it to do is to detect when the item is used at 0 charges and when it is used at 1 charge and then becomes 0. |
| 01-28-2006, 08:06 PM | #2 |
You could use item custom values to keep track of how many charges each item is supposed to have. |
| 01-28-2006, 11:39 PM | #3 |
How about using a staff-like ability? |
| 01-30-2006, 09:01 PM | #4 |
add in a if/then/else that checks the charge of an item, if the item has 0 charges you dont add 1 to it |
| 01-31-2006, 12:43 AM | #5 | |
Quote:
i have already fixed the problem and the thing you suggested was exactly the way i explained in the thread that would not work |
