Change TechTree Pipes to Technology_ORPrereqTechs instead of Technology_PrereqTech?

Grave

1 Goat = 400 Horses
Joined
May 5, 2002
Messages
1,530
Location
Louisiana
Basically, I want the TechTree pipes to show only when an <Technology_ORPrereqTechs> is used (like the CivIV TechTree).

This should be simple, but I'm not getting it to work.

:confused:
 
Depending on your definition of "simple" then yes, it is simple.

In TechTree.lua change the 2 instances of "GameInfo.Technology_PrereqTechs()" to "GameInfo.Technology_ORPrereqTechs()".
 
Depending on your definition of "simple" then yes, it is simple.

In TechTree.lua change the 2 instances of "GameInfo.Technology_PrereqTechs()" to "GameInfo.Technology_ORPrereqTechs()".

I tried that... but when I go to test it in the game, the TechTree window opens up automatically at the very start of the game, and you can't close it. And, it still shows the regular PrereqTech pipes instead of the OrPrereqTech pipes.

:confused:
 
I don't know what to say - it works for me.

Disregard, I figured this out. :wallbash:

I guess I forgot that Lua is case sensitive. I was typing "GameInfo.Technology_OrPrereqTechs()" instead of "GameInfo.Technology_ORPrereqTechs()"

It works now, though. :D
 
Back
Top Bottom