In this case specifically It's about the protoss, the purpose is splitting the Protoss into 2 factions, Khala and the Void.
Those having the following units and upgrades/spells in common: zealot, leg enhancements, Dragoon, High Templar, all High templar original upgrades/spells, a new low tier spell caster called sentry which would have the hallucination spell instead of the High templar, all original Robotics facility units and their upgrades, the scout and it's upgrades.
Following mentioned upgrades/abilities belong to the faction.
Void: New research for zealot called charge, having Feedback added to High templar, Dark Templar, Dark Archon and it's spells Feedback spell slot probably being replaced somehow, Corsair and related research, new unit Void Ray, new end game unit Twilight Archon.
Khala: An other research for zealot called rage (removes shields and increases attack speed while attacking over time), Archon, new unit Immortal, Carrier. The High templar probably having an other spell too to compensate for having a bit fewer units than the void.
Originally The thought was that the factions would be cosen trough either build a Monolith or the Citadel of Adun, there seemed to be no way to have these buildings lock each other up when built.
My second idea was having two new research each one being free and taking no time to complete, research being Path of the Khala or Path of the Void (maybe called legacy of Void instead).
Anyway any spell or unit or building directly related to a faction would require the proper faction research, both being located next to each other at the nexus under the Probe building button.
This would work but still how do you make these research to bllock each other?
I think plugins have to be involved and be soemthing like if the other research is done this research will be locked.
I'm just learning programming but the language I'm learning now is flash which wont be useful for this I assume.
None.