I discovered a pretty neat feature, that wasn't covered in spellbook guides like this The Theory Behind Spellbooks and that How to: Make Spellbooks and wanted to share it.
Colliding spellbooks also works with a build button, if you set the orderID to the corresponding build order of a unit's race: "humanbuild", "orcbuild", "undeadbuild", "nightelfbuild", "nagabuild" and "build". This way you can have buildings mixed with spells (for whatever reason you would want that).
I used it to hide build button from some units, who could still build if ordered with triggers, while not hiding it from other units. For that purpose I made the button position of undead build to (0, -11) and gave units that dont need this button hidden an empty spellbook collided with undeadbuild. When pressed it opens a standard build menu.
Colliding spellbooks also works with a build button, if you set the orderID to the corresponding build order of a unit's race: "humanbuild", "orcbuild", "undeadbuild", "nightelfbuild", "nagabuild" and "build". This way you can have buildings mixed with spells (for whatever reason you would want that).
I used it to hide build button from some units, who could still build if ordered with triggers, while not hiding it from other units. For that purpose I made the button position of undead build to (0, -11) and gave units that dont need this button hidden an empty spellbook collided with undeadbuild. When pressed it opens a standard build menu.