瀏覽代碼

[changed] Rewritten instructions for skill attribute bleed through as it was impossible to understand. Much thanks to Philo for deducing the impact by reading the code itself

KevinSmarts 3 年之前
父節點
當前提交
cb47b0fc48
共有 1 個文件被更改,包括 21 次插入7 次删除
  1. 21 7
      locations/stat_sklattrib_lvlset.qsrc

+ 21 - 7
locations/stat_sklattrib_lvlset.qsrc

@@ -1,6 +1,6 @@
 # stat_sklattrib_lvlset
 
-!!Attribute set section
+!!--------------- Attribute set section ------------------------
 !!This is where an attribute pcs_"name" is set by "name"_lvl and any adjustments are added
 !!Even though most of these could be done without doing a _lvl to pcs_ conversion, doing so is future proofing
 
@@ -31,14 +31,28 @@ if pcs_prcptn < 1: pcs_prcptn = 1
 pcs_magik = magik_lvl
 if pcs_magik < 0: pcs_magik = 0
 
-!!Skill set Section
+!!---------------------- Skill set Section -----------------------
 !!Each skill has three lines, the first is the comment that says what the skill is, the next that sets pcs_"name", and the finial which sets "name"[1] to [x] with the attribute index of the attribute(s) ending with a -1 to show end.
 !! Clarification on the third line:
-!!  These are the numerical attribute IDs (found at the top of stat_sklattrib) that are associated with the skill. They get a small portion (1/5) of the skill''s exp.
-!!  This means they don''t necessarily need to contribute to this skills pcs_X value, merely if it makes sense for an attribute to increase slightly due to Sveta
-!!  gaining experience with said skill, then you can do that by adding the attribute''s numerical ID there.
-!! Example:
-!!  the heel skill doesn''t benefit from agility, reaction and charisma, however they are listed in the third line (1, 4, 6) and consequently grow a little when it increases
+!!  These are the numerical attribute IDs (listed below) that are associated with the skill. They get a small portion (1/5) of the skill''s exp.
+
+!! Example
+!! jab[1] = 0 would add to attribute 0 which is strength
+!! jab[2] = 1 would add to attribute 1 which is agility
+!! jab[3] = -1 which closes the loop and must be included
+
+!!Attribute variable list
+!!$att_name[0] = 'stren'
+!!$att_name[1] = 'agil'
+!!$att_name[2] = 'vital'
+!!$att_name[3] = 'intel'
+!!$att_name[4] = 'react'
+!!$att_name[5] = 'sprt'
+!!$att_name[6] = 'chrsm'
+!!$att_name[7] = 'prcptn'
+!!$att_name[8] = 'magik'
+
+
 
 !!Jabs; Quick strikes that do not have much power
 pcs_jab = (jab_lvl + (pcs_agil * 2 + pcs_stren) / 3) / 2