George, or anyone-
I am curious if the sovereign alignments such as "constructive chaos" are deeply hard coded into the engine (I already know I can't just change "constructive chaos" to "imperial sympathizer", and it crashes the game without an error, btw) and if it is possible to extend or redefine them, or if there is a plan to add to them or make them able to be redefined at some point in time such as for Part II.
I am also curious as to what effect the <relationships> declaration can do. I think that essentially you have 5 "teams", whose behavior to each other is defined in the alignment, but it also seems like the <relationships> declaration adds additional methods that can allow for sovs with the same alignment to actually be set against each other.
How is this working, in your grand scheme of things George?
[Solved] Are Sovereign alignments hardcoded?
I believe the constructive/destructive - order/chaos alignments are hardcoded but we have a number of ways to get around it.
You can define a custom relationship inside the sovereign element with <relationship> as seen in Huari.xml line 34:
and for more dynamic control we have functions to modify disposition:
You can define a custom relationship inside the sovereign element with <relationship> as seen in Huari.xml line 34:
Code: Select all
<Sovereign UNID="&svHuariEmpire;"
name="Huari Empire"
alignment="destructive order"
>
<Relationships>
<Relationship sovereign="&svSung;" disposition="enemy" mutual="true"/>
</Relationships>
...
and for more dynamic control we have functions to modify disposition:
Code: Select all
[url=http://xelerus.de/index.php?s=functions&function=107]objGetSovereign[/url]
[url=http://xelerus.de/index.php?s=functions&function=229]sovSetDisposition[/url]
[url=http://xelerus.de/index.php?s=functions&function=133]objGetSovereign[/url]
I recently released a proof of concept framework mod that tracks player kills and adjusts sovereign relationships accordingly. [url=http://xelerus.de/index.php?s=mod&id=816]Dynamic Sovereigns on Xelerus[/url]
Coming soon: The Syrtian War adventure mod!
A Turret defense genre mod exploring the worst era in Earth's history.
Can you defend the Earth from the Syrtian invaders?
Stay tuned for updates!
A Turret defense genre mod exploring the worst era in Earth's history.
Can you defend the Earth from the Syrtian invaders?
Stay tuned for updates!
- Periculi
- Fleet Officer
- Posts: 1282
- Joined: Sat Oct 13, 2007 7:48 pm
- Location: Necroposting in a forum near you
Thanks, Prophet. I will check out your mod and see what you have going on there for more clarification. [btw, you really have come to be a lot more accomplished with the scripting, great work!]