HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spell Order

03-31-2007, 12:30 PM#1
Hsinker
I couldnt find this in a search so if this already exists, can someone link me?
Anyhow; my first problem is the spells dont stay in the order intended.
Eg. The intended order would be SpellA SpellB SpellC Ultimate, however i get things like SpellA Ultimate SpellC SpellB, depending on the order i learn the spell.

Secondly, the max amount of abilities a hero can have is 5 yet i have 6; 3 spells, an ultimate, attribute bonus and a unique spell for higher lvls.
Would this involve triggers or something cause i tried having the unique spell as a normal ability but that ignores the lvl requirement.
03-31-2007, 12:41 PM#2
Rising_Dusk
In the Object Editor, there is a section at the very top in the ability editor.
Zoom (requires log in)
Now, the "Art - Button Position - Normal (X)" and "Art - Button Position - Normal (Y)" is what you are interested in.
In the X, 0 is far left, 1 is second slot, 2 is third slot, 3 is ultimate slot.
In the Y, 0 is top row, 1 is middle row, 2 is bottom row.

Quote:
Secondly, the max amount of abilities a hero can have is 5 yet i have 6; 3 spells, an ultimate, attribute bonus and a unique spell for higher lvls.
Would this involve triggers or something cause i tried having the unique spell as a normal ability but that ignores the lvl requirement.
WC3 heroes cannot have 6 abilities.
You cannot trigger the 6th ability to be added and level up like the other 5, you cannot shift-click it in, it will not work as a unit ability.
5 is the maximum, no questions asked.
Attached Images
File type: jpgArtWork.JPG (32.1 KB)
03-31-2007, 12:51 PM#3
Hsinker
Thanks for the help but damn at the 5 maximum >< how did dota get all those skills in for shadowfiend or morphling?
Or in i think xheroseige, when they reach the last lvl a skill is automatically added to their menu; i was thinking of something like that.
03-31-2007, 01:41 PM#4
Rising_Dusk
Quote:
Or in i think xheroseige, when they reach the last lvl a skill is automatically added to their menu; i was thinking of something like that.
In that case, there is a level-event trigger that fires when the leveling hero reaches maximum level.
It just adds a unit ability to the unit, it's not actually a hero ability.
03-31-2007, 03:16 PM#5
blu_da_noob
Yes, as Dusk says above, you can respond to heroes leveling up/learning an ability and add normal abilities to them if this can achieve your required effect. This won't allow you to have more than 5 hero abilities though. (hero abilities is important, they can have as many other normal abilities as the command card allows)
03-31-2007, 11:17 PM#6
Hsinker
Whats the trigger for that?? Cause i have a single lvl skill for when heroes reach a certain lvl just like xhs
04-01-2007, 09:18 AM#7
blu_da_noob
Trigger:
Untitled Trigger 001
Collapse Events
Unit - A unit Gains a level
Collapse Conditions
(Hero level of (Triggering unit)) Equal to 10
Collapse Actions
Unit - Add Acid Bomb to (Triggering unit)
04-01-2007, 09:49 AM#8
Hsinker
Where do i find those options for the condition.

Also each hero has their unique spell, could you add a specific hero to that example?
04-01-2007, 10:35 AM#9
blu_da_noob
Condition is an integer comparison, then Hero - Hero Level equal to X.

For a different spell per hero, you would want to go:
Trigger:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Unit-type of (Triggering unit)) Equal to Hero1
Collapse Then - Actions
Unit - Add Spell1 to (Triggering unit)
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Unit-type of (Triggering unit)) Equal to Hero2
Collapse Then - Actions
Unit - Add Spell2 to (Triggering unit)
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Unit-type of (Triggering unit)) Equal to Hero3
Collapse Then - Actions
Unit - Add Spell3 to (Triggering unit)
Collapse Else - Actions
etc...
04-01-2007, 11:10 AM#10
Hsinker
I cant seem to find anything in triggers >< wheres the If condition?

Just to double check; this trigger, when a hero gains a level and level is equal to X, the trigger will go through the actions and use the action corresponding to the hero reaching level X?
04-01-2007, 11:34 AM#11
blu_da_noob
Quote:
Just to double check; this trigger, when a hero gains a level and level is equal to X, the trigger will go through the actions and use the action corresponding to the hero reaching level X?
Yes

The if/then/else condition is right near the top of the action list, ~10th one down. Name is If/Then/Else, Multiple Conditions.
04-01-2007, 11:47 AM#12
Hsinker
LOL! I was looking at condition not actions xD No wonder i cant find anything.
Wheres the (Unit-type of (Triggering unit)) Equal to Hero1
04-01-2007, 12:34 PM#13
blu_da_noob
Unit Type Comparison (conditions)
04-01-2007, 12:52 PM#14
Hsinker
I've finally pieced it together :P