Jump to content

AreaType() check in Dreamscript leads to CTD


jastey

Recommended Posts

A dead NPC in party, with a dream script including a true AreaType() check, leads to CTD upon resting (not every time, but reliably enough).

 

This is tested for all games on BGII engine.

 

To prevent the CTD, the script block should have a false, exiting trigger before the AreaType() check.

 

This would work:

 

IF
!StateCheck(Myself,CD_STATE_NOTVALID)
AreaType(FOREST)
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
Global("xxx","GLOBAL",0)
THEN
RESPONSE #100
...

 

This would cause CTD upon resting:

IF
AreaType(FOREST)
!StateCheck(Myself,CD_STATE_NOTVALID)
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
Global("xxx","GLOBAL",0)
THEN
RESPONSE #100
...

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...