-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Dustil OnDeath script and new journal entries for his premature…
… death. For testing #4
- Loading branch information
1 parent
645364a
commit 104ad49
Showing
7 changed files
with
378 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
/* KOTOR Community Patch | ||
Dustil's OnDeath script. Ensures Carth will realize Dustil is dead. | ||
Updated 2019-07-13 to add journal entry checks/updates for the "Finding | ||
Dustil" quest to account for killing Dustil at various different stages. | ||
JC 2019-01-26 */ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
|
||
#include "k_inc_switch" | ||
|
||
void main() { | ||
|
||
// Set Dustil's status to dead | ||
SetGlobalNumber("KOR_DANEL", 5); | ||
|
||
// Set Carth's conversations to "nothing more to talk about" | ||
SetGlobalNumber("K_SWG_CARTH", 99); | ||
|
||
// Jordo has told Carth that Dustil is on Korriban | ||
if ((GetJournalEntry("kor35_findingdustil") == 10)) | ||
{ | ||
AddJournalQuestEntry("kor35_findingdustil", 50, FALSE); | ||
} | ||
|
||
// Dustil has been found and talked to in the Academy, and Carth | ||
// is searching for proof to convince him of the Sith's true nature | ||
if ((GetJournalEntry("kor35_findingdustil") == 20)) | ||
{ | ||
AddJournalQuestEntry("kor35_findingdustil", 60, FALSE); | ||
} | ||
|
||
// The datapad in Uthar's quarters talking about killing Dustil's | ||
// girlfriend has been found, but hasn't been given to Dustil yet | ||
if ((GetJournalEntry("kor35_findingdustil") == 25)) | ||
{ | ||
AddJournalQuestEntry("kor35_findingdustil", 70, FALSE); | ||
} | ||
|
||
//Carry out vanilla k_def_death01 function | ||
ExecuteScript("k_ai_master", OBJECT_SELF, KOTOR_DEFAULT_EVENT_ON_DEATH); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.