Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site forums as they ran on Ultimate Bulletin Board, 1998–2001. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 2005 site & forums

  Apolyton Civilization Site Forums
  CtP2-Creation
  How to determine government type in SLIC

Post New Topic  Post A ReplyPost A Reply In A New Window

profile | register | preferences | faq | search next newest topic | next oldest topic bottom of page
Author
Topic:   How to determine government type in SLIC Format for Better Printing
Radical_Manuvr
Settler
Maryland, USA
Dec 2000
posted January 06, 2001 22:01   Click Here to See the Profile for Radical_Manuvr   send a private message to Radical_Manuvr
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
I've been trying to use the following line in a SLIC file

if (player[0].govttype == "GOVERNMENT_MONARCHY") {

According to the SLIC Built in variable type page on this site player.govttype should be available but when I add this line to my code (along with the correctly placed } ) and load the scenario I crash with a syntax error message for that line.

I also tried

if (player[0].govttype == "Monarchy") {

with the same error.

I think I need to have something like

tmpGovtype = player[0].govttype;
if (tmpGovtype == "Monarchy") {

or

tmpGovtype = player[0].govttype;
tmpGovtype2 = "Monarchy";
if (tmpGovtype == tmpGovtype2) {

but I don't know how to declare a string variable in SLIC. I looked though a lot of files but didn't see any used. Maybe I missed it, you can't do it, or there is another way to do this.

Please help if you can! Thanks.

Apolyton Civilization Site Forums
> > > CtP2-Creation Forum

next newest topic | next oldest topictop of page

All times are EDT

Administrative Options: Close Topic | Archive/Move | Delete Topic | Top
Post New Topic  Post A ReplyPost A Reply In A New Window
Hop to:

Contact Us
Apolyton Civilization Site

Powered by: Ultimate Bulletin Board, Version 5.44a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.

Front Page | Civilization III | Dinosaurs | Civilization II | Call to Power | Call to Power II | Alpha Centauri | Alternative Civs | Misc | Links | About ACS | GameStats
GameLeague | Scenario League | HAC | Civilization Scenario Collection | Spanish CivII Site | Clash of Civs | CtP Maps | Art of War | WesW's Ctp1/2 Site