You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: projects/make-a-bg3-mod-with-lua/make-a-bg3-mod-with-lua.mdx
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,15 +39,15 @@ tags:
39
39
40
40
# Introduction: Companion Creatures
41
41
42
-
Anyone who's played Baldur's Gate 3 knows it features some truly epic battles, with animal allies who fight alongside you, like our best boy, Scratch.
42
+
[Baldur’s Gate 3](https://en.wikipedia.org/wiki/Baldur%27s_Gate_3) (BG3) is a 2023 RPG by Larian Studios, adapted from the fifth edition of Dungeons & Dragons. It's earned over 10 million players due to its expansive worldbuilding, fleshed out characters, and stunning visuals.
Anyone who's played knows it features some truly epic battles, with animal allies who fight alongside you, like our best boy, Scratch.
45
45
46
-
[Baldur’s Gate 3](https://en.wikipedia.org/wiki/Baldur%27s_Gate_3) (BG3) is a 2023 RPG by Larian Studios, adapted from the fifth edition of Dungeons & Dragons. It's earned over 10 million players due to its expansive worldbuilding, fleshed out characters, and stunning visuals.
The game is incredibly well designed, but have you ever wanted to make Baldur’s Gate 3 *a little sillier*?
49
49
50
-
Remember the Addled Frog you meet in Auntie Ethel’s swamp? It’s normally not a recruitable companion, but what if you could recruit it to help you fight your battles? 🐸
50
+
Well, remember the Addled Frog you met in Auntie Ethel’s swamp? It’s normally not a recruitable companion, but what if you could summon it to help you win your battles? 🐸
51
51
52
52
We're going to do just that by making our own mod!
53
53
@@ -184,6 +184,8 @@ data "UnarmedRangedAttackAbility" "Dexterity"
184
184
-`data "DifficultyStatuses"` adjusts stats or abilities based on game difficulty.
185
185
-`data "UnarmedRangedAttackAbility"` determines which stat the creature uses for unarmed ranged attacks, in this case it’ll use Dexterity.
186
186
187
+
<ImageZoomsrc="insert image before publishing"style={{ width: "80%", height: "auto" }}alt="image of frog in battle casting spell"/>
188
+
187
189
Phew, our frog friend sure is powerful!
188
190
189
191
## Write your Lua Script
@@ -238,6 +240,8 @@ end)
238
240
239
241
Inside the callback function, we check if the spell being cast is `Target_Summon_Frog`. If yes, the program runs `KillFrog()` to clean up any old frogs.
240
242
243
+
<ImageZoomsrc="insert image before publishing"style={{ width: "80%", height: "auto" }}alt="image of spell being cast/frog spawning"/>
244
+
241
245
## Export your Mod to a .pak
242
246
243
247
Before your mod shows up in Baldur’s Gate 3, you’ll usually need to package it into a **.pak** file. This isn’t done in BG3 itself, you’ll use external tools made by the modding community.
@@ -253,6 +257,8 @@ Extract the contents of the .zip folder into the `ModdingTools` folder so you ca
253
257
- Select your project folder (`Mods`).
254
258
- Click Build Mod, which generates a .pak file.
255
259
260
+
<ImageZoomsrc="insert image before publishing"style={{ width: "80%", height: "auto" }}alt="screenshot of multitool"/>
261
+
256
262
The **.pak** should be saved here:
257
263
258
264
```
@@ -271,7 +277,7 @@ The Script Extender console should load automatically, but if you don’t see it
271
277
272
278
You’ll be able to find the teapot containing the frog in the Tutorial Chest at the very beginning of the game, on the Tutorial Level (the Nautiloid ship). Walk past Shadowheart and open the chest in the next room.
273
279
274
-
<ImageZoomsrc="swap image before publishing"style={{ width: "80%", height: "auto" }}alt="Discovering the teapot containing Frog"/>
280
+
<ImageZoomsrc="insert image before publishing"style={{ width: "80%", height: "auto" }}alt="Discovering the teapot containing Frog"/>
275
281
276
282
# Bonus Challenges
277
283
@@ -303,7 +309,7 @@ Here are some more resources to explore:
303
309
-[Manual Modding in BG3 for MacOS Users](https://www.youtube.com/watch?v=8BNi0uNOvrE)
304
310
-[Jon Hinkerton’s other mods](https://next.nexusmods.com/profile/jonhinkerton/mods?gameId=3474&page=1)
305
311
306
-
Share your projects with the team [@codedex_io](https://www.twitter.com/codedex_io)! Let us know what you come up with!
312
+
Scratch told us he wants you to share your projects with the team [@codedex_io](https://www.twitter.com/codedex_io)! Let us know what you come up with!
0 commit comments