| 10-03-2006, 04:32 PM | #1 |
first off, I'm new to this site, my friend told me to come here for help with maps. I've been looking all over and i can't find how to make a spell book, I've sen how to fix the order and arrangement. Could someone either send me a map with it on there or teach me how to do it, it would be much appreciated, and when my map is ready for testing i'll post it if people want to test it. |
| 10-03-2006, 04:39 PM | #2 |
The spellbook ability is what you're looking for methinks. check the object editor in the ability area and search for the spellbook spell. You can create a custom spell based off of it and modify it however you wish. |
| 10-03-2006, 11:54 PM | #3 |
thanks...is it really that simple? man i feel like an idiot now, i'll look into it and probably will find it. Post 2: so i found it, but i can't get it to work how i want it to. i'll look around the forums a bit, and if I can't find what I need i'll just have to request some help... Edit: yea i dont understand how to get it to work, i looked at a demo map, and it just confused me. Does any1 have a tutorial i could look at? Edited by Blade.dk. Reason: Double posting is not allowed. |
| 10-04-2006, 03:11 AM | #4 |
So, what is the problem exactly? |
| 10-04-2006, 04:26 AM | #5 | |
Quote:
what i want to be able to do with it is name the spell book, add abilities that can level up. right now all i can do is add normal unit spells to the book. for my map each hero is going to have like 3 of these spell books, if thats possible. |
| 10-04-2006, 08:33 AM | #6 |
To level up the spells you propably need another unit with upgrades, a shop or what ever. How to do it. Put all Spells you wanted in the Spellbook and disable all via Trigger. When the 2nd unit finishs researching the upgrade you check if the 1st unit already has the spell if not enable it again, else you set the level + 1. You can level up Spells containing in the Spellboock like normal spells. Uhm and 3 Spellbooks not sure if that works but it should, already saw maps with 2 Spellbooks, but don't ask me how to do it exacly. |
| 10-04-2006, 02:06 PM | #7 |
thanks, but one problem i still have is that i can't name the spell book, and when the hero learns it, it says no tool tip, same when they mouse over the spell book ability after it's learned. And there is no option for me to edit either of those. |
| 10-05-2006, 04:19 PM | #8 |
uncheck "item ability" in the object editor. item abilitys are ment to be on items, so that extra information is useless on them (thus it isnt editable) |
| 10-06-2006, 05:00 AM | #9 | |
Quote:
Edit: just pulled up the editor and it's kinda weird, it works now, but there are also 2 additional copies of the ability. Now to just get it to work how i want, i'll check back later once i mess with it some, unless someone else has some advice for me before i go and screw it up. ok i got it to somewhat work, what i did was make the book with the abilities alrdy in it, but what it wont let me do is set it to more than 1 level and still work. when i add in the 2nd level with the abilities the skills go away. Does anyone know the triggers to make it so you choose the ability you want to level up and then it goes into the spell book? |
| 10-06-2006, 09:28 AM | #10 |
look under the heading "Aspb (Spellbook)" in the topic: http://wc3campaigns.net/showthread.php?t=81742 |
| 10-06-2006, 02:14 PM | #11 | |
Quote:
JASS: function Learn_Actions takes nothing returns nothing if GetLearnedSkillLevel() == 1 and GetLearnedSkill() == <hero skill> then call UnitRemoveAbility(GetTriggerUnit(), GetLearnedSkill()) call UnitAddAbility(GetLearningUnit(), <adder spellbook ability>) call MakeUnitAbilityPermanent(u, <adder spellbook ability>) call MakeUnitAbilityPermanent(u, <ability inside spellbook>) endif endfunction function Learn takes nothing returns nothing local trigger t = CreateTrigger() call TriggerRegisterAnyUnitEventBJ(t, EVENT_PLAYER_HERO_SKILL) call TriggerAddAction(t, function Learn_Actions) endfunction i just have 1 problem with it, i don't understand how to use it, i'm not familiar with JASS Edit: I got the spell book to work finally, thank you for everyone's help. Its not how i wanted, but that's alright, it's an alternative way that works well enough for me. |
