Thread Tools
Old September 10, 2001, 01:53   #1
Colwyn
Civilization II Democracy Game: Red Front
Prince
 
Colwyn's Avatar
 
Local Time: 23:16
Local Date: October 31, 2010
Join Date: Aug 2000
Location: Melbourne, Australia
Posts: 673
script to kill particular unit in events?
What contex is required to retire a unit type and then create gold in the civ2 events file.

ie I want to retire a older unit in a multi events scenario and then give the player some gold for his trouble (scrap metal) before i use the slot for a newer unit that I don't 'upgraded' automatically when loading a new events file.


Answer apreciated.
Colwyn is offline  
Old September 10, 2001, 03:12   #2
Case
Civilization II PBEMCivilization II Democracy Game: Red FrontScenario League / Civ2-Creation
Emperor
 
Case's Avatar
 
Local Time: 23:16
Local Date: October 31, 2010
Join Date: Feb 2000
Posts: 3,057
I may be wrong, but I don't think that that's possible

I think all you can do is have a recived technology event which give the player a 'lump sum' when they get the tech.
__________________
'Arguing with anonymous strangers on the internet is a sucker's game because they almost always turn out to be - or to be indistinguishable from - self-righteous sixteen year olds possessing infinite amounts of free time.'
- Neal Stephenson, Cryptonomicon
Case is offline  
Old September 10, 2001, 07:55   #3
Boco
Scenario League / Civ2-Creation
King
 
Boco's Avatar
 
Local Time: 08:16
Local Date: October 31, 2010
Join Date: Jan 2001
Location: of underdogs
Posts: 1,774
One work around to this limitation that I've played with is to home the doomed units to an isolated undefended city. An event then can trigger the creation of an enemy unit that conquers the city, eliminating its units. This workaround has a lot of weaknesses (e.g. re-homing), but it does get the job done, crudely.

(Edit)
Oops! Read the subject but not the message. If by 'retiring' you mean eliminating the older unit, then this advice is suitable. Otherwise....

Last edited by Boco; September 10, 2001 at 23:45.
Boco is offline  
Old September 10, 2001, 12:06   #4
kobayashi
Prince
 
kobayashi's Avatar
 
Local Time: 21:16
Local Date: October 31, 2010
Join Date: Dec 2000
Location: Singapore
Posts: 821
The only way to do this is to use unit triggers.

You have to seperate a part of the map as a control panel and when you wish to, you can use a 'control unit' to kill a defenseless 'AI trigger unit' with no movement. That will give you the gold but also give you a tech which makes a certain unit type obsolete.
__________________
.
This is a link to...The Collective Works of Kobayashi and this is a link to...Kobayashi's Food Blog
kobayashi is offline  
Old September 11, 2001, 19:40   #5
Colwyn
Civilization II Democracy Game: Red Front
Prince
 
Colwyn's Avatar
 
Local Time: 23:16
Local Date: October 31, 2010
Join Date: Aug 2000
Location: Melbourne, Australia
Posts: 673
What about justing killing a unit type
and not worry about the gold ie
ie
if turn = 20
then kill unit type"lighttank"

I know you can use createunit commands in the events but to uncreate/kill??
Colwyn is offline  
Old September 11, 2001, 19:52   #6
Goingonit
Warlord
 
Goingonit's Avatar
 
Local Time: 08:16
Local Date: October 31, 2010
Join Date: Apr 2001
Location: Toronto, Canada - AECCP member
Posts: 192
Re: What about justing killing a unit type
[QUOTE] Originally posted by Colwyn
and not worry about the gold ie
ie
if turn = 20
then kill unit type"lighttank"

I know you can use createunit commands in the events but to uncreate/kill?? [/QOTE]

Doesn't work. You can kill all units on a particular square by using changeterrain, but that's all.
Goingonit is offline  
Old September 12, 2001, 11:29   #7
kobayashi
Prince
 
kobayashi's Avatar
 
Local Time: 21:16
Local Date: October 31, 2010
Join Date: Dec 2000
Location: Singapore
Posts: 821
Sorry, I misunderstood your meaning of "retire a unit type". To me that sounds like make it obsolete. If you meant kill every unit of a certain type instantaneously, that's impossible in a single stage scenario.

If you can make a multiple stage scenario, you can alter the rules.txt for stage two and change the units you want killed to aircraft with zero moves. Then they will all die.
__________________
.
This is a link to...The Collective Works of Kobayashi and this is a link to...Kobayashi's Food Blog
kobayashi is offline  
Old September 12, 2001, 19:58   #8
Colwyn
Civilization II Democracy Game: Red Front
Prince
 
Colwyn's Avatar
 
Local Time: 23:16
Local Date: October 31, 2010
Join Date: Aug 2000
Location: Melbourne, Australia
Posts: 673
Thanks for confirming this with me
Hope Civ 3 will allow this!
Colwyn 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 09:16.


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