HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

how to make a hero learn custom spell

11-21-2006, 10:21 AM#1
Leopard
Hi friends, im working with my ARENA map and couldn't order com heroes to learn custom spell. To make them learn spells, i use this trigger:

event: a unit gain a level
action: learn skill for triggering unit : blizzard.
learn skill for triggering unit ......


----But this trigger is so long and the heroes cant learn any custom trigger.
Just the basic spells are in use, i made a lot of spells based on unit spells and copyings of heroes' spell but i cant order my heroes to learn them.
----I have played a map call "reaper arena VNe online" and i saw that the com heroes can learn event custom unit, but im sure they did not use any JASS for i can play that map with WARCRAFT 3 V 1.07.
----Friends, please help me.

And two more questions:

1/how to make a stash to store items?
2/how to make com heroes auto pick up and buy items?
11-21-2006, 10:40 AM#2
Fireeye
1.) He can Learn a custom Spell via "Learn skill for ...", but i recommend learning how to build an AI
2.) Make a new unit with inventory or store the ID of the Items + Charges into a game cache
3.) Order them via AI, i personally dislike the "Pick"-way, i takes too much space.
11-21-2006, 12:33 PM#3
Daxtreme
1) He must have free skill points in order to learn a spell. Just set its ability directly.
11-21-2006, 01:37 PM#4
Leopard
friends, i mean custom spells based on "unit spells", "learn skill for" action can't do that.
11-21-2006, 03:09 PM#5
Archmage Owenalacaster
It can if you set the spells' Hero Ability flag to "true" and then add the abilities to the heros, both in the Object Editor.
11-21-2006, 05:28 PM#6
PhoenixFeather
Unit - Add Ability for Unit?
11-21-2006, 05:51 PM#7
The)TideHunter(
Quote:
Originally Posted by PhoenixFeather
Unit - Add Ability for Unit?

Yes, that is correct.
Then if you wanted it to act the same, as in remove one skill point, set the heros skill points = his skill points - 1.
11-21-2006, 08:39 PM#8
Daxtreme
Aww sorry for my mislead ;)
11-22-2006, 03:07 AM#9
Av3n
... Use an dummy AI to order the units to learn the ability.

-Av3n
11-22-2006, 10:35 AM#10
Leopard
ok, i will try, thanks for your help. And now i have a new question. I want to make 2 leaderboard, one show the players' kill and one show the teamkill [4 teams], How to show them now? if this board is shown, that one will be hided for a certain time, then do it again, plz help, and be kind to give me the trigger.