The easiest way I can think of doing this is by adding it as a part of the gamerule.
For example, here’s a little bit of quick code I did:
function buildRestrictions()
for playerIndex = 0,Universe_PlayerCount()-1,1 do
if Player_HasResearch(playerIndex, "research") == 1 then
Player_RestrictBuildOption(playerIndex, "BuildItem")
end
end
end
All that does is iterate through the players and checks if it has that research item researched. If it does, then it restricts it from being built. All you’d need to do is set up your own checks for research then make sure it’s added as a rule in the timer_updating function in the deathmatch gamerule, by adding Rule_AddInterval(“buildRestrictions”,timer_interval) into that function.
Sorry I can’t be a little more detailed, in a bit of a rush.
EDIT: Check my post later down, turns out it’s a fair bit easier to do it for build options AND research.