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 > Civilization: Call To Power > CtP-Creation > How to make regions work.
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
12.Sep: `CTP CHALLENGE LADDER` - SEPTEMBER UPDATE
09.Sep: EARLY BUILD SPRITE EDITOR
02.Aug: `SUPERLEAGUE` SIGN-UP

bottom of page
  - CIVILIZATION: CALL TO POWER @ GAMESTOP $9.99 - CIVILIZATION: CALL TO POWER @ AMAZON $9.99
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
gemini is offline gemini
Settler

Jan 1970
time: 05:13
Post  Old Post 10-06-2000 03:18
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
How to make regions work. Lose 30 kilos (of popups)

Hi guys, well here I go explaning how to make regions work and what will cause regions not to work.

code:
119,108 y1 \--\ \ \ x1,114,115 \ \119,115 x2 \ \ \ \ \__\ 114,123 y2

region showme [114,108,119,123];
// example[x1=114,y1=108,x2=119,y2=123]
the above example is only to make it more clear to all of you.

Now you have a region called show me. The above diagram demonstrates how the parameters must be entered. It will not work if you reverse the order of the cooridinates entered.

Here's a more detailed example of what all the syntax means.
code:
119,108 \--\ \ \ (114),115\ \ 119,115 \ \ \ \ \__\ (114),123


region point [114,108,119,123];
// example
[x1,114,y1,108,x2,119,y2,123];

In ctp x cooridinates run diagonal.
Y coordinates run horizontal.
So x1 to x2 shows how wide your parallelogram is going to be and y1, to y2 show how high it will be. So X1 will run diagonally down the hex coordinates x114 from y108 to y123 and x119 will run from y108 to y123.

I have created all kinds of different shaped parallelograms including straight lines only one hex wide and it worked!!!!!


Now there is a catch. And here we go.

code:
5,108 \--\ \ \ 114,115\ \ 5,115 \ \ \ \ \__\ 114,123


Region wontwork [114,108,5,123];

Regions will not work if it overlaps the start of the map cooridinate x0.

Since the above region does have coordinates with the x0 coordinate between them.([x,114,108,x,5,123]), this will not work. So you must be careful and remember this otherwise you should have no problems making your own regions.

Now there is one more thing.

I do not believe that the complex region thingy works. I have made several different attempts with no success. The reason I think this is because when I used a complex region name in the function
isinregion(unit.location,complexregionname);
it would always kick me back to the desktop and say invalid argument in isinregion function.

Well that's it I think. Hope this is a clear enough explanation about the mysteries of the activision ctp region.

Hey maybe someone can create a bermuda triangle thingy in a game, so if units go in they don't come out.



------------------
Gemini

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:13
Thumbs up  Old Post 11-06-2000 18:11 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
Support Apolyton, buy GURPS/ Alpha Centauri

Very useful info, gemini. It'll come in handy some day.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:13.
Apolyton Time is 00:13.
    top of page
Rate This Thread:
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.0303 seconds (83.29% PHP - 16.71% MySQL) with 30 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