Hello!
I was wondering if some work could be done about a messed up dialogue (lahl.dlg) and included under "Creature Corrections". Lines said by this NPC (states 2-7) are randomized and end up not making much logical sense most of the times.
States 5, 6 and 7 could be kept random but 2-4 should not.
Furthermore, Lahl says "The wolf monstrosities killed my wife. Will you send a few of them to the Hells for me?" and the trigger for completing the mission is the death of their leader. This does not make much sense and it's also a duplication of the main objective. I suggest to change:
!Dead("karoug")
and
Dead("karoug")
with
OR(3)
!Dead("hunter")
!Dead("jondal")
!Dead("maiden")
and
Dead("hunter")
Dead("jondal")
Dead("maiden")
Those two are ambushing villagers and it'd be a more sensible choice, considering also the journal entry:
Avenge Lahl's wife.
An old farmer named Lahl asked that I kill some of the beasts outside the village to avenge his wife. It is the least I can do. Perhaps I can also arrange for these people to be able to go beyond their wall once again.
A small change would also be needed for the journal entry:
"Lahl was grateful for my defeat of Karoug." should be changed to "Lahl was grateful for my defeat of the beasts ambushing the villagers."
TENTATIVE CODE (I can't test it on EasyTuTu/BGEE so the string change block in the bottom is just BGT):
//Adjust messed up lahl dialogue
<<<<<<<< ...inlined/#glahl.d
ADD_TRANS_ACTION ~%tutu_var%lahl~ BEGIN 2 END BEGIN 0 END ~SetGlobal("HelpLahl","GLOBAL",1)~ UNLESS ~SetGlobal("HelpLahl","GLOBAL",1)~
ADD_TRANS_ACTION ~%tutu_var%lahl~ BEGIN 4 END BEGIN 0 END ~SetGlobal("HelpLahl","GLOBAL",2)~ UNLESS ~SetGlobal("HelpLahl","GLOBAL",2)~
APPEND ~%tutu_var%lahl~
IF ~Global("HelpLahl","GLOBAL",2) OR(3) !Dead("hunter") !Dead("maiden") !Dead("jondal")~ THEN BEGIN lahlispissed
SAY #13308
IF ~~ THEN EXIT
END
END
>>>>>>>>
COMPILE EVALUATE_BUFFER ~...inlined/#glahl.d~
COPY_EXISTING ~%tutu_var%lahl.dlg~ ~override~
DECOMPILE_DLG_TO_D
REPLACE_TEXTUALLY EXACT_MATCH ~RandomNum(7,1)~ ~Global("HelpLahl","GLOBAL",0)~
REPLACE_TEXTUALLY EXACT_MATCH ~RandomNum(7,2)~ ~Global("HelpLahl","GLOBAL",0)~
REPLACE_TEXTUALLY EXACT_MATCH ~RandomNum(7,3)~ ~Global("HelpLahl","GLOBAL",0)~
REPLACE_TEXTUALLY EXACT_MATCH ~RandomNum(7,4)~ ~Global("HelpLahl","GLOBAL",0)~
REPLACE_TEXTUALLY EXACT_MATCH ~RandomNum(7,5)~ ~RandomNum(3,1) !Global("HelpLahl","GLOBAL",2)~
REPLACE_TEXTUALLY EXACT_MATCH ~RandomNum(7,6)~ ~RandomNum(3,2) !Global("HelpLahl","GLOBAL",2)~
REPLACE_TEXTUALLY EXACT_MATCH ~RandomNum(7,7)~ ~RandomNum(3,3) !Global("HelpLahl","GLOBAL",2)~
REPLACE_TEXTUALLY EXACT_MATCH ~!Dead("karoug")~ ~OR(3) !Dead("hunter") !Dead("maiden") !Dead("jondal")~
REPLACE_TEXTUALLY EXACT_MATCH ~Dead("karoug")~ ~Dead("hunter") Dead("maiden") Dead("jondal") GlobalGT("HelpLahl","GLOBAL",0)~
COMPILE_D_TO_DLG
ACTION_IF GAME_IS ~bgt~ THEN BEGIN
STRING_SET 75168 ~Avenge Lahl's wife.
Lahl was grateful for my defeat of the beasts ambushing the villagers. I have made a lot of friends here. He said I would make a good addition to the village.~
END