This is the basic
<Prereq> <Type>Race</Type> <Attribute>Race_Type_Urxen</Attribute> </Prereq> <ProductionRequirement> <Type>Resource</Type> <Attribute>Mana</Attribute> <Value>1</Value> </ProductionRequirement>
But how to add so unit can only be built in a fortress at lvl 3 .. as an example
Edit : Typo
I don't know.
I was hoping you did perhaps after the game is released more info on modding is released
There's lots of things I don't know. seanw3 maybe knows. Otherwise you should try to make it work yourself.
I bet you can do it. I would first try having the level 3 fortress cityhub (called Cityhub3_Fortress) in the improvements xml add a resource to your city. You can make it produce 10 or so "Awesome Knights of Zantor." That resource would be used for every soldier in the unit you train of the special unit you want. You would need to make the unit and set it up just like the trained monsters we have. It's a little more complicated to actually make the unit. There are some tags you will want to add to make it something you train as opposed to something that trains automatically like mercenaries and trolls and such. You also need to make it allow grouping. Once you finish the basic stuff, I can take a look at your code. Just link it here.
Thanks!, ill play around with it and see
but if its a resource then the city would allow to build, but everywhere
you need to put a requirement somewhere
Resources can be local, like population. seanw3 actually has a really clever way to accomplish what OP wanted.
Why thank you. High praise from the mod king!
nice, local resources are interesting, many things are doable with that
maybe some magic tower shooting in the area or ammo for city defenses
There are many great features available to you once you register, including:
Sign in or Create Account
Copyright © 2020 Stardock Entertainment and Valve Corporation. Elemental: Fallen Enchantress and Fallen Enchantress: Legendary Heroes are trademarks of Stardock Entertainment. Steam and the Steam logo are trademarks and/or registered trademarks of Valve Corporation in the U.S. and/or other countries. All rights reserved.