iron warriors trigger could work, it would have to be an integer variable, and you would have to make another event stating:
Event -Every (What ever time period you want the farm to give money)
Actions- Pick every player in unit group all players and do actions else do nothing
Actions- ((Add 50 x Income) Gold to (picked player))