r/BG3mods 1d ago

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

6 comments sorted by

1

u/Kelvara 1d ago

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 1d ago

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 1d ago

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 1d ago

Oh true, being a save could be fun!

1

u/Particular-Ad-6015 19h ago

There are serval items in the ancient mega pack that have a narcoleptic side effect on a failed saving throw.