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 > What did I click?
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
ahenobarb is offline ahenobarb
Prince

Nov 2001
time: 05:27
  Old Post 23-03-2003 07:46
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
What did I click? Support Apolyton, buy Alpha Centauri

Another one of those troublesome SLIC problems. If you are looking at one of the screens in CTP2 like the diplomacy screen, how do you tell SLIC what civilization you have selected in the menu? (i.e. just highlighted, not highlighted and then cliked through to the next screen)

I've been trying this for cities selected in the National Manager with CitySelected and CityClicked with no luck. I am hoping someone (Locutus?) may have run across this problem while they were working on improving the diplomacy in the game.

Also, regarding the CityClicked function; when you click a city, is the city that you clicked assigned to the variable within the parenthesis:

city_t tmpCity
CityClicked(tmpCity) // The City selected through the GUI is now tmpCity


Or is it the reverse

GetCityByIndex(g.player, 3, tmpCity); //Assigns player's city 3 to tmpCity
CityClicked(tmpCity) // tells CTP2 that tmpCity is the CityClicked

??

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:27
Post  Old Post 24-03-2003 01:52 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

CityClicked is an event and it works if you click on the city on the map, if you want to have access cia the GUI you should try the event CitySelected. The syntax you have to use should look like this:

code:
city_t MGCity; HandleEvent(CitySelected)'MG_CitySelected'post{ MGCity = city[0]; }


And that will save the selected city into a global city variable for use somewhere else in the script. BTW don't forget the semicolons.

-Martin

ahenobarb is offline ahenobarb
Prince

Nov 2001
time: 05:27
  Old Post 26-03-2003 22:24
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

quote:
Originally posted by Martin Gühmann
CityClicked is an event and it works if you click on the city on the map, if you want to have access cia the GUI you should try the event CitySelected. The syntax you have to use should look like this:

code:
city_t MGCity; HandleEvent(CitySelected)'MG_CitySelected'post{ MGCity = city[0]; }


And that will save the selected city into a global city variable for use somewhere else in the script. BTW don't forget the semicolons.

-Martin


Thanks, Martin. It doesn't sound like either of those commands will work for what I am trying to do.

What I am trying to do is have the City Manager screen open for a city selected in the national manager. I've added a new button to the National manager for this. The code works for OpenTrade or OpenScience commands, but it does not work for the OpenCity command because I don't know how to tell CTP2 what city I have highlighted in the Nat Man. Therefore, it doesn't know which city to open. CTP2 reads the highlighting when you click the Build Manager button, but I don't know how to do this in SLIC.

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