Skip to content

Commit 2aad8d3

Browse files
committed
New component: Increase Yoshimo's Trapsetting Ability
Yoshimo is a bounty hunter, whose specialty is laying custom snares, but Yoshimo comes with a piddly 35 in his trapsetting ability. This component adjusts Yoshimo's thieving abilities to shift more points into his trapsetting, primarily at the expense of stealth. At level 10 his trapsetting is adjusted to 70 by removing 5 points from find traps, 10 from hide in shadows, and 20 from move silently. At the two level ups that followed, Yoshimo gained 5 points each in hide in shadows and move silently and then 10 in lock picking; the 10 in lockpicking is changed to 5 lockpicking and 5 in trapsetting.
1 parent 0e50a60 commit 2aad8d3

4 files changed

Lines changed: 53 additions & 1 deletion

File tree

cdtweaks/languages/english/weidu.tra

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,8 @@ Use Baldur.lua options: a7_interval_ini
880880
@422001 = ~Delay until the Nashkel mines are cleared~
881881
@422100 = ~Delay until PC has 5000 XP~
882882

883+
@423000 = ~Increase Yoshimo's Trapsetting Ability~
884+
883885
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
884886
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
885887
///// \\\\\

cdtweaks/lib/comp_4230.tpa

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
2+
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
3+
///// \\\\\
4+
///// Increase Yoshimo's Trapsetting Ability \\\\\
5+
///// \\\\\
6+
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
7+
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
8+
9+
ACTION_DEFINE_ASSOCIATIVE_ARRAY cd_yoshimo_traps BEGIN
10+
11+
// locks, find traps, pickpocket, MS, HiS, DI, set traps => creature file
12+
65, 95, 25, 40, 40, 0, 70 => yoshi7 // moving 5 find traps/20 MS/10 HiS > +35 set traps
13+
65, 95, 25, 40, 40, 0, 70 => yoshi8 // ^^ same
14+
65, 95, 25, 40, 40, 0, 70 => yoshi10 // ^^ same
15+
70, 95, 25, 45, 45, 0, 75 => yoshi11 // level up was +5 HiS, +10 locks, +5 MS => 10 in locks changed to 5 locks, 5 set traps
16+
75, 95, 25, 50, 50, 0, 80 => yoshi12 // level up was +5 HiS, +10 locks, +5 MS => 10 in locks changed to 5 locks, 5 set traps
17+
18+
END
19+
20+
ACTION_PHP_EACH cd_yoshimo_traps AS params => file BEGIN
21+
22+
// the array has *final* values - we need to adjust the actual scores in the creature files to account for racial/dex bonuses
23+
COPY_EXISTING ~%file%.cre~ ~override~
24+
WRITE_BYTE 0x67 (params_0 - 25) // locks (10 human, 15 for 18 DEX)
25+
WRITE_BYTE 0x69 (params_1 - 10) // find traps (5 human, 5 for 18 DEX)
26+
WRITE_BYTE 0x6a (params_2 - 25) // pickpocket (15 human, 10 for 18 DEX)
27+
WRITE_BYTE 0x68 (params_3 - 20) // MS (10 human, 10 for 18 DEX)
28+
WRITE_BYTE 0x45 (params_4 - 15) // HiS (5 human, 10 for 18 DEX)
29+
WRITE_BYTE 0x64 (params_5 - 0) // detect illusion (0 human, 0 for 18 DEX)
30+
// obg2 applies spcl417 for +15 set trap bonus, whereas ee applies it directly, so we have to account for it:
31+
WRITE_BYTE 0x65 (params_6 - (20 - (15 * enhanced_edition))) // set traps (0 human, 5 for 18 DEX, 15 for oBG2 for spcl417): net is -5 bg2ee, -20 obg2
32+
BUT_ONLY IF_EXISTS
33+
34+
END

cdtweaks/readme-cdtweaks.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,6 +1536,9 @@ <h3> <a id="contents_npc" name="contents_npc"></a>Joinable <abbr title="Non-Play
15361536
<p> <a id="contents_4220" name="contents_4220"></a><a id="contents_4221" name="contents_4221"></a><strong>Delay Neera's Appearance in Beregost</strong> <a href="#contents_4220" rel=""><img alt="Link to this component" height="9" width="14" src="style/link.png" /></a><br />
15371537
<em><abbr title="Baldur's Gate: Enhanced Edition">BGEE</abbr>, <abbr title="Enhanced Edition Trilogy">EET</abbr></em></p>
15381538
<p> Neera's introduction in Beregost leads immediately to a fight in the middle of the town, which can be problematic for lower level characters. With this component the player can delay Neera's appearance until after the Nashkel Mines are cleared, or after the PC has 5000 XP. </p>
1539+
<p> <a id="contents_4230" name="contents_4230"></a><strong>Increase Yoshimo's Trapsetting Ability</strong> <a href="#contents_4230" rel=""><img alt="Link to this component" height="9" width="14" src="style/link.png" /></a><br />
1540+
<em><abbr title="Baldur's Gate II: Enhanced Edition">BG2EE</abbr>, <abbr title="Enhanced Edition Trilogy">EET</abbr>, <abbr title="Baldur's Gate II">BG2</abbr>, <abbr title="Baldur's Gate Trilogy">BGT</abbr></em></p>
1541+
<p>Yoshimo is a bounty hunter, whose specialty is laying custom snares, but Yoshimo comes with a piddly 35 in his trapsetting ability. This component adjusts Yoshimo's thieving abilities to shift more points into his trapsetting, primarily at the expense of stealth. At level 10 his trapsetting is adjusted to 70 by removing 5 points from find traps, 10 from hide in shadows, and 20 from move silently. At the two level ups that followed, Yoshimo gained 5 points each in hide in shadows and move silently and then 10 in lock picking; the 10 in lockpicking is changed to 5 lockpicking and 5 in trapsetting. </p>
15391542
</div>
15401543
<div class="ribbon_rectangle_h3">
15411544
<h3> <a id="contents_feats" name="contents_feats"></a><abbr title="Neverwinter Nights">NWN</abbr>-Style Feats <a href="#contents_feats" rel=""><img alt="Link to this section" height="9" width="14" src="style/link.png" /></a></h3>
@@ -2437,7 +2440,7 @@ <h2> Version History <a href="#History" rel=""><img alt="Link to this section" h
24372440
<ul>
24382441
<li>Fixed a severe issue with <strong>Allow Monks to Change Damage Types with Hand Weapons</strong> where it could cause crashes on level up</li>
24392442
<li>Fixed a severe issue with <strong>Make Bears and Boars Continue Fighting after Reaching 0 Hit Points</strong> where it could crash when the 0-hit point threshold was reached</li>
2440-
<li>Three new components: <strong>Allow Shapeshifters to Wear Armor But Prevent Shapeshifting While Worn</strong>, <strong>Adjust Nalia's Thief Level</strong>, and <strong>Delay Neera's Appearance in Beregost</strong></li>
2443+
<li>Four new components: <strong>Allow Shapeshifters to Wear Armor But Prevent Shapeshifting While Worn</strong>, <strong>Adjust Nalia's Thief Level</strong>, <strong>Delay Neera's Appearance in Beregost</strong>, and <strong>Increase Yoshimo's Trapsetting Ability</strong></li>
24412444
<li><strong>Taerom Makes Additional Ankheg Armors</strong> will now skip if the same component from Tweaks and Tricks is installed, but it was checking the wrong component from TnT (thanks Selphira)</li>
24422445
<li>With the mage stronghold enabled via <strong>Multiple Strongholds</strong> or <strong>Make Individual Strongholds Available</strong>, the Knights of Solamnia could leave (and prevent their normal quest) if they were spoken to at just the wrong moment, which is fixed. An option to decline the offer of the Planar Sphere as a stronghold has been added as well. </li>
24432446
<li><strong>Weapon Animation Tweaks</strong> was changing flails to use the morningstar animation, which it shouldn't </li>

cdtweaks/setup-cdtweaks.tp2

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5538,6 +5538,19 @@ GROUP @0
55385538
REQUIRE_PREDICATE GAME_IS ~bgee eet~ @25
55395539
LABEL ~cd_tweaks_neera_delay_till_5k_xp~
55405540

5541+
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
5542+
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
5543+
///// \\\\\
5544+
///// Increase Yoshimo's Trapsetting Ability \\\\\
5545+
///// \\\\\
5546+
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
5547+
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
5548+
5549+
BEGIN @423000 DESIGNATED 4230
5550+
GROUP @0
5551+
REQUIRE_PREDICATE GAME_IS ~soa tob bgt bg2ee eet~ @25
5552+
LABEL ~cd_tweaks_yoshimo_better_trapsetting~
5553+
55415554
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
55425555
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
55435556
///// \\\\\

0 commit comments

Comments
 (0)