| <<O>> Difference Topic IncreasedArmourSlots (r1.9 - 15 Sep 2006 - FantoM) |
| Changed: | |
| < < | Structure of the hierarchy: |
| > > |
Keeps track of all the types of wearable and how they fit together.
Provides methods for rapid querying.
Will build the datastructure described below during its construction.
DatastructureThe possible types of wearable, and the things they cover, go under, and where they fit on the body are all stored in an n-dimensional map.
Methods
|
| Deleted: | |
| < < | n-dimensional map. |
| Changed: | |
| < < |
- What about things that are not worn that provide protection? is armour not a wearable with ac, but perhaps a wearable with protection, and protection is something that provides an ac? - Does wearing one thing over the top of another make the one underneath provide less protection? |
| > > |
|
| <<O>> Difference Topic IncreasedArmourSlots (r1.8 - 14 Sep 2006 - FantoM) |
| Changed: | |
| < < | function: is_wearable() returns true. |
| > > |
Backwards compatibilityThe existing /std/modules/m_wearable defines the following which we must maintain:is_wearable() query_worn() query_worn_by() set_type() - just an alias for set_armour_type in current version Hook - HOOK_ITEM_WEAR_CHECK Hook - HOOK_ITEM_WORN Hook - HOOK_ITEM_REMOVAL_CHECK Hook - HOOK_ITEM_REMOVED The following are also defined - but we'll probably have to break them: query_armour_type() set_armour_type() test_armour_type() restored() remove() - triggers on the 'prepare_destruct' hook. drop_armour() - triggers on the object being moved It also defines these and hopefully we can remove them worn_attributes() wear() - this becomes a verb init() - all replaced by verbs do_remove() - this becomes a verb |
| Changed: | |
| < < | -- have to call it a night. thoughts for the next time: - What about things that are not worn that provide protection? is armour not a wearable with ac, but perhaps a wearable with protection, and protection is something that provides an ac? |
| > > |
Thoughts for the next time:- What about things that are not worn that provide protection? is armour not a wearable with ac, but perhaps a wearable with protection, and protection is something that provides an ac? |
| <<O>> Difference Topic IncreasedArmourSlots (r1.7 - 12 Sep 2006 - FantoM) |
| Added: | |
| > > |
|
| Changed: | |
| < < | We have a daemon that records the hierarchy of what goes over what. Armour becomes a Wearable with an armour class > 0. Each wearable object has a reference to the details in the daemon. The daemon provides methods for checking whether an item can be worn, given what the player is wearing. - TODO: how to handle effects that mess with what you can wear? Wear and remove become verbs that work with Wearables, instead of embedded within armour objects. |
| > > |
Nice to have
|
| Added: | |
| > > | |
| Added: | |
| > > |
m_wearablefunction: is_wearable() returns true. |
| <<O>> Difference Topic IncreasedArmourSlots (r1.6 - 11 Sep 2006 - FantoM) |
| Added: | |
| > > |
DesignWe have a daemon that records the hierarchy of what goes over what. Armour becomes a Wearable with an armour class > 0. Each wearable object has a reference to the details in the daemon. The daemon provides methods for checking whether an item can be worn, given what the player is wearing. - TODO: how to handle effects that mess with what you can wear? Wear and remove become verbs that work with Wearables, instead of embedded within armour objects.DaemonStructure of the hierarchy: n-dimensional map. -- have to call it a night. thoughts for the next time: - What about things that are not worn that provide protection? is armour not a wearable with ac, but perhaps a wearable with protection, and protection is something that provides an ac? - Does wearing one thing over the top of another make the one underneath provide less protection? |
| <<O>> Difference Topic IncreasedArmourSlots (r1.5 - 04 Sep 2006 - FreD) |
| Added: | |
| > > |
|
| Added: | |
| > > |
|
| <<O>> Difference Topic IncreasedArmourSlots (r1.4 - 04 Sep 2006 - LuCid) |
| Added: | |
| > > |
I see how this could work. Currently when you build an armour it asks you about weight. I think when you hit "?" in there, you should add a new blurb about how much that piece should be at minimum and max (instead of (now) telling someone to check the guidelines for that same info.) So, for example a ring: ? = 0-2. Then tell builder that if # = 2, at that weight nothing more could be worn over the hand. Now, a change like that could have a major negative effect on worn items in the mud. So a tool might have to be made to deside size (weight) of armours inplay. Alternatively, aside from that approach, you could add a new setting of "encumberance(?)" to the building of armours. With a setting of 0 (default) something could be worn over it (along the layer tree scale - something that should be viewable in-game in a builder help file somewhere,) and 1 being that it was too big/heavy/magical to allow more things to encumber it.
And as for the shield, i agree, it should be held under the hands/weapons section of the combat tree. Re: body I've seen armour consist of just a chestplate, where the sleeves (if any,) torso section, and leggings were all other pieces that are attached seperately. And i've seen full platemail that occupies the whole body. So for plate setting, i suggest the additional options of: upper, upper + sleeves, full (not including feet, head, or hands.) -- LuCid - 04 Sep 2006 |
| <<O>> Difference Topic IncreasedArmourSlots (r1.3 - 03 Sep 2006 - FantoM) |
| Changed: | |
| < < | -- Main.Fantom - 03 Sep 2006 |
| > > | -- FantoM - 03 Sep 2006 |
| <<O>> Difference Topic IncreasedArmourSlots (r1.2 - 03 Sep 2006 - FantoM) |
| Added: | |
| > > | Wearable slots are places that a player can wear items of armour or clothing. The current slots available are: body, boot, cloak, glove, helmet, legging, shield, sleeve, amulet, bracelet, earring, ring, badge, backback, magical. At this time a player can only wear one item in each slot except for "magical". A player can wear as many "magical" clothings as he likes. This is designed to allow coders the ability to create wierd stuff that the player wears that doesn't use up another slots - not normally something that the player can see. -- Main.Fantom - 03 Sep 2006 |
| Added: | |
| > > | -- LuCid - 02 Sep 2006 |
| Added: | |
| > > |
My questions regarding these new ones:
|
| Changed: | |
| < < | -- LuCid - 02 Sep 2006 |
| > > |
Tail is a new one.
Belt is a very interesting one.
I'd suggest that perhaps this is a good time to put in the concept of layers of clothing. You can wear groin armour, and then body armour over the top, and then your belt. Possibly the same for face & then helmet. I'm not sure about knee and then leggings. It would depend on the knee armour (and probably the legging armour?).
So if we say that there is a tree ( or several trees? )of clothing slots rather than just a list of totally independent slots, and each item fits a place in the tree and can choose if anything can be worn over it or under it, then we might solve this.
Trees:
ring -> glove ->
-> gauntlet
bracelet ->
elbow-> forearm ->
-> arm
upperarm ->
toe -> foot ->
-> boot
ankle ->
knee -> shin ->
-> leg
upperleg ->
neck ->
groin ->
neck ->
fronttorso -> -> body -> robe ->
-> torso -> -> belt -> -> cloak
backtorso -> -> backpack ->
face ->
-> helmet->
crown ->
Interpretting these trees (and using the top one as an example): A ring goes under a glove. A bracelet is independent of rings and gloves, but both bracelets and gloves (and thus rings) go under gauntlets. As a coder you could state that "this ring is bloody huge, nothing can be worn over it", thus stopping the wearing from wearing either gloves or gauntlets, but not bracelets. You could also do the reverse and say "these are skintight thieving gloves, you can't wear anything under them", thus stopping the player wearing rings.
Having drawn those I am no longer convinced that it is a tree (being something that in which each node has only 1 thing above it). For example I felt that "body" should have all of "belt", "robe" and "backpack" over it, and then cloak over all of those.
This "layered" approach to armour is more realistic, it also allows people to conceal what they are wearing, by wearing a cloak over everything.
You'll notice I left "shield" off a this point in time. I don't see it as a type of clothing. I think people just hold them.
-- FantoM - 03 Sep 2006 |
| <<O>> Difference Topic IncreasedArmourSlots (r1.1 - 01 Sep 2006 - LuCid) |
| Added: | |
| > > | %META:TOPICINFO{author="LuCid" date="1157127794" format="1.0" version="1.1"}% %META:TOPICPARENT{name="WebHome"}% I want to create further armour slots than we already have, so that I don't have to put in magical and/or unique for those pieces i want my monster to wear. ie. shin (lower legs,) knee, face, tail, hip (/belt), groin armours, etc. -- LuCid - 02 Sep 2006 |
| Topic IncreasedArmourSlots . { View | Diffs | r1.9 | > | r1.8 | > | r1.7 | More } |
|
Revision r1.1 - 01 Sep 2006 - 16:23 GMT - LuCid Revision r1.9 - 15 Sep 2006 - 12:30 GMT - FantoM |
Copyright © 2001 by the contributing authors.
All material on this collaboration tool is the property of the contributing authors. Ideas, requests, problems regarding Tharsis? Send feedback. |