berelinde Posted October 31, 2011 Share Posted October 31, 2011 I'm trying to get a dialogue to fire from the dream script the first time the party rests in ToB... and it isn't happening. This is the tp2 pdialog.2da appending //2da appending for dialogues APPEND ~pdialog.2da~ ~b!gavin2 b!gavp b!gavj b!gavd b!gav25p b!gav25j b!gav25d b!gav25s~ UNLESS ~b!gavin2~ This is the script block (and yes, I checked it against the compiled script) // first night since Hell - dialogue in b!tob_romance.d IF InParty(Myself) Global("B!GavToBLT","GLOBAL",3) Global("B!GavRA","GLOBAL",2) !StateCheck(Player1,CD_STATE_NOTVALID) !StateCheck(Myself,CD_STATE_NOTVALID) See(Player1) CombatCounter(0) THEN RESPONSE #100 SetGlobal("B!GavToBLT","GLOBAL",4) PlaySong(0) PlaySound("bgav_sl") StartDialogueNoSet(Player1) END And all the variables check out. Everything from b!gav25s.bcs is firing OK, so I'm confused. Do dream scripts not run in the pocketplane? Link to comment
berelinde Posted October 31, 2011 Author Share Posted October 31, 2011 Huh. Strangest thing. The above refused to fire, no matter what I did. The script below, which changes the location of ONE LINE, went off without a hitch. So now we know: Set the global IMMEDIATELY before the SDNS(). This was the working script: IF InParty(Myself) Global("B!GavToBLT","GLOBAL",3) Global("B!GavRA","GLOBAL",2) !StateCheck(Player1,CD_STATE_NOTVALID) !StateCheck(Myself,CD_STATE_NOTVALID) See(Player1) CombatCounter(0) THEN RESPONSE #100 PlaySong(0) PlaySound("bgav_sl") SetGlobal("B!GavToBLT","GLOBAL",4) StartDialogueNoSet(Player1) END Edit: I should point out that this is a dream script. Had it been a regular override script, the activation block would have been different from the execution block and this issue would never have arisen. Link to comment
cmorgan Posted October 31, 2011 Share Posted October 31, 2011 So PlaySong() PlaySound() blocks the evaluation? What was the global setting after the first block refused to fire - not set, or set and no SDNS? Link to comment
berelinde Posted October 31, 2011 Author Share Posted October 31, 2011 Not run! I had the troubleshooting mod installed and the DSH for that script block didn't show. For whatever reason, my installation seems to be rather CTD resistant. I'll get a silent misfire or a hanging cutscene where some with newer machines will get a crash. Wonder if this is another source of inexplicable, intermittant CTD... Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.