Thread Tools
Old February 14, 2003, 23:28   #1
MrBaggins
CTP2 Source Code Project
King
 
MrBaggins's Avatar
 
Local Time: 19:41
Local Date: November 1, 2010
Join Date: May 1999
Posts: 1,528
Small Victory number 692: Forcing Government Change
Dale mentioned that in his mod, that he created a disadvantageous government: Dark Ages, but had to rely on a players honor to change to that government and keep the government.

Not sure anyone else has figured this out... no one has mentioned it, as far as I can tell... anyway...

Here is the solution:

remove all other government techs

invoke something like the following alertbox (with a message function)

It will give the player only one option: to press the button and invoke the government. The player cannot play on leaving the alert unanswered, because the only way to reenable the end turn button is to select the close button, and hence enact the government change.

PHP Code:
alertbox 'ShowTestMessage' {
    
Text(ID_TESTMESSAGE_M);
    
Show();
    
CantEndTurn(1);
    
Button(ID_T_BUTTON_CLOSE_FIRST) {
        
SetGovernment(GovernmentDB(GOVERNMENT_TYRANNY));
        
Kill();
        
CantEndTurn(0);
    }

N.B. The player must have the prequiste tech for the government to actually have this do anything.
MrBaggins is offline  
Old February 15, 2003, 01:34   #2
Dale
Emperor
 
Dale's Avatar
 
Local Time: 05:41
Local Date: November 2, 2010
Join Date: Dec 2000
Posts: 3,944
Actually, what I was doing (and had it mostly running already) was that during the Dark Ages if the script noticed you were in a different govt there was a chance of "civic revolt" resulting in a change of govt.

But your answer is as good as many though.
Dale is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 15:41.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team