HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Enabling multiple hero skills as a trigger.

08-12-2003, 07:42 PM#1
Panto
Greets.

I'm trying to make a two-level hero ability that increases his armor and attack damage permanently. The best way that I can think to do this is to give him both the Crypt Lord's spiked armor ability and the item attack bonus ability as 2-level hero skills.

So, I'd like to have a trigger that, when he researches a level in the armor, gives him a level in the item attack bonus ability as well.
Now, the item attack bonus shouldn't show up as an icon among his abilities, since its an item ability, so it won't look weird if it's researched as well.

But, I haven't figured out how to give a hero an ability if he doesn't have a spare research point. Got ideas?
08-12-2003, 07:44 PM#2
Pesmerga
Make 2 different spells for your item ability and have the second one a more powerful version. Then activate the second one when the base spell is researched.
08-12-2003, 07:46 PM#3
FireDragonBlinx
You know a lot!
*gives Pesmerga most helful forumer award*
08-12-2003, 07:49 PM#4
Pesmerga
Well thank you... Btw your signature doesnt work. Do this - blahblah.com

and delete the spaces
08-12-2003, 07:50 PM#5
hodi
Quote:
Originally posted by Pesmerga
Well thank you... Btw your signature doesnt work. Do this - blahblah.com

It would work if HTTP was enabled though.
08-12-2003, 08:08 PM#6
Panto
Since it's a 12-player map and any or all of the players can have this hero, it seems like it would be more efficient if I could have a trigger that detects one ability and gives a point in another ability.

To have separate cascading item attack bonus abilities, I'd want to set up a boolean array variable covering each player. The code would be entirely possible, but messier than if I could simply detect one ability being researched and cause the other one to be researched from that.
08-12-2003, 08:41 PM#7
Panto
BTW, the real problem is finding an Event which fires when an ability is chosen, and a Condition which detects it.
08-12-2003, 08:47 PM#8
cideh
Use the Hero - Hero learns a skill event, and for condition, use "Learned hero skill equal to BlaBla"

Don't mind about what BlaBla is. Convert the trigger to custom text. Find the four letter code for the skill("BlaBla"). Now go into the object editor, press ctrl + D. You will see the four letter code for the abilities in the list. Use this four letter code instead of the four letter code of ("BlaBla").

Sorry if I'm confusing you.
08-12-2003, 08:56 PM#9
Panto
I'm guessing that the Event "Hero - Hero learns a skill" is a UMSWE add-on, since I'm using the standard WE and I don't see it.

I'd rather avoid using UMSWE since the custom triggers crash the standard WE, and UMSWE has a history of crashing inconveniently.

So, if that's what I end up doing, I'll be converting it to custom text, anyway.
08-12-2003, 08:58 PM#10
Taion
Bah, I type too slow.

Do what cideh says... Here's the kind of trigger you want...

Code:
Learn
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Human Archmage - Blizzard
    Actions
        Hero - Modify unspent skill points of (Learning Hero): Add 1 points
        Hero - Learn skill for (Learning Hero): Human Archmage - Summon Water Elemental

It causes problems if the players can use a tome of retraining though.
08-12-2003, 09:19 PM#11
dataangel
@Panto: Learns a skill is under Generic Unit Event.

Also -- one of the new TFT actions will give your hero a skill point. So give him one then spend it: Hero - Modify Hero Skill Points
08-12-2003, 10:22 PM#12
Panto
Assuming that the second skill which I want the hero to learn is not one of the standard skills (which is the case), would I be able to use this:
Quote:
call SelectHeroSkill( GetLearningUnit(), 'AIxx' )
as a Custom Sript action, where AIxx is the code for my non-standard ability?
I'd like to not convert the whole trigger from GUI, since I'm much better in the GUI than I am in Jass.
08-13-2003, 11:00 PM#13
Panto
*whistling casually* :Heh: