Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Jul 2014
A
Av4lan Offline OP
stranger
OP Offline
stranger
A
Joined: Jul 2014
Hello, I'm very new to modding (i.e. this will be my first mod ever) and what I want to do is pretty simple, I guess. When the player character goes into sneak mode while in combat, the enemies are checking last know position. Actually, that's an understatement, they literally know where pc are and go there, ruining any stealth attempt. I find this stupid, bizzare, and I'd like to get rid of it. Therefore, I would appreciate if someone would point me to the right script. I found one called sneak spotter, but I'm not sure if this is the one, I don't want to turn sneak into invisibility by accident.

Joined: Jul 2014
A
Av4lan Offline OP
stranger
OP Offline
stranger
A
Joined: Jul 2014
Ok, so I found this bit in defaultcharacter:

EVENT IteratePlayersWhileInvisible
VARS
CHARACTER:_Player
ON
OnIterateCharacter(_Player, "GLO_InvisibleTurnStart")
ACTIONS
IF "c1&c2&!c3&!c4&c5&!c6&!c7&c8&!c9&!c10&!c11&!c12&!c13&!c14&!c15&!c16"
IsInCombatWith(_Player, __Me) //c1
CharacterIsEnemy(_Player, __Me) //c2
CharacterIsDead(_Player,0) //!c3
IsInDialog(_Player) //!c4
IsEqual(%InvisibleDialog, 0) //c5
CharacterHasStatus(_Player, INVISIBLE) //!c6
CharacterHasStatus(_Player, SNEAKING) //!c6
CharacterIsPlayer(_Player) //c8
CharacterIsSummon(_Player) //!c9
CharacterIsPolymorphInteractionDisabled(_Player) //!c10
CharacterIsPartyFollower(_Player) //!c11
CharacterHasStatus(_Player, KNOCKED_DOWN) //!c12
CharacterHasStatus(_Player, FROZEN) //!c13
CharacterHasStatus(_Player, PETRIFIED) //!c14
CharacterHasStatus(_Player, STUNNED) //!c15
CharacterHasStatus(_Player, SLEEPING) //!c16
THEN
Set(%InvisibleDialog, 1)
DialogStart(_, "CMB_AD_Comment_InvisibleEnemyTurn", _Player)
ENDIF

As you can see, i changed sneaking to evoke the same action as turning invisible (do nothing, i guess). Am I right here? If so, how do I turn this new script into a mod?

Joined: Nov 2017
L
member
Offline
member
L
Joined: Nov 2017
The AI behaviour is performed in code, not in script.

All that bit of script does is start a dialogue, "CMB_AD_Comment_InvisibleEnemyTurn", which is a generic comment to the effect of "Show yourself!",


Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5