| 08-26-2004, 03:22 AM | #1 |
I'm at a standstill. I want to be able to grant a hero (who starts with no abilities) a random ability so that is treated like a normal default ability - so you can level it up starting from level 0. I have no idea how to engineer a trigger that does this. ![]() |
| 08-26-2004, 03:23 AM | #2 |
btw ... I don't need help getting a random ability to add, my trouble is getting the ability to the hero. |
| 08-26-2004, 03:43 AM | #3 |
Well, i know you said you only need to know how to get the ability to the hero, but your way might be different than mine, but maybe no, i will do it anyway. Code:
Ability Trigger 1 Events -Whatever you are using to trigger the hero's random get Conditions Actions -Set HeroAbility = Random number from 1 to ### -Turn on trigger Ability Trigger 2 Ability Trigger 2 Events -Every 0.5 seconds of the game Conditions Actions -if HeroAbility is equal to 1 then Turn on trigger Add This Ability 1 else do Do Nothing -if HeroAbility is equal to 2 then Turn on trigger Add This Ability 2 else do Do Nothing . . . -Turn off This Trigger Add This Ability 1 Events -Every 0.5 seconds of the game Conditions Actions -Learn Skill for My Hero: This Ability 1 -Turn off This Trigger Add This Abilty 2 Same trigger with diferent ability Im not a great wc3 editor yet so this may be the hard way, but i think it should work |
| 08-26-2004, 03:49 AM | #4 |
yeah that's what I'm doing but my problem is getting the "learn skill" to work. That event only works if the hero already has the ability. I want to give them an entire new ability - they start with none. |
| 08-26-2004, 03:54 AM | #5 |
abilities added wit triggers will not be added to the learn skill area, u have to lvl the ability with triggers, u could easily make ur own learn skill area with an ability based off spell book...well maybe not easily but I think I could do it... hmm I might just try that.... |
| 08-26-2004, 03:56 AM | #6 |
well if you are going to "try that" go ahead and let me know on how you did it ^_^ ^_^ |
| 08-26-2004, 04:30 AM | #7 |
Sadly, this requires 1.17 and Im too lazy too upgrade... I'll do as much as I can and then finish it when 1.17 comes out |
| 08-26-2004, 05:45 AM | #8 |
Yeah I heard there was new stuff dealing with abilities in 1.17... but I'm going to wait until its official. Thanks for your help |
| 08-26-2004, 02:42 PM | #9 |
OK - looks like the solution might be in 1.17: New triggers: Special Effect - Create Lightning Special Effect - Destroy Lightning Special Effect - Move Lightning Special Effect - Color Lightning Unit - Drop Item on Point Unit - Drop Item on Target Unit - Drop Item in Slot Unit - Damage Unit Unit - Damage Point Unit - Decrease Ability Level - ! Unit - Increase Ability Level -! Unit - Set Ability Level - ! Unit - Inventory Capacity Event Response - Damage Source GetAbilityEffect (returns a filepath) GetAbilitySound (returns a filepath) Maybe then I can give a unity ability, then set the level to 0? |
