Log in

View Full Version : Scripting Question



shifty157
04-11-2006, 22:44
I was told once (i believe by a scripter that worked with EB) that using scripting, new buildings and units could be made available to the player depending on a trait gained by a general. Is this true or am i just making memories up?

cunctator
04-12-2006, 09:00
It's true. You can write a script searching for a specific trait, that places certain buildings in all cities if the trait is present. These buildings can then be used as requirements for other buildings and units.

shifty157
04-14-2006, 02:09
Thanks.

Is it also possible to trigger a script when a unit/building is completed?

cunctator
04-14-2006, 09:18
You can check per script if a building is completed or exist in any settlement and make it a condition for your script. For units as far as I know you can only test the number of certain units in your settlement. If you want your script becoming active the first time a unit is trained at a specific place this might work.

A complete list of all comands and triggers can be found here:

https://forums.totalwar.org/vb/showthread.php?t=54299