|
|
@ -146,7 +146,6 @@ namespace MWDialogue
|
|
|
|
// TODO play sound
|
|
|
|
// TODO play sound
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MWScript::InterpreterContext interpreterContext(&mActor.getRefData().getLocals(),mActor);
|
|
|
|
MWScript::InterpreterContext interpreterContext(&mActor.getRefData().getLocals(),mActor);
|
|
|
|
callback->addResponse("", Interpreter::fixDefinesDialog(info->mResponse, interpreterContext));
|
|
|
|
callback->addResponse("", Interpreter::fixDefinesDialog(info->mResponse, interpreterContext));
|
|
|
|
executeScript (info->mResultScript, mActor);
|
|
|
|
executeScript (info->mResultScript, mActor);
|
|
|
@ -401,8 +400,10 @@ namespace MWDialogue
|
|
|
|
MWScript::InterpreterContext interpreterContext(&mActor.getRefData().getLocals(),mActor);
|
|
|
|
MWScript::InterpreterContext interpreterContext(&mActor.getRefData().getLocals(),mActor);
|
|
|
|
callback->addResponse("", Interpreter::fixDefinesDialog(text, interpreterContext));
|
|
|
|
callback->addResponse("", Interpreter::fixDefinesDialog(text, interpreterContext));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (dialogue->mType == ESM::Dialogue::Topic)
|
|
|
|
|
|
|
|
{
|
|
|
|
// Make sure the returned DialInfo is from the Dialogue we supplied. If could also be from the Info refusal group,
|
|
|
|
// Make sure the returned DialInfo is from the Dialogue we supplied. If could also be from the Info refusal group,
|
|
|
|
// in which case it should not be added to the journal.
|
|
|
|
// in which case it should not be added to the journal
|
|
|
|
for (ESM::Dialogue::InfoContainer::const_iterator iter = dialogue->mInfo.begin();
|
|
|
|
for (ESM::Dialogue::InfoContainer::const_iterator iter = dialogue->mInfo.begin();
|
|
|
|
iter!=dialogue->mInfo.end(); ++iter)
|
|
|
|
iter!=dialogue->mInfo.end(); ++iter)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -412,6 +413,7 @@ namespace MWDialogue
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
executeScript (info->mResultScript, mActor);
|
|
|
|
executeScript (info->mResultScript, mActor);
|
|
|
|
}
|
|
|
|
}
|
|
|
|