Posted by: jastey
« on: August 10, 2017, 08:33:23 AM »
If I compile two .d-files with one COMPILE they are treated as if the content would be in the same .d-file - or so I thought?
This doesn't seem to be true for INTERJECT or ADD_TRANS_TRIGGER, at least not if I try to do it into a mod/custom dialogue state.
What I mean is, the following works if it is inside the same .d file:
APPEND SENIYA
IF ~~ THEN BEGIN JA#SENIYA_07
SAY @17
IF ~~ THEN DO ~AddexperienceParty(600)SetGlobal("SeniyadXP","GLOBAL",1)Shout(3)EscapeArea()~ EXIT
END
END
ADD_TRANS_TRIGGER SENIYA JA#SENIYA_07
~OR(3) !InParty("jaheira") !InMyArea("jaheira") StateCheck("jaheira",CD_STATE_NOTVALID)~
DO 0
But if it is separated into two .d-files and compiled as one via COMPILE ~first.d~ ~second.d~, the error message is that it cannot resolve dlg state "JA#SENIYA_07". Same if I try INTERJECT SENIYA JA#SENIYA_07 etc.
Is this intended behavior / something we have to live with or could it be changed so that both cases work?