| 08-04-2006, 03:21 AM | #1 |
Is it possible to possess an item that grants the holder an ability? I don't mean being able to click an item to activate an ability. I literally want an item that, when equipped, adds an ability to the hero's list of abilities. Here's the reason: I want heroes to be able to gain and change their abilities as well as leveling them up. When they level up, I was going to have the items switched out for the 'level up' of that item, so that the ability was changed as well. I would use the trigger for giving units an ability, but abilities given in such a way cannot be leveled up, as they are not classified as 'Hero skills'. Any answer or solution to my situation is appreciated. Thank you. |
| 08-04-2006, 03:39 AM | #2 |
When a unit aquires an item: JASS:call UnitAddAbility( whichUnit, abilityID ) I'm not exactly sure what it is for GUI, but it should be in the Unit category. Edit: And if you want them to lose it when they drop the item, there's a UnitRemoveAbility funciton also |
| 08-04-2006, 03:42 AM | #3 |
[quote=Naakaloh]When a unit aquires an item: [jass]call UnitAddAbility( whichUnit, abilityID )[/jass] I'm not exactly sure what it is for GUI, but it should be in the Unit category. Edit: And if you want them to lose it when they drop the item, there's a UnitRemoveAbility funciton also[/quote] So in other words, I have to create a custom item using Jass? D: |
| 08-04-2006, 03:53 AM | #4 |
Nope. He posted JASS because he doesn't work much with GUI. And custom units are not created through jass, just the object editor ;) What you need is Engineering Upgrade. Cehck PitzerMike's ability guide for further info. |
| 08-04-2006, 04:06 AM | #5 |
Yeah, that's what I was using, I guess. I haven't opened this map for like, 2 years. I used to be pro at mapping... I was one of those people who posted answers to all the questions on warcraft3.com D: So I'm not likin the whole crap-I-suck-now deal. Anyways it looks like I was making some kind of attempt to use the Engineering Upgrade ability. Can abilities granted via Engineering Upgrade be leveled up like normal abilities? Thanks! P.S. is there a way to make an ability NOT appear on the ability roster (so that it doesn't take up space), since Engineering Upgrade is a passive skill anyways? P.P.S. I'm gonna check out your deviantart and leave some comments ;D |
| 08-04-2006, 04:30 AM | #6 | |
http://www.wc3campaigns.net/showthread.php?t=81742 In particular: Quote:
|
| 08-04-2006, 04:48 AM | #7 |
^^ Thanks, that helps a lot.. I think, way back when, that I dropped this project because I couldn't solve this problem. The engineering upgrade was rather new, and nobody knew these spiffy tricks. :) You rock. XD btw, i left you some deviant comments. ;D |
| 08-04-2006, 04:50 AM | #8 |
Just Use "Unit - Add ability to unit". (And - "Unit - Remove Ablily") |
| 08-04-2006, 05:17 AM | #9 | ||
Browser_12 - You're welcome Quote:
Quote:
|
| 08-04-2006, 08:31 AM | #10 |
Dynamic hero skills are a pain, that's why nobody makes them. |
