| 10-07-2008, 11:32 AM | #1 |
Has someone an Idea how to realise a learn spell-system like in WoW (3 different categories)? My idea is something like the normal Wc3-System to learn a Hero a new Spell, but with an other Icon (no Red Cross) and not one, but 3 of them. |
| 10-07-2008, 02:03 PM | #2 |
Unfortunately you cant make multiple "learn" buttons. What you can do is use the item spellbook ability and fill it with spells you want. Then simply give the 3 spellbooks to the hero. Alternatively you can download the map "WoW Molten core" and see how its done, yes the map is openeable. |
| 10-07-2008, 08:27 PM | #3 |
Just as Kinorhynkar said ,you can only have one learn button per hero but there are some maps with a little category learn system like WoW Molten Core , Warsong Gulch .Or you can use are little system with spellbooks . This woukd be an idea : create a Spell Book without spells with a base id and a name "Protection Spells" (choose one of them ) then create more spellbooks with the same base id but this time add one spell to each book and give them specific names "Protection - Holy Shield" (you can call this a dummy spellbook). Then create a trigger that will run when the map is initialized and it will disable all other spellbooks except for the base one (Protection Spells) . Now add the base spellbook to a hero (you can do this in game too) . All you have to do now is to create a little system that will help the hero learn those spells (you can use items) . When a hero learns/buys a spell with a trigger add the spellbook that contains that spell (it has to be disabled and must have the same base id as the Base SpellBook and if you have already added the spellbook you have to increase the level of that spell) . Now if you check the base spellbook you will find that spell inside . This is all you have to know . |
