![]() ![]() They're shown so that it will be easier to understand which individual line is being discussed. Note that the Red-colored line numbers aren't anything you'll ever put into your actual code. They are found in that first site I told you about, but there are a few more here (I don't know if there is an exaustive list anywhere though, sorry). That is a 'hook', something to tell the game when to run your code. And look down there! There is a new element we didn't knew before. Line #13 (CheckCityMountains)See, now everything was defined earlier than it was used (rightly so). ![]() Line #06 if pPlot:GetPlotType() = PlotTypes.PLOT_MOUNTAIN then Line #05 local pPlot = pCity:GetCityIndexPlot(i) Line #04 for i = 0, pCity:GetNumCityPlots() - 1, 1 do Line #03 for pCity in pPlayer:Cities() do Line #01 function CheckCityMountains(iPlayer)
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |