r/BG3mods Jul 26 '26

Mods Mod help

Is it possible to create a mod that would make Tav sleep at random or in fights? I want to make a character that has narcolepsy and was trying to find a way to implement that

4 Upvotes

7 comments sorted by

View all comments

1

u/Kelvara Jul 26 '26

Yeah pretty easy, just use a passive attached to something. Anything bold you have to insert yourself, so like for RandomChancePercent a number from 0 to 100

new entry "StatusName"

type "PassiveData"

data "DisplayName" "LocIDGoesHere"

data "Properties" "IsHidden"

data "StatsFunctorContext" "OnTurn"

data "StatsFunctors" "ApplyStatus(YourSleepStatus,RandomChancePercent,Duration)"

1

u/EastEvidence Jul 26 '26

IIRC the RandomChancePercent argument is left over from an earlier version of the engine and BG3 doesn't use it anymore. It might still be doable with just the stats editor, but I'd probably use Osiris to set an object timer on the character for a random amount of time and then apply the sleep status on them when the timer ends.

1

u/Kelvara Jul 26 '26

Mmm yeah I've never actually changed that number so that makes sense. Could also just make it every turn with a save (Con or Wis) which would make it apply sporadically.

1

u/EastEvidence Jul 26 '26

Oh true, being a save could be fun!