Basicly you create a spellbook that you want to have your abilitys go inside, and add that to your hero/unit. Next, you create another spellbook with the same base order ID as the first, and then disable it in your initilization trigger. Then, when you want to get the abilitys in the second spellbook inside the first, you simply add the second spellbook to your hero/unit.
if i say i have 7 difference skill, each spell book put 3 skill.
the probability of this situation is 343 times.
i wonder have many skill and trigger i should set....
any other way Add spell to spell book by trigger?
Usually the easiest way (if you're not using levels of abilities) is to have the abilities already sitting in the spellbook in order of learning, and using the actions 'enable/disable ability for player' and events that would cause this to happen such as 'gains a level' etc.
If you desire a chosen spell to go into the spellbook that would not be able to be in there originally, I guess jass might be the answer as it is to most things unsolvable by GUI but unfortunately I know no jass.
No problems, glad to be of help. Just pm me if you need anymore help, I'm using spellbooks a lot at the moment also (for my diablo map where spellbooks are the skill trees)