[Crossfire-wiki] [Crossfire DokuWiki] page changed: dev:object_fields

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Mon Mar 5 15:44:46 CST 2007


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2007/03/05 15:44
User        : ryo
Edit Summary: key/value

@@ -726,12 +726,55 @@
  ==== dam ====
  Type: sint16
  
  Meaning:
+ 
  
  
  ==== luck ====
  Type: sint8
  
  Meaning:
  
  
+ ===== Key/value fields =====
+ Those fields are not part of the ''object'' or ''Stats'' structures, but used through the key/value mechanism.
+ 
+ ==== price_adjustment, price_adjustment_buy and price_adjustment_sell ====
+ Those control the price the item should have. They are a ratio from the item's raw value, and are applied without any bargaining / charism / shop specialization effect.
+ 
+ Values should be a valid float (as recognized by ''atof'').
+ 
+ If price_adjustment is set, it will override the other 2 keys. Else any of the 2 can be not set without any side effect.
+ 
+ ==== divine_giver_name ====
+ For god-given items, name of the god that gave the item. Used to remove them if player switches cult.
+ 
+ ==== divine_blessing_name ====
+ Specified god has blessed the item. Used to avoid accumulating blessings.
+ 
+ ==== item_owner ====
+ Player owning the item, so other players can't bless it. If set, the item can't be applied by another player unless he has enough experience (see item_willpower).
+ 
+ ==== generator_code ====
+ For GENERATOR ({FIXME} real flag) objects, a key to copy to generated monsters, so they can be tracer.
+ 
+ ==== generator_max ====
+ For GENERATOR ({FIXME} ditto) objects, the maximum number of generated monsters allowed at the same time.
+ 
+ ==== generator_name ====
+ Name of the generator {FIXME}, used for generator_code value. If unset will use generator's name, else ''generator''.
+ 
+ ==== on_use_yield ====
+ Should be the name of an archetype. When containing object is applied, this specific object is generated, and inserted at the same place as the containing object. Used mostly for giving empty bottles when drinking stuff.
+ 
+ ==== item_willpower ====
+ If set incombination with item_owner, an item will refuse to be applied by another player who doesn't have at least that much experience.
+ 
+ ==== passenger_limit ====
+ For TRANSPORT ({FIXME} real type), the maximum players can board at the same time.
+ 
+ ==== face_full and anim_full ====
+ For TRANSPORT, face to use when it's full.
+ 
+ ==== weight_speed_ratio and base_speed ====
+ Control the max speed of the TRANSPORT, based on the formula speed = base_speed - (base_speed * weight the transport is carrying * weight_speed_ratio) / (transport's weight_limit * 100


IP-Address  : 82.236.87.204
Old Revision: http://wiki.metalforge.net/doku.php/dev:object_fields?rev=1171824805
New Revision: http://wiki.metalforge.net/doku.php/dev:object_fields

-- 
This mail was generated by DokuWiki at
http://wiki.metalforge.net/




More information about the crossfire-wiki mailing list