Assuming you have unpacked the main.pak
The procedure of creating a simple sword with unreal damage:
Copy
Divinity Original Sin\Data\Public\Main\Stats\Generated\Data\Weapons.txt
and
Divinity Original Sin\Data\Public\Main\Stats\Generated\Links\Weapons.txt
Then place them in the same folders in your mod. (Create the folders)
1.
open the .txt you placed in the Data folder in SCite or whatever program you use for this kind of work, then let's copy this template
new entry "STAT_Quest_Knights_WPN_Sword_A"
type "Weapon"
using "_Swords"
data "Act part" "13"
data "Requirements" "Strength 10"
data "Damage" "4"
data "Damage Range" "1"
data "DamageBoost" "-35"
data "Durability" "6"
data "ComboCategory" "Sword"
Paste it at the bottom, and give it a unique name. You can also assign stats to it.
I removed the strength requirement and added the flag unbreakable, I also boosted the damage
quite a lot.
new entry "WPN_Sword_OverPowered"
type "Weapon"
using "_Swords"
data "Act part" "13"
data "Damage" "4"
data "Damage Range" "1"
data "DamageBoost" "999"
data "ComboCategory" "Sword"
data "Flags" "Unbreakable"
2.
Now you have to link it, so that it doesn't turn invisible/crash.
Open the .txt you placed in the Link folder and search for the
name of the template you recently used.
This is the link for the weapon.
object itemstat "STAT_Quest_Knights_WPN_Sword_A","411545bf-9141-4ff9-bc6f-e0e36257f7cf","",0,0,"",-1,-1,-1,0,-1,-1
Now we copy that and paste it at the bottom of the .txt
Change the name to the same as in the other file.
object itemstat "WPN_Sword_OverPowered","411545bf-9141-4ff9-bc6f-e0e36257f7cf","",0,0,"",-1,-1,-1,0,-1,-1
Now you're done with the work needed outside the editor!
1.
Open the editor then search for WPN_Sword_A
Right click it then click "Create new from selected".
2.
In the window that opened you first need to change the Filename path.
Change the part where it says \Public\Main\ to \Public\YourModname\
3.
Scroll down to where it says "Stats" type in the name of the stat we created a moment ago.
Now just give the template a name, then click Create and you'll have a Over Powered sword!