An Idea: Propaganda / Ghostly Prison

I read it somewhere that it is quite impossible to code these cards: Propaganda / Ghostly Prison. I have an idea how it might get it done, but I don't know the proper arguments for it. Would really appreciate it if someone could spend some time to look into this... *It might not work*
IDEA:
- Propaganda in play, continuous effect.
- After ending 1st main phase? or before combat phase, Propaganda checks the number of untapped lands opponent controls; count number of lands.
- Count / 2 (rounded down) = the maximum number of creatures that opponent can declare as attackers.
- Opponent gets to choose "up to" the maximum number of attacking creatures (something like Frost Breath's ability?)... for each creature chosen, taps 2 lands of opponent's choice.
- Propaganda allows those creatures to attack, else, end combat phase.
What you think? I know it's easy to say it here, but I also recognize how hard it is to code, especially for someone like me...
Thanks for looking!
IDEA:
- Propaganda in play, continuous effect.
- After ending 1st main phase? or before combat phase, Propaganda checks the number of untapped lands opponent controls; count number of lands.
- Count / 2 (rounded down) = the maximum number of creatures that opponent can declare as attackers.
- Opponent gets to choose "up to" the maximum number of attacking creatures (something like Frost Breath's ability?)... for each creature chosen, taps 2 lands of opponent's choice.
- Propaganda allows those creatures to attack, else, end combat phase.
What you think? I know it's easy to say it here, but I also recognize how hard it is to code, especially for someone like me...
Thanks for looking!