Post by Boaster on Sept 4, 2005 22:44:44 GMT -6
Open "gs/levlmod.gs" and look for the following near the top (inset quotations).
/val a u unitdictxref /strength get getuniteffectivedata def /dummy4{/dwh exch def dwh 0 get val gt dwh 0 get val eq or{exit}if}forall dwh 1 get /m exch def m 0 eq not{a u unitdictxref /attack get m 0 MODIFIER_FLAG_FROM_LEVEL -1 -1 0 addunitmodifier}if
/val a u unitdictxref /dexterity get getuniteffectivedata def /dummy4{/dwh exch def dwh 0 get val gt dwh 0 get val eq or{exit}if}forall dwh 2 get /m exch def m 0 eq not{a u unitdictxref /armor get m 0 MODIFIER_FLAG_FROM_LEVEL -1 -1 0 addunitmodifier}if
/val a u unitdictxref /wisdom get getuniteffectivedata def /dummy4{/dwh exch def dwh 0 get val gt dwh 0 get val eq or{exit}if}forall dwh 3 get /m exch def m 0 eq not{a u unitdictxref /maximum_mana get m 0 MODIFIER_FLAG_FROM_LEVEL -1 -1 0 addunitmodifier}if
/val a u unitdictxref /dexterity get getuniteffectivedata def /dummy4{/dwh exch def dwh 0 get val gt dwh 0 get val eq or{exit}if}forall dwh 4 get /m exch def m 0 eq not{a u unitdictxref /ranged_attack get m 0 MODIFIER_FLAG_FROM_LEVEL -1 -1 0 addunitmodifier}if end}/dummy 10 dict replace
Strength affects Attack values.
Dexterity affects Armor and Ranged Attack values.
Wisdom affects Mana values.
[0 0 0 0 0]
[1 0 0 0 0]
[2 0 0 0 0]
[3 0 0 0 0]
[4 0 0 0 0]
[5 0 0 0 0]
[6 0 0 0 0]
[7 0 0 0 0]
[8 0 0 0 0]
[9 1 1 1 1]
[10 2 2 2 2]
[11 3 2 3 2]
[12 4 3 4 3]
[13 5 4 5 4]
[14 6 4 6 4]
[15 7 5 7 5]
[16 8 6 8 6]
[17 9 6 9 6]
[18 10 7 10 7]
[19 11 8 11 8]
[20 12 8 12 8]
[21 13 9 13 9]
[22 14 10 14 10]
[23 15 10 15 10]
[24 16 11 16 11]
[25 17 12 17 12]
[26 18 12 18 12]
[27 19 13 19 13]
[28 20 14 20 14]
[29 20 14 20 14]
[30 21 15 21 15]
[31 21 16 21 16]
[32 22 16 22 16]
[33 22 17 22 17]
[34 23 18 23 18]
[35 23 18 23 18]
[36 24 19 24 19]
[37 24 20 24 20]
[38 25 20 25 20]
[39 25 21 25 21]
[40 26 22 26 22]
The first number is the current value of the stat.
For example, you have 25 Strength: [25 17 12 17 12].
25 Strength means you will have +17 Attack.
25 Dexterity means you will have +12 Armor.
25 Wisdom means you will have +17 Mana.
25 Dexterity means you will have +12 Ranged Attack.
Here is how it goes: Current Value of (Strength/Dexterity/Wisdom); Attack Bonus; Armor Bonus; Mana Bonus; Ranged Attack Bonus.
In a default "gs/levlmod.gs" the brackets will be grouped up near the bottom, but above DELDR. Just do a text search for /dummy4 and you will find it easily. Remember not to mess the brackets up.
/val a u unitdictxref /strength get getuniteffectivedata def /dummy4{/dwh exch def dwh 0 get val gt dwh 0 get val eq or{exit}if}forall dwh 1 get /m exch def m 0 eq not{a u unitdictxref /attack get m 0 MODIFIER_FLAG_FROM_LEVEL -1 -1 0 addunitmodifier}if
/val a u unitdictxref /dexterity get getuniteffectivedata def /dummy4{/dwh exch def dwh 0 get val gt dwh 0 get val eq or{exit}if}forall dwh 2 get /m exch def m 0 eq not{a u unitdictxref /armor get m 0 MODIFIER_FLAG_FROM_LEVEL -1 -1 0 addunitmodifier}if
/val a u unitdictxref /wisdom get getuniteffectivedata def /dummy4{/dwh exch def dwh 0 get val gt dwh 0 get val eq or{exit}if}forall dwh 3 get /m exch def m 0 eq not{a u unitdictxref /maximum_mana get m 0 MODIFIER_FLAG_FROM_LEVEL -1 -1 0 addunitmodifier}if
/val a u unitdictxref /dexterity get getuniteffectivedata def /dummy4{/dwh exch def dwh 0 get val gt dwh 0 get val eq or{exit}if}forall dwh 4 get /m exch def m 0 eq not{a u unitdictxref /ranged_attack get m 0 MODIFIER_FLAG_FROM_LEVEL -1 -1 0 addunitmodifier}if end}/dummy 10 dict replace
Strength affects Attack values.
Dexterity affects Armor and Ranged Attack values.
Wisdom affects Mana values.
[0 0 0 0 0]
[1 0 0 0 0]
[2 0 0 0 0]
[3 0 0 0 0]
[4 0 0 0 0]
[5 0 0 0 0]
[6 0 0 0 0]
[7 0 0 0 0]
[8 0 0 0 0]
[9 1 1 1 1]
[10 2 2 2 2]
[11 3 2 3 2]
[12 4 3 4 3]
[13 5 4 5 4]
[14 6 4 6 4]
[15 7 5 7 5]
[16 8 6 8 6]
[17 9 6 9 6]
[18 10 7 10 7]
[19 11 8 11 8]
[20 12 8 12 8]
[21 13 9 13 9]
[22 14 10 14 10]
[23 15 10 15 10]
[24 16 11 16 11]
[25 17 12 17 12]
[26 18 12 18 12]
[27 19 13 19 13]
[28 20 14 20 14]
[29 20 14 20 14]
[30 21 15 21 15]
[31 21 16 21 16]
[32 22 16 22 16]
[33 22 17 22 17]
[34 23 18 23 18]
[35 23 18 23 18]
[36 24 19 24 19]
[37 24 20 24 20]
[38 25 20 25 20]
[39 25 21 25 21]
[40 26 22 26 22]
The first number is the current value of the stat.
For example, you have 25 Strength: [25 17 12 17 12].
25 Strength means you will have +17 Attack.
25 Dexterity means you will have +12 Armor.
25 Wisdom means you will have +17 Mana.
25 Dexterity means you will have +12 Ranged Attack.
Here is how it goes: Current Value of (Strength/Dexterity/Wisdom); Attack Bonus; Armor Bonus; Mana Bonus; Ranged Attack Bonus.
In a default "gs/levlmod.gs" the brackets will be grouped up near the bottom, but above DELDR. Just do a text search for /dummy4 and you will find it easily. Remember not to mess the brackets up.