Skip to content

BGEE, and BG2: Using scout AI script allows chars without hide skill to turn invisible and hide

taltamirtaltamir Member Posts: 288
edited September 2013 in Original BG2 Bugs
Activating the BG2 thief AI script (not included in BGEE) called scout (or adding this function to any other script) will cause every character to turn invisible via a crit success.
In BG2 they turn invisible on their first try
In BGEE they fail most attempts but about 1/20 succeeds.

These are characters who do not have the hide in shadows skill at all. Level 1 fighter, level 1 mage, can become invisible by having an AI script that attempts to hide in shadow.

This isn't a case of "then just don't use it" because I am trying to come up with new, improved, combat scripts; and this forces me to create unnecessary duplicates of each, specifically excluding hide in shadows from one of them just for non thieves

The function in question (as copy pasted out of the scout script source files):
thief4 said:

IF
ActionListEmpty()
Delay(3)
!StateCheck(Myself,STATE_INVISIBLE)
THEN
RESPONSE #100
Hide()
END

PS. as far as I can tell delay(3) is a second issue with BG2 but not BGEE, in BGEE the Hide() function will only attempt 1 hide per round. In BG2 it will attempt lots of time per round unless given a delay, that acts as an "honor system" of sorts where the AI script prevents cheatings. I believe the reason there is instant success in BG2 is because I had not included a delay when I called Hide() function in my custom AI
Post edited by taltamir on

Comments

  • taltamirtaltamir Member Posts: 288
    I put this in the wrong forum apparently, as I have just confirmed this bug does exist in BGEE as well, but to a lesser extent.
    In BG2 it succeeds hiding in shadow after a single attempt.
    In BGEE it takes about 20 failed attempts before it succeeds and my level 1 mage turns invisible thanks to hiding in shadow, a skill he does not posses.
  • AlexTAlexT Member Posts: 760
    We are looking into this.
  • taltamirtaltamir Member Posts: 288
    Thank you
Sign In or Register to comment.