How to make a building increase route movement?

DVS

El Presidente
Joined
Jul 1, 2005
Messages
1,037
Location
Canada
Ok, this is probably a stupid question.

I'm trying to have a national wonder increase a civ's movement rate on railroads.

I know how to do this with technologies, but that doesn't really work well for our mod. We would rather do it with buildings, if possible.

Unfortunately, I can't figure out how to do this. If anyone knows, it will save me a lot of hair pulling if you could post details. :)

Thanks in advance.
 
In case anyone is wondering;

A Maglev train system is the wonder we want to increase railroads.
 
I don't know anything about editing buildings, but I do know that there is an event that shipped with BTS called "Interstate" that increases your units' movement along roads and railroads. It calls a python code that applies the changes. I'd check that out and see if you can't get it to work for your Maglev "building." :)
 
I'd GUESS that you would need to make a new line in XML to do that. For a new line you need to have references in SDK and python.
 
Thanks to both of you for the responses.


I'd GUESS that you would need to make a new line in XML to do that.

That's what I'm afraid of.
 
Well you can always cheat.

For example make a fake un-researchable tech that does it and use onbuildingbuilt in the python to give you that tech. Or likewise use onbuildingbuilt to call an event that can't normally occur that also does it.

Otherwise if you want the building to do it directly you'd need to add a new XML tag and mod the SDK.
 
Ok, thanks for clearing that up for me.
 
Back
Top Bottom