Log in

View Full Version : Modding Question: Two players as the same nation


Argitoth
February 2nd, 2004, 06:55 AM
Hey, you think it would be easy to completely copy a nation so people can play the same one?

Saber Cherry
February 2nd, 2004, 07:04 AM
Yes... aside from national pretenders. But some of the capitol-only units may pose a problem, as some capitol sites seem hard-coded to only allow a specific nation to recruit those units...

PDF
February 2nd, 2004, 09:24 AM
In fact some units are hardcoded to sites themselves (ie site X allows recruiting of unit Y).
Maybe one can bypass the problem by adding the wanted sites to the changed nation with #startsite command, but I dunno if there's some hardcoded control to force "unique" sites to be unique indeed...
Have a try ! http://forum.shrapnelgames.com/images/icons/icon7.gif

Gandalf Parker
February 2nd, 2004, 03:01 PM
There is no "copy all" for a nation so you would have to do all the units. For the ones that are tied to a site you should be able to replace a recruitable unit with whatever unit the site gives. The only problem I can see is if you are trying to replace a nation with many units into a slot held by a nation with only a few units. And if there are extra slots left over you might want to fill those with duplicates of something just for fairness.

PDF
February 2nd, 2004, 04:24 PM
Hum, I thought of making it the easy way :
You want nation X to use nation Y units, so it goes. First note all the units and commanders/hero IDs of nation Y then :

file switchnationYX.dm http://forum.shrapnelgames.com/images/icons/icon7.gif

#selectnation X
#clearrec
#clearsites
#addrecunit xxx (xxx= id of 1st unit available to nation Y)
#addrecunit xxy (2nd unit of Y)
..etc..
#addreccom ccc (same for commanders and heroes than for units)
..etc..
#addreccom ccz
#startsite "first site of nation X"
...
#startsite "Last site of nation X"
Also add the correct #defcom1/2, #defunit1/2, #startcom and #startunit defining the province defense units and commanders and the starting units, then change somewhat the name, color and description of nation X - see modding pdf file ...)

It *should* work if my genius didn't fail http://forum.shrapnelgames.com/images/smilies/rolleyes.gif http://forum.shrapnelgames.com/images/icons/icon10.gif !

[ February 02, 2004, 14:31: Message edited by: PDF ]