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 > Kill the Zulus! (In Slic of course!)
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
heardie is offline heardie
Prince

Aug 1999
time: 15:14
Post  Old Post 16-01-2001 14:58
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Kill the Zulus! (In Slic of course!) Support Apolyton, buy Galactic Civilizations: Deluxe Edition

Well thats an interesting title for a change

Anyway I'm stick with a 'dilly of a pickle'*. I want to make it that when player[0] (you) takes over player[2]'s city[0] the city is destroyed. How cna this be done. I waas thinking along these lines:

code:
//--------------------------------------- // If Ulandi is conquered then destroy it //----------------------------------------- HandleEvent (CaptureCity) 'WWDestroyUlandi_f' post { int_t m; // Used for loop int_t tmpNum; // How many units in the civilization unit_t tmpUnit; // Used to see if unit lands on land for(m = 0; m < tmpNum; m = m + 1){ GetUnitByIndex(player[0], m, tmpUnit); if (tmpUnit.location == Dummy3 && isCityThere == 0){ Event: KillCity(city_t, int_t, int_t) } }


To clarify this 'Dummy3' is the location of the city and 'isCityThere' is a 1,0 variable. Now it seems I have to fill at city_t (Ulandi, city[0], int_t(?), int_t(player 3 which i think is player[2]). Can I just go
code:
Event: KillCity(0, 0, 3)


I would be willing to bet not

What are the other ways to do this!
I thinks its time I go read the scenario scripts for the pre-made scenarios


* Ned Flanders of course

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:14
Post  Old Post 17-01-2001 02:26 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Browse Apolyton AD-FREE

Way to difficult (and buggy too), try this (usual disclaimer: untested, could be buggy):

code:
HandleEvent(CaptureCity) 'WWDestroy_Land' post { if (city[0].location == Dummy3 && player[0] == 1 && isCityThere) { Event:KillCity(city[0], 0, 0); } }


Help, there's something wrong with my TAB-key it doesn't work! Oh well, I guess you get the point

KillCity has as arguments city that's killed, player that kills it (if you call the event instead of listening for it I don't think the number matters) and the reason (0 should be good enough) - in that order.

player[0] is *not* you btw, but whatever an events puts in there, in this case the player that captures the city. Player 1 *is* you (except in multiplayer so an IsHumanPlayer check would be needed then).

I saw your other questions but I don't have time now, will see if I can answer them tomorrow.
[This message has been edited by Locutus (edited January 16, 2001).]

heardie is offline heardie
Prince

Aug 1999
time: 15:14
Post  Old Post 18-01-2001 05:25
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Increase the size of your Attachments

Thanks again

heardie is offline heardie
Prince

Aug 1999
time: 15:14
Post  Old Post 19-01-2001 06:07
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Got spare money?

Aghh. Didnt work. Its not that important at the momment though. Perhaps it is my fault, I may have accidently changed the iscityThere variable at some stage

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:14.
Apolyton Time is 00:14.
    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.0298 seconds (85.59% PHP - 14.41% 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