This is the mail archive of the xconq7@sources.redhat.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Using treasuries


In the mean time, you might try using a large out-length and in-length
to the uinits, along with s similar view range for the units to see each
other.  Set the satillite out-lenth to 25, and it's in-lenth to -1, thad
the weapon's in-length to 25, and it's out-length to -1 so the sattilite
can transfer to the weapon, but not the other direction.  Then both
units need to be able to "see" each other at that distance.  You might
need to set some other flags as well, and manually tranfer the material,
rather than it being automatic, but that's not too unreasonable.  Once
the satillite is full, it will atumatically try to fill up any units
withing range, so if you have a low storage space, and a high production
rate you should get a similar effect to the treasuray, particullary if
you set the lengths to a value marger than the maximum distance between
any two spots on your world.
Stanley M. Sutton                sutton@earthdecisionsciences.com
AIM:          StanleyMSutton     Ext: 113
MSNMessenger: sutton@t-surf.com  Yahoo: stanley_sutton


-----Original Message-----
From: xconq7-owner@sources.redhat.com
[mailto:xconq7-owner@sources.redhat.com] On Behalf Of Hans Ronne
Sent: Wednesday, December 04, 2002 11:49 AM
To: Lincoln Peters
Cc: xconq7@sources.redhat.com
Subject: Re: Using treasuries


>I meant that firing works correctly, but moving the ammo from the
>satellites to the firing units doesn't.  I can manually load the
>appropriate ammunition onto the controllers and fire at enemies until
>the ammunition runs out, but I want the ammo to be resupplied from the
>treasury once every turn.  As a reault, these units should never run
out
>of ammo unless there are too few satellites or the satellites are
>captured.
>
>I have observed that the treasury works in ancient.g so that if the
>treasury contains enough of the appropriate material, any unit that can
>build other units can take that material and use it to build something.
>This is, of course, quite different from using treasuries to move
>ammunition, but it seems to me like it *should* be possible.

OK, I took a look at the code and the answer is simple: there is no
support
in the kernel for using ammo from the treasury. Compare
check_build_action
which borrows material from the treasury to check_fire_at_action and
check_attack_action which do not.

The treasury is something I added back in 1999 for use with advanced
units,
which usually only do building. It was never fully supported in the
other
unit action code.

I'll put this on my to-do list for desired new features.

Hans

Hans Ronne

hronne@pp.sbbs.se


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]