| General | Hosted Sites | Civ5 | CivRev | Civ4Col | Civ4 | Civ3 | Civ2 | Civ1 | Misc | Marketplace |
![]() |
|
|
Welcome to Civilization Fanatics' Center. You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Prince
Join Date: Jun 2006
Location: Beale AFB, CA
Posts: 417
|
Get AI to Stop Changing Civics!
Ok, so everything is going pretty well with the Iran-Iraq mod I'm working with. However, turn 1 the Ayatollah goes all free speech and free religion. Very un-Ayatollah-esque. How can I stop him from ruining his great Islamic Republic?
__________________
My country may she always be right, but right or wrong my country! CIV IV Scenarios: Iran-Iraq Scenario Afghan Civil War CIV III Scenarios: Vietnam War MP The Establishment of AFRICOMM NEAsia 2nd Korean war/Taiwan and China Operation Enduring Freedom |
|
|
|
|
|
#2 |
|
Deity
Join Date: Mar 2003
Posts: 6,296
|
This is pretty much what Python scripting is for. I'm not sure on the details, but you would be better served starting a thread in the Python/SDK forums about this.
__________________
Do not PM me with questions about modding. I will not answer. If you want help with something, start a thread on it, or post in a related existing thread. |
|
|
|
|
|
#3 |
|
Secular Humanist
Join Date: Feb 2010
Location: Alberta, Canada
Posts: 1,677
|
Or you could modify his AI and give him two favourite civics - the ones that you want him to have.
|
|
|
|
|
|
#4 |
|
Prince
Join Date: Jun 2006
Location: Beale AFB, CA
Posts: 417
|
Well he changes off one of his favorites, so I'm not sure this will work out.
__________________
My country may she always be right, but right or wrong my country! CIV IV Scenarios: Iran-Iraq Scenario Afghan Civil War CIV III Scenarios: Vietnam War MP The Establishment of AFRICOMM NEAsia 2nd Korean war/Taiwan and China Operation Enduring Freedom |
|
|
|
|
|
#5 | |
|
Great Spy
|
Quote:
![]() Ai's Should not do that!
__________________
I will be gone June 2 - July 1
- You've made it this far, now keep going! --- If at first you don't succeed, then skydiving isn't for you. ![]() |
|
|
|
|
|
|
#6 |
|
Emperor
Join Date: Aug 2009
Posts: 1,675
|
I couldn't figure it out either!
|
|
|
|
|
|
#7 |
|
Say No 2 Net Validations
![]() ![]() |
Sure it should, if it makes sense
.I've even seen Toku running free market. @Topic: Assets\Python\CvGameUtils.py: PHP Code:
|
|
|
|
|
|
#8 |
|
Secular Humanist
Join Date: Feb 2010
Location: Alberta, Canada
Posts: 1,677
|
Create new techs that enable all the other civics, and make sure they are not researchable by anyone. Then give certain civs techs that will enable specific civics.
|
|
|
|
|
|
#9 | |
|
Great Spy
|
Quote:
Disable tech is what to read only civ "X" cannot research tech "Free Speech" so only civ "X" cannot get free speech which is enabled by "Free Speech"
__________________
I will be gone June 2 - July 1
- You've made it this far, now keep going! --- If at first you don't succeed, then skydiving isn't for you. ![]() |
|
|
|
|
|
|
#10 |
|
Emperor
Join Date: Apr 2004
Location: Vienna, Austria
Posts: 1,533
|
Wouldn't it be easier to just disable specific civilizations from getting specific civics?
For example, putting this in CvPlayer::canDoCivics in CvPlayer.cpp: Code:
if (eCivic == (CivicTypes) GC.getInfoTypeForString("CIVIC_FREE_RELIGION") && getLeaderType() == (LeaderHeadTypes) GC.getInfoTypeForString("LEADER_AYATOLLAH"))
{
return false;
}
|
|
|
|
|
|
#11 | |
|
Great Spy
|
Quote:
__________________
I will be gone June 2 - July 1
- You've made it this far, now keep going! --- If at first you don't succeed, then skydiving isn't for you. ![]() |
|
|
|
|
|
|
#12 |
|
Dry Bones
Join Date: Oct 2008
Location: Los Angeles
Posts: 5,539
|
That's actually C++, not python- The_J's example is python.
|
|
|
|
![]() |
| Bookmarks |
|
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [BTS] How to avoid AI of changing civics | Duque d'Caxias | Civ4 - Creation & Customization | 8 | Aug 28, 2009 07:12 AM |
| Changing Civics Crash | Hephaistion | Civ4 - Creation & Customization | 2 | Nov 17, 2008 04:49 PM |
| Problems with changing civics | dact | Civ4 - General Discussions | 5 | Oct 28, 2007 03:46 AM |
| Changing civics | massdriller | Civ4 - Strategy & Tips | 2 | May 09, 2006 12:33 AM |
| Civ 4 and Alpha Centauri: Why stop at Civics? | sliganian | Civ4 - General Discussions | 30 | Jan 13, 2006 06:33 PM |