Removing an Entire Era

Oh. I didn't know it worked that way.

Alright, I'll do that...mind posting the pipe fix too? XD Thanks very much!

EDIT: Yeah that helped, although since I don't know much about LUA, is it possible to multiple conditions? So...for modern -> renaissance?
 
an easy way you can do it by is by using elseif:

if tech.Era == "ERA_MODERN" then
thisTechButtonInstance.TechButton:SetOffsetVal( tech.GridX*blockSpacingX + 64, (tech.GridY-25)*blockSpacingY + extraYOffset); --Changed tech.GridY
elseif tech.Era == "ERA_FUTURE" then
thisTechButtonInstance.TechButton:SetOffsetVal( tech.GridX*blockSpacingX + 64, (tech.GridY-25)*blockSpacingY + extraYOffset); --Changed tech.GridY
else
thisTechButtonInstance.TechButton:SetOffsetVal( tech.GridX*blockSpacingX + 64, (tech.GridY-5)*blockSpacingY + extraYOffset);
end

you can add as many elseif in between as you want

I'll write up the pipe bit for you shouldn't take long
 
son you are the best :)
 
I got an easy non lua solution for the tech pipes bit :D, using xml file:

<GameData>
<Technology_PrereqTechs>
<Delete TechType="TECH_PARTICLE_PHYSICS" />
<Delete TechType="TECH_NUCLEAR_FUSION" />
<Delete TechType="TECH_NANOTECHNOLOGY" />
<Delete TechType="TECH_FUTURE_TECH" />
</Technology_PrereqTechs>
</GameData>

This removes all lines from the future era you can do the same for the technologies in the other eras to remove those lines.
 
Eh yeah, I forgot about that. XD But thanks.
 
Back
Top Bottom