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 > Giving different mods to different civs?
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
The Rusty Gamer is offline The Rusty Gamer
Prince
Christchurch, New Zealand
Apr 1999
time: 17:15
Question  Old Post 10-08-2001 11:29 Visit The Rusty Gamer's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Giving different mods to different civs? Get a bigger avatar today!

Since I don't know much about doing modpacks, here's a question. Is it possible for each civilization to have its own tech tree and units or is there some way this can be simulated?

I'm thinking in terms of trying to make the game more interesting and perhaps more realisitic. Since in real life, different cultures think completely differently is it possible to (say) give one civ the med mod, another the cradle mod, another the Apoyton pack. Imagine a game with civilizations encountering each other in this way, different units etc. I know you might cry about game balance but I think it would be good to have a go at if it's possible.

Is it?

janilxx is offline janilxx
Warlord
Finland
Mar 2001
time: 07:15
  Old Post 10-08-2001 11:31
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Got spare money?

I think this is tried to be simulated a little by elite units in MedPack.

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:15
  Old Post 10-08-2001 18:24
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Get a bigger avatar today!

Still the opponets were going to have the same units and you the different ones.
I think the best option is to right a code with civ specific units. I think this is a great idea and i could do that if someone wrote this code for me and that it could be easily edited. And according to the number of units(around 150) i have in my own mod (not public yet still testing) i could make that with a game of 3 or 4 civs. Someone wants to make this code for me?

Last edited by Pedrunn on 10-08-2001 at 18:29

The Rusty Gamer is offline The Rusty Gamer
Prince
Christchurch, New Zealand
Apr 1999
time: 17:15
Exclamation  Old Post 11-08-2001 06:35 Visit The Rusty Gamer's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Increase Your PM Length

quote:
Originally posted by Pedrunn
Still the opponets were going to have the same units and you the different ones.


Not true. The MedMod game I'm playing at the moment had at least one of the AI players getting an elite unit instead of me even though I'm ahead in technology.

quote:
I think the best option is to right a code with civ specific units.


Is is possible to do this? Is it then also possible to have different tech trees for different civs?

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:15
  Old Post 11-08-2001 09:11
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Full PM-box? Change here!

1)Russel i wasnt talking about the Elite Units. Elite units works fine.
I was talking about the idea of a civ mod(actually will be a scenario). I was telling that it is not enough to make a only civ mod but we should make the opponents with their own especifics too.

2) I think it is possible with a variation of the elite unit code. But i cant slic. So we need someone who can to make it. Anyone available to make a code where the units are NOCIV except for one only Civ?

Last edited by Pedrunn on 11-08-2001 at 09:27

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:15
  Old Post 11-08-2001 14:09 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton buy from Amazon

Actually, it won't have to be nearly that complex. I don't have much time but this topic has been discussed before so you may want to use the search feature to find more info/tips/whatever.

The code could look something like this:

code:
mod_CanCityBuildUnit(int_t theCity, int_t theUnit) { int_t tmpCity; int_t tmpUnit; tmpCity = theCity; tmpUnit = theUnit; if (tmpUnit == UnitDB(UNIT_MARINE)) { if (PlayerCivilization(tmpCity.owner) == CivilizationIndex(“AMERICANS”)) { return 1; // only Americans can build Marine } else { return 0; } } elseif (tmpUnit == UnitDB(UNIT_SAMURAI)) { if (PlayerCivilization(tmpCity.owner) == CivilizationIndex(“JAPANESE”)) { return 1; // only Japanese can build Samurai } else { return 0; } } else { return 1; // all other units can be built by anyone } }

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:15
  Old Post 11-08-2001 18:56
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

Thanks Locutus i am going to test it.

I am choosing the civs probably will be four:

1) Romans
2) Egyptians
3) Zulu
4) Either Babylonians or Japaneses (still thinking)

I will first make to the original game. Then i will change it.

Last edited by Pedrunn on 11-08-2001 at 19:17

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:15
  Old Post 11-08-2001 19:24
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Increase the size of your Attachments

This will look stupid but i had a problem with my Advance.txt of the oiginal game and it got deleted. Because it will make months since my last play with it i did not bothered much. Anyway could someone attach your original gane Advance.txt.

opaque is offline opaque
Chieftain
England
Aug 2001
time: 05:15
  Old Post 14-08-2001 00:51 Visit opaque's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

Here is my Advance.txt, unmodded

Attachment: advance.txt
This has been downloaded 1 time(s).

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:15
  Old Post 20-08-2001 01:21
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Inflate your Upload Space

code:
mod_CanCityBuildUnit(int_t theCity, int_t theUnit) { int_t tmpCity; int_t tmpUnit; tmpCity = theCity; tmpUnit = theUnit; if (tmpUnit == UnitDB(UNIT_MARINE)) { if (PlayerCivilization(tmpCity.owner) == CivilizationIndex(“AMERICANS”)) { return 1; // only Americans can build Marine } else { return 0; } } elseif (tmpUnit == UnitDB(UNIT_SAMURAI)) { if (PlayerCivilization(tmpCity.owner) == CivilizationIndex(“JAPANESE”)) { return 1; // only Japanese can build Samurai } else { return 0; } } else { return 1; // all other units can be built by anyone } }



Locutus, thanks to write this code but could you do a small change?
I decided to change the idea instead of giving specific units to specifics civs i decide to group the civs. Eg Group 1 (Far Eastern): Japaneses, chineses, koreans .... Could you make this little change for me in such a way that i can easily edit the 4 groups and give the units to its respective group?

PS2: Thanx opaque.

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:15
  Old Post 20-08-2001 01:22
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton or Terrorists Win

dp

Last edited by Pedrunn on 20-08-2001 at 01:27

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:15
  Old Post 20-08-2001 02:00 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Suffering from ads?

code:
mod_CanCityBuildUnit(int_t theCity, int_t theUnit) { int_t tmpCity; int_t tmpUnit; tmpCity = theCity; tmpUnit = theUnit; if (tmpUnit == UnitDB(UNIT_MARINE)) { if (PlayerCivilization(tmpCity.owner) == CivilizationIndex(“AMERICANS”) || PlayerCivilization(tmpCity.owner) == CivilizationIndex(“ENGLISH”) || PlayerCivilization(tmpCity.owner) == CivilizationIndex(“FRENCH”)) { return 1; // only western countriescan build Marine } else { return 0; } } elseif (tmpUnit == UnitDB(UNIT_SAMURAI)) { if (PlayerCivilization(tmpCity.owner) == CivilizationIndex(“JAPANESE”) || PlayerCivilization(tmpCity.owner) == CivilizationIndex(“KOREANS”) || PlayerCivilization(tmpCity.owner) == CivilizationIndex(“CHINESE”)) { return 1; // only east can build Samurai } else { return 0; } } else { return 1; // all other units can be built by anyone } }


The || is an "or", so you can use multiple civs.

BTW, did you need the code for allowing certain civs certain advances? That is very similar coding.

VisionV is offline VisionV
Settler

May 2001
time: 05:15
Smile  Old Post 20-08-2001 04:12
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Browse Apolyton AD-FREE

I am new to this, but where do I put that code? And above that, how would I have figured out how to do that myself?

Thanks!

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:15
  Old Post 20-08-2001 08:03
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Originally posted by Immortal Wombat

BTW, did you need the code for allowing certain civs certain advances? That is very similar coding.


I will first make the specific units then i will think about the specific advances.
Thanks for the code.

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:15
  Old Post 20-08-2001 16:15 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Suffering from ads?

VisionV, that code would go in any SLIC file that you are including in the mod/scenario.

If you are making a scenario, then in the scenario gamedata structure, you should put it in default/gamedata/scenario.slc Simply make a new text file, type that in, and then rename it to .slc to make it work.

If you are making a mod (using Modswapper) , then your files will most likely have a prefix like VIS_gamefile.txt or something. Then you will have to have a VIS_script.slc, which will be almost identical to script.slc. At the bottom of it though, will be a line
#include 'scenario.slc'. Change this to
#include 'VIS_scenario.slc' and make a file called that, put the code in it, and put it in the ctp2_data/default/gamedata directory.

How you would have figured it out is a very good question. I possibly found it easier to learn, because I started early, when lots of SLIC was being knocked around here.
Firstly, I recommend going to the ctp2 modification page here, and printing out everything on SLIC that Activision provided. This gives a few examples, but is in effect little more than a reference text.
Step 2 would be to look at all the slic in the Activision scenarios, and try to figure out what they do, and how they do it.
Thirdly, start simple, attempt something easy, then gradually work up until you can figure out the harder stuff.

No including the mod_ functions (see above) SLIC is based around handlers, which are basically making things happen when something else happens.
eg.

code:
HandleEvent(BeginTurn) 'example' pre { AddGold(player[0], 500) }

This handles the beginturn "event" and whenever a turn is begun, it adds 500 gold to the player's treasury. The AddGold is a function that operates something, and the list is in the Activision documentation.
Anywya, I'm not going to explain everything, because it would take too long, but try to read as much SLIC as you can from everywhere, and try to figure out what is does, and how it does it.

VisionV is offline VisionV
Settler

May 2001
time: 05:15
  Old Post 20-08-2001 18:36
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Support Apolyton, buy Civilization 2

Thanks Immortal!

I'll take a look.

  < 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.0388 seconds (88.86% PHP - 11.14% 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