Town Building params?

Willkommen in der Transport Fever Community

Wir begrüßen euch in der Fan-Community zu den Spielen Transport Fever und Train Fever, den Wirtschaftssimulatoren von Urban Games. Die Community steht euch kostenlos zur Verfügung damit ihr euch über das Spiel austauschen und informieren könnt. Wir pflegen hier einen freundlichen und sachlichen Umgang untereinander und unser Team steht euch in allen Fragen gerne beiseite.

 

Die Registrierung und Nutzung ist selbstverständlich kostenlos.

 

Wir wünschen euch viel Spaß und hoffen auf rege Beteiligung.

Das Team der Transport-Fever Community


  • Ok, so I want this to have variable categories so I am trying this code and well what have I don't wrong



    Code
    categories = 
    if landUsetype == "INDUSTRIAL" then {"Industrial", "Town" } 
    esleif landUsetype == "COMERCIAL" then {"Comercial", "Town" } 
    elseif landUsetype == "RESIDENTIAL" then {"Residential", "Town" } 
    end

    I'd also like to do a similar thing with the order but with 'era' as the perameter

  • This simply is wrong syntax and grammar. PCs are dump and you have to talk to them exactly how the language defines it :P

    Code
    if landUsetype == "INDUSTRIAL" then
     categories = {"Industrial", "Town" } 
    elseif landUsetype == "COMERCIAL" then
     categories = {"Comercial", "Town" } 
    elseif landUsetype == "RESIDENTIAL" then
     categories = {"Residential", "Town" } 
    end

    Would be a step in the right direction ;)

  • When I use that I get the unexpected symbol near f thing. Here is the code inline

  • You can't have an if-statement as an assignment (line 19-31).


    Use something like this...

  • Ok, so new question, the town building take their parameter from the .bud files which are numbered by year. I do not understand how the game references these as there is no reference to them at all. ie no require "xxxx.bud" Also where on earth does params.ParcelFaces come from.

BlueBrixx