Thread Tools
Old September 23, 2002, 08:04   #1
Caspian
Prince
 
Caspian's Avatar
 
Local Time: 08:25
Local Date: November 1, 2010
Join Date: Sep 1999
Location: Scotland
Posts: 304
Stacked Units
When units are stacked, what dictates the top unit. What I mean is, if there are two ground units in the same square, which one will show and which one will be hidden? Is it simply the last unit to move into the square that shows on top, or is it something to do with the unit stats?

I had the idea you see, that a special camoflage unit could be created to blend in with the terrain and cover up anti-tank guns. If a player ran into one the gun would show up and fire. This wouldn't work if the anti-tank guns were stacked on the top, or if the camo unit had a higher defense factor than the gun.

Last edited by Caspian; September 23, 2002 at 12:21.
Caspian is offline  
Old September 23, 2002, 11:16   #2
Heresson
Scenario League / Civ2-CreationNationStates
Emperor
 
Heresson's Avatar
 
Local Time: 10:25
Local Date: November 1, 2010
Join Date: Jun 2000
Location: of syrian frogs
Posts: 6,772
I don't know, obviously, but that's a good question.
Perhaps the ;ast one that came there?
Or the best when it comes to defence stuff?
Heresson is offline  
Old September 23, 2002, 12:08   #3
Caspian
Prince
 
Caspian's Avatar
 
Local Time: 08:25
Local Date: November 1, 2010
Join Date: Sep 1999
Location: Scotland
Posts: 304
Well, problem resolved. I just loaded up the game and gave it a try I'll try not to be so lazy in the future

It seems very simple as far as I can see. Just the last unit that moved into the square, regardless of the unit stats. That certainly makes things easier.
Caspian is offline  
Old September 23, 2002, 12:53   #4
Henrik
Civilization II PBEMScenario League / Civ2-CreationNationStatesMacCivilization II Democracy Game: Red FrontSpanish CiversCivilization IV Creators
Emperor
 
Henrik's Avatar
 
Local Time: 09:25
Local Date: November 1, 2010
Join Date: Dec 2000
Location: The European Union, Sweden, Lund
Posts: 3,682
Thats not allways true in my experience
I cannot give any rules for what affects it though, but I have definatly had situations where a unit other than the latest one to move is shown on top.
__________________
No Fighting here, this is the war room!
Henrik is offline  
Old September 24, 2002, 06:05   #5
Caspian
Prince
 
Caspian's Avatar
 
Local Time: 08:25
Local Date: November 1, 2010
Join Date: Sep 1999
Location: Scotland
Posts: 304
Oh dear. The observations I made were only over the first couple of turns of the Jules Verne scenario. Does anyone else have any ideas about this situation?
Caspian is offline  
Old September 24, 2002, 13:28   #6
William Keenan
Scenario League / Civ2-Creation
Prince
 
William Keenan's Avatar
 
Local Time: 03:25
Local Date: November 1, 2010
Join Date: Sep 1999
Location: New Jersey, USA, Earth, Sol, Milky Way
Posts: 705
Perhaps the display order is the order in which they appear in the rules.txt.
William Keenan is offline  
Old September 24, 2002, 21:43   #7
Caspian
Prince
 
Caspian's Avatar
 
Local Time: 08:25
Local Date: November 1, 2010
Join Date: Sep 1999
Location: Scotland
Posts: 304
Hmm, good idea. However I tried this already. Using the same two units. It always seemed to be the last unit that moved into the square. I'll try another scenario and see what difference using a ground unit with an air unit makes. (not that this makes a fig of difference with my camo/AT-Gun combination)
Caspian is offline  
Old September 25, 2002, 11:27   #8
Mercator
Scenario League / Civ2-Creation
Emperor
 
Mercator's Avatar
 
Local Time: 10:25
Local Date: November 1, 2010
Join Date: Dec 1969
Posts: 3,079
I think I figured it out... It's as you said (last unit to move in on top), with one notable exception: units with an attack of 0 never appear on top of a stack (edit: unless there only are zero-attack units in it, of course).

In fact, as far as the stack-order is concerned, there are effectively two stacks, both ordered from newest entry to oldest entry. The top stack contains all offensive units, the bottom stack contains all zero-attack units and down to the "oldest" zero-attack unit.

You can nicely see the order by clicking on a stack. The topmost unit there will be the newest attack unit, then the older attack units downward, and at the bottom you find the 0-attack units, starting with the most recent one to enter.

So... Just make sure your camouflage unit has an attack value other than zero, and you're off!

As a side note, this stack order is preserved in the savegame as the last two integer values of a unit's details. The first of those two indicates which unit is directly above it, the last indicates which unit is directly below it.
__________________
Civilization II: maps, guides, links, scenarios, patches and utilities (+ Civ2Tech and CivEngineer)
Mercator is offline  
Old September 25, 2002, 12:19   #9
Caspian
Prince
 
Caspian's Avatar
 
Local Time: 08:25
Local Date: November 1, 2010
Join Date: Sep 1999
Location: Scotland
Posts: 304
Thanks very much Mercator. That settles the issue then.
Caspian is offline  
 

Bookmarks

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 On

Forum Jump


All times are GMT -4. The time now is 04:25.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team