Sacred 2:How is a character's natural Intelligence calculated?
It all starts in blueprint.txt. There is a bonus called crbonus_attr_int_pc.
newBonus = { -- name = "crbonus_attr_int_pc", rating = 0, basedonskill = "SKILL_INVALID", type = "BONUS_STATS", spez = "STAT_INT", spez2 = "", usagebits = 65535, minconstraints = {1,0,0}, difficultyvaluerange0 = {0,23,525}, difficultyvaluerange1 = {1,23,525}, difficultyvaluerange2 = {2,23,525}, difficultyvaluerange3 = {3,23,525}, difficultyvaluerange4 = {4,23,525}, } mgr.createBonus(32, newBonus);
In creatures.txt, each character receives this bonus at a different "intensity" value.
The Dragon Mage:
mgr.addCreatureBonus( 1949, { intensity = 1160, bonus = 32, })
The Dryad:
mgr.addCreatureBonus( 94, { intensity = 1100, bonus = 32, })
The High Elf:
mgr.addCreatureBonus( 209, { intensity = 1400, bonus = 32, })
The Inquisitor:
mgr.addCreatureBonus( 51, { intensity = 1100, bonus = 32, })
The Seraphim:
mgr.addCreatureBonus( 1, { intensity = 1000, bonus = 32, })
The Shadow Warrior:
mgr.addCreatureBonus( 93, { intensity = 880, bonus = 32, })
The Temple Guardian:
mgr.addCreatureBonus( 210, { intensity = 1040, bonus = 32, })
TODO Guide on how to interpret blueprint bonuses.
The generic formula for blueprint bonuses is:
ValueOfBonus = FLOOR((FLOOR(((ValueAt200 - ValueAt0) / 200) * CreatureOrItemLevel) + ValueAt0) * Intensity * 0.001)
For Intelligence (and attributes in general), there are no additional operations to perform:
Intelligence = ValueOfBonus
We can adapt and simplify the formula like so:
Intelligence = FLOOR((FLOOR(((ValueAt200 - ValueAt0) / 200) * CharacterLevel) + ValueAt0) * Intensity * 0.001)
Intelligence = FLOOR((FLOOR(((525 - 23) / 200) * CharacterLevel) + 23) * Intensity * 0.001)
Intelligence = FLOOR((FLOOR((502 / 200) * CharacterLevel) + 23) * Intensity * 0.001)
Intelligence = FLOOR((FLOOR(2.51 * CharacterLevel) + 23) * Intensity * 0.001)
By using the formula, we can fill in the following table:
Character level | Intelligence | ||||||
Dragon Mage | Dryad | High Elf | Inquisitor | Seraphim | Shadow Warrior | Temple Guardian | |
1 | 29 | 27 | 35 | 27 | 25 | 22 | 26 |
2 | 32 | 30 | 39 | 30 | 28 | 24 | 29 |
3 | 34 | 33 | 42 | 33 | 30 | 26 | 31 |
4 | 38 | 36 | 46 | 36 | 33 | 29 | 34 |
5 | 40 | 38 | 49 | 38 | 35 | 30 | 36 |
6 | 44 | 41 | 53 | 41 | 38 | 33 | 39 |
7 | 46 | 44 | 56 | 44 | 40 | 35 | 41 |
8 | 49 | 47 | 60 | 47 | 43 | 37 | 44 |
9 | 52 | 49 | 63 | 49 | 45 | 39 | 46 |
10 | 55 | 52 | 67 | 52 | 48 | 42 | 49 |
11 | 58 | 55 | 70 | 55 | 50 | 44 | 52 |
12 | 61 | 58 | 74 | 58 | 53 | 46 | 55 |
13 | 63 | 60 | 77 | 60 | 55 | 48 | 57 |
14 | 67 | 63 | 81 | 63 | 58 | 51 | 60 |
15 | 69 | 66 | 84 | 66 | 60 | 52 | 62 |
16 | 73 | 69 | 88 | 69 | 63 | 55 | 65 |
17 | 75 | 71 | 91 | 71 | 65 | 57 | 67 |
18 | 78 | 74 | 95 | 74 | 68 | 59 | 70 |
19 | 81 | 77 | 98 | 77 | 70 | 61 | 72 |
20 | 84 | 80 | 102 | 80 | 73 | 64 | 75 |
21 | 87 | 82 | 105 | 82 | 75 | 66 | 78 |
22 | 90 | 85 | 109 | 85 | 78 | 68 | 81 |
23 | 92 | 88 | 112 | 88 | 80 | 70 | 83 |
24 | 96 | 91 | 116 | 91 | 83 | 73 | 86 |
25 | 98 | 93 | 119 | 93 | 85 | 74 | 88 |
26 | 102 | 96 | 123 | 96 | 88 | 77 | 91 |
27 | 104 | 99 | 126 | 99 | 90 | 79 | 93 |
28 | 107 | 102 | 130 | 102 | 93 | 81 | 96 |
29 | 110 | 104 | 133 | 104 | 95 | 83 | 98 |
30 | 113 | 107 | 137 | 107 | 98 | 86 | 101 |
31 | 116 | 110 | 140 | 110 | 100 | 88 | 104 |
32 | 119 | 113 | 144 | 113 | 103 | 90 | 107 |
33 | 121 | 115 | 147 | 115 | 105 | 92 | 109 |
34 | 125 | 118 | 151 | 118 | 108 | 95 | 112 |
35 | 127 | 121 | 154 | 121 | 110 | 96 | 114 |
36 | 131 | 124 | 158 | 124 | 113 | 99 | 117 |
37 | 133 | 126 | 161 | 126 | 115 | 101 | 119 |
38 | 136 | 129 | 165 | 129 | 118 | 103 | 122 |
39 | 139 | 132 | 168 | 132 | 120 | 105 | 124 |
40 | 142 | 135 | 172 | 135 | 123 | 108 | 127 |
41 | 145 | 137 | 175 | 137 | 125 | 110 | 130 |
42 | 148 | 140 | 179 | 140 | 128 | 112 | 133 |
43 | 150 | 143 | 182 | 143 | 130 | 114 | 135 |
44 | 154 | 146 | 186 | 146 | 133 | 117 | 138 |
45 | 156 | 148 | 189 | 148 | 135 | 118 | 140 |
46 | 160 | 151 | 193 | 151 | 138 | 121 | 143 |
47 | 162 | 154 | 196 | 154 | 140 | 123 | 145 |
48 | 165 | 157 | 200 | 157 | 143 | 125 | 148 |
49 | 168 | 159 | 203 | 159 | 145 | 127 | 150 |
50 | 171 | 162 | 207 | 162 | 148 | 130 | 153 |
51 | 175 | 166 | 211 | 166 | 151 | 132 | 157 |
52 | 177 | 168 | 214 | 168 | 153 | 134 | 159 |
53 | 180 | 171 | 218 | 171 | 156 | 137 | 162 |
54 | 183 | 173 | 221 | 173 | 158 | 139 | 164 |
55 | 186 | 177 | 225 | 177 | 161 | 141 | 167 |
56 | 189 | 179 | 228 | 179 | 163 | 143 | 169 |
57 | 192 | 182 | 232 | 182 | 166 | 146 | 172 |
58 | 194 | 184 | 235 | 184 | 168 | 147 | 174 |
59 | 198 | 188 | 239 | 188 | 171 | 150 | 177 |
60 | 200 | 190 | 242 | 190 | 173 | 152 | 179 |
61 | 204 | 193 | 246 | 193 | 176 | 154 | 183 |
62 | 206 | 195 | 249 | 195 | 178 | 156 | 185 |
63 | 209 | 199 | 253 | 199 | 181 | 159 | 188 |
64 | 212 | 201 | 256 | 201 | 183 | 161 | 190 |
65 | 215 | 204 | 260 | 204 | 186 | 163 | 193 |
66 | 218 | 206 | 263 | 206 | 188 | 165 | 195 |
67 | 221 | 210 | 267 | 210 | 191 | 168 | 198 |
68 | 223 | 212 | 270 | 212 | 193 | 169 | 200 |
69 | 227 | 215 | 274 | 215 | 196 | 172 | 203 |
70 | 229 | 217 | 277 | 217 | 198 | 174 | 205 |
71 | 233 | 221 | 281 | 221 | 201 | 176 | 209 |
72 | 235 | 223 | 284 | 223 | 203 | 178 | 211 |
73 | 238 | 226 | 288 | 226 | 206 | 181 | 214 |
74 | 241 | 228 | 291 | 228 | 208 | 183 | 216 |
75 | 244 | 232 | 295 | 232 | 211 | 185 | 219 |
76 | 247 | 234 | 298 | 234 | 213 | 187 | 221 |
77 | 250 | 237 | 302 | 237 | 216 | 190 | 224 |
78 | 252 | 239 | 305 | 239 | 218 | 191 | 226 |
79 | 256 | 243 | 309 | 243 | 221 | 194 | 229 |
80 | 258 | 245 | 312 | 245 | 223 | 196 | 231 |
81 | 262 | 248 | 316 | 248 | 226 | 198 | 235 |
82 | 264 | 250 | 319 | 250 | 228 | 200 | 237 |
83 | 267 | 254 | 323 | 254 | 231 | 203 | 240 |
84 | 270 | 256 | 326 | 256 | 233 | 205 | 242 |
85 | 273 | 259 | 330 | 259 | 236 | 207 | 245 |
86 | 276 | 261 | 333 | 261 | 238 | 209 | 247 |
87 | 279 | 265 | 337 | 265 | 241 | 212 | 250 |
88 | 281 | 267 | 340 | 267 | 243 | 213 | 252 |
89 | 285 | 270 | 344 | 270 | 246 | 216 | 255 |
90 | 287 | 272 | 347 | 272 | 248 | 218 | 257 |
91 | 291 | 276 | 351 | 276 | 251 | 220 | 261 |
92 | 293 | 278 | 354 | 278 | 253 | 222 | 263 |
93 | 296 | 281 | 358 | 281 | 256 | 225 | 266 |
94 | 299 | 283 | 361 | 283 | 258 | 227 | 268 |
95 | 302 | 287 | 365 | 287 | 261 | 229 | 271 |
96 | 305 | 289 | 368 | 289 | 263 | 231 | 273 |
97 | 308 | 292 | 372 | 292 | 266 | 234 | 276 |
98 | 310 | 294 | 375 | 294 | 268 | 235 | 278 |
99 | 314 | 298 | 379 | 298 | 271 | 238 | 281 |
100 | 317 | 301 | 383 | 301 | 274 | 241 | 284 |
101 | 320 | 303 | 386 | 303 | 276 | 242 | 287 |
102 | 323 | 306 | 390 | 306 | 279 | 245 | 290 |
103 | 325 | 309 | 393 | 309 | 281 | 247 | 292 |
104 | 329 | 312 | 397 | 312 | 284 | 249 | 295 |
105 | 331 | 314 | 400 | 314 | 286 | 251 | 297 |
106 | 335 | 317 | 404 | 317 | 289 | 254 | 300 |
107 | 337 | 320 | 407 | 320 | 291 | 256 | 302 |
108 | 341 | 323 | 411 | 323 | 294 | 258 | 305 |
109 | 343 | 325 | 414 | 325 | 296 | 260 | 307 |
110 | 346 | 328 | 418 | 328 | 299 | 263 | 310 |
111 | 349 | 331 | 421 | 331 | 301 | 264 | 313 |
112 | 352 | 334 | 425 | 334 | 304 | 267 | 316 |
113 | 354 | 336 | 428 | 336 | 306 | 269 | 318 |
114 | 358 | 339 | 432 | 339 | 309 | 271 | 321 |
115 | 360 | 342 | 435 | 342 | 311 | 273 | 323 |
116 | 364 | 345 | 439 | 345 | 314 | 276 | 326 |
117 | 366 | 347 | 442 | 347 | 316 | 278 | 328 |
118 | 370 | 350 | 446 | 350 | 319 | 280 | 331 |
119 | 372 | 353 | 449 | 353 | 321 | 282 | 333 |
120 | 375 | 356 | 453 | 356 | 324 | 285 | 336 |
121 | 378 | 358 | 456 | 358 | 326 | 286 | 339 |
122 | 381 | 361 | 460 | 361 | 329 | 289 | 342 |
123 | 383 | 364 | 463 | 364 | 331 | 291 | 344 |
124 | 387 | 367 | 467 | 367 | 334 | 293 | 347 |
125 | 389 | 369 | 470 | 369 | 336 | 295 | 349 |
126 | 393 | 372 | 474 | 372 | 339 | 298 | 352 |
127 | 395 | 375 | 477 | 375 | 341 | 300 | 354 |
128 | 399 | 378 | 481 | 378 | 344 | 302 | 357 |
129 | 401 | 380 | 484 | 380 | 346 | 304 | 359 |
130 | 404 | 383 | 488 | 383 | 349 | 307 | 362 |
131 | 407 | 386 | 491 | 386 | 351 | 308 | 365 |
132 | 410 | 389 | 495 | 389 | 354 | 311 | 368 |
133 | 412 | 391 | 498 | 391 | 356 | 313 | 370 |
134 | 416 | 394 | 502 | 394 | 359 | 315 | 373 |
135 | 418 | 397 | 505 | 397 | 361 | 317 | 375 |
136 | 422 | 400 | 509 | 400 | 364 | 320 | 378 |
137 | 424 | 402 | 512 | 402 | 366 | 322 | 380 |
138 | 428 | 405 | 516 | 405 | 369 | 324 | 383 |
139 | 430 | 408 | 519 | 408 | 371 | 326 | 385 |
140 | 433 | 411 | 523 | 411 | 374 | 329 | 388 |
141 | 436 | 413 | 526 | 413 | 376 | 330 | 391 |
142 | 439 | 416 | 530 | 416 | 379 | 333 | 394 |
143 | 441 | 419 | 533 | 419 | 381 | 335 | 396 |
144 | 445 | 422 | 537 | 422 | 384 | 337 | 399 |
145 | 447 | 424 | 540 | 424 | 386 | 339 | 401 |
146 | 451 | 427 | 544 | 427 | 389 | 342 | 404 |
147 | 453 | 430 | 547 | 430 | 391 | 344 | 406 |
148 | 457 | 433 | 551 | 433 | 394 | 346 | 409 |
149 | 459 | 435 | 554 | 435 | 396 | 348 | 411 |
150 | 462 | 438 | 558 | 438 | 399 | 351 | 414 |
151 | 466 | 442 | 562 | 442 | 402 | 353 | 418 |
152 | 468 | 444 | 565 | 444 | 404 | 355 | 420 |
153 | 472 | 447 | 569 | 447 | 407 | 358 | 423 |
154 | 474 | 449 | 572 | 449 | 409 | 359 | 425 |
155 | 477 | 453 | 576 | 453 | 412 | 362 | 428 |
156 | 480 | 455 | 579 | 455 | 414 | 364 | 430 |
157 | 483 | 458 | 583 | 458 | 417 | 366 | 433 |
158 | 486 | 460 | 586 | 460 | 419 | 368 | 435 |
159 | 489 | 464 | 590 | 464 | 422 | 371 | 438 |
160 | 491 | 466 | 593 | 466 | 424 | 373 | 440 |
161 | 495 | 469 | 597 | 469 | 427 | 375 | 444 |
162 | 497 | 471 | 600 | 471 | 429 | 377 | 446 |
163 | 501 | 475 | 604 | 475 | 432 | 380 | 449 |
164 | 503 | 477 | 607 | 477 | 434 | 381 | 451 |
165 | 506 | 480 | 611 | 480 | 437 | 384 | 454 |
166 | 509 | 482 | 614 | 482 | 439 | 386 | 456 |
167 | 512 | 486 | 618 | 486 | 442 | 388 | 459 |
168 | 515 | 488 | 621 | 488 | 444 | 390 | 461 |
169 | 518 | 491 | 625 | 491 | 447 | 393 | 464 |
170 | 520 | 493 | 628 | 493 | 449 | 395 | 466 |
171 | 524 | 497 | 632 | 497 | 452 | 397 | 470 |
172 | 526 | 499 | 635 | 499 | 454 | 399 | 472 |
173 | 530 | 502 | 639 | 502 | 457 | 402 | 475 |
174 | 532 | 504 | 642 | 504 | 459 | 403 | 477 |
175 | 535 | 508 | 646 | 508 | 462 | 406 | 480 |
176 | 538 | 510 | 649 | 510 | 464 | 408 | 482 |
177 | 541 | 513 | 653 | 513 | 467 | 410 | 485 |
178 | 544 | 515 | 656 | 515 | 469 | 412 | 487 |
179 | 547 | 519 | 660 | 519 | 472 | 415 | 490 |
180 | 549 | 521 | 663 | 521 | 474 | 417 | 492 |
181 | 553 | 524 | 667 | 524 | 477 | 419 | 496 |
182 | 555 | 526 | 670 | 526 | 479 | 421 | 498 |
183 | 559 | 530 | 674 | 530 | 482 | 424 | 501 |
184 | 561 | 532 | 677 | 532 | 484 | 425 | 503 |
185 | 564 | 535 | 681 | 535 | 487 | 428 | 506 |
186 | 567 | 537 | 684 | 537 | 489 | 430 | 508 |
187 | 570 | 541 | 688 | 541 | 492 | 432 | 511 |
188 | 573 | 543 | 691 | 543 | 494 | 434 | 513 |
189 | 576 | 546 | 695 | 546 | 497 | 437 | 516 |
190 | 578 | 548 | 698 | 548 | 499 | 439 | 518 |
191 | 582 | 552 | 702 | 552 | 502 | 441 | 522 |
192 | 584 | 554 | 705 | 554 | 504 | 443 | 524 |
193 | 588 | 557 | 709 | 557 | 507 | 446 | 527 |
194 | 590 | 559 | 712 | 559 | 509 | 447 | 529 |
195 | 593 | 563 | 716 | 563 | 512 | 450 | 532 |
196 | 596 | 565 | 719 | 565 | 514 | 452 | 534 |
197 | 599 | 568 | 723 | 568 | 517 | 454 | 537 |
198 | 602 | 570 | 726 | 570 | 519 | 456 | 539 |
199 | 605 | 574 | 730 | 574 | 522 | 459 | 542 |
200 | 609 | 577 | 735 | 577 | 525 | 462 | 546 |