Hi
I'm a newbie with lua and was messing around with small random events scripts. Doing that I thought it would be nice with a random event where resources could "spawn" e.g. wheat on irrigated plots.
I know how to make a lua call adding a feature to a plot, like below, but is there a call similar to plot:SetFeatureType that can be used to add resources?
plot:SetFeatureType( GameInfo.Features[ "FEATURE_###" ].ID );
Thanks in advance!
\Skodkim
I'm a newbie with lua and was messing around with small random events scripts. Doing that I thought it would be nice with a random event where resources could "spawn" e.g. wheat on irrigated plots.
I know how to make a lua call adding a feature to a plot, like below, but is there a call similar to plot:SetFeatureType that can be used to add resources?
plot:SetFeatureType( GameInfo.Features[ "FEATURE_###" ].ID );
Thanks in advance!
\Skodkim