From: Eric McDonald <mcdonald@phy.cmich.edu>
To: Lincoln Peters <sampln@sbcglobal.net>
Cc: Xconq list <xconq7@sources.redhat.com>
Subject: Re: Item Units
Date: Tue, 24 Aug 2004 03:32:00 -0000 [thread overview]
Message-ID: <412AAFCA.1030403@phy.cmich.edu> (raw)
In-Reply-To: <1093315174.2792.30463.camel@localhost>
Lincoln Peters wrote:
>>Yes. I bet it will turn up some bugs. Depends on how well the
>>actor/agent (unit/unit2) separation has been honored and enforced in the
>>kernel action code.... Actors are units which have ACP's and are doing
>>the controlling, whereas agents are being controlled and using the
>>actor's ACP's. Or, at least, that is my understanding of the code.
>
> The way it seemed to be working was that agents had their own ACP's, but
> they stopped working if they moved too far away from the actor.
Right. I had gathered that from the code.
>I
> didn't notice anything about agents using an actor's ACP's, although
> that wouldn't have made sense for this game.
I don't think there is any GDL support for this particular aspect, and I
don't remember seeing much in the action-related code that would check
any GDL props or tables before deciding that 'unit' and 'unit2' are not
the same. I was just mentioning this as another aspect if "control" was
fully implemented.
> One thing that surprised me was that if an agent went out of range, it
> became not just impossible to make it act, it became impossible to
> select it at all! I don't know if this is how it's supposed to work.
One should still be able to survey it, but I would expect that one could
not select it for action.
> True, but I had hoped that I could prevent a knight from wearing two
> suits of armor at all, thus avoiding this whole issue.
I see. I thought you were just wondering whether there was an
encumberment mechanism.
> Although I might
> want to set up a game to allow knights in light armor to move faster
> than knights in heavy armor...
Thought so. :-)
> But can you limit groups of units, so that a knight can only wear one
> suit of armor even if I define multiple kinds of armor?
Only through size (which is why I suggested a large square for it). This
does break down somewhat with smaller items. One possible workaround,
though quite hackish, would be to create container units that the unit
carries. So you would have a "gloves and gauntlets" container which
could only carry one instance of any of your assorted gloves and
gauntlets types. And likewise for the other groups. This does create
another layer of containment, which when coupled with the current Tcl/Tk
interface, could be messy to navigate (per our earlier discussion).
> That had not occurred to me. However, I notice one possible exploit in
> this solution:
>
> Suppose that a knight's generic capacity is 24. A suit of armor is size
> 13, a shield is size 6, and a helmet is size 5. If a knight has no
> armor, he can carry 4 shields instead!
If you have only one shield type, then you can limit it with
'occupant-max'. If you have more than one shield type defined, then,
yes, this does break down. However, see my "container units" suggestion.
I think, in the long run, the concept of "unit class" would be useful in
areas:
(1) This whole capacity restriction mess that we jsut discussed. The
mess also appears with 'unit-capacity-x'. Consider a city unit which has
exclusive capacity for 4 aircraft (it has an airfield, say). With the
currently available, Xconq tools, you have no way of saying that only up
to 4 aircraft of possibly varying types can be placed in the airfield.
If you attempt to limit each type to 4 and you have 4 types then you
would end up with the possibility of 16 aircraft in the airfield, 4 from
each type.
(2) Creating hierarchies in the help system, which would not only be
useful for guiding a player to groups of related units, but would also
help quell the tendency for oversized "Unit Types" sections in the menus
as you and Elijah race onwards towards the 10000 unit mark.
Eric
next prev parent reply other threads:[~2004-08-24 3:02 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-20 16:22 Three thoughts mskala
2004-08-20 18:34 ` Eric McDonald
2004-08-20 21:17 ` Andreas Bringedal
2004-08-20 21:28 ` Eric McDonald
2004-08-20 23:57 ` Andreas Bringedal
2004-08-21 1:21 ` Eric McDonald
2004-08-21 4:35 ` Jim Kingdon
2004-08-21 20:38 ` Jim Kingdon
2004-08-20 22:03 ` Elijah Meeks
2004-08-20 23:27 ` Eric McDonald
2004-08-21 1:17 ` mskala
2004-08-21 2:31 ` Eric McDonald
2004-08-21 4:33 ` mskala
2004-08-22 3:09 ` Hans Ronne
2004-08-22 6:38 ` Item Units Elijah Meeks
2004-08-22 9:37 ` Eric McDonald
2004-08-24 1:43 ` Lincoln Peters
2004-08-24 2:38 ` Eric McDonald
2004-08-24 2:51 ` Lincoln Peters
2004-08-24 3:32 ` Eric McDonald [this message]
2004-08-22 14:00 ` Three thoughts mskala
2004-08-22 18:56 ` Hans Ronne
2004-08-22 19:16 ` Lincoln Peters
2004-08-23 4:31 ` Jim Kingdon
2004-08-23 13:04 ` Elijah Meeks
2004-08-24 18:07 ` Eric McDonald
2004-08-24 20:59 ` Elijah Meeks
2004-08-25 0:54 ` Unit-Image Bug Elijah Meeks
2004-08-25 4:58 ` Eric McDonald
2004-08-23 16:48 ` Three thoughts Eric McDonald
2004-08-24 0:55 ` Lincoln Peters
2004-08-24 2:09 ` Eric McDonald
2004-08-24 3:02 ` Lincoln Peters
2004-08-24 18:12 ` Eric McDonald
2004-08-25 5:34 ` Jim Kingdon
2004-08-25 17:16 ` Lincoln Peters
2004-08-25 22:09 ` Jim Kingdon
2004-08-26 2:15 ` Eric McDonald
2004-08-26 6:17 ` Jim Kingdon
2004-08-26 19:12 ` Eric McDonald
2004-08-26 22:08 ` CXP??? Elijah Meeks
2004-08-27 1:50 ` CXP??? Lincoln Peters
2004-08-27 5:10 ` CXP??? Eric McDonald
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=412AAFCA.1030403@phy.cmich.edu \
--to=mcdonald@phy.cmich.edu \
--cc=sampln@sbcglobal.net \
--cc=xconq7@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).