Thread Tools
Old October 31, 2001, 15:00   #1
SirBradleyG
Settler
 
Local Time: 15:39
Local Date: October 31, 2010
Join Date: Dec 2000
Location: Moses Lake, Washington
Posts: 6
CantAttackCity()
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.
SirBradleyG is offline  
Old October 31, 2001, 18:21   #2
Immortal Wombat
Apolytoners Hall of Fame
Prince
 
Immortal Wombat's Avatar
 
Local Time: 16:39
Local Date: October 31, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962
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
Immortal Wombat is offline  
Old November 1, 2001, 14:50   #3
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
Local Time: 17:39
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
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 Code:
HandleEvent(BeginTurn'MG_CantAttackCity_Test' pre {
city_t MGCity;
int_t i;
    for(
0<= player[0].cities1) {
        
GetCityByIndex(player[0], i,MGCity);
        if(
CityisValid(MGCity)) {
            
CantAttackCity(MGCity1);
        }
    }

-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
Martin Gühmann 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 11:39.


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