I think counting the roads is not necessary. Furthermore, it could be implemented in lua itsself quite easily: local result = 0 for k,v in pairs(flag.roads) do result = result + 1 end return result or something along these lines.
The only thing that remains is to use this function in the first tutorial in two or three places (when connecting the quarries). I do not have much time currently, so either one of you does that (there are some comments, I think), or I implement this some day. -- https://code.launchpad.net/~widelands-dev/widelands/bug-1380286/+merge/242975 Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/bug-1380286 into lp:widelands. _______________________________________________ Mailing list: https://launchpad.net/~widelands-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp

