It is always when I get around to trying to add something that I find I need something different to what is available.
While converting Capt_Blondbeard's Barbarian Envoy mod to outcomes I realised that it
1) can only occur in a barbarian cityThis of course reminded me that the WLBO mod gooddy hut/village also needs its missions limited to a feature as does Kathy's Explore City Ruins.
2) the probability of the events is modified by the population
3) one result has a number of units joining you as tribute, not just one
4) one result has a random amount of gold paid to you as tribute.
So can the mission/outcome
1) be limited to only barbarian cities or to a feature such as goody_village (to be added) or city_ruins.
2)call some python code
OR
If city based have a probability (set) based on the population EG
rand value <= 28-2*pop gives outcome 1
28-2*pop < rand value <= 28-2*pop + 20 gives outcome 2
28-2*pop + 20 < rand value <= 28-2*pop + 40 gives outcome 3
else gives outcome 4
...or why not have as a posible outcome an EVENTRIGGER. Then use all the (existing) event mechanisms to do what you want...?