| 05-07-2004, 03:31 PM | #1 |
Im trying to make a charged item that increases you sight range for a period of time. I made a custom ability based off of Item Sight Range Bonus. I gave it a cooldown and a duration. When I test the item in-game however it has no effect when you use it, infact it doesnt even remove a charge. I can make a permanent item with this ability but I would like to make it a charged item. Ive checked all the fields and compared them to a healing potion and other charged items and I can't find any difference that would stop my item from working. |
| 05-07-2004, 08:44 PM | #2 |
Make two items, one without the ability (a dummy-item), one with it. When the item with it is used, switch it with the item that has the sight bonus, and vice-versa. |
| 05-11-2004, 02:46 AM | #3 |
Sorry to revive a thread that had slipped so far, but I was unable to work on the map because of school stuff. ThyFlame's solution will work, but I am so far unable to get it to scale. I have 3 heros in my RPG map, each one could have a torch active at the sametime. Anyone have any ideas on how to make this solution scale. I can get it to work, for one hero using one torch. However when I have two heros each using a torch it doesnt work. |
| 05-12-2004, 03:25 PM | #4 |
Sorry for the double post, but this item is important to my map. 40 views and only ThyFlame had any idea of how to figure this out. I can get it to work for one hero using one torch at a time. He uses the torch, it removes it and replaces it with the lit torch. Then after a timer expires it returns the torch item with on less charge. But I still cant get it to scale up to work with more heroes. I have need help with a few things though: 1. I can not get this to scale for 3 heroes 2. I cant seem to find a way to put the item in the same slot as the one it is replacing.(though this is less important then getting everything to work) 3. When you use the charged item, if you are carrying another one it doesn't show a cooldown. What does the cooldown group setting in the object editor do, and how can I set a custom one with my custom cooldown time? Without the cooldown each hero can use six of this item at once. |
| 05-12-2004, 05:08 PM | #5 |
Well, I think weaddar has the order strings for items using an ability, so you'll have to ask him about that to know when an item is being used. Basically, you'll use a loop to scan all 6 slots on the hero and whichever slot contains the item being used you will drop & remove that item and then give the unit the new item in that slot. |
