--- deliantra/server/pod/objects.pod 2009/01/12 00:17:23 1.30 +++ deliantra/server/pod/objects.pod 2010/03/26 20:30:32 1.36 @@ -35,13 +35,13 @@ This is an example of an archetype: - Object button_trigger + object button_trigger name button type 30 - face button_sma.111 + face button_sma.x11 anim - button_sma.111 - button_sma.112 + button_sma.x11 + button_sma.x12 mina is_animated 0 exp 30 @@ -116,7 +116,7 @@ glowing at all). Negative glow radii darken areas - currently, negative glow radii are stronger than positive ones. -=item I +=item I If this field is greater than MIN_ACTIVE_SPEED (~0.0001) the object is placed on the active object list and will be processed each tick (see also speed_left!). @@ -124,7 +124,11 @@ If I drops below the MIN_ACTIVE_SPEED the object is removed from the active object list and it won't experience any processing per tick. -=item I +Negative speed settings in archetypes and files cause a speed_left +randomisation on load or instantiatian, but for calculations, the absolute +value is used always. + +=item I If this field is greater than 0 and the object is on the active list (mostly means it's speed is also greater than 0): @@ -140,10 +144,10 @@ the more seldom the object is processed. And the higher I is the more often the object is processed. -=item I +=item I When this field is set the object will be linked to a connection with the -id . What happens when the connection is 'activated' depends on the +same . What happens when the connection is 'activated' depends on the type of the object. FLAG_ACTIVATE_ON_PUSH and FLAG_ACTIVATE_ON_RELEASE they will control @@ -331,6 +335,24 @@ description of the B type. How easy you can light an item depends partially on the material of the object. +=item FLAG_MONSTER + +Enables NPC behaviour in general (both monster AI and friendly AI). Numerous fields +change their meaning, including: + +=over 4 + +=item I + +Governs the "wake-up radius" - the radius within a monster detects an enemy. + +Also, I governs pathfinding intelligence: 8 and up means the monster +will partake in basic smell finding. 10 and up additionally spreads smell +knowledge, and 15 and up additionally will try to perturb the path as to +find shortcuts. + +=back + =back =head2 Description of type specific fields and behaviour @@ -446,9 +468,9 @@ restoration potion or improvement potion. See include/attackinc.h for the bits of these types. -If AT_DEPLETE is set the player will be restored and the ARCH_DEPLETION +If AT_DEPLETE is set the player will be restored and the "depletion" will be removed from him. If the potion has FLAG_CURSED or FLAG_DAMNED -set the player will be drained a random stat by inserting an ARCH_DEPLETION +set the player will be drained a random stat by inserting an "depletion" into him. If AT_GODPOWER is enabled the player will gain +1 maxvalue in his hp, sp or grace stat. @@ -500,7 +522,7 @@ =back -=head3 B - type 6 - Eatable stuff +=head3 B - type 6 - Edible stuff This is for objects that are representing general eatables like beef or bread. @@ -731,9 +753,9 @@ While flying the arrows I is decreased by 0.05 each time it's moved. If the I is above 10.0 it goes straight through the creature it hits and -it's I is reduced by 1. If the I is lower or equal 10.0 the arrow is -stopped and either sticked into the victim (see I field description) or -put on it's map square (if it didn't break, see description of the I field). +its I is reduced by 1. If the I is lower or equal 10.0 the arrow is +stopped and either stuck into the victim (see I field description) or +put on its map square (if it didn't break, see description of the I field). =item I @@ -955,7 +977,7 @@ If FLAG_LIVE_SAVE is not set it is the absolute number of times the creator can be used. -=item I +=item I If I is set the creator will create an object periodically, see I and I fields in the general object field description @@ -970,12 +992,43 @@ If the inventory of the creator is empty new objects will be derived from the archetype named by . -=item I +=item I See generic object field description. =back +=head3 B - type 43 - Skills + +This type is basically for representing skills in the game. + +=over 4 + +=item I + +=item I + +The type of weapon or ranged item compatible with this skill (For ranged +and combat attacks). + +=item I + +The skill identifier used by other items, usually the skill name + +=item I + +not used? + +=item I + +Base amount of experience in a skill, for skills not starting at zero. + +=item I + +Experience is multiplied by this factor. + +=back + =head3 B - type 54 - Drinkable stuff See B description. @@ -1029,14 +1082,14 @@ If this field is set the inventory checker will search for an object which has the archetype name that matches . -=item I +=item I This is the connection that will be activated. The connection is 'pushed' when someone enters the space with the inventory checker, and it is 'released' when he leaves it. -See also the description of the I field in the generic object field -section. +See also the description of the I field in the generic object +field section. =back @@ -1079,7 +1132,7 @@ The archetype name of the objects that should be multiplied. -=item I +=item I See generic object field description. @@ -1107,7 +1160,7 @@ connection is deactivated, and I is 1 the hole will remain closed until the connection was triggered once. -=item I +=item I This is the connection id, which lets the hole opening or closing when activated. The flags FLAG_ACTIVATE_ON_PUSH and FLAG_ACTIVATE_ON_RELEASE control