plows not swords

micmc

Warlord
Joined
Apr 17, 2004
Messages
179
Location
atlanta ga usa
before I go to the trouble of this, I thought I'd ask...

if you:
Made a civ non player and no AI playable (like barbarbarians)
gave them thier own unitclass_settler/unit settler
and put this unit settler into the *spawn* of improvement (like bear dens)

would you end up with a barbarian settler/city or the civ's settler/city?

so if you ended up with the new civ's settler/city, you could add in several minor tribes...who would then act like barbarians (since the AI is not "playing" playing them...(more like "barbarian playing" them) or would they revert to their normal Civ style of play (diplo etc.)?

give them a special palace which would build the city (granary etc etc in a domino of "free building" and promotions and a low cost hero unit...and maybe get a dang "temple of Zues" thing to work (so far all the attempts at this I've failed, even taking the code whole cloth...I am soooo stupid) and you just made a wild card in the game.....
 
well the first part of the experiment is a bust...

if you replace Unit_skeleton with Unit_settler, you get the settler, but then they sit there looking at you...(with this very proper cockney voice saying "hallo") ...now i'm sure there is a reason they didn't do the settler thing and convert into a city...wonder what it was....

*head bang*
 
Any improvement that spawns a unit will spawn a unit that belongs to the Barbarians.


To get a new Civilization into the game at some point, you must add a player to the game. It is impossible to force a unit to exist for the Civ before forcing the Civ itself to exist.


But you COULD copy the code which is used to spawn the Infernals and Mercurians and just change the pre-requisites, or even make it select a random Civ from a small list which you create, and be repeateable.
 
Did you give them UnitAI settle as well as another unit with a strength value to guard the spawn point? Otherwise it will just sit there.
 
so you could set it:

(with a new building named 'schlong's tower')(not that I would, but you know for example :)

take out
gc.getInfoTypeForString('TECH_INFERNAL_PACT')
put in
gc.getInfoTypeForString(BUILDING_SCHLONG'S_TOWER)

in the places it seems apprpriate (I don't mind keep pushing at something as long as I know I'm on the right track) and that would spawn the "new" civ to come into existence in the same way the infernals do...yes?

and put a BuildingClass_Palace on S's tower, so it couldn't be built in the capital

this would work?

(and thank you both for the help, I am really trying to get over my ohmigod no! pythonphobia and am not by nature code friendly (as you can see by my spelling) so I really do appriciate you taking the time to asnwer the dumb questions I have.)
 
You will need the single quote marks around your Building Name, and have to move out of the Technology Completed and into the Building Completed Section (if you want to use construction of a Wonder as the trigger, copy the code for Basium & the Mercurians instead, since they are already done by using a building).

Building Claa Palace wouldn't stop the Tower from being built in the capitol so much as stop it from being able to be built by ANYONE. You can only have 1 building for any buildingclass, and everyone has their own palace to worry about. Again, look at the code for Mercurian Gate, because I am reasonably certain you are not allowed to construct that one in your Capitol.

Why not in the Capitol though? If you wanted to just spawn them with a settler and send them on their merry way, then it should be perfectly acceptable to build it in your capitol. Unless you are just seeking to keep them from starting the building too early (just give it a Tech Pre-Req), or using their major production Center (why not let them?).


Also, note that Basium does not automatically get the city the Gate is built in. He is granted special access to the spell "Convert City" (look up CanConvertCity) when the city in question has the Mercurian Gate in it. Thus he can simply cast a spell and steal your city, which he typically will do on turn 1.
 
Back
Top Bottom