Skip to content

DETAILED wild surge table?

pekirtpekirt Member Posts: 111
Hi everyone,

There are many tables available for wild surge rolls, such as the one in the manual or at http://www.planetbaldursgate.com/bg2/character/classes/tables/wildsurge.shtml . What I'm looking for is a DETAILED table. In addition to the columns shown in the links (d100 Roll | Description) it should also include a column for the notification shown on screen and a detailed explanation, if required.

For example:

d100 | Explanation | Text on screen | Detailed explanation
------------------------------------------------------
67 | Target strengthened | Wild Surge: Strengthened | Casts Strength as a 5th level divine caster on target

(I just made the last part up, as I don't know what's going on.)

Is there such a table out there?

Thanks a lot. :)

PS: A lot of the tables in the manuals could do with a bit more detail, but that's another topic...
Post edited by pekirt on

Comments

  • pekirtpekirt Member Posts: 111
    Let's say such a table doesn't exist... If I want to make one myself, how hard would it be?

    I can probably do it if it's not more complex/time consuming than:

    * Install NearInfinity or DLTCEP
    * Open such-and such game file
    * Read off spell/effect values

    Which file should I look at, if I want to do this?

    Can I post my result here, or is it some super-duper-copyrighted-material?

    @Dee , whom should I invoke to ask these questions?

    Thanks. :)

    PS: I'm not a n00b in (A)D&D or BG. I can do very basic programming (I know just enough to write my numerical solution codes in f77/c++/python). However, I haven't used DLTCEP or NE before.
  • nanonano Member Posts: 1,632
    I tried to look for it before in NearInfinity and couldn't find it. Unless it's changed in BG2EE I think it's hardcoded. So I would appreciate this information as well.
  • JalilyJalily Member Posts: 4,681
    wildmag.2DA

    Go ahead and post results. :)
  • nanonano Member Posts: 1,632
    Thank you! I could write it up for BGEE but I don't have BG2EE yet so it's probably best @pekirt do it :)
  • pekirtpekirt Member Posts: 111
    @Jalily , @nano , thanks. :)

    I did a quick scan before taking off to work today, and it seems I've got my work cut out for me. For example: SPWM107.SPL, which is the result of roll 7 and changes the gender of the caster, has the spell name "Squirrels". Fun, eh? ;)

    I don't have time to do this in one sitting. I'll devote an hour or so in the evenings (GMT+2) and post my progress below.

    Now, off to work. :/
  • pekirtpekirt Member Posts: 111
    edited November 2013
    So I'm looking in the wildmag.2da file. In place of some spell results, there's an asterisk.

    Example:

    5 SPWM105 318
    6 * 319
    7 SPWM107 320
    The first colum would be the d100 result, the second the spell effect used (referring to SPWM1xx.spl file I assume), the third is the text displayed I'd think. Now obviously the "*" here stands for SPWM106. But, how does the code know that?

    Anyhow, I'll assume the obvious and try to compile all spell effects and texts.

    EDIT: I feel like reinventing the wheel when everybody's riding around in hovercars, but if you gotta learn, you gotta start somewhere. ;) I just found out about http://www.ugcs.caltech.edu/~jedwin/baldur.html and http://iesdp.com/ , not to mention http://www.idi.ntnu.no/~joh/ni/types.html . Fun. :D

    EDIT 2: I think I've got the answer to the asterisk question. The second row in a 2DA file is supposed to reference the default value to be used. The second row also has an asterisk, so I'd guess it refers to a parameter passed. What parameter would you pass? Why, the spell that caused the wild surge, of course! I'd say the * rows represent the original spell going off, but in a changed way (the target changes, for example). I'm just guessing though... If I'm right, then the wild surge table in the link http://www.planetbaldursgate.com/bg2/character/classes/tables/wildsurge.shtml is wrong.
    Post edited by pekirt on
  • pekirtpekirt Member Posts: 111
    edited November 2013
    So, here's the result of today's work (and I also spent some time learning about IE). These are just the on-screen texts for the various effects. I'll start looking up the actual effects tomorrow.

    This was just 100 look-up/copy-pastes, so I was too lazy to write a script for it... But I'll also write a sed/awk bash script later... Unless somebody already has it? @Jalily ?

    Also... Say I want to change only a few strrefs in dialog.tlk. For example, I want STTREF 340 (roll result 14) to read as "Caster Held" as opposed to "Held". Editing dialog.tlk and putting it in the override folder would be one solution, but a bad solution. Is there another way?

    EDIT: Just a little bit of digging in the SPWMxxx.SPL files... Still trying to understand which parameter does what in the code. (They are usually documented, but the name doesn't necessarily match the effect.)


    2DA V1.0
    *
    SPELL STRREF DIALOG.TLK STRING SPELL EFFECT SPELL TARGET DURATION
    _____________________________________________________________________________________________________________________________________________
    1 SPWM102 315 Wild color changes Set color glow pulse Caster 60
    2 SPWM102 315 Wild color changes Set color glow pulse Caster 60
    3 SPWM103 316 Squirrels... Everywhere Summon creature Living actor 120
    squirrels!
    4 SPWM104 317 I'm so itchy! Increase attack speed factor(-2) Living actor 60
    Increase casting speed factor(-2)
    5 SPWM105 318 It's so bright! Set color glow pulse Caster 60
    6 * 319 Area effect ???????????? ?????? ???
    7 SPWM107 320 Sex change Change gender Living actor 600
    8 SPWM108 321 Color change Set color Caster 60
    9 SPWM109 332 Explosion? Play visual effect Self 0
    10 SPWM110 332 Explosion? Lightning effects Caster 0
    Play damage animation 60
    11 SPWM111 334 Entangled (as per the spell) ??Caster?? 60
    12 SPWM112 335 Slowed Slow Caster 60
    13 SPWM113 339 Polymorphed Polymorph other (to spirit wolf) Living actor 70
    14 SPWM114 340 Held Hold creature Living actor 70
    15 SPWM115 349 Hastened Haste Caster 60
    16 SPWM183 351 Polymorphed Polymorph other (to squirrel) Living actor 40
    17 SPWM117 359 Gold Destroyed!
    18 SPWM118 360 Weakened
    19 SPWI523 378 Burst
    20 SPWM120 381 Legs... so... heavy.
    21 * 382 Caster also targeted
    22 SPWM122 384 Held
    23 SPWM123 388 Fear
    24 * 389 Roll twice more
    25 SPWM125 390 Area explored
    26 SPWM126 391 Globe of Invulnerability
    27 SPPR211 393 Silence
    28 SPWM128 395 Dizzy
    29 SPWI206 396 Invisible
    30 SPWM130 397 Pretty sparkles
    31 * 398 Caster becomes target
    32 SPWI206 401 Invisible
    33 SPWI105 402 Colors!
    34 SPWM134 405 I've always said that bird
    magic is the most difficult.
    35 * 407 Shouldn't this spell do
    something?
    36 SPWM136 408 Gems!
    37 SPPR207 417 Berries in my pocket.
    38 SPPR207 417 Berries in my pocket.
    39 * 418 Projectile changed
    40 SPWM141 420 What's this in my pocket?
    41 SPWM141 420 What's this in my pocket?
    42 SPWM142 421 Combat ready!
    43 SPWM142 421 Combat ready!
    44 SPWM145 454 *hiccup*... *hic*...
    45 SPWM145 454 *hiccup*... *hic*...
    46 * 389 Roll twice more
    47 SPWM113 809 Polymorphed
    48 * 820 Oops, wrong target.
    49 * 834 I feel refreshed.
    50 SPWI407 846 Monsters summoned
    51 * 854 Is that snow?
    52 SPWM155 875 What's with the noise?
    53 SPWM153 867 Double Hit Points
    54 SPWM154 874 Oops, a gate... Is that a pit
    fiend?!
    55 SPWM155 875 What's with the noise?
    56 * 876 Duration halved
    57 SPWM157 877 Swirly things
    58 * 878 Projectile speed halved
    59 SPWM159 890 Weapons glow
    60 * 913 No Save
    61 SPWM114 915 Held
    62 SPWM162 917 Detect magic
    63 * 931 Roll 4 more times!
    64 SPWM164 1446 Slowed
    65 * 1450 Oops, wrong spell.
    66 SPWI308 1451 Lightning bolt.
    67 SPWM167 1452 Strengthened
    68 SPWM168 1453 Heal
    69 SPWM111 1454 Entangle
    70 SPWM118 1462 Weakened
    71 SPWI304 1465 Fireball
    72 SPWI604 1466 Turned to Stone
    73 * 1467 Spell cast and I feel
    refreshed.
    74 SPWM168 1469 Heal
    75 SPWM128 1470 Dizzy
    76 SPWI523 1471 Burst
    77 SPWM122 1473 Held
    78 SPWM178 1474 Blinded
    79 SPWM179 1476 Charmed
    80 SPWM136 1478 Gems!
    81 SPWM120 1480 My legs! What have you done?
    82 SPWM141 1481 What's in my pack?
    83 SPPR211 1483 Silence
    84 SPPR211 1483 Silence
    85 SPWM107 1484 Sex change
    86 SPWM186 1487 Explosion?
    87 SPWM187 8694 Stinking cloud
    88 SPWM188 8695 COW!
    89 SPWM128 1470 Dizzy
    90 * 8707 Area effect
    91 SPWM191 8795 Itchy
    92 SPWM153 8800 Hit Points doubled
    93 SPWM122 8823 Held
    94 SPWM115 8825 Hastened
    95 SPWM199 8827 My gold!
    96 * 8899 Spell cast twice
    97 * 8830 Spell cast, +4 save
    98 SPWM198 8841 Color change
    99 * 8854 Spell cast at double level
    100 * 8829 Spell cast normally
    9B * 322 What was that? Over there!

    Post edited by pekirt on
  • pekirtpekirt Member Posts: 111
    edited November 2013
    And here's the zip file, as the < pre > tag can't handle long lines well:

    Post edited by pekirt on
Sign In or Register to comment.