HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Adding Ablilities To Items

07-01-2004, 12:59 AM#1
sweet5
is there a possible way to add abilities to items?
07-01-2004, 01:14 AM#2
weaaddar
in game?

If you mean to add it just go into the object editor and in there one of the fields should be data-abilities and just add to it.
07-01-2004, 01:17 AM#3
sweet5
yes, how do u add abilities to items IN game? and how to detect buffs, I see the buff comparison but it doesnt have a current buff on hero thing or w/e I need, maybe I need a varible/array
07-01-2004, 05:55 AM#4
orcmasta
You can only add ability's to hero's in game.
07-01-2004, 06:00 AM#5
Pheonix-IV
actually i've been wondering that for awhile, how DO you detect buffs? Say "Pick every unit in playable map area and if picked unit has X buff then do A else do B" Is that even possible?
07-01-2004, 10:30 AM#6
AIAndy
Yes, buffs are interpreted like abilities there so you can just check the level of that buff ability.
07-01-2004, 10:37 AM#7
Anitarf
Yep, the proper way to detect it is "boolean comparison - unit has specific buff".
07-01-2004, 02:45 PM#8
sweet5
dang, well that dosent help me much, I wish u could add thing to items in game :(
07-01-2004, 03:15 PM#9
CynicalYouth
While you cant add abilities to items, you can workaround this problem by making a version of the item with and without the ability and switch them when you want to add the ability to the item. Then switch them back if the item needs to lose the abilitiy
07-01-2004, 03:31 PM#10
sweet5
thats not such a good idea for what I want, I'd have to make like thousands of differnt items to cover all the differnt combiantions of item buffs that are possible.

what I want is for when you get an item...say that one that gives u unholy it adds unholy to your item bag and if u drop it, the ability is taken away(its supposed to be an add on it weeaddars drag and drop, maybe if I knew JASS I could do it :/ but then u would think weeaddar would do it him self so I dunno :/