Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > CtP2-Creation/AI/Mods/Scenarios-Archive > CantAttackCity()
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
SirBradleyG is offline SirBradleyG
Settler
Moses Lake, Washington
Dec 2000
time: 05:15
  Old Post 01-11-2001 00:00
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
CantAttackCity() Browse Apolyton AD-FREE

The CantAttackCity() function does not work correctly. I continue to get an error that tells me I'm using the wrong argument. The argument its choking on is the city argument. I've tried many varations to get the function to work, however, it will not take the city arguement. I've followed the syntax in my SLIC functions reference document so I figure that either the function does not work or Activision has given has given us the wrong syntax. If anyone knows the proper usage of CantAttackCity() please post it.

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:15
  Old Post 01-11-2001 03:21 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Put an end to popups!

Another buggy function probably. Others include GetNearestWater, GetCoastalCity, CutImprovements (not broken, but needs a lot of care) etc...

Its not used in any of the Activision scenarios, and I don't think anyone else here has used it at all Maybe you could do a work around. (Check each attack, and return STOP if necessary) or something.
Sorry

Good luck though

Ben

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:15
Post  Old Post 01-11-2001 23:50 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Put an end to popups!

This code does not produce a slic error, but it doesn't work either I don't know why. It should make all cities on the map immune to attacks and captures but it just doesn't work:

PHP:

HandleEvent(BeginTurn) 'MG_CantAttackCity_Test' pre {
city_t MGCity;
int_t i;
    for(
i = 0; i <= player[0].cities; i = i + 1) {
        
GetCityByIndex(player[0], i,MGCity);
        if(
CityisValid(MGCity)) {
            
CantAttackCity(MGCity, 1);
        }
    }
}



-Martin

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:15.
Apolyton Time is 00:15.
    top of page
Rate This Thread:
archivepost
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0302 seconds (84.30% PHP - 15.70% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net