Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization

Notices

Reply
 
Thread Tools
Old Jul 19, 2009, 01:32 PM   #1
kiwitt
Road to War Modder
 
kiwitt's Avatar
 
Join Date: Jan 2006
Location: Auckland, NZ (GMT+12)
Posts: 3,853
Images: 1
Question Multiple Unique Units for a Unit Class within a nation

For my "Road to War Mini-Mod".

I am considering introducing multiple unique units in a particular Unit Class, within the same nation. e.g. Britain had multiple types of battle-ships, but still essentially Battleship Class, so it would be nice for the Civ to be able to build different types at different times.

e.g. When "Warships" are researched it can build Battleships, When Anti-Air is researched it can build Battleships with Anti-Air, when Improved Anti-Air is research it can build Battleships with Radar.
__________________
Now developing Modern Earth (Giant), which will have nearly 800 cities and 5,000 units.
Completed The Road to War - Historical 1.04a" - which is based on The Road to War - Original and has already had 4,700+ downloads. Dale (author of The Road to War) says "But what KiwiTT has done is take my core and expand the realism to form a version of RtW that is pleasing for the hard-cores. For that, KiwiTT gets a dip of my hat. - For future development and info see ... Facebook"
*** Need help installing Civ4 onto Windows7/Vista read my thread in here *** IOT GM of the year for 2011 for Iron and Blood 1
kiwitt is offline   Reply With Quote
Old Jul 19, 2009, 01:41 PM   #2
xienwolf
Deity
 
xienwolf's Avatar
 
Join Date: Oct 2007
Location: Location! Location!
Posts: 10,589
Images: 8
You want to be able to choose between multiple types, or to change what the UU is completely so that only 1 of them can be built at any time? For the first, you need some SERIOUS DLL work to get it going. For the second, it is also pretty in depth, but already done for you in the Modcomp Section, Dynamic Unique Units. You would just change the rules for how to set Unique units for each civ so that it replaces your UUs from within a set list.
xienwolf is offline   Reply With Quote
Old Jul 19, 2009, 03:01 PM   #3
kiwitt
Road to War Modder
 
kiwitt's Avatar
 
Join Date: Jan 2006
Location: Auckland, NZ (GMT+12)
Posts: 3,853
Images: 1
e.g.
1) One Global Class - e.g. "BattleShips"
2) Each Nation has one Unique Unit for "Battleships" Class
3) Some Nations have multple Unique Units e.g. Multiple types of Battleships (But can only build the latest model)


2) I think I can work on as the "Code" there in the RTW Mod already.
3) will be a little bit harder and will require me to look at the Modcomp section. (here ?)
__________________
Now developing Modern Earth (Giant), which will have nearly 800 cities and 5,000 units.
Completed The Road to War - Historical 1.04a" - which is based on The Road to War - Original and has already had 4,700+ downloads. Dale (author of The Road to War) says "But what KiwiTT has done is take my core and expand the realism to form a version of RtW that is pleasing for the hard-cores. For that, KiwiTT gets a dip of my hat. - For future development and info see ... Facebook"
*** Need help installing Civ4 onto Windows7/Vista read my thread in here *** IOT GM of the year for 2011 for Iron and Blood 1

Last edited by kiwitt; Jul 19, 2009 at 03:45 PM.
kiwitt is offline   Reply With Quote
Old Jul 19, 2009, 04:39 PM   #4
xienwolf
Deity
 
xienwolf's Avatar
 
Join Date: Oct 2007
Location: Location! Location!
Posts: 10,589
Images: 8
Aye, that's the modcomp I mentioned. You'd be using different rules for the Unlocking of Unique units than what he used, but mostly you'll be looking to snag the code which changes how the game looks up what UU you use, and allows you to modify that value for each player. Since you only want 1 UU to be available for each person at any time, but that 1 item to change as the game progresses, it is almost exactly what you want.
xienwolf is offline   Reply With Quote
Old Jul 20, 2009, 01:41 AM   #5
zyphyr
Prince
 
Join Date: Oct 2005
Posts: 461
A relatively easy way to do it is just have multiple Unit Classes..

Battleship1 (Battleship)
Battleship2 (Battleship with Anti-Air)
Battleship3 (Battleship with Radar)
etc..

Have each obsolete the one before it.

No reason for any complicated code.
zyphyr is offline   Reply With Quote
Old Oct 01, 2009, 04:35 PM   #6
kiwitt
Road to War Modder
 
kiwitt's Avatar
 
Join Date: Jan 2006
Location: Auckland, NZ (GMT+12)
Posts: 3,853
Images: 1
I am now getting on to research and coding my 0.4x of my mod. (Fighters and Ships)

Here is in details what I would like to happen

1) Number of Unit Limit set in Unitclass file per player.
2) AI or Player can then build the units up to limit set.
3) AI or Player can then research a tech and can then build a later unit in the same class. The operative word is "can" not "must". The AI of player should be able to chose which unit it wants to build within the unit number limit as some may have different features that it wants, e.g better AA, better speed, better range, etc.

e.g For Battleships (build limit of 5)

Possible build order - Battleship1, Battleship2, Battleship3, Battleship1, Battleship4

For Battleships, I propose leaving the Unitclass intact

e.g. Creating Unique Units

Battleship_US1, Battleship_US2, Battleship_US3, Battleship_US4
Battleship_GE1, Battleship_GE2, .... etc.
Battleship_EN1, ... etc.

I suppose the AI would automatically produce the strongest unit, which is fine as it is more likely to be the latest unit.

Will this work ?
__________________
Now developing Modern Earth (Giant), which will have nearly 800 cities and 5,000 units.
Completed The Road to War - Historical 1.04a" - which is based on The Road to War - Original and has already had 4,700+ downloads. Dale (author of The Road to War) says "But what KiwiTT has done is take my core and expand the realism to form a version of RtW that is pleasing for the hard-cores. For that, KiwiTT gets a dip of my hat. - For future development and info see ... Facebook"
*** Need help installing Civ4 onto Windows7/Vista read my thread in here *** IOT GM of the year for 2011 for Iron and Blood 1
kiwitt is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > [BTS] Multiple Unique Units for a Unit Class within a nation

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make a new unit class be unique to 1 civ? zulu9812 Civ4 - Creation & Customization 5 Apr 26, 2009 10:34 AM
BTS Unique Units not using Unique Unit sound ripple01 Civ4 - Unofficial Patches 0 Jan 18, 2009 02:24 PM
Unique Units and Unit Costs Tribute Civ3 - General Discussions 9 Jul 14, 2007 03:47 PM
Multiple unique units Illuminatiscott Civ - Ideas & Suggestions 51 Jun 30, 2005 09:23 AM
Unique Units for New Civs and Unit Mods. Packer-Backer Civ3 - General Discussions 20 Sep 17, 2003 06:14 PM


Advertisement

All times are GMT -6. The time now is 12:06 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR