September 10, 2001, 01:53
|
#1
|
Prince
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.
|
|
|
|
September 10, 2001, 03:12
|
#2
|
Emperor
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
|
|
|
|
September 10, 2001, 07:55
|
#3
|
King
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.
|
|
|
|
September 10, 2001, 12:06
|
#4
|
Prince
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.
|
|
|
|
September 11, 2001, 19:40
|
#5
|
Prince
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??
|
|
|
|
September 11, 2001, 19:52
|
#6
|
Warlord
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.
|
|
|
|
September 12, 2001, 11:29
|
#7
|
Prince
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.
|
|
|
|
September 12, 2001, 19:58
|
#8
|
Prince
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!
|
|
|
|
Posting 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
|
|
|
All times are GMT -4. The time now is 09:16.
|
|