Skip to content

Commit 948142e

Browse files
authored
Merge pull request #147 from Argent77/tersus-fix
Fix Tersus handing out leather armor to the party
2 parents a042908 + 23bdfbf commit 948142e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

EET/compile/d/cleanBG1.d

+22
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,28 @@ IF ~GlobalGT("Chapter","GLOBAL",7)
192192
END
193193
END
194194

195+
//Tersus (Bandit Camp) should hand out the number of leather armor according to party size
196+
//Workaround for difference in scripting behavior between BGEE and BG2EE
197+
ADD_TRANS_TRIGGER ~tersus~ 3 ~NumInPartyGT(5)~
198+
REPLACE_TRANS_ACTION ~tersus~ BEGIN 3 END BEGIN END ~\bPlayer[1-6]\b~ ~\0Fill~
199+
EXTEND_BOTTOM ~tersus~ 3
200+
IF ~NumInParty(5)~ DO ~GiveItemCreate("LEAT01",Player1Fill,0,0,0)
201+
GiveItemCreate("LEAT01",Player2Fill,0,0,0)
202+
GiveItemCreate("LEAT01",Player3Fill,0,0,0)
203+
GiveItemCreate("LEAT01",Player4Fill,0,0,0)
204+
GiveItemCreate("LEAT01",Player5Fill,0,0,0)~ EXIT
205+
IF ~NumInParty(4)~ DO ~GiveItemCreate("LEAT01",Player1Fill,0,0,0)
206+
GiveItemCreate("LEAT01",Player2Fill,0,0,0)
207+
GiveItemCreate("LEAT01",Player3Fill,0,0,0)
208+
GiveItemCreate("LEAT01",Player4Fill,0,0,0)~ EXIT
209+
IF ~NumInParty(3)~ DO ~GiveItemCreate("LEAT01",Player1Fill,0,0,0)
210+
GiveItemCreate("LEAT01",Player2Fill,0,0,0)
211+
GiveItemCreate("LEAT01",Player3Fill,0,0,0)~ EXIT
212+
IF ~NumInParty(2)~ DO ~GiveItemCreate("LEAT01",Player1Fill,0,0,0)
213+
GiveItemCreate("LEAT01",Player2Fill,0,0,0)~ EXIT
214+
IF ~NumInParty(1)~ DO ~GiveItemCreate("LEAT01",Player1Fill,0,0,0)~ EXIT
215+
END
216+
195217
//STO
196218
REPLACE_STATE_TRIGGER RBALDU 0 ~Global("Chapter","GLOBAL",7)~ 1 2 3 4 10 13 16 17
197219
REPLACE_STATE_TRIGGER RBALDU 6 ~GlobalLT("Chapter","GLOBAL",8)~ 7 8 11 12 18

0 commit comments

Comments
 (0)