temps: What are the restrictions on spellcasting for "might" heroes in Heroes 3 again? For example, Barbarians and Knights can't cast spells above level 3 or something, right? Or can they cast any level of spell, but the mage guilt in "might" castles (Barbarian, Knight) only goes up to level 3 or something? What is the rule?
Then, there are also "might" heroes for magic castles too like Gunnar for the Warlock castle right? Does he have spellcasting restrictions too then?
In general, any hero can learn any spell if they meet the requirements. A hero must have the Wisdom skill to lean any spells above 2nd level, with each level of wisdom granting access to another level of spells (so Expert Wisdom is required to learn 5th level spells). A hero can cast any spell they know as long as they have enough spell points (with a few spells having specific extra restrictions, like you can't summon a boat if you aren't next to water).
Some castles can build level 5 Mage guilds, but other castles have a lower limit. Particular maps may have more restrictions than these; these are just the general rule.
5th: Dungeon, Tower, Rampart, Inferno, and Conflux. Edit: and Necropolis.
4th: Castle (the human town)
3rd: Fortress, Stronghold
Each faction has a branch of Might oriented heroes and a branch of magic oriented heroes. The specifics of how those heoroes tend to develop varies according to their branch, with even the might heroes of the Tower being more magic oriented than the magic heroes of the Stronghold.
Plokite_Wolf: No hero without the Wisdom secondary skill can cast spells above level 2. Magic heroes come with Basic Wisdom by default, which is why they can when you hire them, although nothing stops Might heroes from acquiring the Wisdom skill. Advanced Wisdom enables a hero to cast level 4 spells, and Expert Wisdom enables level 5 spells.
Not all magic heroes start with wisdom. Stronghold is a prime example of this.