Yeah, that's what I thought you would say....
On the outside chance anyone views this thread again, or actually responds to the request for help.... here's the rub for non-python literate types like me.
I know in the programming world, respectable, object oriented programming is where tasks that are made up of sub-tasks are broken down into those subtasks, so you don't have to repeat code in your file. But for those of us who are NOT programmers, we need the whole process in one package.
I am hoping someone will provide me with the code that I can put in whatever the events file is of a mod. The code needs to run on a certain year/month, examine an area around a plot for an empty one, then place on that empty spot a unit from a certain civ.
Maybe that code I posted above does just that, without referencing variables and other modules in that file or other files, but again, I am not educated in python, so I don't know. But the little I do know tells me that all that bit of code will do is give me error messages.
When folks respond to requests for help by telling them "Go look at this or that and mimic it", what you are really saying is "Go learn python". And that is great advice. But I am asking because I don't know python, and simply want someone out of kindness to share some of their superior knowledge. I know that any response and advice on how to get my info is a kind thing, and I am grateful.
But when you don't answer the question, and only say that the answer does exist (though in this case, I believe the solution I am asking for is NOT in Rhyes files), then everyone else who sees the thread will say "Gosh, I see the question is answered and I am not going to type in the simple solution he is asking for".
Yes, I am being an ingrate, and a lazy one at that for not taking the hours to learn python and simply figure it out myself. But I just thought it would be nice if one of the dozens of capable python programmers could take 2 minutes and give me a piece of code that another dozen dozen noobs would LOVE to have. For non-programmers, OOP is not good for us, we need the whole process in one handy unit we can plop into our events file.