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

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Tue Apr 3 16:13:05 CDT 2007


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

Date        : 2007/04/03 16:13
User        : ryo
Edit Summary: document harvesting

@@ -225,6 +225,32 @@
  ==== SK_EVOCATION ====
  ==== SK_SORCERY ====
  ==== SK_TWO_HANDED_WEAPON ====
  ==== SK_WRAITH_FEED ====
+ 
  ==== SK_HARVESTING ====
+ This skill lets a player "grab" items from a spot. Example is fishing, where the player "grabs" fish from the sea/a river.
+ 
+ Main function is ''server/c_misc.c:do_harvest()''.
+ 
+ The skill object should have the following attributes:
+   * ''slaying'': the raw verb that will be displayed to the player. Example: ''fish''.
+ 
+ This skill can only be used through a skill tool, which should have the following parameters set:
+   * ''harvest_race'': an identifier used to link the skill to what it can grab. Example: ''fish''
+   * ''harvest_tool'': a subtype for the skill. Used to limit what this tool can grab. Example: ''pole'', ''fishingnet'', ...
+   * ''harvest_speed'': speed cost of using the tool. If positive, absolute speed. If negative, ratio of player's speed
+ 
+ In order for the player to grab items, spots where the skill applies should contain in their inventory items the following values:
+   * ''harvest_race'': should match the tool's
+   * ''harvest_exp'': experience gain when successfully harvesting
+   * ''harvest_level'': base level the item can be harvested at
+   * ''harvest_tool'': optional, if set can only be harvested by a tool with the same value
+ 
+ If multiple items are available, a random one in possible ones is chosen (with a maximum of 10 objects to choose from).
+ 
+ The harvesting probability on a 100 basis is (with ''item_level'' the target item's ''harvest_level'' and ''skill_level'' the player's level in the skill):
+   * if item_level >= skill_level + 10, can't get
+   * if item_level >= skill_level, 10 + skill_level - item_level
+   * if item_level >= skill_level - 10, 10 + (skill_level - item_level) * 2;
+   * maximum 30
  


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

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




More information about the crossfire-wiki mailing list