Skip to content

Commit db8b0a7

Browse files
committed
Update make-a-bg3-mod-with-lua.mdx
1 parent 653ab70 commit db8b0a7

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

projects/make-a-bg3-mod-with-lua/make-a-bg3-mod-with-lua.mdx

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,7 @@ Mods/Frog/Mods/Frog
100100

101101
An **.lsx** (XML) file tells Baldur’s Gate 3 about your mod, including its name, author, folder location, version, and unique ID, so the game can recognize and load it correctly.
102102

103-
We’ve provided you with a boilerplate **meta.lsx file** inside the project folder.
104-
105-
A **UUID (Universally Unique Identifier)** is a 128-bit value used to uniquely identify information across systems or databases without significant risk of duplication. It looks something like: `87654321-DCBA-4321-DCBA-0987654321AB`.
106-
107-
It'll make sure your mod is unique and doesn't interfere with another mod installed on the same system. We’ve left it blank, so generate your own by using this [online UUID generator](https://www.uuidgenerator.net/version4), and paste it in here:
108-
109-
```xml
110-
<attribute id="UUID" type="FixedString" value="your UUID goes here" />
111-
```
112-
The **meta.lsx** file tells the game info about your mod, including what the mod is called, who made it, where its files live, and how to tell it apart from other mods.
103+
The **meta.lsx** file tells the game info about your mod, including what the mod is called, who made it, where its files live, and how to tell it apart from other mods. We’ve provided you with a boilerplate **meta.lsx file** inside the project folder.
113104

114105
It contains the following components:
115106

@@ -122,6 +113,16 @@ It contains the following components:
122113

123114
Without this file, the game doesn’t know your mod exists.
124115

116+
A **UUID (Universally Unique Identifier)** is a 128-bit value used to uniquely identify information across systems or databases without significant risk of duplication. It looks something like: `30b78323-c06f-4a66-9767-6241f5ee4656`.
117+
118+
It'll make sure your mod is unique and doesn't interfere with another mod installed on the same system. We’ve left it blank, so generate your own by using this [online UUID generator](https://www.uuidgenerator.net/version4), and paste it in here:
119+
120+
```xml
121+
<attribute id="UUID" type="FixedString" value="your UUID goes here" />
122+
```
123+
124+
<ImageZoom src="https://i.imgur.com/PYLUQzU.png" style={{ width: "80%", height: "auto" }} alt="sample UUID"/>
125+
125126
## Setting up .txt files
126127

127128
In Baldur’s Gate 3, most of the game’s data, like characters, spells, and items, is stored inside **.pak** files. These are packed files that the game reads directly, so you can’t edit them in a normal text editor.
@@ -160,6 +161,8 @@ data "Wisdom" "8"
160161
data "Charisma" "4"
161162
```
162163

164+
<ImageZoom src="https://i.imgur.com/5kqogmE.png" style={{ width: "80%", height: "auto" }} alt="image of frog's stats"/>
165+
163166
These are all standard DnD stats. Feel free to change these numbers around!
164167

165168
```
@@ -190,7 +193,7 @@ data "UnarmedRangedAttackAbility" "Dexterity"
190193
- `data "DifficultyStatuses"` adjusts stats or abilities based on game difficulty.
191194
- `data "UnarmedRangedAttackAbility"` determines which stat the creature uses for unarmed ranged attacks, in this case it’ll use Dexterity.
192195

193-
<ImageZoom src="insert image before publishing" style={{ width: "80%", height: "auto" }} alt="image of frog in battle casting spell"/>
196+
<ImageZoom src="https://i.imgur.com/1ATlFDZ.gif" style={{ width: "80%", height: "auto" }} alt="image of frog in battle casting spell"/>
194197

195198
Phew, our frog friend sure is powerful!
196199

@@ -221,9 +224,9 @@ Write the following code:
221224
local function KillFrog()
222225
local summons = Osi.DB_PlayerSummons:Get(nil)
223226
for _, summon in pairs(summons) do
224-
if string.match(summon[1],"Frog") ~= nil then
225-
Die(summon[1])
226-
end
227+
if string.match(summon[1], "Frog") ~= nil then
228+
Die(summon[1])
229+
end
227230
end
228231
end
229232
```
@@ -248,7 +251,7 @@ end)
248251

249252
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.
250253

251-
<ImageZoom src="insert image before publishing" style={{ width: "80%", height: "auto" }} alt="image of spell being cast/frog spawning"/>
254+
<ImageZoom src="https://i.imgur.com/Upz0Qc3.gif" style={{ width: "80%", height: "auto" }} alt="image of spell being cast/frog spawning"/>
252255

253256
## Export your Mod to a .pak
254257

@@ -265,7 +268,7 @@ Extract the contents of the .zip folder into the `ModdingTools` folder so you ca
265268
- Select your project folder (`Mods`).
266269
- Click Build Mod, which generates a .pak file.
267270

268-
<ImageZoom src="insert image before publishing" style={{ width: "80%", height: "auto" }} alt="screenshot of multitool"/>
271+
<ImageZoom src="https://i.imgur.com/JVOmY04.png" style={{ width: "80%", height: "auto" }} alt="screenshot of multitool"/>
269272

270273
The **.pak** should be saved here:
271274

@@ -285,7 +288,7 @@ The Script Extender console should load automatically, but if you don’t see it
285288

286289
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.
287290

288-
<ImageZoom src="insert image before publishing" style={{ width: "80%", height: "auto" }} alt="Discovering the teapot containing Frog"/>
291+
<ImageZoom src="https://i.imgur.com/iO4Zxr3.png" style={{ width: "80%", height: "auto" }} alt="Discovering the teapot containing Frog"/>
289292

290293
## Bonus Challenges
291294

@@ -321,7 +324,7 @@ Scratch told us he wants you to share your projects with the team [@codedex_io](
321324

322325
<span style={{ fontSize: "16px", lineHeight: 1 }}>
323326
<img
324-
src="https://i.imgur.com/H6GXsjP.png"
327+
src="https://i.imgur.com/gu1x0ge.png"
325328
alt="emoji"
326329
style={{ height: "10em", width: "auto", verticalAlign: "middle" }}
327330
/>

0 commit comments

Comments
 (0)