| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<title>Crossfire Playerbook - Chapter 5</title> |
| 5 |
</head> |
| 6 |
<body> |
| 7 |
|
| 8 |
<h1>Skills System</h1> |
| 9 |
|
| 10 |
<h2><a name="5.1.0">Description</h2> |
| 11 |
|
| 12 |
Under the skills system the flow of play changes dramatically. Instead of |
| 13 |
gaining experience for basically just killing monsters (and disarming traps) |
| 14 |
players will now gain a variety of experience through the use of skills. |
| 15 |
Some skills replicate old functions in the game (e.g. melee weapons skill, |
| 16 |
missile weapon skill) while others add new functionality (e.g. stealing, |
| 17 |
hiding, writing, etc). A complete list of the available skills can be found |
| 18 |
in table <a href="#table_skill_stats">skill statistics</a>. Appendix <a |
| 19 |
href="appB.html">B (skills)</a> contains descriptions for many of the |
| 20 |
skills. <p> |
| 21 |
|
| 22 |
<em>Note:</em> The skills system is enabled as the default option |
| 23 |
as of version 0.92.0<p> |
| 24 |
<em>Note2:</em> The new skills/experience system is compatible |
| 25 |
with character files from at least version 0.91.1 onward. |
| 26 |
|
| 27 |
<a name="table_skill_stats"> |
| 28 |
<center> |
| 29 |
<table border=1 cellpadding=5"> |
| 30 |
<tr><th>Skill</th><th>Experience Category</th><th colspan=3>Associated Stats</th></tr> |
| 31 |
<tr><th></th><th></th><th>Stat 1</th><th>Stat 2</th><th>Stat 3</th></tr> |
| 32 |
<!--#include file="skill_stat.html"--> |
| 33 |
</table> |
| 34 |
Skills</center> |
| 35 |
<p> |
| 36 |
<h2><a name="5.2.0">About experience and skills</h2> |
| 37 |
<h3><a name="5.2.1">Associated and miscellaneous skills</h3> |
| 38 |
|
| 39 |
In <em>Crossfire</em> two types of skills exist; The first kind, ``associated'' |
| 40 |
skills, are those skills which are <em>associated with a category of |
| 41 |
experience</em>. The other kind of skill, ``miscellaneous'' skills, |
| 42 |
are <em>not</em> related to any experience category. |
| 43 |
<p> |
| 44 |
The main difference between these two kinds of skills is in the |
| 45 |
result of their use. |
| 46 |
When associated skills are used <em>successfully</em> experience is |
| 47 |
accrued in the experience category <em>associated with that skill</em>. |
| 48 |
In contrast, the use of miscellaneous skills <em>never</em> gains |
| 49 |
the player any experience regardless of the success in using it. |
| 50 |
<p> |
| 51 |
<em>Both</em> miscellaneous and associated skills can <em>fail</em>. This means |
| 52 |
that the attempt to use the skill was unsuccessful. <em>Both</em> |
| 53 |
miscellaneous and associated skills <em>can</em> have certain |
| 54 |
primary stats <em>associated</em> with them. These associated stats can help |
| 55 |
to determine if the use of a skill is successful and to what |
| 56 |
<em>degree</em> it is successful. |
| 57 |
<p> |
| 58 |
All gained experience is modified by the associated |
| 59 |
stats for that skill (table <a href="#table_skill_stats">skill statistics</a>) and then the |
| 60 |
appropriate experience category automatically updated as needed. |
| 61 |
<p> |
| 62 |
<h3><a name="5.2.2">Restrictions on skills use and gaining experience</h3> |
| 63 |
|
| 64 |
Neither a character's stats nor the character class restricts the |
| 65 |
player from gaining experience in any of the experience |
| 66 |
categories. Also, there are no inherent |
| 67 |
restrictions on character skill use-any player may |
| 68 |
use any <em>acquired</em> skill. |
| 69 |
<p> |
| 70 |
<center> |
| 71 |
<table border=1 cellpadding=5><col align=center> |
| 72 |
<a name="table_exp_stat_mod"> |
| 73 |
<tr><th>Average of associated stats</th> |
| 74 |
<th>Experience gained multiplier</th> |
| 75 |
<th>Average of associated stats</th> |
| 76 |
<th>Experience gained multiplier</th></tr> |
| 77 |
<!--#include file="statskmod.html"--> |
| 78 |
</table> |
| 79 |
How stats associated with a skill modify gained experience<p> |
| 80 |
</center> |
| 81 |
<p> |
| 82 |
<h3><a name="5.2.3">Algorithm for Experience Gain under the skills system</h3> |
| 83 |
<p> |
| 84 |
Here we take the view that a player must 'overcome an opponent' |
| 85 |
in order to gain experience. Examples include foes killed in combat, |
| 86 |
finding/disarming a trap, stealing from some being, identifying |
| 87 |
an object, etc. |
| 88 |
<p> |
| 89 |
Gained experience is based primarily on the difference in levels |
| 90 |
between 'opponents', experience point value of a ``vanquished foe'', |
| 91 |
the values of the associated stats of the skill being used and |
| 92 |
two factors that are set internally <em>Note:</em> If you want to |
| 93 |
know more about this, check out the skills_developers.doc.) |
| 94 |
<p> |
| 95 |
Below the algorithm for experience gain is given where player ``pl'' |
| 96 |
that has ``vanquished'' opponent ``op'' using skill ``sk'':<p> |
| 97 |
<quote> |
| 98 |
EXP GAIN = (EXP(op) + EXP(sk)) * lvl_mult * stat_mult<p> |
| 99 |
</quote> |
| 100 |
where EXP(sk) is a constant award based on the skill used, |
| 101 |
EXP(op) is the base experience award for `op' which depends |
| 102 |
on what op is (see below), |
| 103 |
stat_mult is taken from table <a href="#table_exp_stat_mod">experience modification</a>, |
| 104 |
and lvl_mult is: |
| 105 |
<p> |
| 106 |
For level(pl) < level(op):: <p> |
| 107 |
<samp> |
| 108 |
lvl_mult = FACTOR(sk) * (level(op) - level(pl))<p> |
| 109 |
</samp> |
| 110 |
For level(pl) = level(op):: <p> |
| 111 |
<samp> |
| 112 |
lvl_mult = FACTOR(sk)<p> |
| 113 |
</samp> |
| 114 |
For level(pl) > level(op):: <p> |
| 115 |
<samp> |
| 116 |
lvl_mult = (level(op)/level(pl)); <p> |
| 117 |
</samp> |
| 118 |
where level(op) is the level of `op', level(pl) is the level |
| 119 |
of the player, and FACTOR(sk) is an internal factor based on |
| 120 |
the skill used by pl. |
| 121 |
<p> |
| 122 |
There are three different cases for how EXP(op) can be computed: |
| 123 |
<ol> |
| 124 |
<li> <strong>op is a living creature</strong>: EXP(op) is just the base |
| 125 |
experience award given in the <A href="../spoiler-html/spoiler.html">spoiler</a> . |
| 126 |
|
| 127 |
<li><strong>op is a trap</strong>: EXP(op) = 1/(fraction of the time which the |
| 128 |
trap is visible). Thus, traps which are highly <em>visible</em> get <em>lower</em> |
| 129 |
values. |
| 130 |
|
| 131 |
<li><strong>op is not a trap but is non-living</strong>: EXP(op) = internal |
| 132 |
experience award of the item. Also, the lvl_mult is multiplied by |
| 133 |
any <samp>magic</samp> enchantment on the item. |
| 134 |
</ol> |
| 135 |
|
| 136 |
<p> |
| 137 |
<h2><a name="5.3.0">How skills are used</h2> |
| 138 |
<centeR> |
| 139 |
<a name="table_skill_cmd"> |
| 140 |
<table cellpadding=5 border=1> |
| 141 |
<tr><td><samp>skills</samp></td><td> This command lists all the player's |
| 142 |
current known skills, their level |
| 143 |
of use and the associated experience |
| 144 |
category of each skill. </td></tr> |
| 145 |
|
| 146 |
<tr><td> <samp>ready_skill <skill></samp></td><td> This command changes |
| 147 |
the player's current readied skill to |
| 148 |
<samp><skill></samp>. </td></tr> |
| 149 |
|
| 150 |
<tr><Td> <samp>use_skill <skill> <string></samp></td><td> This |
| 151 |
command changes the player's current |
| 152 |
readied skill <em>and</em> then executes it |
| 153 |
in the facing direction of the player. |
| 154 |
Similar in action to the <samp>invoke</samp> |
| 155 |
command. </td></tr> |
| 156 |
</table> |
| 157 |
Skills commands<p> |
| 158 |
</center> |
| 159 |
|
| 160 |
Three player commands are related to skills use: <samp>ready_skill</samp>, |
| 161 |
<samp>use_skill</samp>, and <Samp>skills</samp> (see table <a |
| 162 |
href="#table_skill_cmd">skill commands</a>). Generally, a player will use a |
| 163 |
skill by first readying the right one, with the <samp>ready_skill</samp> |
| 164 |
command and then making a ranged ``attack'' to activate the skill; using |
| 165 |
most skills is just like firing a wand or a bow. In a few cases however, a |
| 166 |
skill is be used just by having it <em>readied</em>. For example, the |
| 167 |
<samp>mountaineer</samp> skill allows favorable movement though hilly |
| 168 |
terrain while it is readied.<p> |
| 169 |
|
| 170 |
To change to a new skill, a player can use either the <samp>use_skill</samp> |
| 171 |
or <samp>ready_skill</samp> commands, but note that the use of several |
| 172 |
common items can automatically change the player's current skill too. |
| 173 |
Examples of this include readying a bow (which will cause the code to make |
| 174 |
the player's current skill <samp>missile_weapons</samp>) or readying a melee |
| 175 |
weapon (current skill auto-matically becomes <samp>melee weapons</samp>). |
| 176 |
Also, some player actions can cause a change in the current skill. Running |
| 177 |
into a monster while you have a readied weapon in your inventory causes the |
| 178 |
code to automatically make our current skill <samp>melee weapons</samp>. As |
| 179 |
another example of this-casting a spell will cause the code to switch the |
| 180 |
current skill to <samp>wizardry</samp> or <samp>praying</samp> (as |
| 181 |
appropriate to the spell type).<p> |
| 182 |
|
| 183 |
It is not possible to use more than one skill at a time.<p> |
| 184 |
|
| 185 |
<h2><a name="5.4.0">Acquiring skills</h2> |
| 186 |
|
| 187 |
Skills may be gained in two ways. In the first, new skills may |
| 188 |
<em>learned</em>. This is done by reading a ``skill scroll'' and the |
| 189 |
process is very similar to learning a spell. Just as in attempts to learn |
| 190 |
incantations, success in learning skills is dependent on a random test based |
| 191 |
on the learner's INT. Using your INT stat, look in the learn% column in |
| 192 |
table <a href="chap2.html#table_pri_eff">primary stat effects</a> to find |
| 193 |
your % chance of learning a skill. Once you hit 100%, you will always be |
| 194 |
successfull in learning new skills. <p> |
| 195 |
|
| 196 |
The acquisition of a <em>skill tool</em> will also allow the player to use |
| 197 |
a new skill. An example of a skill tool is ``lockpicks'' |
| 198 |
<!--#include file="lockpicks.html"--> |
| 199 |
(which allow the |
| 200 |
player to pick door locks). The player merely applies the skill |
| 201 |
tool in order to gain use of the new skill. If the tool is unapplied, |
| 202 |
the player loses the use of the skill associated with the tool. |
| 203 |
<p> |
| 204 |
|
| 205 |
After a new skill is gained (either learned or if player has an applied |
| 206 |
skill tool) it will appear on the player's skill roster (use the 'skills' |
| 207 |
command to view its status). If the new skill is an associated skill, then |
| 208 |
it will automatically be gained at the player's current level in the |
| 209 |
appropriate experience category. For example, Stilco the Wraith, who is 5th |
| 210 |
level in <samp>agility</samp>, buys a set of lockpicks and applies them. He |
| 211 |
may now use the skill lockpicking at 5th level of ability since that is an |
| 212 |
<samp>agility</samp> associated skill. |
| 213 |
<p> |
| 214 |
<a href="handbook.html"><img src="fig/book.gif">Back to table of contents</a><br> |
| 215 |
<a href="chap4.html"><img src="fig/stairup.gif">Go to chapter 4</a><br> |
| 216 |
<a href="chap6.html"><img src="fig/stairdown.gif">Go to chapter 6</a><br> |