| 12-06-2003, 06:33 PM | #1 |
Alright, thanks to who helped me earlier. But I'm still having problems. I'm trying to create an item ability that when used will give the item to a hero. The problem is the range is astronomical on this ability even though I specified only 300, and I can't even get it to target descriminate properly... |
| 12-06-2003, 10:54 PM | #2 |
Wich ability do you use? |
| 12-07-2003, 12:00 AM | #3 |
I used a costumized storm bolt just because it is the least annoying (the whirly effect is slightly annoying) |
| 12-07-2003, 01:12 AM | #4 |
I missed your first thread...can you explain it better? (an item ability that, when used, will give *what* item to *which* hero...the item being used to the hero targetted? The item behing used to the casting hero?) |
| 12-07-2003, 01:21 AM | #5 |
The item in question is irrelevant but if you must know. it creates an item for the hero by checking an array and giving an element which coresponds to it. or in english Tomes crash war3 when a non-hero unit tries to pick them with a special inventory that allows him to use items. I create 3 versions of every item: a udg_DummyTomeArray[Element] which basically does nothing and just disapear These are the ones you can pick up. a udg_HeroTomeArray[Element] this is the normal version of the tome. a udg_UnitTomeArray[Element] this is one that enters the units inventory. The unit can't use the tome, but he can throw it at a hero, using a costum ability that the tome casts Throw Tome. A unit has a tome of agility in his inventory. (udg_UnitTomeArray[0]) He clicks it and casts it on a hero, the hero is hit in the head with the tome, and he is given a hero version of the tome of agility ( HeroTomeArray[0]). In short its just an annoying problem. |
| 12-07-2003, 01:48 AM | #6 |
This seems somewhat pesky, Weaddar; can't you just remake the original, non-use-on-pickup tomes? That way, backpack units can tote them all day. Instead of dropping +1 Int tomes and the like, create tomes with one charge of +1 Int. Or you know I totally missed the point that if you give a unit with an inventory that can use items a tome and he uses it still crashes the game. Wow my reading comprehension rocks the boxer shorts. |
| 12-07-2003, 01:56 AM | #7 |
My map already does 90% of what I've mentioned You can grab it in the trigger repository. The only thing I want to add is instead of having to have a free inventory slot on your hero when hes recieving it from a unit or dropping it first, he can directly recieve it via a throw. Heres the link to the map file so you can test it yourself right now I added a dummy ability which is just fun to look at when you throw a tome. http://www.wc3campaigns.com/forums/a...?postid=366595 |
