diff --git a/kivan/audio/kivan00.ogg b/kivan/audio/kivan00.ogg new file mode 100644 index 0000000..055bddb Binary files /dev/null and b/kivan/audio/kivan00.ogg differ diff --git a/kivan/audio/kivan000.ogg b/kivan/audio/kivan000.ogg new file mode 100644 index 0000000..5aab392 Binary files /dev/null and b/kivan/audio/kivan000.ogg differ diff --git a/kivan/audio/kivan01.ogg b/kivan/audio/kivan01.ogg new file mode 100644 index 0000000..6c543f5 Binary files /dev/null and b/kivan/audio/kivan01.ogg differ diff --git a/kivan/audio/kivan02.ogg b/kivan/audio/kivan02.ogg new file mode 100644 index 0000000..b5c8256 Binary files /dev/null and b/kivan/audio/kivan02.ogg differ diff --git a/kivan/audio/kivan03.ogg b/kivan/audio/kivan03.ogg new file mode 100644 index 0000000..d24d5ef Binary files /dev/null and b/kivan/audio/kivan03.ogg differ diff --git a/kivan/audio/kivan04.ogg b/kivan/audio/kivan04.ogg new file mode 100644 index 0000000..8c0308c Binary files /dev/null and b/kivan/audio/kivan04.ogg differ diff --git a/kivan/audio/kivan05.ogg b/kivan/audio/kivan05.ogg new file mode 100644 index 0000000..c7d356e Binary files /dev/null and b/kivan/audio/kivan05.ogg differ diff --git a/kivan/audio/kivan06.ogg b/kivan/audio/kivan06.ogg new file mode 100644 index 0000000..ea1ceea Binary files /dev/null and b/kivan/audio/kivan06.ogg differ diff --git a/kivan/audio/kivan07.ogg b/kivan/audio/kivan07.ogg new file mode 100644 index 0000000..3db7d13 Binary files /dev/null and b/kivan/audio/kivan07.ogg differ diff --git a/kivan/audio/kivan08.ogg b/kivan/audio/kivan08.ogg new file mode 100644 index 0000000..6b1ef72 Binary files /dev/null and b/kivan/audio/kivan08.ogg differ diff --git a/kivan/audio/kivan09.ogg b/kivan/audio/kivan09.ogg new file mode 100644 index 0000000..75e0a64 Binary files /dev/null and b/kivan/audio/kivan09.ogg differ diff --git a/kivan/audio/kivan10.ogg b/kivan/audio/kivan10.ogg new file mode 100644 index 0000000..35d3984 Binary files /dev/null and b/kivan/audio/kivan10.ogg differ diff --git a/kivan/audio/kivan11.ogg b/kivan/audio/kivan11.ogg new file mode 100644 index 0000000..74df885 Binary files /dev/null and b/kivan/audio/kivan11.ogg differ diff --git a/kivan/audio/kivan13.ogg b/kivan/audio/kivan13.ogg new file mode 100644 index 0000000..632d2b6 Binary files /dev/null and b/kivan/audio/kivan13.ogg differ diff --git a/kivan/audio/kivan14.ogg b/kivan/audio/kivan14.ogg new file mode 100644 index 0000000..c2f7509 Binary files /dev/null and b/kivan/audio/kivan14.ogg differ diff --git a/kivan/audio/kivan17.ogg b/kivan/audio/kivan17.ogg new file mode 100644 index 0000000..df307f5 Binary files /dev/null and b/kivan/audio/kivan17.ogg differ diff --git a/kivan/audio/kivan18.ogg b/kivan/audio/kivan18.ogg new file mode 100644 index 0000000..04104d0 Binary files /dev/null and b/kivan/audio/kivan18.ogg differ diff --git a/kivan/audio/kivan19.ogg b/kivan/audio/kivan19.ogg new file mode 100644 index 0000000..895a7e2 Binary files /dev/null and b/kivan/audio/kivan19.ogg differ diff --git a/kivan/audio/kivan20.ogg b/kivan/audio/kivan20.ogg new file mode 100644 index 0000000..e373379 Binary files /dev/null and b/kivan/audio/kivan20.ogg differ diff --git a/kivan/audio/kivan21.ogg b/kivan/audio/kivan21.ogg new file mode 100644 index 0000000..b0f55a0 Binary files /dev/null and b/kivan/audio/kivan21.ogg differ diff --git a/kivan/audio/kivan22.ogg b/kivan/audio/kivan22.ogg new file mode 100644 index 0000000..3081b5a Binary files /dev/null and b/kivan/audio/kivan22.ogg differ diff --git a/kivan/audio/kivan23.ogg b/kivan/audio/kivan23.ogg new file mode 100644 index 0000000..d1d3058 Binary files /dev/null and b/kivan/audio/kivan23.ogg differ diff --git a/kivan/audio/kivan24.ogg b/kivan/audio/kivan24.ogg new file mode 100644 index 0000000..c2c8499 Binary files /dev/null and b/kivan/audio/kivan24.ogg differ diff --git a/kivan/audio/kivan25.ogg b/kivan/audio/kivan25.ogg new file mode 100644 index 0000000..9db1da8 Binary files /dev/null and b/kivan/audio/kivan25.ogg differ diff --git a/kivan/audio/kivan26.ogg b/kivan/audio/kivan26.ogg new file mode 100644 index 0000000..9ff5b81 Binary files /dev/null and b/kivan/audio/kivan26.ogg differ diff --git a/kivan/audio/kivan27.ogg b/kivan/audio/kivan27.ogg new file mode 100644 index 0000000..700652b Binary files /dev/null and b/kivan/audio/kivan27.ogg differ diff --git a/kivan/audio/kivan28.ogg b/kivan/audio/kivan28.ogg new file mode 100644 index 0000000..d816296 Binary files /dev/null and b/kivan/audio/kivan28.ogg differ diff --git a/kivan/audio/kivan29.ogg b/kivan/audio/kivan29.ogg new file mode 100644 index 0000000..6441812 Binary files /dev/null and b/kivan/audio/kivan29.ogg differ diff --git a/kivan/audio/kivan30.ogg b/kivan/audio/kivan30.ogg new file mode 100644 index 0000000..6fcec96 Binary files /dev/null and b/kivan/audio/kivan30.ogg differ diff --git a/kivan/audio/kivan31.ogg b/kivan/audio/kivan31.ogg new file mode 100644 index 0000000..6cb4525 Binary files /dev/null and b/kivan/audio/kivan31.ogg differ diff --git a/kivan/audio/kivan32.ogg b/kivan/audio/kivan32.ogg new file mode 100644 index 0000000..76bbd0f Binary files /dev/null and b/kivan/audio/kivan32.ogg differ diff --git a/kivan/audio/kivan33.ogg b/kivan/audio/kivan33.ogg new file mode 100644 index 0000000..0310ac4 Binary files /dev/null and b/kivan/audio/kivan33.ogg differ diff --git a/kivan/audio/kivan34.ogg b/kivan/audio/kivan34.ogg new file mode 100644 index 0000000..c200795 Binary files /dev/null and b/kivan/audio/kivan34.ogg differ diff --git a/kivan/audio/kivan35.ogg b/kivan/audio/kivan35.ogg new file mode 100644 index 0000000..0aa2ce5 Binary files /dev/null and b/kivan/audio/kivan35.ogg differ diff --git a/kivan/audio/kivan36.ogg b/kivan/audio/kivan36.ogg new file mode 100644 index 0000000..52220df Binary files /dev/null and b/kivan/audio/kivan36.ogg differ diff --git a/kivan/audio/kivan37.ogg b/kivan/audio/kivan37.ogg new file mode 100644 index 0000000..b2ba8de Binary files /dev/null and b/kivan/audio/kivan37.ogg differ diff --git a/kivan/audio/kivan38.ogg b/kivan/audio/kivan38.ogg new file mode 100644 index 0000000..0a50a38 Binary files /dev/null and b/kivan/audio/kivan38.ogg differ diff --git a/kivan/audio/kivan39.ogg b/kivan/audio/kivan39.ogg new file mode 100644 index 0000000..61666ec Binary files /dev/null and b/kivan/audio/kivan39.ogg differ diff --git a/kivan/audio/kivan40.ogg b/kivan/audio/kivan40.ogg new file mode 100644 index 0000000..2c2c8c4 Binary files /dev/null and b/kivan/audio/kivan40.ogg differ diff --git a/kivan/audio/kivan41.ogg b/kivan/audio/kivan41.ogg new file mode 100644 index 0000000..50b8880 Binary files /dev/null and b/kivan/audio/kivan41.ogg differ diff --git a/kivan/audio/oggdec.exe b/kivan/audio/oggdec.exe new file mode 100644 index 0000000..e764215 Binary files /dev/null and b/kivan/audio/oggdec.exe differ diff --git a/kivan/audio/p#blank.mus b/kivan/audio/p#blank.mus new file mode 100644 index 0000000..f8676d7 --- /dev/null +++ b/kivan/audio/p#blank.mus @@ -0,0 +1,3 @@ +Blank +1 +A @TAG END \ No newline at end of file diff --git a/kivan/audio/p#deh00.ogg b/kivan/audio/p#deh00.ogg new file mode 100644 index 0000000..1aaffc4 Binary files /dev/null and b/kivan/audio/p#deh00.ogg differ diff --git a/kivan/audio/p#deh01.ogg b/kivan/audio/p#deh01.ogg new file mode 100644 index 0000000..d863212 Binary files /dev/null and b/kivan/audio/p#deh01.ogg differ diff --git a/kivan/audio/p#deh02.ogg b/kivan/audio/p#deh02.ogg new file mode 100644 index 0000000..080988b Binary files /dev/null and b/kivan/audio/p#deh02.ogg differ diff --git a/kivan/audio/p#deh03.ogg b/kivan/audio/p#deh03.ogg new file mode 100644 index 0000000..7427d06 Binary files /dev/null and b/kivan/audio/p#deh03.ogg differ diff --git a/kivan/audio/p#deh04.ogg b/kivan/audio/p#deh04.ogg new file mode 100644 index 0000000..30f5ff3 Binary files /dev/null and b/kivan/audio/p#deh04.ogg differ diff --git a/kivan/audio/p#deh05.ogg b/kivan/audio/p#deh05.ogg new file mode 100644 index 0000000..0e33b1e Binary files /dev/null and b/kivan/audio/p#deh05.ogg differ diff --git a/kivan/audio/p#deh06.ogg b/kivan/audio/p#deh06.ogg new file mode 100644 index 0000000..e1ed902 Binary files /dev/null and b/kivan/audio/p#deh06.ogg differ diff --git a/kivan/audio/p#deh07.ogg b/kivan/audio/p#deh07.ogg new file mode 100644 index 0000000..1e95d1f Binary files /dev/null and b/kivan/audio/p#deh07.ogg differ diff --git a/kivan/audio/p#deh08.ogg b/kivan/audio/p#deh08.ogg new file mode 100644 index 0000000..7ca771f Binary files /dev/null and b/kivan/audio/p#deh08.ogg differ diff --git a/kivan/audio/p#deh09.ogg b/kivan/audio/p#deh09.ogg new file mode 100644 index 0000000..a1c08e1 Binary files /dev/null and b/kivan/audio/p#deh09.ogg differ diff --git a/kivan/audio/p#deh10.ogg b/kivan/audio/p#deh10.ogg new file mode 100644 index 0000000..5f6fbe4 Binary files /dev/null and b/kivan/audio/p#deh10.ogg differ diff --git a/kivan/audio/p#deh11.ogg b/kivan/audio/p#deh11.ogg new file mode 100644 index 0000000..3541ec3 Binary files /dev/null and b/kivan/audio/p#deh11.ogg differ diff --git a/kivan/audio/p#deh12.ogg b/kivan/audio/p#deh12.ogg new file mode 100644 index 0000000..ac62b4a Binary files /dev/null and b/kivan/audio/p#deh12.ogg differ diff --git a/kivan/audio/p#deh13.ogg b/kivan/audio/p#deh13.ogg new file mode 100644 index 0000000..00ea8a7 Binary files /dev/null and b/kivan/audio/p#deh13.ogg differ diff --git a/kivan/audio/p#deh14.ogg b/kivan/audio/p#deh14.ogg new file mode 100644 index 0000000..d528894 Binary files /dev/null and b/kivan/audio/p#deh14.ogg differ diff --git a/kivan/audio/p#deh15.ogg b/kivan/audio/p#deh15.ogg new file mode 100644 index 0000000..4d204e3 Binary files /dev/null and b/kivan/audio/p#deh15.ogg differ diff --git a/kivan/audio/p#deh16.ogg b/kivan/audio/p#deh16.ogg new file mode 100644 index 0000000..3e5ddeb Binary files /dev/null and b/kivan/audio/p#deh16.ogg differ diff --git a/kivan/audio/p#deh17.ogg b/kivan/audio/p#deh17.ogg new file mode 100644 index 0000000..fba9851 Binary files /dev/null and b/kivan/audio/p#deh17.ogg differ diff --git a/kivan/audio/p#deh18.ogg b/kivan/audio/p#deh18.ogg new file mode 100644 index 0000000..773ef31 Binary files /dev/null and b/kivan/audio/p#deh18.ogg differ diff --git a/kivan/audio/p#deh19.ogg b/kivan/audio/p#deh19.ogg new file mode 100644 index 0000000..0158c8f Binary files /dev/null and b/kivan/audio/p#deh19.ogg differ diff --git a/kivan/audio/p#deh20.ogg b/kivan/audio/p#deh20.ogg new file mode 100644 index 0000000..52cc849 Binary files /dev/null and b/kivan/audio/p#deh20.ogg differ diff --git a/kivan/audio/p#deh21.ogg b/kivan/audio/p#deh21.ogg new file mode 100644 index 0000000..df0b6e3 Binary files /dev/null and b/kivan/audio/p#deh21.ogg differ diff --git a/kivan/audio/p#deh22.ogg b/kivan/audio/p#deh22.ogg new file mode 100644 index 0000000..3d20c0d Binary files /dev/null and b/kivan/audio/p#deh22.ogg differ diff --git a/kivan/audio/p#deh23.ogg b/kivan/audio/p#deh23.ogg new file mode 100644 index 0000000..62060bc Binary files /dev/null and b/kivan/audio/p#deh23.ogg differ diff --git a/kivan/audio/p#deh24.ogg b/kivan/audio/p#deh24.ogg new file mode 100644 index 0000000..5d00907 Binary files /dev/null and b/kivan/audio/p#deh24.ogg differ diff --git a/kivan/audio/p#deh25.ogg b/kivan/audio/p#deh25.ogg new file mode 100644 index 0000000..a5f44f6 Binary files /dev/null and b/kivan/audio/p#deh25.ogg differ diff --git a/kivan/audio/p#deh26.ogg b/kivan/audio/p#deh26.ogg new file mode 100644 index 0000000..6f77d58 Binary files /dev/null and b/kivan/audio/p#deh26.ogg differ diff --git a/kivan/audio/p#deh27.ogg b/kivan/audio/p#deh27.ogg new file mode 100644 index 0000000..a849d0c Binary files /dev/null and b/kivan/audio/p#deh27.ogg differ diff --git a/kivan/audio/p#deh28.ogg b/kivan/audio/p#deh28.ogg new file mode 100644 index 0000000..f432103 Binary files /dev/null and b/kivan/audio/p#deh28.ogg differ diff --git a/kivan/audio/p#deh29.ogg b/kivan/audio/p#deh29.ogg new file mode 100644 index 0000000..99f8b8d Binary files /dev/null and b/kivan/audio/p#deh29.ogg differ diff --git a/kivan/audio/p#deh30.ogg b/kivan/audio/p#deh30.ogg new file mode 100644 index 0000000..878f75f Binary files /dev/null and b/kivan/audio/p#deh30.ogg differ diff --git a/kivan/audio/p#deh31.ogg b/kivan/audio/p#deh31.ogg new file mode 100644 index 0000000..813ecef Binary files /dev/null and b/kivan/audio/p#deh31.ogg differ diff --git a/kivan/audio/p#deh32.ogg b/kivan/audio/p#deh32.ogg new file mode 100644 index 0000000..275e797 Binary files /dev/null and b/kivan/audio/p#deh32.ogg differ diff --git a/kivan/audio/p#deh33.ogg b/kivan/audio/p#deh33.ogg new file mode 100644 index 0000000..4b68f11 Binary files /dev/null and b/kivan/audio/p#deh33.ogg differ diff --git a/kivan/audio/p#deh34.ogg b/kivan/audio/p#deh34.ogg new file mode 100644 index 0000000..b5fc594 Binary files /dev/null and b/kivan/audio/p#deh34.ogg differ diff --git a/kivan/audio/p#deh35.ogg b/kivan/audio/p#deh35.ogg new file mode 100644 index 0000000..a6f2dcc Binary files /dev/null and b/kivan/audio/p#deh35.ogg differ diff --git a/kivan/audio/p#deh36.ogg b/kivan/audio/p#deh36.ogg new file mode 100644 index 0000000..8f06282 Binary files /dev/null and b/kivan/audio/p#deh36.ogg differ diff --git a/kivan/audio/p#deh37.ogg b/kivan/audio/p#deh37.ogg new file mode 100644 index 0000000..b0f47f7 Binary files /dev/null and b/kivan/audio/p#deh37.ogg differ diff --git a/kivan/audio/p#deh38.ogg b/kivan/audio/p#deh38.ogg new file mode 100644 index 0000000..31cc29e Binary files /dev/null and b/kivan/audio/p#deh38.ogg differ diff --git a/kivan/audio/p#deh39.ogg b/kivan/audio/p#deh39.ogg new file mode 100644 index 0000000..7abf9fe Binary files /dev/null and b/kivan/audio/p#deh39.ogg differ diff --git a/kivan/audio/p#deh40.ogg b/kivan/audio/p#deh40.ogg new file mode 100644 index 0000000..133a3bd Binary files /dev/null and b/kivan/audio/p#deh40.ogg differ diff --git a/kivan/audio/p#deh41.ogg b/kivan/audio/p#deh41.ogg new file mode 100644 index 0000000..27fa178 Binary files /dev/null and b/kivan/audio/p#deh41.ogg differ diff --git a/kivan/audio/p#deh42.ogg b/kivan/audio/p#deh42.ogg new file mode 100644 index 0000000..0299d0f Binary files /dev/null and b/kivan/audio/p#deh42.ogg differ diff --git a/kivan/audio/p#deh43.ogg b/kivan/audio/p#deh43.ogg new file mode 100644 index 0000000..47f8a8d Binary files /dev/null and b/kivan/audio/p#deh43.ogg differ diff --git a/kivan/audio/p#deh44.ogg b/kivan/audio/p#deh44.ogg new file mode 100644 index 0000000..513abce Binary files /dev/null and b/kivan/audio/p#deh44.ogg differ diff --git a/kivan/audio/p#deh45.ogg b/kivan/audio/p#deh45.ogg new file mode 100644 index 0000000..4b072d8 Binary files /dev/null and b/kivan/audio/p#deh45.ogg differ diff --git a/kivan/audio/p#deh46.ogg b/kivan/audio/p#deh46.ogg new file mode 100644 index 0000000..869e430 Binary files /dev/null and b/kivan/audio/p#deh46.ogg differ diff --git a/kivan/audio/p#deh47.ogg b/kivan/audio/p#deh47.ogg new file mode 100644 index 0000000..007aa6c Binary files /dev/null and b/kivan/audio/p#deh47.ogg differ diff --git a/kivan/audio/p#deh48.ogg b/kivan/audio/p#deh48.ogg new file mode 100644 index 0000000..fd1d129 Binary files /dev/null and b/kivan/audio/p#deh48.ogg differ diff --git a/kivan/audio/p#deh49.ogg b/kivan/audio/p#deh49.ogg new file mode 100644 index 0000000..df80e04 Binary files /dev/null and b/kivan/audio/p#deh49.ogg differ diff --git a/kivan/audio/p#deh50.ogg b/kivan/audio/p#deh50.ogg new file mode 100644 index 0000000..334d6a0 Binary files /dev/null and b/kivan/audio/p#deh50.ogg differ diff --git a/kivan/audio/p#deh51.ogg b/kivan/audio/p#deh51.ogg new file mode 100644 index 0000000..1884b5c Binary files /dev/null and b/kivan/audio/p#deh51.ogg differ diff --git a/kivan/audio/p#deh52.ogg b/kivan/audio/p#deh52.ogg new file mode 100644 index 0000000..463895d Binary files /dev/null and b/kivan/audio/p#deh52.ogg differ diff --git a/kivan/audio/p#deh53.ogg b/kivan/audio/p#deh53.ogg new file mode 100644 index 0000000..8d906a6 Binary files /dev/null and b/kivan/audio/p#deh53.ogg differ diff --git a/kivan/audio/p#deh54.ogg b/kivan/audio/p#deh54.ogg new file mode 100644 index 0000000..6901601 Binary files /dev/null and b/kivan/audio/p#deh54.ogg differ diff --git a/kivan/audio/p#deh55.ogg b/kivan/audio/p#deh55.ogg new file mode 100644 index 0000000..0382d38 Binary files /dev/null and b/kivan/audio/p#deh55.ogg differ diff --git a/kivan/audio/p#deh56.ogg b/kivan/audio/p#deh56.ogg new file mode 100644 index 0000000..8dd34c0 Binary files /dev/null and b/kivan/audio/p#deh56.ogg differ diff --git a/kivan/audio/p#deh57.ogg b/kivan/audio/p#deh57.ogg new file mode 100644 index 0000000..878b5b4 Binary files /dev/null and b/kivan/audio/p#deh57.ogg differ diff --git a/kivan/audio/p#deh58.ogg b/kivan/audio/p#deh58.ogg new file mode 100644 index 0000000..c376013 Binary files /dev/null and b/kivan/audio/p#deh58.ogg differ diff --git a/kivan/audio/p#deh59.ogg b/kivan/audio/p#deh59.ogg new file mode 100644 index 0000000..11747fe Binary files /dev/null and b/kivan/audio/p#deh59.ogg differ diff --git a/kivan/audio/p#deh60.ogg b/kivan/audio/p#deh60.ogg new file mode 100644 index 0000000..61297bd Binary files /dev/null and b/kivan/audio/p#deh60.ogg differ diff --git a/kivan/audio/p#deh61.ogg b/kivan/audio/p#deh61.ogg new file mode 100644 index 0000000..6c6eca7 Binary files /dev/null and b/kivan/audio/p#deh61.ogg differ diff --git a/kivan/audio/p#deh62.ogg b/kivan/audio/p#deh62.ogg new file mode 100644 index 0000000..3a31f48 Binary files /dev/null and b/kivan/audio/p#deh62.ogg differ diff --git a/kivan/audio/p#deh63.ogg b/kivan/audio/p#deh63.ogg new file mode 100644 index 0000000..7a99098 Binary files /dev/null and b/kivan/audio/p#deh63.ogg differ diff --git a/kivan/audio/p#deh64.ogg b/kivan/audio/p#deh64.ogg new file mode 100644 index 0000000..776d8f8 Binary files /dev/null and b/kivan/audio/p#deh64.ogg differ diff --git a/kivan/audio/p#deh65.ogg b/kivan/audio/p#deh65.ogg new file mode 100644 index 0000000..c8e41f8 Binary files /dev/null and b/kivan/audio/p#deh65.ogg differ diff --git a/kivan/audio/p#deh66.ogg b/kivan/audio/p#deh66.ogg new file mode 100644 index 0000000..d5b2c93 Binary files /dev/null and b/kivan/audio/p#deh66.ogg differ diff --git a/kivan/audio/p#deh67.ogg b/kivan/audio/p#deh67.ogg new file mode 100644 index 0000000..c7b8f37 Binary files /dev/null and b/kivan/audio/p#deh67.ogg differ diff --git a/kivan/audio/p#male01.ogg b/kivan/audio/p#male01.ogg new file mode 100644 index 0000000..f6facc7 Binary files /dev/null and b/kivan/audio/p#male01.ogg differ diff --git a/kivan/audio/p#male02.ogg b/kivan/audio/p#male02.ogg new file mode 100644 index 0000000..83f0880 Binary files /dev/null and b/kivan/audio/p#male02.ogg differ diff --git a/kivan/audio/p#male03.ogg b/kivan/audio/p#male03.ogg new file mode 100644 index 0000000..9b14e6b Binary files /dev/null and b/kivan/audio/p#male03.ogg differ diff --git a/kivan/audio/p#male04.ogg b/kivan/audio/p#male04.ogg new file mode 100644 index 0000000..0711a88 Binary files /dev/null and b/kivan/audio/p#male04.ogg differ diff --git a/kivan/audio/p#male05.ogg b/kivan/audio/p#male05.ogg new file mode 100644 index 0000000..a869838 Binary files /dev/null and b/kivan/audio/p#male05.ogg differ diff --git a/kivan/audio/p#male07.ogg b/kivan/audio/p#male07.ogg new file mode 100644 index 0000000..fb5c04a Binary files /dev/null and b/kivan/audio/p#male07.ogg differ diff --git a/kivan/audio/p#male08.ogg b/kivan/audio/p#male08.ogg new file mode 100644 index 0000000..b094e1a Binary files /dev/null and b/kivan/audio/p#male08.ogg differ diff --git a/kivan/audio/p#male10.ogg b/kivan/audio/p#male10.ogg new file mode 100644 index 0000000..7c4527e Binary files /dev/null and b/kivan/audio/p#male10.ogg differ diff --git a/kivan/audio/p#male11.ogg b/kivan/audio/p#male11.ogg new file mode 100644 index 0000000..28a0ff9 Binary files /dev/null and b/kivan/audio/p#male11.ogg differ diff --git a/kivan/audio/p#male12.ogg b/kivan/audio/p#male12.ogg new file mode 100644 index 0000000..d23e6c8 Binary files /dev/null and b/kivan/audio/p#male12.ogg differ diff --git a/kivan/audio/p#male13.ogg b/kivan/audio/p#male13.ogg new file mode 100644 index 0000000..9c1d513 Binary files /dev/null and b/kivan/audio/p#male13.ogg differ diff --git a/kivan/audio/sox b/kivan/audio/sox new file mode 100644 index 0000000..5701130 Binary files /dev/null and b/kivan/audio/sox differ diff --git a/kivan/baf/addtocontainer.txt b/kivan/baf/addtocontainer.txt new file mode 100644 index 0000000..fe5679b --- /dev/null +++ b/kivan/baf/addtocontainer.txt @@ -0,0 +1,7 @@ +IF +Global("X#MithrilRing","FW1401",0) +THEN +RESPONSE #100 +SetGlobal("X#MithrilRing","FW1401",1) +ActionOverride("Container1",CreateItem("X#XZMIRI",0,0,0)) +END diff --git a/kivan/baf/deheriana's globals settings.txt b/kivan/baf/deheriana's globals settings.txt new file mode 100644 index 0000000..5b6a20f --- /dev/null +++ b/kivan/baf/deheriana's globals settings.txt @@ -0,0 +1,17 @@ +Deheriana is Dead: OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3) +Deheriana is Alive: OR(2) Global("P#DeherianaLives","GLOBAL",1)Global("P#DeherianaLives","GLOBAL",2) + +Kivan Takes Tazok's Heart: Global("P#TazokHeart","GLOBAL",1) +Kivan is Heald from T's heart: Global("P#TazokHeart","GLOBAL",2) +Tazok's Heart: P#TAHE.ITM + +Kivan Don't want to talk any more: GlobalLT("P#KivanOffence","GLOBAL",10) + +Kivan's Tale about Orcs: ("P#KivanCoA","GLOBAL",1) + +Falling in Love Index: DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + +///Global("P#KivanMatch","GLOBAL",1) +!Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) +GlobalLT("P#KivanOffence","GLOBAL",10)// diff --git a/kivan/baf/drowshouts.txt b/kivan/baf/drowshouts.txt new file mode 100644 index 0000000..83d2db4 --- /dev/null +++ b/kivan/baf/drowshouts.txt @@ -0,0 +1,64 @@ +IF +InParty(Myself) +Global("P#SetDrowShout","LOCALS",0) +THEN +RESPONSE #100 +SetGlobal("P#SetDrowShout","LOCALS",1) +RealSetGlobalTimer("P#KivanDrowShoutTime","GLOBAL",60) +END + +IF +AttackedBy([0.0.ELF.0.0.0.0],DEFAULT) +RealGlobalTimerExpired("P#KivanDrowShoutTime","GLOBAL") +OR(19) +AreaCheck("AR2100") +AreaCheck("AR2200") +AreaCheck("AR2101") +AreaCheck("AR2102") +AreaCheck("AR2103") +AreaCheck("AR2104") +AreaCheck("AR2105") +AreaCheck("AR2500") +AreaCheck("AR6100") +AreaCheck("AR6101") +AreaCheck("AR6102") +AreaCheck("AR6103") +AreaCheck("AR6104") +AreaCheck("AR6105") +AreaCheck("AR6106") +AreaCheck("AR6107") +AreaCheck("AR6108") +AreaCheck("AR6109") +AreaCheck("AR6110") +THEN +RESPONSE #50 + SetGlobal("P#Drow","LOCALS",1) + DisplayStringHead(Myself,~Death to the Drow!~) + RealSetGlobalTimer("P#KivanDrowShoutTime","GLOBAL",60) + Shout(153) +RESPONSE #50 + SetGlobal("P#Drow","LOCALS",1) + DisplayStringHead(Myself,~In Shevarash name!~) + RealSetGlobalTimer("P#KivanDrowShoutTime","GLOBAL",60) + Shout(153) +RESPONSE #50 + SetGlobal("P#Drow","LOCALS",1) + DisplayStringHead(Myself,~Be damned, Lloth's spawn!~) + RealSetGlobalTimer("P#KivanDrowShoutTime","GLOBAL",60) + Shout(153) +RESPONSE #50 + SetGlobal("P#Drow","LOCALS",1) + DisplayStringHead(Myself,~For Shevarash!~) + RealSetGlobalTimer("P#KivanDrowShoutTime","GLOBAL",60) + Shout(153) +RESPONSE #50 + SetGlobal("P#Drow","LOCALS",1) + DisplayStringHead(Myself,~Doomed be the dark ones!~) + RealSetGlobalTimer("P#KivanDrowShoutTime","GLOBAL",60) + Shout(153) +RESPONSE #50 + SetGlobal("P#Drow","LOCALS",1) + DisplayStringHead(Myself,~Vengeance for our fallen!~) + RealSetGlobalTimer("P#KivanDrowShoutTime","GLOBAL",60) + Shout(153) +END diff --git a/kivan/baf/kivan_initiated talk with deheriana.txt b/kivan/baf/kivan_initiated talk with deheriana.txt new file mode 100644 index 0000000..0dffed5 --- /dev/null +++ b/kivan/baf/kivan_initiated talk with deheriana.txt @@ -0,0 +1,10 @@ +// +IF +InParty(Myself) +Global("P#DeherianaLives","GLOBAL",2) +Global("P#DehWelcome","GLOBAL",0) +THEN +RESPONSE #100 +SetGlobal("P#DehWelcome","GLOBAL",1) +Interact(Player1) +END diff --git a/kivan/baf/p#anom.baf b/kivan/baf/p#anom.baf new file mode 100644 index 0000000..461d06a --- /dev/null +++ b/kivan/baf/p#anom.baf @@ -0,0 +1,18 @@ +IF +Global("Chapter","GLOBAL",%bg2_chapter_2%) +Global("P#AnomenSaerk","GLOBAL",1) +Global("AnomenIsKnight","GLOBAL",1) +Alignment("ANOMEN", LAWFUL_GOOD) +CombatCounter(0) +See(Player1) +InParty("P#Kivan") +!StateCheck(Player1,STATE_SLEEPING) +Global("P#KivanAnomenLovedSaerk","GLOBAL",1) +Global("AnomenRomanceActive","GLOBAL",2) +!GLOBAL("P#KivanRomanceInactive","GLOBAL",1) +Global("P#AnomenKivanConflict","LOCALS",0) +THEN +RESPONSE #100 +SetGlobal("P#AnomenKivanConflict","LOCALS",1) +StartDialogueNoSet(Player1) +END diff --git a/kivan/baf/p#ar0300.baf b/kivan/baf/p#ar0300.baf new file mode 100644 index 0000000..15a2b15 --- /dev/null +++ b/kivan/baf/p#ar0300.baf @@ -0,0 +1,11 @@ +IF +!Exists("P#NEIROS") +Global("P#NEIRExists","GLOBAL",0) +THEN +RESPONSE #100 +SetGlobal("P#NEIRExists","GLOBAL",1) +CreateCreature("P#NEIROS",[2678.2854],9) +END + + + diff --git a/kivan/baf/p#ar0700.baf b/kivan/baf/p#ar0700.baf new file mode 100644 index 0000000..b6e0900 --- /dev/null +++ b/kivan/baf/p#ar0700.baf @@ -0,0 +1,12 @@ +IF +GlobalLT("Chapter","GLOBAL",%bg2_chapter_2%) +!Exists("P#KIVAN") +Global("P#KIVANExists","Global",0) +!Global("X#TalkedToKivan","GLOBAL",1) +THEN +RESPONSE #100 +SetGlobal("P#KIVANExists","Global",1) +CreateCreature("P#KIVAN",[2192.2128],3) +END + + diff --git a/kivan/baf/p#ar0703.baf b/kivan/baf/p#ar0703.baf new file mode 100644 index 0000000..bcc027a --- /dev/null +++ b/kivan/baf/p#ar0703.baf @@ -0,0 +1,11 @@ +IF +!Exists("P#KIVAN") +Global("P#KIVANExists","Global",0) +!Global("X#TalkedToKivan","GLOBAL",1) +THEN +RESPONSE #100 +SetGlobal("P#KIVANExists","Global",1) +CreateCreature("P#KIVAN",[427.416],3) +END + + diff --git a/kivan/baf/p#ar1303.baf b/kivan/baf/p#ar1303.baf new file mode 100644 index 0000000..f00d6bf --- /dev/null +++ b/kivan/baf/p#ar1303.baf @@ -0,0 +1,28 @@ +IF + StateCheck("kpglai01",STATE_CHARMED) + Global("KPGlai01Talked","AR1303",0) +THEN + RESPONSE #100 + SetGlobal("KPGlai01Talked","AR1303",1) + ChangeEnemyAlly("kpglai01",NEUTRAL) + ActionOverride("kpglai01",StartDialogueNoSet([PC])) +END + +IF + Global("NaliaMove","GLOBAL",3) + Global("DeadNalia","AR1303",0) +THEN + RESPONSE #100 + SetGlobal("DeadNalia","AR1303",1) + CreateCreature("NALDEAD",[1855.1546],0) // Nalia +END + +IF + Global("BridgeOpen","GLOBAL",1) +THEN + RESPONSE #100 + SpawnPtDeactivate("SpawnPoint5") + SpawnPtDeactivate("SpawnPoint6") + SpawnPtDeactivate("SpawnPoint7") + SpawnPtDeactivate("SpawnPoint8") +END diff --git a/kivan/baf/p#ar2300.baf b/kivan/baf/p#ar2300.baf new file mode 100644 index 0000000..70174de --- /dev/null +++ b/kivan/baf/p#ar2300.baf @@ -0,0 +1,64 @@ +//Summon Jozzi// + +IF +Global("sahkngjob","GLOBAL",1) +InParty("P#Kivan") +!Dead("P#kivan") +!StateCheck("P#kivan",STATE_SLEEPING) +PartyHasItem("MISC8Q") +!Exists("seasnake") +Global("SeasnakeExists","Global",0) +Global("P#TalkedToSnake","GLOBAL",0) +THEN +RESPONSE #100 +SetGlobal("SeasnakeExists","Global",1) +CreateCreature("P#SEASN",[795.326],3) +ActionOverride("seasnake",MoveToObject(Player1)) +ActionOverride("seasnake",StartDialogueNoSet(Player1)) +END + +IF +Global("P#BetrayMalenti","GLOBAL",1) +THEN +RESPONSE #100 +SetGlobal("P#BetrayMalenti","GLOBAL",2) +ActionOverride("seasnake",ApplySpell(Myself,DRYAD_TELEPORT)) +SetGlobal("hostilecity","GLOBAL",1) +END + +IF +Global("P#MalentiWaits","GLOBAL",1) +THEN +RESPONSE #100 +SetGlobal("P#MalentiWaits","GLOBAL",2) +ActionOverride("seasnake",ApplySpell(Myself,DRYAD_TELEPORT)) +END + +IF +PartyHasItem("P#IHTIA") +!Exists("seasnake") +Global("Seasnake1Exists","Global",0) +Global("P#MalentiWaits","GLOBAL",2) +THEN +RESPONSE #100 +CreateVisualEffect("SPFIREPI",[118.712]) +SmallWait(4) +SetGlobal("P#MalentiWaits","GLOBAL",3) +SetGlobal("Seasnake1Exists","Global",1) +CreateCreature("P#SEAS1",[118.712],3) +END + +IF +PartyHasItem("P#IHTIA") +Global("P#MalentiWaits","GLOBAL",3) +CombatCounter(0) +PartyHasItem("Miscbi") +GlobalGT("villynatyjob","GLOBAL",1) +THEN +RESPONSE #100 +ActionOverride("seasnake",MoveToObject(Player1)) +ActionOverride("seasnake",StartDialogueNoSet(Player1)) +END + + + diff --git a/kivan/baf/p#ar2801.baf b/kivan/baf/p#ar2801.baf new file mode 100644 index 0000000..4f093fc --- /dev/null +++ b/kivan/baf/p#ar2801.baf @@ -0,0 +1,19 @@ +//Area 2801 + +IF +Global("P#DeherianaGoodies","AR2801",0) +Global("P#DeherianaLives","GLOBAL",2) +THEN +RESPONSE #100 +SetGlobal("P#DeherianaGoodies","AR2801",1) +ActionOverride("Table1",CreateItem("BRAC14",0,0,0)) +ActionOverride("Table1",CreateItem("SLNG10",0,0,0)) +ActionOverride("Drawer1",CreateItem("SCRL6U",0,0,0)) +ActionOverride("Drawer1",CreateItem("SCRL7L",0,0,0)) +ActionOverride("Drawer1",CreateItem("SCRL7S",0,0,0)) +ActionOverride("Drawer1",CreateItem("SCRL8Q",0,0,0)) +ActionOverride("Drawer1",CreateItem("SCRL9G",0,0,0)) +END + + + diff --git a/kivan/baf/p#ar4000_eet.baf b/kivan/baf/p#ar4000_eet.baf new file mode 100644 index 0000000..77dfc28 --- /dev/null +++ b/kivan/baf/p#ar4000_eet.baf @@ -0,0 +1,21 @@ +/* Kivan was in party upon transition: he is no longer available for summoning */ + +IF + InPartyAllowDead("P#Kivan") + Global("P#KivanSummoned","GLOBAL",0) +THEN + RESPONSE #100 + ActionOverride("P#Kivan",ChangeAIScript("P#KI25",OVERRIDE)) + SetGlobal("P#KivanSummoned","GLOBAL",2) + Continue() +END + +IF + InPartyAllowDead("P#DEHER") + Global("P#DeherianaSummoned","GLOBAL",0) +THEN + RESPONSE #100 + ActionOverride("P#DEHER",ChangeAIScript("P#DE25",OVERRIDE)) + SetGlobal("P#DeherianaSummoned","GLOBAL",2) + Continue() +END diff --git a/kivan/baf/p#botsmith.baf b/kivan/baf/p#botsmith.baf new file mode 100644 index 0000000..e8fd78a --- /dev/null +++ b/kivan/baf/p#botsmith.baf @@ -0,0 +1,9 @@ +IF + Global("ItemMaker","GLOBAL",87) + Global("ImpForgeStuff","GLOBAL",1) +THEN + RESPONSE #100 + SetGlobal("ImpForgeStuff","GLOBAL",0) + GiveItemCreate("p#bow02",Player1,0,0,0) + StartDialogueNoSet(Player1) +END diff --git a/kivan/baf/p#de25.baf b/kivan/baf/p#de25.baf new file mode 100644 index 0000000..54ad353 --- /dev/null +++ b/kivan/baf/p#de25.baf @@ -0,0 +1,78 @@ +//Set Sequential FRTOBlytalks// + +IF +InParty(Myself) +Global("P#DeherFRTOBStart","GLOBAL",0) +ReputationGT(Player1,10) +!AreaCheck("AR4000") +THEN +RESPONSE #100 +SetGlobal("P#DeherFRTOBStart","GLOBAL",1) +END + +IF +InParty(Myself) +Global("P#DeherFRTOBStart","GLOBAL",1) +Global("P#DeFRTOBTalk","GLOBAL",0) +Global("P#DeherFRTOB","GLOBAL",0) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#DeFRTOBTalkTime","GLOBAL",1800) +SetGlobal("P#DeFRTOBTalk","GLOBAL",1) +SetGlobal("P#DeherFRTOB","GLOBAL",1) +END + +IF +InParty(Myself) +CombatCounter(0) !See([ENEMY]) +RealGlobalTimerExpired("P#DeFRTOBTalkTime","GLOBAL") +ReputationGT(Player1,10) +See(Player1) +Global("P#DeherFRTOB","GLOBAL",1) +OR(4) +Global("P#DeFRTOBTalk","GLOBAL",1) +Global("P#DeFRTOBTalk","GLOBAL",3) +Global("P#DeFRTOBTalk","GLOBAL",5) +Global("P#DeFRTOBTalk","GLOBAL",7) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#DeTalkTime","GLOBAL",1) +IncrementGlobal("P#DeFRTOBTalk","GLOBAL",1) +PlaySong(0) +PlaySound("P#DEH00") +StartDialogueNoSet(Player1) +END + +IF +InParty(Myself) +RealGlobalTimerExpired("P#DeTalkTime","GLOBAL") +OR(5) +Global("P#DeFRTOBTalk","GLOBAL",2) +Global("P#DeFRTOBTalk","GLOBAL",4) +Global("P#DeFRTOBTalk","GLOBAL",6) +Global("P#DeFRTOBTalk","GLOBAL",8) +Global("P#DeFRTOBTalk","GLOBAL",10) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#DeFRTOBTalkTime","GLOBAL",3000) +IncrementGlobal("P#DeFRTOBTalk","GLOBAL",1) +END + +IF +InParty(Myself) +CombatCounter(0) !See([ENEMY]) +RealGlobalTimerExpired("P#DeFRTOBTalkTime","GLOBAL") +ReputationGT(Player1,10) +See(Player1) +Global("P#DeherFRTOB","GLOBAL",1) +Time(DAWN_START) +Global("P#DeFRTOBTalk","GLOBAL",9) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#DeTalkTime","GLOBAL",1) +IncrementGlobal("P#DeFRTOBTalk","GLOBAL",1) +PlaySong(0) +PlaySound("P#DEH00") +StartDialogueNoSet(Player1) +END + diff --git a/kivan/baf/p#deh01.baf b/kivan/baf/p#deh01.baf new file mode 100644 index 0000000..76a3852 --- /dev/null +++ b/kivan/baf/p#deh01.baf @@ -0,0 +1,342 @@ +/* EET: Deheriana will be gone if she wasn't in party during transition */ + + +IF +!InParty(Myself) +GlobalGT("Chapter","GLOBAL",%bg2_chapter_7%) +THEN +RESPONSE #100 +DestroySelf() +END + + + +IF +InParty(Myself) +Global("P#DeherPlot","GLOBAL",0) +Global("P#DeherianaLives","GLOBAL",2) +THEN +RESPONSE #100 +SetGlobal("P#DeherPlot","Global",1) +RealSetGlobalTimer("P#DeherTrial","GLOBAL",1800) +END + +IF +InParty(Myself) +RealGlobalTimerExpired("P#DeherTrial","GLOBAL") +GlobalLT("P#AerieSupport","GLOBAL",2) +GlobalLT("P#CerndSupport","GLOBAL",2) +GlobalLT("P#PCSupport","GLOBAL",2) +Global("P#DeherianaLives","GLOBAL",2) +THEN +RESPONSE #100 +SetGlobal("P#DeherianaLives","GLOBAL",3) +StartDialogueNoSet(Player1) +END + +IF +!InParty(Myself) +RealGlobalTimerExpired("P#DeherTrial","GLOBAL") +THEN +RESPONSE #100 +SetGlobal("P#DeherianaLives","GLOBAL",3) +DestroySelf() +END + +IF +InParty(Myself) +RealGlobalTimerExpired("P#DeherTrial","GLOBAL") +OR(3) +!GlobalLT("P#AerieSupport","GLOBAL",2) +!GlobalLT("P#CerndSupport","GLOBAL",2) +!GlobalLT("P#PCSupport","GLOBAL",2) +Global("P#DeherianaLives","GLOBAL",2) +THEN +RESPONSE #100 +SetGlobal("P#DeherianaLives","GLOBAL",4) +StartDialogueNoSet(Player1) +END + +//Stats Modification + +//Player1 is below 1,250,000 XP + +IF +InParty(Myself) +XPLT(Player1,1250000) +Global("P#DehWeak","GLOBAL",0) +Global("P#DeherianaLives","GLOBAL",6) +THEN +RESPONSE #100 +SetGlobal("P#DehWeak","GLOBAL",1) +AddXPObject("P#DEHER",1000000) +ReallyForceSpellRES("SPWISH02","P#DEHER") +ReallyForceSpellRES("SPWISH02","P#DEHER") +ReallyForceSpellRES("SPWISH03","P#DEHER") +ReallyForceSpellRES("SPWISH03","P#DEHER") +ReallyForceSpellRES("SPWISH03","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +END + +//player between 1,250,000 and 1,875,000 XP + +IF +InParty(Myself) +XPGT(Player1,1249999) +XPLT(Player1,1875000) +Global("P#DehWeak","GLOBAL",0) +Global("P#DeherianaLives","GLOBAL",6) +THEN +RESPONSE #100 +SetGlobal("P#DehWeak","GLOBAL",1) +AddXPObject("P#DEHER",1500000) +ReallyForceSpellRES("SPWISH02","P#DEHER") +ReallyForceSpellRES("SPWISH02","P#DEHER") +ReallyForceSpellRES("SPWISH03","P#DEHER") +ReallyForceSpellRES("SPWISH03","P#DEHER") +ReallyForceSpellRES("SPWISH03","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +END + +//player between 1,875,000 and 2250000 XP + +IF +InParty(Myself) +XPGT(Player1,1874999) +XPLT(Player1,2250000) +Global("P#DehWeak","GLOBAL",0) +Global("P#DeherianaLives","GLOBAL",6) +THEN +RESPONSE #100 +SetGlobal("P#DehWeak","GLOBAL",1) +AddXPObject("P#DEHER",2000000) +ReallyForceSpellRES("SPWISH02","P#DEHER") +ReallyForceSpellRES("SPWISH02","P#DEHER") +ReallyForceSpellRES("SPWISH03","P#DEHER") +ReallyForceSpellRES("SPWISH03","P#DEHER") +ReallyForceSpellRES("SPWISH03","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +END + +//player between 2250000 and 3000000 XP + +IF +InParty(Myself) +XPGT(Player1,2249999) +XPLT(Player1,3000000) +Global("P#DehWeak","GLOBAL",0) +Global("P#DeherianaLives","GLOBAL",6) +THEN +RESPONSE #100 +SetGlobal("P#DehWeak","GLOBAL",1) +AddXPObject("P#DEHER",2500000) +ReallyForceSpellRES("SPWISH02","P#DEHER") +ReallyForceSpellRES("SPWISH02","P#DEHER") +ReallyForceSpellRES("SPWISH03","P#DEHER") +ReallyForceSpellRES("SPWISH03","P#DEHER") +ReallyForceSpellRES("SPWISH03","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +END + +//player > 3000000 XP + +IF +InParty(Myself) +XPGT(Player1,2999999) +Global("P#DehWeak","GLOBAL",0) +Global("P#DeherianaLives","GLOBAL",6) +THEN +RESPONSE #100 +SetGlobal("P#DehWeak","GLOBAL",1) +AddXPObject("P#DEHER",3500000) +ReallyForceSpellRES("SPWISH02","P#DEHER") +ReallyForceSpellRES("SPWISH02","P#DEHER") +ReallyForceSpellRES("SPWISH03","P#DEHER") +ReallyForceSpellRES("SPWISH03","P#DEHER") +ReallyForceSpellRES("SPWISH03","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +ReallyForceSpellRES("SPWISH04","P#DEHER") +END + + +//Aerie Support +IF +InParty(Myself) +InParty("Aerie") +Global("P#DeherianaLives","GLOBAL",2) +Global("P#AerieSupport","GLOBAL",0) +THEN +RESPONSE #100 +SetGlobal("P#AerieSupport","GLOBAL",1) +RealSetGlobalTimer("P#DeherAerieTalks","GLOBAL",300) +SetGlobal("P#DEAETalk","GLOBAL",1) +END + +IF +InParty(Myself) +RealGlobalTimerExpired("P#DeherAerieTalks","GLOBAL") +Global("P#DeherianaLives","GLOBAL",2) +OR(3) +Global("P#DEAETalk","GLOBAL",1) +Global("P#DEAETalk","GLOBAL",3) +Global("P#DEAETalk","GLOBAL",5) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#DeAETalkTime","GLOBAL",1) +IncrementGlobal("P#DEAETalk","GLOBAL",1) +ActionOverride("Aerie",StartDialogueNoSet(Player1)) +END + +IF +InParty(Myself) +RealGlobalTimerExpired("P#DeAETalkTime","GLOBAL") +OR(3) +Global("P#DEAETalk","GLOBAL",2) +Global("P#DEAETalk","GLOBAL",4) +Global("P#DEAETalk","GLOBAL",6) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#DeherAerieTalks","GLOBAL",300) +IncrementGlobal("P#DEAETalk","GLOBAL",1) +END + +//Cernd Support +IF +InParty(Myself) +InParty("Cernd") +Global("P#CerndSupport","GLOBAL",0) +Global("P#DeherianaLives","GLOBAL",2) +THEN +RESPONSE #100 +SetGlobal("P#CerndSupport","GLOBAL",1) +RealSetGlobalTimer("P#DeherCerndTalks","GLOBAL",350) +SetGlobal("P#DECETalk","GLOBAL",1) +END + +IF +InParty(Myself) +RealGlobalTimerExpired("P#DeherCerndTalks","GLOBAL") +Global("P#DeherianaLives","GLOBAL",2) +OR(3) +Global("P#DECETalk","GLOBAL",1) +Global("P#DECETalk","GLOBAL",3) +Global("P#DEAETalk","GLOBAL",5) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#DeCETalkTime","GLOBAL",1) +IncrementGlobal("P#DECETalk","GLOBAL",1) +StartDialogueNoSet(Player1) +END + +IF +InParty(Myself) +RealGlobalTimerExpired("P#DeCETalkTime","GLOBAL") +OR(3) +Global("P#DECETalk","GLOBAL",2) +Global("P#DECETalk","GLOBAL",4) +Global("P#DECETalk","GLOBAL",6) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#DeherCerndTalks","GLOBAL",300) +IncrementGlobal("P#DECETalk","GLOBAL",1) +END + +//Kivan Love +IF +InParty(Myself) +InParty("P#KIVAN") +Global("P#DEKITalk","GLOBAL",0) +Global("P#DeherianaLives","GLOBAL",2) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#DeherKivanTalks","GLOBAL",200) +SetGlobal("P#DEKITalk","GLOBAL",1) +END + +IF +InParty(Myself) +RealGlobalTimerExpired("P#DeherKivanTalks","GLOBAL") +Global("P#DeherianaLives","GLOBAL",2) +OR(3) +Global("P#DEKITalk","GLOBAL",1) +Global("P#DEKITalk","GLOBAL",3) +Global("P#DEKITalk","GLOBAL",5) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#DeKITalkTime","GLOBAL",1) +IncrementGlobal("P#DEKITalk","GLOBAL",1) +ActionOverride("P#KIVAN",StartDialogueNoSet(Player1)) +END + +IF +InParty(Myself) +RealGlobalTimerExpired("P#DeKITalkTime","GLOBAL") +OR(3) +Global("P#DEKITalk","GLOBAL",2) +Global("P#DEKITalk","GLOBAL",4) +Global("P#DEKITalk","GLOBAL",6) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#DeherKivanTalks","GLOBAL",300) +IncrementGlobal("P#DEKITalk","GLOBAL",1) +END + + +//PC Support +IF +InParty(Myself) +Global("P#DeherianaLives","GLOBAL",2) +OR(4) +Class(Player1,PALADIN_ALL) +Class(Player1,DRUID_ALL) +Class(Player1,CLERIC_ALL) +Class(Player1,RANGER_ALL) +Global("P#PCSupport","GLOBAL",0) +THEN +RESPONSE #100 +SetGlobal("P#DEPCTalk","GLOBAL",1) +SetGlobal("P#PCSupport","GLOBAL",1) +RealSetGlobalTimer("P#DeherPCTalks","GLOBAL",500) +END + +IF +InParty(Myself) +RealGlobalTimerExpired("P#DeherPCTalks","GLOBAL") +Global("P#DeherianaLives","GLOBAL",2) +Global("P#DEPCTalk","GLOBAL",1) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#DePCTalkTime","GLOBAL",1) +IncrementGlobal("P#DEPCTalk","GLOBAL",1) +StartDialogueNoSet(Player1) +END + +IF +InParty(Myself) +RealGlobalTimerExpired("P#DePCTalkTime","GLOBAL") +Global("P#DEPCTalk","GLOBAL",2) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#DeherPCTalks","GLOBAL",600) +IncrementGlobal("P#DEPCTalk","GLOBAL",1) +END + diff --git a/kivan/baf/p#dehbat.baf b/kivan/baf/p#dehbat.baf new file mode 100644 index 0000000..5b60dd7 --- /dev/null +++ b/kivan/baf/p#dehbat.baf @@ -0,0 +1,630 @@ +IF + Allegiance(Myself,ENEMY) + OR(5) + See(NearestEnemyOfType([PC.0.0.BARD_ALL])) + See(NearestEnemyOfType([PC.0.0.DRUID_ALL])) + See(NearestEnemyOfType([PC.0.0.CLERIC_ALL])) + See(NearestEnemyOfType([PC.0.0.LONG_BOW])) + See(NearestEnemyOfType([PC.0.0.SORCERER])) + Global("SpellTrigger1","LOCALS",0) +THEN + RESPONSE #100 + SetGlobal("SpellTrigger1","LOCALS",1) + IncrementGlobal("NumDefenses","LOCALS",3) + FaceObject(LastSeenBy(Myself)) + DisplayString(Myself,39968) // Spell Trigger - Fired + ReallyForceSpell(Myself,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) + ReallyForceSpell(Myself,CLERIC_RIGHTEOUS_MAGIC) + ReallyForceSpellRES("dgarchon",Myself) // Shield of the Archons +END + +IF + Allegiance(Myself,ENEMY) + See(NearestEnemyOf(Myself)) + HPPercentLT(Myself,100) + Global("SpellSequencer1","LOCALS",0) +THEN + RESPONSE #100 + SetGlobal("SpellSequencer1","LOCALS",1) + DisplayString(Myself,39969) // Spell Sequencer - Fired + ReallyForceSpell(Myself,WIZARD_HASTE) + ReallyForceSpell(Myself,WIZARD_STONE_SKIN) + ReallyForceSpell(Myself,WIZARD_SPIRIT_ARMOR) +END + +IF + See([PC]) + Allegiance(Myself,ENEMY) + !StateCheck(Myself,STATE_INVISIBLE) + !StateCheck(Myself,STATE_IMPROVEDINVISIBILITY) + Global("Contingency1","LOCALS",0) + RandomNum(2,1) +THEN + RESPONSE #100 + SetGlobal("Contingency1","LOCALS",1) + FaceObject(LastSeenBy(Myself)) + DisplayString(Myself,73139) // Contingency - Fired + ReallyForceSpell(Myself,WIZARD_SHADOW_DOOR) +END + +IF + Allegiance(Myself,ENEMY) + See(NearestEnemyOf(Myself)) + Range(LastSeenBy(Myself),4) + RandomNum(2,1) + Global("MinorSequencer1","LOCALS",0) + !StateCheck(Myself,STATE_MIRRORIMAGE) + !StateCheck(Myself,STATE_BLUR) +THEN + RESPONSE #100 + SetGlobal("MinorSequencer1","LOCALS",1) + FaceObject(LastSeenBy(Myself)) + DisplayString(Myself,8635) // Minor Sequencer Activated + ReallyForceSpell(Myself,WIZARD_MIRROR_IMAGE) + ReallyForceSpell(Myself,WIZARD_BLUR) +END + +IF + HPPercentLT(Myself,50) + !GlobalTimerNotExpired("DrankPotionTimer","LOCALS") + HasItem("POTN55",Myself) // Potion of Superior Healing +THEN + RESPONSE #100 + SetGlobalTimer("DrankPotionTimer","LOCALS",6) + DisplayStringHead(Myself,46150) // quaffs a potion + UseItem("POTN55",Myself) // Potion of Superior Healing +END + +IF + HPPercentLT(Myself,40) + !HPLT(Myself,20) + !Range(NearestEnemyOf(Myself),8) + HaveSpell(CLERIC_HEAL) + GlobalLT("P#BigHeal","LOCALS",3) + !GlobalTimerNotExpired("P#DehHeal","LOCALS") +THEN + RESPONSE #100 + SetGlobalTimer("P#DehHeal","LOCALS",18) + IncrementGlobal("P#BigHeal","LOCALS",1) + ForceSpell(Myself,CLERIC_HEAL) +END + +IF + HPPercentLT(Myself,40) + !HPLT(Myself,20) + !Range(NearestEnemyOf(Myself),8) + HaveSpell(CLERIC_CURE_CRITICAL_WOUNDS) + !GlobalTimerNotExpired("P#DehHeal","LOCALS") +THEN + RESPONSE #100 + SetGlobalTimer("P#DehHeal","LOCALS",18) + ForceSpell(Myself,CLERIC_CURE_CRITICAL_WOUNDS) +END + +IF + Allegiance(Myself,ENEMY) + HPPercentLT(Myself,40) + !HPLT(Myself,20) + Range(NearestEnemyOf(Myself),10) +THEN + RESPONSE #100 + RunAwayFrom(NearestEnemyOf(Myself),45) +END + +IF + StateCheck(Myself,STATE_SILENCED) + !HPLT(Myself,20) +THEN + RESPONSE #100 + SpellNoDec(Myself,WIZARD_VOCALIZE) +END + +IF + OR(2) + CheckStatGT(Myself,0,WEB) + CheckStatGT(Myself,0,ENTANGLE) +THEN + RESPONSE #100 + SpellNoDec(Myself,CLERIC_FREE_ACTION) +END + +IF + Allegiance(Myself,ENEMY) + OR(8) + StateCheck(NearestEnemyOf(Myself),STATE_BLUR) + StateCheck(NearestEnemyOf(Myself),STATE_MIRRORIMAGE) + StateCheck(NearestEnemyOf(Myself),STATE_INVISIBLE) + StateCheck(NearestEnemyOf(Myself),STATE_IMPROVEDINVISIBILITY) + StateCheck(SecondNearestEnemyOf(Myself),STATE_INVISIBLE) + StateCheck(SecondNearestEnemyOf(Myself),STATE_IMPROVEDINVISIBILITY) + StateCheck(ThirdNearestEnemyOf(Myself),STATE_INVISIBLE) + StateCheck(ThirdNearestEnemyOf(Myself),STATE_IMPROVEDINVISIBILITY) + !GlobalTimerNotExpired("P#DehSight","LOCALS") + !HPLT(Myself,20) +THEN + RESPONSE #100 + SetGlobalTimer("P#DehSight","LOCALS",60) + ReallyForceSpell(Myself,WIZARD_TRUE_SIGHT) +END + +IF + Allegiance(Myself,ENEMY) + !StateCheck(Myself,STATE_INVISIBLE) + !StateCheck(Myself,STATE_IMPROVEDINVISIBILITY) + RandomNum(4,1) + !Range(NearestEnemyOf(Myself),8) + HaveSpell(WIZARD_IMPROVED_INVISIBILITY) + !HPLT(Myself,20) +THEN + RESPONSE #100 + Spell(Myself,WIZARD_IMPROVED_INVISIBILITY) +END + +IF + Allegiance(Myself,ENEMY) + HaveSpell(WIZARD_STONE_SKIN) + CheckStat(Myself,0,STONESKINS) + RandomNum(2,1) + !HPLT(Myself,20) +THEN + RESPONSE #100 + Spell(Myself,0) +END + +IF + Allegiance(Myself,ENEMY) + !HaveSpell(WIZARD_STONE_SKIN) + CheckStat(Myself,0,STONESKINS) + !GlobalTimerNotExpired("P#SendStone","LOCALS") + RandomNum(2,2) + !HPLT(Myself,20) +THEN + RESPONSE #100 + SetGlobalTimer("P#SendStone","LOCALS",30) + ForceSpell(Myself,0) +END + +IF + AttackedBy([GOODCUTOFF],DEFAULT) + HPPercentLT(Myself,75) + !HPLT(Myself,20) + RandomNum(3,1) + !GlobalTimerNotExpired("P#DehMantle","LOCALS") +THEN + RESPONSE #100 + SetGlobalTimer("P#DehMantle","LOCALS",24) + ForceSpell(Myself,WIZARD_MANTLE) + RESPONSE #100 + SetGlobalTimer("P#DehMantle","LOCALS",24) + ForceSpell(Myself,WIZARD_IMPROVED_MANTLE) +END + +IF + Allegiance(Myself,ENEMY) + CheckStatLT(Myself,40,RESISTMAGIC) + RandomNum(2,1) + !Range(NearestEnemyOf(Myself),8) + !HPLT(Myself,20) +THEN + RESPONSE #100 + ApplySpell(Myself,CLERIC_MAGIC_RESISTANCE) +END + +IF + !Allegiance(Myself,ENEMY) +THEN + RESPONSE #100 + NoAction() +END + +IF + See(NearestEnemyOf(Myself)) +THEN + RESPONSE #100 + Continue() +END + +IF + OR(3) + See(SecondNearestEnemyOfType([GOODCUTOFF.0.0.BARD])) + See(SecondNearestEnemyOfType([GOODCUTOFF.0.0.DRUID_ALL])) + See(SecondNearestEnemyOfType([GOODCUTOFF.0.0.CLERIC_ALL])) + !StateCheck(LastSeenBy(Myself),STATE_HELPLESS) + !StateCheck(LastSeenBy(Myself),STATE_STUNNED) + !StateCheck(LastSeenBy(Myself),STATE_PANIC) + !StateCheck(LastSeenBy(Myself),STATE_SILENCED) +THEN + RESPONSE #100 + Continue() +END + +IF + OR(3) + See(NearestEnemyOfType([GOODCUTOFF.0.0.BARD])) + See(NearestEnemyOfType([GOODCUTOFF.0.0.DRUID_ALL])) + See(NearestEnemyOfType([GOODCUTOFF.0.0.CLERIC_ALL])) + !StateCheck(LastSeenBy(Myself),STATE_HELPLESS) + !StateCheck(LastSeenBy(Myself),STATE_STUNNED) + !StateCheck(LastSeenBy(Myself),STATE_PANIC) + !StateCheck(LastSeenBy(Myself),STATE_SILENCED) +THEN + RESPONSE #100 + Continue() +END + +IF + OR(2) + See(ThirdNearestEnemyOfType([GOODCUTOFF.0.0.LONG_BOW])) + See(ThirdNearestEnemyOfType([GOODCUTOFF.0.0.SORCERER])) + !StateCheck(LastSeenBy(Myself),STATE_HELPLESS) + !StateCheck(LastSeenBy(Myself),STATE_STUNNED) + !StateCheck(LastSeenBy(Myself),STATE_PANIC) + !StateCheck(LastSeenBy(Myself),STATE_SILENCED) +THEN + RESPONSE #100 + Continue() +END + +IF + OR(2) + See(SecondNearestEnemyOfType([GOODCUTOFF.0.0.LONG_BOW])) + See(SecondNearestEnemyOfType([GOODCUTOFF.0.0.SORCERER])) + !StateCheck(LastSeenBy(Myself),STATE_HELPLESS) + !StateCheck(LastSeenBy(Myself),STATE_STUNNED) + !StateCheck(LastSeenBy(Myself),STATE_PANIC) + !StateCheck(LastSeenBy(Myself),STATE_SILENCED) +THEN + RESPONSE #100 + Continue() +END + +IF + OR(2) + See(NearestEnemyOfType([GOODCUTOFF.0.0.LONG_BOW])) + See(NearestEnemyOfType([GOODCUTOFF.0.0.SORCERER])) + !StateCheck(LastSeenBy(Myself),STATE_HELPLESS) + !StateCheck(LastSeenBy(Myself),STATE_STUNNED) + !StateCheck(LastSeenBy(Myself),STATE_PANIC) + !StateCheck(LastSeenBy(Myself),STATE_SILENCED) +THEN + RESPONSE #100 + Continue() +END + +IF + AttackedBy([ANYONE],DEFAULT) + See(LastAttackerOf(Myself)) + !StateCheck(LastSeenBy(Myself),STATE_HELPLESS) + !StateCheck(LastSeenBy(Myself),STATE_STUNNED) + !StateCheck(LastSeenBy(Myself),STATE_PANIC) +THEN + RESPONSE #100 + Continue() +END + +IF + Range(NearestEnemyOf(Myself),4) + See(NearestEnemyOf(Myself)) + !StateCheck(LastSeenBy(Myself),STATE_HELPLESS) + !StateCheck(LastSeenBy(Myself),STATE_STUNNED) + !StateCheck(LastSeenBy(Myself),STATE_PANIC) +THEN + RESPONSE #100 + Continue() +END + +IF + OR(2) + See(Player1) + See(WorstAC(Myself)) + Range(LastSeenBy(Myself),6) +THEN + RESPONSE #100 + Continue() +END + +IF + !Allegiance(LastSeenBy(Myself),GOODCUTOFF) + See([GOODCUTOFF]) +THEN + RESPONSE #100 + MoveToObject([GOODCUTOFF]) +END + +IF + !Allegiance(LastSeenBy(Myself),GOODCUTOFF) + !See([GOODCUTOFF]) + See([EVILCUTOFF]) + !StateCheck([EVILCUTOFF],STATE_HASTED) + !GlobalTimerNotExpired("P#DehHaste","LOCALS") +THEN + RESPONSE #100 + SetGlobalTimer("P#DehHaste","LOCALS",18) + SpellNoDec([EVILCUTOFF],WIZARD_HASTE) +END + +IF + OR(2) + !Allegiance(LastSeenBy(Myself),GOODCUTOFF) + !See([GOODCUTOFF]) +THEN + RESPONSE #100 + SpellNoDec(Myself,CLERIC_ANIMATE_DEAD) + RESPONSE #100 + SpellNoDec(Myself,WIZARD_SPIDER_SPAWN) + RESPONSE #100 + MoveToObject(Player1) +END + +IF + Gender(LastSeenBy(Myself),SUMMONED) + HaveSpell(WIZARD_DEATH_SPELL) + !HPLT(Myself,20) + RandomNum(2,1) + !StateCheck(LastSeenBy(Myself),STATE_INVISIBLE) + !StateCheck(LastSeenBy(Myself),STATE_IMPROVEDINVISIBILITY) + !GlobalTimerNotExpired("P#DehDeathSpell","LOCALS") +THEN + RESPONSE #100 + SetGlobalTimer("P#DehDeathSpell","LOCALS",12) + Spell(LastSeenBy(Myself),WIZARD_DEATH_SPELL) +END + +IF + HaveSpell(WIZARD_DRAGONS_BREATH) + RandomNum(3,1) + !HPLT(Myself,20) + !StateCheck(LastSeenBy(Myself),STATE_INVISIBLE) + !StateCheck(LastSeenBy(Myself),STATE_IMPROVEDINVISIBILITY) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_DRAGONS_BREATH) +END + +IF + HaveSpell(WIZARD_ABI_DALZIMS_HORRID_WILTING) + RandomNum(3,1) + !Range(LastSeenBy(Myself),12) + !HPLT(Myself,20) + !StateCheck(LastSeenBy(Myself),STATE_INVISIBLE) + !StateCheck(LastSeenBy(Myself),STATE_IMPROVEDINVISIBILITY) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_ABI_DALZIMS_HORRID_WILTING) +END + +IF + HaveSpell(CLERIC_IMPLOSION) + RandomNum(3,1) + !HPLT(Myself,20) + !StateCheck(LastSeenBy(Myself),STATE_INVISIBLE) + !StateCheck(LastSeenBy(Myself),STATE_IMPROVEDINVISIBILITY) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),CLERIC_IMPLOSION) +END + +IF + HaveSpell(ENEMY_CLERIC_HARM) + RandomNum(3,1) + Range(LastSeenBy(Myself),10) + !HPLT(Myself,20) + HPGT(LastSeenBy(Myself),60) + !StateCheck(LastSeenBy(Myself),STATE_INVISIBLE) + !StateCheck(LastSeenBy(Myself),STATE_IMPROVEDINVISIBILITY) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),ENEMY_CLERIC_HARM) +END + +IF + HaveSpell(CLERIC_CREEPING_DOOM) + OR(4) + Class(LastSeenBy(Myself),BARD_ALL) + Class(LastSeenBy(Myself),CLERIC_ALL) + Class(LastSeenBy(Myself),LONG_BOW) + Class(LastSeenBy(Myself),SORCERER) + !StateCheck(LastSeenBy(Myself),STATE_INVISIBLE) + !StateCheck(LastSeenBy(Myself),STATE_IMPROVEDINVISIBILITY) + !Range(LastSeenBy(Myself),8) + !HPLT(Myself,20) + RandomNum(3,1) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),CLERIC_CREEPING_DOOM) +END + +IF + HaveSpell(WIZARD_PIERCE_MAGIC) + OR(3) + HasImmunityEffects(LastSeenBy(Myself)) + HasBounceEffects(LastSeenBy(Myself)) + CheckStatGT(LastSeenBy(Myself),0,SHIELDGLOBE) + !HPLT(Myself,20) + RandomNum(3,1) + !StateCheck(LastSeenBy(Myself),STATE_INVISIBLE) + !StateCheck(LastSeenBy(Myself),STATE_IMPROVEDINVISIBILITY) + !Range(LastSeenBy(Myself),8) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_PIERCE_MAGIC) +END + +IF + !HPLT(Myself,20) + RandomNum(3,1) + !StateCheck(LastSeenBy(Myself),STATE_NORMAL) + !StateCheck(LastSeenBy(Myself),STATE_IMPROVEDINVISIBILITY) + !StateCheck(LastSeenBy(Myself),STATE_CONFUSED) + !StateCheck(LastSeenBy(Myself),STATE_BLIND) + !StateCheck(LastSeenBy(Myself),STATE_SILENCED) + !StateCheck(LastSeenBy(Myself),STATE_STUNNED) + !StateCheck(LastSeenBy(Myself),STATE_SLEEPING) + OR(5) + StateCheck(LastSeenBy(Myself),STATE_HASTED) + StateCheck(LastSeenBy(Myself),STATE_BLESS) + StateCheck(LastSeenBy(Myself),STATE_DRAWUPONHOLYMIGHT) + CheckStatGT(LastSeenBy(Myself),0,0) + CheckStatGT(LastSeenBy(Myself),0,0) +THEN + RESPONSE #100 + ForceSpell(LastSeenBy(Myself),WIZARD_DISPEL_MAGIC) +END + +IF + HaveSpell(WIZARD_GREATER_MALISON) + !HPLT(Myself,20) + RandomNum(2,1) + !StateCheck(LastSeenBy(Myself),STATE_INVISIBLE) + !StateCheck(LastSeenBy(Myself),STATE_IMPROVEDINVISIBILITY) + !GlobalTimerNotExpired("P#DehMalison","LOCALS") +THEN + RESPONSE #100 + SetGlobalTimer("P#DehMalison","LOCALS",120) + Spell(LastSeenBy(Myself),WIZARD_GREATER_MALISON) +END + +IF + HaveSpell(WIZARD_SPHERE_OF_CHAOS) + !HPLT(Myself,20) + RandomNum(3,1) + Range(LastSeenBy(Myself),8) + !StateCheck(LastSeenBy(Myself),STATE_INVISIBLE) + !StateCheck(LastSeenBy(Myself),STATE_IMPROVEDINVISIBILITY) + !StateCheck(LastSeenBy(Myself),STATE_CONFUSED) + !StateCheck(LastSeenBy(Myself),STATE_STUNNED) + !StateCheck(LastSeenBy(Myself),STATE_SLEEPING) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_SPHERE_OF_CHAOS) +END + +IF + HaveSpell(WIZARD_TELEPORT_FIELD) + Range(LastSeenBy(Myself),8) + Range(SecondNearestEnemyOf(Myself),8) + !HPLT(Myself,20) + RandomNum(3,1) + !StateCheck(LastSeenBy(Myself),STATE_INVISIBLE) + !StateCheck(LastSeenBy(Myself),STATE_IMPROVEDINVISIBILITY) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_TELEPORT_FIELD) +END + +IF + HaveSpell(WIZARD_SYMBOL_FEAR) + !HPLT(Myself,20) + RandomNum(2,1) + !StateCheck(LastSeenBy(Myself),STATE_PANIC) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_SYMBOL_FEAR) +END + +IF + HaveSpell(CLERIC_INSECT_PLAGUE) + OR(4) + Class(LastSeenBy(Myself),BARD_ALL) + Class(LastSeenBy(Myself),CLERIC_ALL) + Class(LastSeenBy(Myself),LONG_BOW) + Class(LastSeenBy(Myself),SORCERER) + !StateCheck(LastSeenBy(Myself),STATE_INVISIBLE) + !StateCheck(LastSeenBy(Myself),STATE_IMPROVEDINVISIBILITY) + !HPLT(Myself,20) + RandomNum(3,1) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),CLERIC_INSECT_PLAGUE) +END + +IF + HaveSpell(CLERIC_SILENCE_15_FOOT) + OR(4) + Class(LastSeenBy(Myself),BARD_ALL) + Class(LastSeenBy(Myself),CLERIC_ALL) + Class(LastSeenBy(Myself),LONG_BOW) + Class(LastSeenBy(Myself),SORCERER) + !StateCheck(LastSeenBy(Myself),STATE_INVISIBLE) + !StateCheck(LastSeenBy(Myself),STATE_IMPROVEDINVISIBILITY) + !Range(LastSeenBy(Myself),10) + !HPLT(Myself,20) + RandomNum(3,1) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),CLERIC_SILENCE_15_FOOT) +END + +IF + HaveSpell(CLERIC_FINGER_OF_DEATH) + !StateCheck(LastSeenBy(Myself),STATE_INVISIBLE) + !StateCheck(LastSeenBy(Myself),STATE_IMPROVEDINVISIBILITY) + !HPLT(Myself,20) + RandomNum(3,1) + HPGT(LastSeenBy(Myself),30) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),CLERIC_FINGER_OF_DEATH) +END + +IF + HaveSpell(WIZARD_CHAOS) + !HPLT(Myself,20) + RandomNum(3,1) + !StateCheck(LastSeenBy(Myself),STATE_INVISIBLE) + !StateCheck(LastSeenBy(Myself),STATE_IMPROVEDINVISIBILITY) + !StateCheck(LastSeenBy(Myself),STATE_CONFUSED) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_CHAOS) +END + +IF + !HPLT(Myself,20) + RandomNum(3,2) +THEN + RESPONSE #50 + SpellNoDec(Myself,CLERIC_ANIMATE_DEAD) + Continue() + RESPONSE #50 + SpellNoDec(Myself,WIZARD_SPIDER_SPAWN) + Continue() + RESPONSE #100 + Continue() +END + +IF + !Range(LastSeenBy,10) + !HPLT(Myself,20) +THEN + RESPONSE #100 + RunAwayFrom(LastSeenBy(Myself),30) + RESPONSE #100 + Continue() +END + +IF + Range(LastSeenBy,10) + !HPPercentLT(Myself,40) + !HPLT(Myself,20) +THEN + RESPONSE #100 + EquipMostDamagingMelee() + AttackReevaluate(LastSeenBy(Myself),30) + RESPONSE #100 + RunAwayFrom(NearestEnemyOf(Myself),45) +END + +IF + Range(LastSeenBy,10) + HPPercentLT(Myself,40) + !HPLT(Myself,20) +THEN + RESPONSE #50 + EquipMostDamagingMelee() + AttackReevaluate(LastSeenBy(Myself),30) + RESPONSE #100 + RunAwayFrom(NearestEnemyOf(Myself),45) +END + + diff --git a/kivan/baf/p#dehd.baf b/kivan/baf/p#dehd.baf new file mode 100644 index 0000000..d3f5a12 --- /dev/null +++ b/kivan/baf/p#dehd.baf @@ -0,0 +1 @@ + diff --git a/kivan/baf/p#deher.baf b/kivan/baf/p#deher.baf new file mode 100644 index 0000000..1fd9adc --- /dev/null +++ b/kivan/baf/p#deher.baf @@ -0,0 +1,694 @@ +IF + HasItem("POTN08",Myself) // Potion of Healing + HPPercentLT(Myself,80) +THEN + RESPONSE #100 + UseItem("POTN08",Myself) // Potion of Healing +END + +IF + HasItem("POTN52",Myself) // Potion of Extra Healing + HPPercentLT(Myself,50) +THEN + RESPONSE #100 + UseItem("POTN52",Myself) // Potion of Extra Healing +END + +IF + HPPercentLT(Myself,10) + HaveSpell(CLERIC_HEAL) +THEN + RESPONSE #100 + Spell(Myself,0) +END + +IF + See(NearestEnemyOf(Myself)) + Range(NearestEnemyOf(Myself),4) + HPPercentLT(Myself,20) +THEN + RESPONSE #100 + RunAwayFrom(LastSeenBy(Myself),10) +END + +IF + See(NearestEnemyOf(Myself)) + !Range(NearestEnemyOf(Myself),4) + HaveSpell(CLERIC_CURE_CRITICAL_WOUNDS) + HPPercentLT(Myself,20) +THEN + RESPONSE #100 + Spell(Myself,CLERIC_CURE_CRITICAL_WOUNDS) +END + +IF + See(NearestEnemyOf(Myself)) + !Range(NearestEnemyOf(Myself),4) + HaveSpell(CLERIC_CURE_SERIOUS_WOUNDS) + HPPercentLT(Myself,20) +THEN + RESPONSE #100 + Spell(Myself,CLERIC_CURE_SERIOUS_WOUNDS) +END + +IF + See(NearestEnemyOf(Myself)) + !Range(NearestEnemyOf(Myself),5) + HaveSpell(CLERIC_CURE_MEDIUM_WOUNDS) + HPPercentLT(Myself,40) +THEN + RESPONSE #100 + Spell(Myself,CLERIC_CURE_MEDIUM_WOUNDS) +END + +IF + See(NearestEnemyOf(Myself)) + !Range(NearestEnemyOf(Myself),10) + HaveSpell(CLERIC_CURE_LIGHT_WOUNDS) + HPPercentLT(Myself,50) +THEN + RESPONSE #100 + Spell(Myself,CLERIC_CURE_LIGHT_WOUNDS) +END + +IF + See(NearestEnemyOf(Myself)) + !Range(NearestEnemyOf(Myself),4) + StateCheck(Myself,STATE_POISONED) + HaveSpell(CLERIC_NEUTRALIZE_POISON) +THEN + RESPONSE #100 + Spell(Myself,CLERIC_NEUTRALIZE_POISON) +END + +IF + See(NearestEnemyOf(Myself)) + !Range(NearestEnemyOf(Myself),4) + StateCheck(Myself,STATE_POISONED) + HaveSpell(CLERIC_SLOW_POISON) +THEN + RESPONSE #100 + Spell(Myself,CLERIC_SLOW_POISON) +END + +IF + See(NearestEnemyOf(Myself)) + StateCheck(Myself,STATE_SILENCED) + HaveSpell(WIZARD_VOCALIZE) +THEN + RESPONSE #100 + Spell(Myself,WIZARD_VOCALIZE) +END + +IF + HaveSpell(WIZARD_MINOR_SPELL_DEFLECTION) + OR(4) + See(NearestEnemyOfType([0.0.0.MAGE_ALL])) + See(NearestEnemyOfType([0.0.0.CLERIC_ALL])) + See(NearestEnemyOfType([0.0.0.BARD_ALL])) + See(NearestEnemyOfType([0.0.0.DRUID_ALL])) + !HasBounceEffects(Myself) + !HasImmunityEffects(Myself) +THEN + RESPONSE #100 + Spell(Myself,WIZARD_MINOR_SPELL_DEFLECTION) +END + +IF + OR(4) + See(NearestEnemyOfType([0.0.0.MAGE_ALL])) + See(NearestEnemyOfType([0.0.0.CLERIC_ALL])) + See(NearestEnemyOfType([0.0.0.BARD_ALL])) + See(NearestEnemyOfType([0.0.0.DRUID_ALL])) + HaveSpell(WIZARD_MINOR_SPELL_TURNING) + !HasBounceEffects(Myself) + !HasImmunityEffects(Myself) +THEN + RESPONSE #100 + Spell(Myself,WIZARD_MINOR_SPELL_TURNING) +END + +IF + OR(4) + See(NearestEnemyOfType([0.0.0.MAGE_ALL])) + See(NearestEnemyOfType([0.0.0.CLERIC_ALL])) + See(NearestEnemyOfType([0.0.0.BARD_ALL])) + See(NearestEnemyOfType([0.0.0.DRUID_ALL])) + HaveSpell(WIZARD_SPELL_SHIELD) + !HasBounceEffects(Myself) + !HasImmunityEffects(Myself) +THEN + RESPONSE #100 + Spell(Myself,WIZARD_SPELL_SHIELD) +END + +IF + OR(4) + See(NearestEnemyOfType([0.0.0.MAGE_ALL])) + See(NearestEnemyOfType([0.0.0.CLERIC_ALL])) + See(NearestEnemyOfType([0.0.0.BARD_ALL])) + See(NearestEnemyOfType([0.0.0.DRUID_ALL])) + HaveSpell(WIZARD_SPELL_TURNING) + !HasBounceEffects(Myself) + !HasImmunityEffects(Myself) +THEN + RESPONSE #100 + Spell(Myself,WIZARD_SPELL_TURNING) +END + +IF + See(NearestEnemyOf(Myself)) + HaveSpell(WIZARD_STONE_SKIN) + CheckStatLT(Myself,1,STONESKINS) +THEN + RESPONSE #100 + Spell(Myself,WIZARD_STONE_SKIN) +END + +IF + See(NearestEnemyOf(Myself)) + HaveSpell(CLERIC_IRONSKIN) + CheckStatLT(Myself,1,STONESKINS) +THEN + RESPONSE #100 + Spell(Myself,CLERIC_IRONSKIN) +END + +IF + See(NearestEnemyOf(Myself)) + HaveSpell(CLERIC_BLADE_BARRIER) + Global("blade","LOCALS",0) +THEN + RESPONSE #100 + SetGlobal("blade","LOCALS",1) + Spell(Myself,CLERIC_BLADE_BARRIER) +END + +IF + See(NearestEnemyOf(Myself)) + HaveSpell(CLERIC_ARMOR_OF_FAITH) + CheckStatGT(Myself,1,ARMORCLASS) +THEN + RESPONSE #100 + Spell(Myself,CLERIC_ARMOR_OF_FAITH) +END + +IF + See(NearestEnemyOf(Myself)) + HaveSpell(WIZARD_SPIRIT_ARMOR) + CheckStatGT(Myself,1,ARMORCLASS) +THEN + RESPONSE #100 + Spell(Myself,WIZARD_SPIRIT_ARMOR) +END + +IF + See(NearestEnemyOf(Myself)) + HaveSpell(WIZARD_GHOST_ARMOR) + CheckStatGT(Myself,2,ARMORCLASS) +THEN + RESPONSE #100 + Spell(Myself,WIZARD_GHOST_ARMOR) +END + +IF + See(NearestEnemyOf(Myself)) + HaveSpell(WIZARD_MIRROR_IMAGE) + !StateCheck(Myself,STATE_MIRRORIMAGE) +THEN + RESPONSE #100 + Spell(Myself,WIZARD_MIRROR_IMAGE) +END + +IF + See(NearestEnemyOf(Myself)) + HaveSpell(WIZARD_SHIELD) + CheckStatGT(Myself,4,ARMORCLASS) +THEN + RESPONSE #100 + Spell(Myself,WIZARD_SHIELD) +END + +IF + See(NearestEnemyOf(Myself)) + HaveSpell(WIZARD_ARMOR) + CheckStatGT(Myself,6,ARMORCLASS) +THEN + RESPONSE #100 + Spell(Myself,WIZARD_ARMOR) +END + +IF + Detect(NearestEnemyOf(Myself)) + !See(NearestEnemyOf(Myself)) + HaveSpell(CLERIC_TRUE_SIGHT) +THEN + RESPONSE #100 + Spell(Myself,CLERIC_TRUE_SIGHT) +END + +IF + See(NearestEnemyOfType([0.0.0.MAGE_ALL])) + HaveSpell(WIZARD_SPELL_THRUST) + Global("pscript_SpellThrust","LOCALS",0) + OR(2) + HasBounceEffects(LastSeenBy(Myself)) + HasImmunityEffects(LastSeenBy(Myself)) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_SPELL_THRUST) + Wait(2) + SetGlobal("pscript_SpellThrust","LOCALS",1) +END + +IF + Global("pscript_SpellThrust","LOCALS",1) + See(NearestEnemyOfType([0.0.0.MAGE_ALL])) + OR(2) + HasBounceEffects(LastSeenBy(Myself)) + HasImmunityEffects(LastSeenBy(Myself)) +THEN + RESPONSE #100 + SetGlobal("pscript_SpellThrust","LOCALS",2) +END + +IF + Global("pscript_SpellThrust","LOCALS",1) + See(NearestEnemyOfType([0.0.0.MAGE_ALL])) + !HasBounceEffects(LastSeenBy(Myself)) + !HasImmunityEffects(LastSeenBy(Myself)) +THEN + RESPONSE #100 + SetGlobal("pscript_SpellThrust","LOCALS",0) +END + +IF + See(NearestEnemyOfType([0.0.0.MAGE_ALL])) + HaveSpell(WIZARD_WARDING_WHIP) + Global("pscript_WHIP","LOCALS",0) + OR(2) + HasBounceEffects(LastSeenBy(Myself)) + HasImmunityEffects(LastSeenBy(Myself)) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_WARDING_WHIP) + Wait(2) + SetGlobal("pscript_WHIP","LOCALS",1) +END + +IF + Global("pscript_WHIP","LOCALS",1) + See(NearestEnemyOfType([0.0.0.MAGE_ALL])) + OR(2) + HasBounceEffects(LastSeenBy(Myself)) + HasImmunityEffects(LastSeenBy(Myself)) +THEN + RESPONSE #100 + SetGlobal("pscript_WHIP","LOCALS",2) +END + +IF + Global("pscript_WHIP","LOCALS",1) + See(NearestEnemyOfType([0.0.0.MAGE_ALL])) + !HasBounceEffects(LastSeenBy(Myself)) + !HasImmunityEffects(LastSeenBy(Myself)) +THEN + RESPONSE #100 + SetGlobal("pscript_WHIP","LOCALS",0) +END + +IF + HasItem("WAND11",Myself) // Wand of the Heavens + See(NearestEnemyOf(Myself)) +THEN + RESPONSE #100 + UseItem("WAND11",NearestEnemyOf(Myself)) // Wand of the Heavens + Continue() +END + +IF + See(NearestEnemyOf(Myself)) + HPGT(LastSeenBy(Myself),30) + !HasBounceEffects(LastSeenBy(Myself)) + HaveSpell(WIZARD_MAZE) +THEN + RESPONSE #100 + Spell(NearestEnemyOf(Myself),WIZARD_MAZE) +END + +IF + HaveSpell(CLERIC_SILENCE_15_FOOT) + OR(2) + See(NearestEnemyOfType([0.0.0.MAGE_ALL])) + See(NearestEnemyOfType([0.0.0.CLERIC_ALL])) + !Range(LastSeenBy(Myself),15) + Range(LastSeenBy(Myself),50) + !StateCheck(LastSeenBy(Myself),STATE_SILENCED) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),CLERIC_SILENCE_15_FOOT) +END + +IF + See(NearestEnemyOf(Myself)) + HaveSpell(CLERIC_FLAME_STRIKE) +THEN + RESPONSE #100 + Spell(NearestEnemyOf(Myself),CLERIC_FLAME_STRIKE) +END + +IF + See(NearestEnemyOf(Myself)) + !HasBounceEffects(LastSeenBy(Myself)) + HaveSpell(WIZARD_CONE_OF_COLD) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_CONE_OF_COLD) +END + +IF + See(NearestEnemyOf(Myself)) + !Range(NearestEnemyOf(Myself),30) + HaveSpell(WIZARD_ICE_STORM) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_ICE_STORM) +END + +IF + See(NearestEnemyOf(Myself)) + !Range(NearestEnemyOf(Myself),30) + HaveSpell(WIZARD_CLOUDKILL) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_CLOUDKILL) +END + +IF + See(NearestEnemyOf(Myself)) + !Range(NearestEnemyOf(Myself),20) + HaveSpell(WIZARD_FIREBALL) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_FIREBALL) +END + +IF + See(NearestEnemyOf(Myself)) + !Range(NearestEnemyOf(Myself),30) + HaveSpell(WIZARD_DEATH_FOG) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_DEATH_FOG) +END + +IF + See(NearestEnemyOf(Myself)) + !HasBounceEffects(LastSeenBy(Myself)) + !General(LastSeenBy(Myself),HUMANOID) + !StateCheck(LastSeenBy(Myself),STATE_HELPLESS) + HaveSpell(WIZARD_HOLD_MONSTER) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_HOLD_MONSTER) +END + +IF + HaveSpell(WIZARD_DEATH_SPELL) + See(NearestEnemyOf(Myself)) + !HasBounceEffects(LastSeenBy(Myself)) + NumCreatureVsPartyGT([ENEMY],4) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_DEATH_SPELL) +END + +IF + HaveSpell(WIZARD_EMOTION_HOPELESSNESS) + See(NearestEnemyOf(Myself)) + !HasBounceEffects(LastSeenBy(Myself)) + NumCreatureVsPartyGT([ENEMY],3) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_EMOTION_HOPELESSNESS) +END + +IF + See(NearestEnemyOf(Myself)) + HaveSpell(CLERIC_ANIMAL_SUMMONING_3) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),0) +END + +IF + See(NearestEnemyOf(Myself)) + HaveSpell(CLERIC_MENTAL_DOMINATION) + !StateCheck(LastSeenBy(Myself),STATE_STUNNED) + !HasBounceEffects(LastSeenBy(Myself)) + HPGT(LastSeenBy(Myself),20) +THEN + RESPONSE #100 + Spell(NearestEnemyOf(Myself),CLERIC_MENTAL_DOMINATION) +END + +IF + See(NearestEnemyOf(Myself)) + HPGT(LastSeenBy(Myself),20) + !HasBounceEffects(LastSeenBy(Myself)) + HaveSpell(WIZARD_DISINTEGRATE) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_DISINTEGRATE) +END + +IF + See(NearestEnemyOf(Myself)) + !HasBounceEffects(LastSeenBy(Myself)) + HaveSpell(WIZARD_BURNING_HANDS) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_BURNING_HANDS) +END + +IF + See(NearestEnemyOf(Myself)) + !HasBounceEffects(LastSeenBy(Myself)) + HaveSpell(WIZARD_COLOR_SPRAY) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_COLOR_SPRAY) +END + +IF + See(NearestEnemyOf(Myself)) + !HasBounceEffects(LastSeenBy(Myself)) + HaveSpell(WIZARD_MAGIC_MISSILE) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_MAGIC_MISSILE) +END + +IF + See(NearestEnemyOf(Myself)) + !HasBounceEffects(LastSeenBy(Myself)) + HaveSpell(WIZARD_SLEEP) + ActionListEmpty() +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_SLEEP) +END + +IF + See(NearestEnemyOf(Myself)) + !HasBounceEffects(LastSeenBy(Myself)) + HaveSpell(WIZARD_CHROMATIC_ORB) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_CHROMATIC_ORB) +END + +IF + See(NearestEnemyOf(Myself)) + !HasBounceEffects(LastSeenBy(Myself)) + HaveSpell(WIZARD_LARLOCH_MINOR_DRAIN) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_LARLOCH_MINOR_DRAIN) +END + +IF + See(NearestEnemyOf(Myself)) + !HasBounceEffects(LastSeenBy(Myself)) + HaveSpell(WIZARD_BLINDNESS) + !StateCheck(LastSeenBy(Myself),STATE_BLIND) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_BLINDNESS) +END + +IF + See(NearestEnemyOf(Myself)) + HaveSpell(CLERIC_CLOAK_OF_FEAR) + HPGT(LastSeenBy(Myself),20) + Range(LastSeenBy(Myself),10) +THEN + RESPONSE #100 + Spell(Myself,CLERIC_CLOAK_OF_FEAR) +END + +IF + See(NearestEnemyOf(Myself)) + !HasBounceEffects(LastSeenBy(Myself)) + General(LastSeenBy(Myself),HUMANOID) + !StateCheck(LastSeenBy(Myself),STATE_HELPLESS) + HaveSpell(WIZARD_CHARM_PERSON) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_CHARM_PERSON) +END + +IF + See(NearestEnemyOf(Myself)) + !HasBounceEffects(LastSeenBy(Myself)) + HaveSpell(WIZARD_AGANNAZAR_SCORCHER) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_AGANNAZAR_SCORCHER) +END + +IF + See(NearestEnemyOf(Myself)) + !HasBounceEffects(LastSeenBy(Myself)) + HaveSpell(WIZARD_MELF_ACID_ARROW) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_MELF_ACID_ARROW) +END + +IF + See(NearestEnemyOf(Myself)) + !HasBounceEffects(LastSeenBy(Myself)) + HaveSpell(WIZARD_RAY_OF_ENFEEBLEMENT) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_RAY_OF_ENFEEBLEMENT) +END + +IF + See(NearestEnemyOf(Myself)) + HaveSpell(WIZARD_STRENGTH) +THEN + RESPONSE #100 + Spell(Myself,WIZARD_STRENGTH) +END + +IF + See(NearestEnemyOf(Myself)) + !HasBounceEffects(LastSeenBy(Myself)) + HaveSpell(WIZARD_FLAME_ARROW) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_FLAME_ARROW) +END + +IF + See(NearestEnemyOf(Myself)) + !HasBounceEffects(LastSeenBy(Myself)) + HaveSpell(WIZARD_LIGHTNING_BOLT) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_LIGHTNING_BOLT) +END + +IF + See(NearestEnemyOf(Myself)) + HaveSpell(WIZARD_IMPROVED_INVISIBILITY) +THEN + RESPONSE #100 + Spell(Myself,WIZARD_IMPROVED_INVISIBILITY) +END + +IF + See(NearestEnemyOf(Myself)) + !HasBounceEffects(LastSeenBy(Myself)) + HaveSpell(WIZARD_POLYMORPH_OTHER) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_POLYMORPH_OTHER) +END + +IF + See(NearestEnemyOf(Myself)) + !HasBounceEffects(LastSeenBy(Myself)) + HaveSpell(WIZARD_FLESH_TO_STONE) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),WIZARD_FLESH_TO_STONE) +END + +IF + See(NearestEnemyOf(Myself)) + HaveSpell(WIZARD_IMPROVED_HASTE) +THEN + RESPONSE #100 + Spell(Myself,WIZARD_IMPROVED_HASTE) +END + +IF + OR(2) + HPLT(Myself,5) + StateCheck(Myself,STATE_PANIC) +THEN + RESPONSE #100 + EscapeArea() +END + +IF + AttackedBy([ANYONE],DEFAULT) +THEN + RESPONSE #100 + EquipMostDamagingMelee() + AttackReevaluate(LastAttackerOf(Myself),30) +END + +IF + See(NearestEnemyOf(Myself)) + Range(NearestEnemyOf(Myself),10) +THEN + RESPONSE #100 + EquipMostDamagingMelee() + AttackReevaluate(NearestEnemyOf(Myself),30) +END + +IF + See(NearestEnemyOf(Myself)) + !Range(NearestEnemyOf(Myself),10) +THEN + RESPONSE #100 + EquipRanged() + AttackReevaluate(NearestEnemyOf(Myself),30) +END + +IF + Delay(10) + See(NearestEnemyOfType([0.UNDEAD])) + !Allegiance(LastSeenBy(Myself),ENEMY) + Range(LastSeenBy(Myself),5) + !StateCheck(LastSeenBy(Myself),STATE_REALLY_DEAD) +THEN + RESPONSE #100 + Turn() + Continue() +END + +IF + !Detect(NearestEnemyOf(Myself)) + Allegiance(Myself,ENEMY) + !Range(NearestEnemyOf(Myself),50) +THEN + RESPONSE #100 + EscapeArea() +END + + diff --git a/kivan/baf/p#edwid.baf b/kivan/baf/p#edwid.baf new file mode 100644 index 0000000..8227a9e --- /dev/null +++ b/kivan/baf/p#edwid.baf @@ -0,0 +1,19 @@ +//Edwin + +IF +RealGlobalTimerExpired("P#KivanRestTimer","GLOBAL") +InParty(Myself) +CombatCounter(0) !See([ENEMY]) +InParty("P#Kivan") +See("P#Kivan") +!StateCheck("P#Kivan",STATE_SLEEPING) +AreaType(OUTDOOR) +OR(3) +Global("P#KIPED1","LOCALS",0) +Global("P#KIPED1","LOCALS",2) +Global("P#KIPED1","LOCALS",4) +THEN +RESPONSE #100 +IncrementGlobal("P#KIPED1","LOCALS",1) +StartDialogueNoSet("P#kivan") +END diff --git a/kivan/baf/p#ki25.baf b/kivan/baf/p#ki25.baf new file mode 100644 index 0000000..a9a3332 --- /dev/null +++ b/kivan/baf/p#ki25.baf @@ -0,0 +1,457 @@ +//Enable Kivan's flirts + +IF +InParty(Myself) +Global("P#DisableKivanFlirts","GLOBAL",1) +THEN +RESPONSE #100 +SetGlobal("P#DisableKivanFlirts","GLOBAL",0) +END + +//Set Up the Kivan Romance Active to 2 + +IF +InParty(Myself) +Global("P#Test","GLOBAL",0) +THEN +RESPONSE #100 +SetGlobal("P#Test","GLOBAL",1) +DisplayStringHead(Myself,4592) +END + +IF +InParty(Myself) +Global("P#KivanFRTOBStartRomance","GLOBAL",0) +!Global("P#KivanRomanceInactive","GLOBAL",1) +OR(2) +Global("P#KivanRomanceActive","GLOBAL",2) +Global("P#KivanRomanceActive","GLOBAL",1) +Global("P#KivanRomanceComplete","GLOBAL",1) +!Global("AnomenRomanceActive","GLOBAL",2) +!Global("J#KelseyRomanceActive","GLOBAL",2) +!GlobalGT("SolaTalk","GLOBAL",13) +!Global("TsujathaRomanceActive","GLOBAL",2) +!Global("ChloeRomanceActiveCR","GLOBAL",2) +!Global("H#ValygarRomanceActive","GLOBAL",2) +!Global("ImoenRomanceActive","GLOBAL",2) +!Global("EdwinRomanceActive","GLOBAL",2) +!Global("O#XanRomanceActive","GLOBAL",2) +THEN +RESPONSE #100 +SetGlobal("P#KivanFRTOBStartRomance","GLOBAL",1) +SetGlobal("P#KivanRomanceActive","GLOBAL",2) +END + +IF +InParty(Myself) +Global("P#KivanFRTOBStartRomance","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",2) +!Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KiLOTOBTalk","GLOBAL",0) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#KiLOTOBTalkTime","GLOBAL",1000) +SetGlobal("P#KiLOTOBTalk","GLOBAL",1) +END + +IF +InParty(Myself) +CombatCounter(0) +!See([ENEMY]) +RealGlobalTimerExpired("P#KiLOTOBTalkTime","GLOBAL") +See(Player1) +!Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KiLOTOBTalk","GLOBAL",1) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#KiLoTalkTime","GLOBAL",1) +IncrementGlobal("P#KiLOTOBTalk","GLOBAL",1) +PlaySong(0) +PlaySound("kivan00") +StartDialogueNoSet(Player1) +END + +IF +InParty(Myself) +RealGlobalTimerExpired("P#KiLoTalkTime","GLOBAL") +OR(7) +Global("P#KiLOTOBTalk","GLOBAL",2) +Global("P#KiLOTOBTalk","GLOBAL",4) +Global("P#KiLOTOBTalk","GLOBAL",6) +Global("P#KiLOTOBTalk","GLOBAL",8) +Global("P#KiLOTOBTalk","GLOBAL",10) +Global("P#KiLOTOBTalk","GLOBAL",12) +Global("P#KiLOTOBTalk","GLOBAL",14) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#KiLOTOBTalkTime","GLOBAL",100) +IncrementGlobal("P#KiLOTOBTalk","GLOBAL",1) +END + +IF +InParty(Myself) +Global("P#KivanIntimate","GLOBAL",1) +Global("P#KiMorningTalk","GLOBAL",0) +THEN +RESPONSE #100 +IncrementGlobal("P#KiMorningTalk","GLOBAL",1) +PlaySong(0) +PlaySound("kivan00") +StartDialogueNoSet(Player1) +END + +//NPC-initiated Flirts, Part 1. Standard// + +IF +InParty(Myself) +Global("P#DisableKivanFlirts","GLOBAL",0) +Global("P#KivanRomanceActive","GLOBAL",2) +!Global("P#KivanRomanceInactive","GLOBAL",1) +GlobalGT("P#KiLOTOBTalk","GLOBAL",2) +Global("P#KivFlirtEarly","GLOBAL",0) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#KIFlirtEarlyTime","GLOBAL",300) +SetGlobal("P#KivFlirtEarly","GLOBAL",1) +END + +IF +InParty(Myself) +Global("P#DisableKivanFlirts","GLOBAL",0) +CombatCounter(0) !See([ENEMY]) +RealGlobalTimerExpired("P#KIFlirtEarlyTime","GLOBAL") +Global("P#KivanRomanceActive","GLOBAL",2) +!Global("P#KivanRomanceInactive","GLOBAL",1) +!AreaType(DUNGEON) +Global("P#KivFlirtEarly","GLOBAL",1) +THEN +RESPONSE #100 +PlaySong(0) +PlaySound("kivan00") +RealSetGlobalTimer("P#KIFlirtEarlyTime","GLOBAL",1) +IncrementGlobal("P#KivFlirtEarly","GLOBAL",1) +StartDialogueNoSet(Player1) +END + +IF +InParty(Myself) +RealGlobalTimerExpired("P#KIFlirtEarlyTime","GLOBAL") +Global("P#KivFlirtEarly","GLOBAL",2) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#KIFlirtEarlyTime","GLOBAL",2000) +IncrementGlobal("P#KivFlirtEarlyCounter","GLOBAL",1) +IncrementGlobal("P#KivFlirtEarly","GLOBAL",1) +END + +IF +InParty(Myself) +RealGlobalTimerExpired("P#KIFlirtEarlyTime","GLOBAL") +Global("P#KivFlirtEarly","GLOBAL",3) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#KIFlirtEarlyTime","GLOBAL",10) +SetGlobal("P#KivFlirtEarly","GLOBAL",1) +END + +IF +InParty(Myself) +!Global("P#KivFlirtEarly","GLOBAL",4) +OR(2) +GlobalGT("P#KivFlirtEarlyCounter","GLOBAL",30) +Global("P#DisableKivanFlirts","GLOBAL",1) +THEN +RESPONSE #100 +SetGlobal("P#KivFlirtEarly","GLOBAL",4) +END + +//NPC-initiated Flirts, Part 2. Night// + +IF +InParty(Myself) +Global("P#DisableKivanFlirts","GLOBAL",0) +Global("P#KivanRomanceActive","GLOBAL",2) +!Global("P#KivanRomanceInactive","GLOBAL",1) +GlobalGT("P#KiLOTOBTalk","GLOBAL",14) +Global("P#KivFlirtNight","GLOBAL",0) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#KIFlirtNightTime","GLOBAL",300) +SetGlobal("P#KivFlirtNight","GLOBAL",1) +END + +IF +InParty(Myself) +RealGlobalTimerExpired("P#KIFlirtNightTime","GLOBAL") +Global("P#KivFlirtNight","GLOBAL",2) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#KIFlirtNightTime","GLOBAL",100) +IncrementGlobal("P#KivFlirtNightCounter","GLOBAL",1) +IncrementGlobal("P#KivFlirtNight","GLOBAL",1) +END + +IF +InParty(Myself) +RealGlobalTimerExpired("P#KIFlirtNightTime","GLOBAL") +Global("P#KivFlirtNight","GLOBAL",3) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#KIFlirtNightTime","GLOBAL",10) +SetGlobal("P#KivFlirtNight","GLOBAL",1) +END + +IF +InParty(Myself) +!Global("P#KivFlirtNight","GLOBAL",4) +OR(2) +GlobalGT("P#KivFlirtNightCounter","GLOBAL",40) +Global("P#DisableKivanFlirts","GLOBAL",1) +THEN +RESPONSE #100 +SetGlobal("P#KivFlirtNight","GLOBAL",4) +END + +//Set Sequential FRTOBlytalks// + +IF +InParty(Myself) +Global("P#KivanFRTOBStart","GLOBAL",0) +ReputationGT(Player1,10) +!AreaCheck("AR4000") +THEN +RESPONSE #100 +SetGlobal("P#KivanFRTOBStart","GLOBAL",1) +END + +IF +InParty(Myself) +Global("P#KivanFRTOBStart","GLOBAL",1) +Global("P#KiFRTOBTalk","GLOBAL",0) +Global("P#KivanFRTOB","GLOBAL",0) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#KiFRTOBTalkTime","GLOBAL",400) +SetGlobal("P#KiFRTOBTalk","GLOBAL",1) +SetGlobal("P#KivanFRTOB","GLOBAL",1) +END + +IF +InParty(Myself) +CombatCounter(0) !See([ENEMY]) +RealGlobalTimerExpired("P#KiFRTOBTalkTime","GLOBAL") +ReputationGT(Player1,10) +See(Player1) +Global("P#KivanFRTOB","GLOBAL",1) +OR(5) +Global("P#KiFRTOBTalk","GLOBAL",1) +Global("P#KiFRTOBTalk","GLOBAL",3) +Global("P#KiFRTOBTalk","GLOBAL",5) +Global("P#KiFRTOBTalk","GLOBAL",7) +Global("P#KiFRTOBTalk","GLOBAL",9) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#KiTalkTime","GLOBAL",1) +IncrementGlobal("P#KiFRTOBTalk","GLOBAL",1) +PlaySong(0) +PlaySound("kivan00") +StartDialogueNoSet(Player1) +END + +IF +InParty(Myself) +RealGlobalTimerExpired("P#KiTalkTime","GLOBAL") +OR(5) +Global("P#KiFRTOBTalk","GLOBAL",2) +Global("P#KiFRTOBTalk","GLOBAL",4) +Global("P#KiFRTOBTalk","GLOBAL",6) +Global("P#KiFRTOBTalk","GLOBAL",8) +Global("P#KiFRTOBTalk","GLOBAL",10) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#KiFRTOBTalkTime","GLOBAL",1800) +IncrementGlobal("P#KiFRTOBTalk","GLOBAL",1) +END + +//Conditional Friendship Talks// + +//In Amkethran, the Talk about Melissan + +IF +InParty(Myself) +CombatCounter(0) !See([ENEMY]) +AreaCheck("AR5500") +Global("P#KiMelissanTalk","GLOBAL",0) +See(Player1) +THEN +RESPONSE #100 +IncrementGlobal("P#KiMelissanTalk","GLOBAL",1) +RealSetGlobalTimer("P#KiFRTOBTalkTime","GLOBAL",900) +PlaySong(0) +PlaySound("kivan00") +StartDialogueNoSet(Player1) +END + +//Saradush Fell + +IF +InParty(Myself) +CombatCounter(0) +!See([ENEMY]) +See(Player1) +!StateCheck(Player1,STATE_SLEEPING) +Dead("yaga01") +Global("P#KiSaradushTalk","GLOBAL",0) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#KiSaradushTalkTime","GLOBAL",1000) +IncrementGlobal("P#KiSaradushTalk","GLOBAL",1) +END + +IF +InParty(Myself) +CombatCounter(0) !See([ENEMY]) +RealGlobalTimerExpired("P#KiSaradushTalkTime","GLOBAL") +ReputationGT(Player1,10) +See(Player1) +Global("P#KiSaradushTalk","GLOBAL",1) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#KiTalkTime","GLOBAL",900) +IncrementGlobal("P#KiSaradushTalk","GLOBAL",1) +PlaySong(0) +PlaySound("kivan00") +StartDialogueNoSet(Player1) +END + +//Met Balthazar + +IF +InParty(Myself) +CombatCounter(0) +!See([ENEMY]) +See(Player1) +!StateCheck(Player1,STATE_SLEEPING) +GlobalGT("METBAL","GLOBAL",0) +Global("P#KiLordTalk","GLOBAL",0) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#KiLordTalkTime","GLOBAL",1000) +IncrementGlobal("P#KiLordTalk","GLOBAL",1) +END + +IF +InParty(Myself) +CombatCounter(0) !See([ENEMY]) +RealGlobalTimerExpired("P#KiLordTalkTime","GLOBAL") +ReputationGT(Player1,10) +See(Player1) +Global("P#KiLordTalk","GLOBAL",1) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#KiTalkTime","GLOBAL",900) +IncrementGlobal("P#KiLordTalk","GLOBAL",1) +PlaySong(0) +PlaySound("kivan00") +StartDialogueNoSet(Player1) +END + +//Trial Talk + +IF +InParty(Myself) +CombatCounter(0) !See([ENEMY]) +See(Player1) +GlobalGT("BeginChallenge4","GLOBAL",5) +Global("P#KiTrialTalk","GLOBAL",0) +AreaCheck("AR4500") +THEN +RESPONSE #100 +RealSetGlobalTimer("P#KiTalkTime","GLOBAL",900) +IncrementGlobal("P#KiTrialTalk","GLOBAL",1) +PlaySong(0) +PlaySound("kivan00") +StartDialogueNoSet(Player1) +END + +//Watcher's Keep itj + +IF +InParty(Myself) +CombatCounter(0) !See([ENEMY]) +See(Player1) +Global("TalkedTozGarOdr1","GLOBAL",1) +Global("P#KiWKTalk","GLOBAL",0) +AreaCheck("AR3000") +THEN +RESPONSE #100 +RealSetGlobalTimer("P#KiTalkTime","GLOBAL",900) +IncrementGlobal("P#KiWKTalk","GLOBAL",1) +StartDialogueNoSet(Player1) +END + +//Abazigal Talk + +IF +InParty(Myself) +CombatCounter(0) !See([ENEMY]) +See(Player1) +OR(2) +Dead("abazigal1") +Dead("abazigal") +Global("P#KiDragonBhaalspawn","GLOBAL",0) +AreaCheck("AR6005") +THEN +RESPONSE #100 +RealSetGlobalTimer("P#KiTalkTime","GLOBAL",900) +SetGlobal("P#KiDragonBhaalspawn","GLOBAL",1) +PlaySong(0) +PlaySound("kivan00") +StartDialogueNoSet(Player1) +END + +//Trial Talk, Romance + +IF +InParty(Myself) +CombatCounter(0) !See([ENEMY]) +See(Player1) +Global("P#KivanRomanceActive","GLOBAL",2) +!Global("P#KivanRomanceInactive","GLOBAL",1) +GlobalGT("BeginChallenge3","GLOBAL",2) +Global("P#KiInnocence","GLOBAL",0) +AreaCheck("AR4500") +THEN +RESPONSE #100 +RealSetGlobalTimer("P#KiTalkTime","GLOBAL",900) +IncrementGlobal("P#KiInnocence","GLOBAL",1) +PlaySong(0) +PlaySound("kivan00") +StartDialogueNoSet(Player1) +END + +//Ardic Itj + +IF +InParty(Myself) +CombatCounter(0) !See([ENEMY]) +See(Player1) +Global("ArdicSaved","GLOBAL",1) +Global("P#KivanAdric","GLOBAL",0) +AreaCheck("AR5014") +THEN +RESPONSE #100 +SetGlobal("P#KivanAdric","GLOBAL",1) +StartDialogueNoSet(Player1) +END + +IF +InParty(Myself) +CombatCounter(0) !See([ENEMY]) +See(Player1) +Global("P#KivanAdric","GLOBAL",1) +!AreaCheck("AR5014") +THEN +RESPONSE #100 +SetGlobal("P#KivanAdric","GLOBAL",2) +END diff --git a/kivan/baf/p#ki25d.baf b/kivan/baf/p#ki25d.baf new file mode 100644 index 0000000..dd22e01 --- /dev/null +++ b/kivan/baf/p#ki25d.baf @@ -0,0 +1,36 @@ +IF +InParty(Myself) +CombatCounter(0) !See([ENEMY]) +RealGlobalTimerExpired("P#KiLOTOBTalkTime","GLOBAL") +See(Player1) +OR(6) +Global("P#KiLOTOBTalk","GLOBAL",3) +Global("P#KiLOTOBTalk","GLOBAL",5) +Global("P#KiLOTOBTalk","GLOBAL",7) +Global("P#KiLOTOBTalk","GLOBAL",9) +Global("P#KiLOTOBTalk","GLOBAL",11) +Global("P#KiLOTOBTalk","GLOBAL",13) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#KiLoTalkTime","GLOBAL",1) +IncrementGlobal("P#KiLOTOBTalk","GLOBAL",1) +PlaySong(0) +PlaySound("kivan00") +StartDialogueNoSet(Player1) +END + +IF +InParty(Myself) +Global("P#DisableKivanFlirts","GLOBAL",0) +RealGlobalTimerExpired("P#KIFlirtNightTime","GLOBAL") +Global("P#KivanRomanceActive","GLOBAL",2) +!Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivFlirtNight","GLOBAL",1) +THEN +RESPONSE #100 +PlaySong(0) +PlaySound("kivan00") +RealSetGlobalTimer("P#KIFlirtNightTime","GLOBAL",1) +IncrementGlobal("P#KivFlirtNight","GLOBAL",1) +StartDialogueNoSet(Player1) +END diff --git a/kivan/baf/p#kilove.baf b/kivan/baf/p#kilove.baf new file mode 100644 index 0000000..02fff1b --- /dev/null +++ b/kivan/baf/p#kilove.baf @@ -0,0 +1,407 @@ +//Romance Breaker, Universal// + +IF +Global("P#KivanRomanceActive","GLOBAL",1) +Global("P#KivanRomanceInactive","GLOBAL",0) +OR(2) +GlobalLT("P#KivanLove","GLOBAL",3) +GlobalGT("P#KivanOffence","GLOBAL",4) +THEN +RESPONSE #100 +SetGlobal("P#KivanRomanceActive","GLOBAL",0) +SetGlobal("P#KivanRomanceInactive","GLOBAL",1) +END + +//Romance Resumed, Universal// + +IF +Global("P#KivanRomanceActive","GLOBAL",0) +Global("P#KivanRomanceInactive","GLOBAL",1) +GlobalGT("P#KivanLove","GLOBAL",5) +!GlobalGT("P#KivanOffence","GLOBAL",4) +THEN +RESPONSE #100 +SetGlobal("P#KivanRomanceActive","GLOBAL",1) +SetGlobal("P#KivanRomanceInactive","GLOBAL",0) +END + +//Reaction to Anomen// + +IF +InParty(Myself) +Global("P#ReactAnomenLight","GLOBAL",0) +Global("AnomenRomanceActive","GLOBAL",1) +THEN +RESPONSE #100 +SetGlobal("P#ReactAnomenLight","GLOBAL",1) +IncrementGlobal("P#KivanLove","GLOBAL",-3) +END + +IF +InParty(Myself) +Global("P#ReactAnomenLight","GLOBAL",1) +Global("AnomenRomanceActive","GLOBAL",3) +THEN +RESPONSE #100 +SetGlobal("P#ReactAnomenLight","GLOBAL",2) +IncrementGlobal("P#KivanLove","GLOBAL",3) +END + +IF +InParty(Myself) +Global("P#ReactAnomenSerious","GLOBAL",0) +Global("AnomenRomanceActive","GLOBAL",2) +THEN +RESPONSE #100 +SetGlobal("P#ReactAnomenSerious","GLOBAL",1) +SetGlobal("P#KivanLove","GLOBAL",-10) +END + +IF +InParty(Myself) +Global("P#ReactAnomenSerious","GLOBAL",1) +Global("AnomenRomanceActive","GLOBAL",3) +THEN +RESPONSE #100 +SetGlobal("P#ReactAnomenSerious","GLOBAL",2) +IncrementGlobal("P#KivanLove","GLOBAL",5) +END + +//Reaction to Kelsey// + +IF +InParty(Myself) +Global("P#ReactKelseyLight","GLOBAL",0) +Global("J#KelseyRomanceActive","GLOBAL",1) +THEN +RESPONSE #100 +SetGlobal("P#ReactKelseyLight","GLOBAL",1) +IncrementGlobal("P#KivanLove","GLOBAL",-3) +END + +IF +InParty(Myself) +Global("P#ReactKelseyLight","GLOBAL",1) +Global("J#KelseyRomanceActive","GLOBAL",3) +THEN +RESPONSE #100 +SetGlobal("P#ReactKelseyLight","GLOBAL",2) +IncrementGlobal("P#KivanLove","GLOBAL",3) +END + +IF +InParty(Myself) +Global("P#ReactKelseySerious","GLOBAL",0) +Global("J#KelseyRomanceActive","GLOBAL",2) +THEN +RESPONSE #100 +SetGlobal("P#ReactKelseySerious","GLOBAL",1) +SetGlobal("P#KivanLove","GLOBAL",-10) +END + +IF +InParty(Myself) +Global("P#ReactKelseySerious","GLOBAL",1) +Global("J#KelseyRomanceActive","GLOBAL",3) +THEN +RESPONSE #100 +SetGlobal("P#ReactKelseySerious","GLOBAL",2) +IncrementGlobal("P#KivanLove","GLOBAL",5) +END + +//Reaction to Solaufein// + +IF +InParty(Myself) +Global("P#ReactSolaLight","GLOBAL",0) +GlobalGT("SolaTalk","GLOBAL",1) +GlobalLT("SolaTalk","GLOBAL",15) +THEN +RESPONSE #100 +SetGlobal("P#ReactSolaLight","GLOBAL",1) +IncrementGlobal("P#KivanLove","GLOBAL",-3) +END + +IF +InParty(Myself) +Global("P#ReactSolaLight","GLOBAL",1) +Global("SolaTalk","GLOBAL",-1) +THEN +RESPONSE #100 +SetGlobal("P#ReactSolaLight","GLOBAL",2) +IncrementGlobal("P#KivanLove","GLOBAL",3) +END + +IF +InParty(Myself) +Global("P#ReactSolaSerious","GLOBAL",0) +GlobalGT("SolaTalk","GLOBAL",13) +THEN +RESPONSE #100 +SetGlobal("P#ReactSolaSerious","GLOBAL",1) +SetGlobal("P#KivanLove","GLOBAL",-10) +END + +IF +InParty(Myself) +Global("P#ReactSolaSerious","GLOBAL",1) +GlobalLT("SolaTalk","GLOBAL",0) +THEN +RESPONSE #100 +SetGlobal("P#ReactSolaSerious","GLOBAL",2) +IncrementGlobal("P#KivanLove","GLOBAL",5) +END + +//Reaction to Tsujatha// + +IF +InParty(Myself) +Global("P#ReactTsujLight","GLOBAL",0) +Global("TsujathaRomanceActive","GLOBAL",1) +THEN +RESPONSE #100 +SetGlobal("P#ReactTsujLight","GLOBAL",1) +IncrementGlobal("P#KivanLove","GLOBAL",-3) +END + +IF +InParty(Myself) +Global("P#ReactTsujLight","GLOBAL",1) +Global("TsujathaRomanceActive","GLOBAL",3) +THEN +RESPONSE #100 +SetGlobal("P#ReactTsujLight","GLOBAL",2) +IncrementGlobal("P#KivanLove","GLOBAL",3) +END + +IF +InParty(Myself) +Global("P#ReactTsujSerious","GLOBAL",0) +Global("TsujathaRomanceActive","GLOBAL",2) +THEN +RESPONSE #100 +SetGlobal("P#ReactTsujSerious","GLOBAL",1) +SetGlobal("P#KivanLove","GLOBAL",-10) +END + +IF +InParty(Myself) +Global("P#ReactTsujSerious","GLOBAL",1) +Global("TsujathaRomanceActive","GLOBAL",3) +THEN +RESPONSE #100 +SetGlobal("P#ReactTsujSerious","GLOBAL",2) +IncrementGlobal("P#KivanLove","GLOBAL",5) +END + +//Reaction to Chloe// + +IF +InParty(Myself) +Global("P#ReactChloeLight","GLOBAL",0) +Global("ChloeRomanceActiveCR","GLOBAL",1) +THEN +RESPONSE #100 +SetGlobal("P#ReactChloeLight","GLOBAL",1) +IncrementGlobal("P#KivanLove","GLOBAL",-3) +END + +IF +InParty(Myself) +Global("P#ReactChloeLight","GLOBAL",1) +Global("ChloeRomanceActiveCR","GLOBAL",3) +THEN +RESPONSE #100 +SetGlobal("P#ReactChloeLight","GLOBAL",2) +IncrementGlobal("P#KivanLove","GLOBAL",3) +END + +IF +InParty(Myself) +Global("P#ReactChloeSerious","GLOBAL",0) +Global("ChloeRomanceActiveCR","GLOBAL",2) +THEN +RESPONSE #100 +SetGlobal("P#ReactChloeSerious","GLOBAL",1) +SetGlobal("P#KivanLove","GLOBAL",-10) +END + +IF +InParty(Myself) +Global("P#ReactChloeSerious","GLOBAL",1) +Global("ChloeRomanceActiveCR","GLOBAL",3) +THEN +RESPONSE #100 +SetGlobal("P#ReactChloeSerious","GLOBAL",2) +IncrementGlobal("P#KivanLove","GLOBAL",5) +END + +//Reaction to Valygar// + +IF +InParty(Myself) +Global("P#ReactValyLight","GLOBAL",0) +Global("H#ValygarRomanceActive","GLOBAL",1) +THEN +RESPONSE #100 +SetGlobal("P#ReactValyLight","GLOBAL",1) +IncrementGlobal("P#KivanLove","GLOBAL",-3) +END + +IF +InParty(Myself) +Global("P#ReactValyLight","GLOBAL",1) +Global("H#ValygarRomanceActive","GLOBAL",3) +THEN +RESPONSE #100 +SetGlobal("P#ReactValyLight","GLOBAL",2) +IncrementGlobal("P#KivanLove","GLOBAL",3) +END + +IF +InParty(Myself) +Global("P#ReactValySerious","GLOBAL",0) +Global("H#ValygarRomanceActive","GLOBAL",2) +THEN +RESPONSE #100 +SetGlobal("P#ReactValySerious","GLOBAL",1) +SetGlobal("P#KivanLove","GLOBAL",-10) +END + +IF +InParty(Myself) +Global("P#ReactValySerious","GLOBAL",1) +Global("H#ValygarRomanceActive","GLOBAL",3) +THEN +RESPONSE #100 +SetGlobal("P#ReactValySerious","GLOBAL",2) +IncrementGlobal("P#KivanLove","GLOBAL",5) +END + +//Reaction to Imoen// + +IF +InParty(Myself) +Global("P#ReactImoenLight","GLOBAL",0) +Global("ImoenRomanceActive","GLOBAL",1) +THEN +RESPONSE #100 +SetGlobal("P#ReactImoenLight","GLOBAL",1) +IncrementGlobal("P#KivanLove","GLOBAL",-3) +END + +IF +InParty(Myself) +Global("P#ReactImoenLight","GLOBAL",1) +Global("ImoenRomanceActive","GLOBAL",3) +THEN +RESPONSE #100 +SetGlobal("P#ReactImoenLight","GLOBAL",2) +IncrementGlobal("P#KivanLove","GLOBAL",3) +END + +IF +InParty(Myself) +Global("P#ReactImoenSerious","GLOBAL",0) +Global("ImoenRomanceActive","GLOBAL",2) +THEN +RESPONSE #100 +SetGlobal("P#ReactImoenSerious","GLOBAL",1) +SetGlobal("P#KivanLove","GLOBAL",-10) +END + +IF +InParty(Myself) +Global("P#ReactImoenSerious","GLOBAL",1) +Global("ImoenRomanceActive","GLOBAL",3) +THEN +RESPONSE #100 +SetGlobal("P#ReactImoenSerious","GLOBAL",2) +IncrementGlobal("P#KivanLove","GLOBAL",5) +END + +//Reaction to Edwin// + +IF +InParty(Myself) +Global("P#ReactEdwinLight","GLOBAL",0) +Global("EdwinRomanceActive","GLOBAL",1) +THEN +RESPONSE #100 +SetGlobal("P#ReactEdwinLight","GLOBAL",1) +IncrementGlobal("P#KivanLove","GLOBAL",-3) +END + +IF +InParty(Myself) +Global("P#ReactEdwinLight","GLOBAL",1) +Global("EdwinRomanceActive","GLOBAL",3) +THEN +RESPONSE #100 +SetGlobal("P#ReactEdwinLight","GLOBAL",2) +IncrementGlobal("P#KivanLove","GLOBAL",3) +END + +IF +InParty(Myself) +Global("P#ReactEdwinSerious","GLOBAL",0) +Global("EdwinRomanceActive","GLOBAL",2) +THEN +RESPONSE #100 +SetGlobal("P#ReactEdwinSerious","GLOBAL",1) +SetGlobal("P#KivanLove","GLOBAL",-10) +END + +IF +InParty(Myself) +Global("P#ReactEdwinSerious","GLOBAL",1) +Global("EdwinRomanceActive","GLOBAL",3) +THEN +RESPONSE #100 +SetGlobal("P#ReactEdwinSerious","GLOBAL",2) +IncrementGlobal("P#KivanLove","GLOBAL",5) +END + +//Reaction to Xan// + +IF +InParty(Myself) +Global("P#ReactXanLight","GLOBAL",0) +Global("O#XanRomanceActive","GLOBAL",1) +THEN +RESPONSE #100 +SetGlobal("P#ReactXanLight","GLOBAL",1) +IncrementGlobal("P#KivanLove","GLOBAL",-3) +END + +IF +InParty(Myself) +Global("P#ReactXanLight","GLOBAL",1) +Global("O#XanRomanceActive","GLOBAL",3) +THEN +RESPONSE #100 +SetGlobal("P#ReactXanLight","GLOBAL",2) +IncrementGlobal("P#KivanLove","GLOBAL",3) +END + +IF +InParty(Myself) +Global("P#ReactXanSerious","GLOBAL",0) +Global("O#XanRomanceActive","GLOBAL",2) +THEN +RESPONSE #100 +SetGlobal("P#ReactXanSerious","GLOBAL",1) +SetGlobal("P#KivanLove","GLOBAL",-10) +END + +IF +InParty(Myself) +Global("P#ReactXanSerious","GLOBAL",1) +Global("O#XanRomanceActive","GLOBAL",3) +THEN +RESPONSE #100 +SetGlobal("P#ReactXanSerious","GLOBAL",2) +IncrementGlobal("P#KivanLove","GLOBAL",5) +END + + diff --git a/kivan/baf/p#kimw.baf b/kivan/baf/p#kimw.baf new file mode 100644 index 0000000..7e252c3 --- /dev/null +++ b/kivan/baf/p#kimw.baf @@ -0,0 +1,10 @@ +IF + True() +THEN + RESPONSE #100 + CutSceneId(Player1) // + CreateVisualEffect("SPFLESHS",[1454.1398]) + Wait(1) + CreateCreature("P#DEH01",[1454.1398],14) + ActionOverride("P#DEH01",StartDialogNoSet(Player1)) +END diff --git a/kivan/baf/p#kimw1.baf b/kivan/baf/p#kimw1.baf new file mode 100644 index 0000000..1cec1f3 --- /dev/null +++ b/kivan/baf/p#kimw1.baf @@ -0,0 +1,14 @@ +//Extends cut218g.bcs // + +IF + True() +THEN + RESPONSE #100 + CutSceneId("P#DEH01") + CreateVisualEffectObject("SPFLESHS",Myself) + Wait(1) + ChangeAnimation("HGWRA02") + Wait(1) + ActionOverride("P#DEH01",ChangeAnimation("HGWRA02")) + ChangeEnemyAlly("P#DEH01",ENEMY) +END diff --git a/kivan/baf/p#kiribf.baf b/kivan/baf/p#kiribf.baf new file mode 100644 index 0000000..edf37a8 --- /dev/null +++ b/kivan/baf/p#kiribf.baf @@ -0,0 +1,81 @@ +IF +InParty(Myself) +CombatCounter(0) !See([ENEMY]) +Global("P#KivanLoversQuest","GLOBAL",1) +PartyHasItem("MISC5R") +!AreaCheck("AR0404") +!AreaType(DUNGEON) +GlobalLT("Chapter","GLOBAL",%bg2_chapter_4%) +THEN +RESPONSE #100 +IncrementGlobal("P#KivanLoversQuest","GLOBAL",1) +StartDialogueNoSet(Player1) +END + +IF +InParty(Myself) +Global("P#KivanLoversQuest","GLOBAL",6) +Global("P#RingEntry1","GLOBAL",0) +THEN +RESPONSE #100 +SetGlobal("P#RingEntry1","GLOBAL",1) +AddJournalEntry(@10003,QUEST_DONE) +EraseJournalEntry(@10001) +END + +IF +InParty(Myself) +Global("P#KivanLoversQuest","GLOBAL",5) +Global("P#RingEntry2","GLOBAL",0) +THEN +RESPONSE #100 +SetGlobal("P#RingEntry2","GLOBAL",1) +AddJournalEntry(@10000,QUEST) +END + +IF +InParty(Myself) +Global("P#SummonChislav","GLOBAL",1) +Global("P#RingEntry3","GLOBAL",0) +THEN +RESPONSE #100 +RealSetGlobalTimer("P#Chislav","GLOBAL",3000) +SetGlobal("P#RingEntry3","GLOBAL",1) +AddJournalEntry(@10002,QUEST) +END + +IF +InParty(Myself) +GlobalGT("P#KivanLoversQuest","GLOBAL",5) +Global("P#RingEntry4","GLOBAL",0) +THEN +RESPONSE #100 +SetGlobal("P#RingEntry4","GLOBAL",1) +EraseJournalEntry(@10001) +EraseJournalEntry(@10000) +EraseJournalEntry(@10004) +EraseJournalEntry(@10002) +END + +IF +InParty(Myself) +Global("P#SummonChislav","GLOBAL",1) +RealGlobalTimerExpired("P#Chislav","GLOBAL") +OR(7) +AreaCheck("AR0500") +AreaCheck("AR0400") +AreaCheck("AR0900") +AreaCheck("AR1000") +AreaCheck("AR0800") +AreaCheck("AR0700") +AreaCheck("AR0300") +THEN +RESPONSE #100 +SetGlobal("P#SummonChislav","GLOBAL",2) +CreateCreatureObject("P#CHISL","P#kivan",0,0,0) +Wait(1) +ActionOverride("chislav",Dialogue(Player1)) +END + + + diff --git a/kivan/baf/p#kisq.baf b/kivan/baf/p#kisq.baf new file mode 100644 index 0000000..787349f --- /dev/null +++ b/kivan/baf/p#kisq.baf @@ -0,0 +1,11 @@ +IF +True() +THEN +RESPONSE #100 +CreateCreature("P#SQUI",[-1.-1],0) +IncrementGlobal("P#KivanLoveTalk","GLOBAL",1) +MoveGlobalObject("P#SQUI","P#KIVAN") +MoveGlobalObject(Player1,"P#KIVAN") +StartDialogueNoSet(Player1) +EndCutSceneMode() +END diff --git a/kivan/baf/p#kithro.baf b/kivan/baf/p#kithro.baf new file mode 100644 index 0000000..13c4a85 --- /dev/null +++ b/kivan/baf/p#kithro.baf @@ -0,0 +1,78 @@ +//Original + +//1. Have Deheriana + +IF + Global("StartEndBios","AR6200",1) + InParty("P#deher") + Global("P#KivanBio","GLOBAL",0) +THEN + RESPONSE #100 + SetGlobal("P#KivanBio","GLOBAL",1) + TextScreen("PDEHE01") + SmallWait(1) + Continue() +END + +// Do not have Deheriana + +//PC ascended or Romance interrupted or no Romance + +IF + Global("StartEndBios","AR6200",1) + InParty("P#Kivan") + Global("P#KivanBio","GLOBAL",0) + !InParty("P#Deher") + OR(3) + Global("PlayerChoseEssence","GLOBAL",1) + Global("P#KivanRomanceInactive","GLOBAL",1) + Global("P#KivanRomanceActive","GLOBAL",0) +THEN + RESPONSE #100 + SetGlobal("P#KivanBio","GLOBAL",1) + TextScreen("PKIVA01") + SmallWait(1) + Continue() +END + +//PC did not ascend, an elf + +IF +Race(Player1,ELF) + Global("StartEndBios","AR6200",1) + InParty("P#Kivan") + !InParty("P#Deher") + Global("P#KivanBio","GLOBAL",0) + Global("P#KivanRomanceActive","GLOBAL",2) + Global("PlayerChoseEssence","GLOBAL",0) + !Global("P#KivanRomanceInactive","GLOBAL",1) +THEN + RESPONSE #100 + SetGlobal("P#KivanBio","GLOBAL",1) + TextScreen("PKIVA02") + SmallWait(1) + Continue() +END + +//PC did not ascend, is not an elf + +IF +!Race(Player1,ELF) + Global("StartEndBios","AR6200",1) + InParty("P#Kivan") + !InParty("P#Deher") + Global("P#KivanBio","GLOBAL",0) + Global("P#KivanRomanceActive","GLOBAL",2) + Global("PlayerChoseEssence","GLOBAL",0) + !Global("P#KivanRomanceInactive","GLOBAL",1) +THEN + RESPONSE #100 + SetGlobal("P#KivanBio","GLOBAL",1) + TextScreen("PKIVA03") + SmallWait(1) + Continue() +END + + + + diff --git a/kivan/baf/p#kiv01.baf b/kivan/baf/p#kiv01.baf new file mode 100644 index 0000000..a1d4d3a --- /dev/null +++ b/kivan/baf/p#kiv01.baf @@ -0,0 +1,2001 @@ +/* EET: Kivan will be gone if she wasn't in party during transition */ + + +IF +!InParty(Myself) +GlobalGT("Chapter","GLOBAL",%bg2_chapter_7%) +THEN +RESPONSE #100 +DestroySelf() +END + +IF + Global("P#KivanRomanceActive","GLOBAL",1) + Global("P#KivanRomanceInactive","GLOBAL",0) + OR(2) + GlobalLT("P#KivanLove","GLOBAL",3) + GlobalGT("P#KivanOffence","GLOBAL",4) +THEN + RESPONSE #100 + SetGlobal("P#KivanRomanceActive","GLOBAL",0) + SetGlobal("P#KivanRomanceInactive","GLOBAL",1) +END + +IF + Global("P#KivanRomanceActive","GLOBAL",0) + Global("P#KivanRomanceInactive","GLOBAL",1) + GlobalGT("P#KivanLove","GLOBAL",5) + !GlobalGT("P#KivanOffence","GLOBAL",4) +THEN + RESPONSE #100 + SetGlobal("P#KivanRomanceActive","GLOBAL",1) + SetGlobal("P#KivanRomanceInactive","GLOBAL",0) +END + +IF + InParty(Myself) + Global("P#ReactAnomenLight","GLOBAL",0) + Global("AnomenRomanceActive","GLOBAL",1) +THEN + RESPONSE #100 + SetGlobal("P#ReactAnomenLight","GLOBAL",1) + IncrementGlobal("P#KivanLove","GLOBAL",-3) +END + +IF + InParty(Myself) + Global("P#ReactAnomenLight","GLOBAL",1) + Global("AnomenRomanceActive","GLOBAL",3) +THEN + RESPONSE #100 + SetGlobal("P#ReactAnomenLight","GLOBAL",2) + IncrementGlobal("P#KivanLove","GLOBAL",3) +END + +IF + InParty(Myself) + Global("P#ReactAnomenSerious","GLOBAL",0) + Global("AnomenRomanceActive","GLOBAL",2) +THEN + RESPONSE #100 + SetGlobal("P#ReactAnomenSerious","GLOBAL",1) + SetGlobal("P#KivanLove","GLOBAL",-10) +END + +IF + InParty(Myself) + Global("P#ReactAnomenSerious","GLOBAL",1) + Global("AnomenRomanceActive","GLOBAL",3) +THEN + RESPONSE #100 + SetGlobal("P#ReactAnomenSerious","GLOBAL",2) + IncrementGlobal("P#KivanLove","GLOBAL",5) +END + +IF + InParty(Myself) + Global("P#ReactKelseyLight","GLOBAL",0) + Global("J#KelseyRomanceActive","GLOBAL",1) +THEN + RESPONSE #100 + SetGlobal("P#ReactKelseyLight","GLOBAL",1) + IncrementGlobal("P#KivanLove","GLOBAL",-3) +END + +IF + InParty(Myself) + Global("P#ReactKelseyLight","GLOBAL",1) + Global("J#KelseyRomanceActive","GLOBAL",3) +THEN + RESPONSE #100 + SetGlobal("P#ReactKelseyLight","GLOBAL",2) + IncrementGlobal("P#KivanLove","GLOBAL",3) +END + +IF + InParty(Myself) + Global("P#ReactKelseySerious","GLOBAL",0) + Global("J#KelseyRomanceActive","GLOBAL",2) +THEN + RESPONSE #100 + SetGlobal("P#ReactKelseySerious","GLOBAL",1) + SetGlobal("P#KivanLove","GLOBAL",-10) +END + +IF + InParty(Myself) + Global("P#ReactKelseySerious","GLOBAL",1) + Global("J#KelseyRomanceActive","GLOBAL",3) +THEN + RESPONSE #100 + SetGlobal("P#ReactKelseySerious","GLOBAL",2) + IncrementGlobal("P#KivanLove","GLOBAL",5) +END + +IF + InParty(Myself) + Global("P#ReactSolaLight","GLOBAL",0) + GlobalGT("SolaTalk","GLOBAL",1) + GlobalLT("SolaTalk","GLOBAL",15) +THEN + RESPONSE #100 + SetGlobal("P#ReactSolaLight","GLOBAL",1) + IncrementGlobal("P#KivanLove","GLOBAL",-3) +END + +IF + InParty(Myself) + Global("P#ReactSolaLight","GLOBAL",1) + Global("SolaTalk","GLOBAL",-1) +THEN + RESPONSE #100 + SetGlobal("P#ReactSolaLight","GLOBAL",2) + IncrementGlobal("P#KivanLove","GLOBAL",3) +END + +IF + InParty(Myself) + Global("P#ReactSolaSerious","GLOBAL",0) + GlobalGT("SolaTalk","GLOBAL",13) +THEN + RESPONSE #100 + SetGlobal("P#ReactSolaSerious","GLOBAL",1) + SetGlobal("P#KivanLove","GLOBAL",-10) +END + +IF + InParty(Myself) + Global("P#ReactSolaSerious","GLOBAL",1) + GlobalLT("SolaTalk","GLOBAL",0) +THEN + RESPONSE #100 + SetGlobal("P#ReactSolaSerious","GLOBAL",2) + IncrementGlobal("P#KivanLove","GLOBAL",5) +END + +IF + InParty(Myself) + Global("P#ReactTsujLight","GLOBAL",0) + Global("TsujathaRomanceActive","GLOBAL",1) +THEN + RESPONSE #100 + SetGlobal("P#ReactTsujLight","GLOBAL",1) + IncrementGlobal("P#KivanLove","GLOBAL",-3) +END + +IF + InParty(Myself) + Global("P#ReactTsujLight","GLOBAL",1) + Global("TsujathaRomanceActive","GLOBAL",3) +THEN + RESPONSE #100 + SetGlobal("P#ReactTsujLight","GLOBAL",2) + IncrementGlobal("P#KivanLove","GLOBAL",3) +END + +IF + InParty(Myself) + Global("P#ReactTsujSerious","GLOBAL",0) + Global("TsujathaRomanceActive","GLOBAL",2) +THEN + RESPONSE #100 + SetGlobal("P#ReactTsujSerious","GLOBAL",1) + SetGlobal("P#KivanLove","GLOBAL",-10) +END + +IF + InParty(Myself) + Global("P#ReactTsujSerious","GLOBAL",1) + Global("TsujathaRomanceActive","GLOBAL",3) +THEN + RESPONSE #100 + SetGlobal("P#ReactTsujSerious","GLOBAL",2) + IncrementGlobal("P#KivanLove","GLOBAL",5) +END + +IF + InParty(Myself) + Global("P#ReactChloeLight","GLOBAL",0) + Global("ChloeRomanceActiveCR","GLOBAL",1) +THEN + RESPONSE #100 + SetGlobal("P#ReactChloeLight","GLOBAL",1) + IncrementGlobal("P#KivanLove","GLOBAL",-3) +END + +IF + InParty(Myself) + Global("P#ReactChloeLight","GLOBAL",1) + Global("ChloeRomanceActiveCR","GLOBAL",3) +THEN + RESPONSE #100 + SetGlobal("P#ReactChloeLight","GLOBAL",2) + IncrementGlobal("P#KivanLove","GLOBAL",3) +END + +IF + InParty(Myself) + Global("P#ReactChloeSerious","GLOBAL",0) + Global("ChloeRomanceActiveCR","GLOBAL",2) +THEN + RESPONSE #100 + SetGlobal("P#ReactChloeSerious","GLOBAL",1) + SetGlobal("P#KivanLove","GLOBAL",-10) +END + +IF + InParty(Myself) + Global("P#ReactChloeSerious","GLOBAL",1) + Global("ChloeRomanceActiveCR","GLOBAL",3) +THEN + RESPONSE #100 + SetGlobal("P#ReactChloeSerious","GLOBAL",2) + IncrementGlobal("P#KivanLove","GLOBAL",5) +END + +IF + InParty(Myself) + Global("P#ReactValyLight","GLOBAL",0) + Global("H#ValygarRomanceActive","GLOBAL",1) +THEN + RESPONSE #100 + SetGlobal("P#ReactValyLight","GLOBAL",1) + IncrementGlobal("P#KivanLove","GLOBAL",-3) +END + +IF + InParty(Myself) + Global("P#ReactValyLight","GLOBAL",1) + Global("H#ValygarRomanceActive","GLOBAL",3) +THEN + RESPONSE #100 + SetGlobal("P#ReactValyLight","GLOBAL",2) + IncrementGlobal("P#KivanLove","GLOBAL",3) +END + +IF + InParty(Myself) + Global("P#ReactValySerious","GLOBAL",0) + Global("H#ValygarRomanceActive","GLOBAL",2) +THEN + RESPONSE #100 + SetGlobal("P#ReactValySerious","GLOBAL",1) + SetGlobal("P#KivanLove","GLOBAL",-10) +END + +IF + InParty(Myself) + Global("P#ReactValySerious","GLOBAL",1) + Global("H#ValygarRomanceActive","GLOBAL",3) +THEN + RESPONSE #100 + SetGlobal("P#ReactValySerious","GLOBAL",2) + IncrementGlobal("P#KivanLove","GLOBAL",5) +END + +IF + InParty(Myself) + Global("P#ReactImoenLight","GLOBAL",0) + Global("ImoenRomanceActive","GLOBAL",1) +THEN + RESPONSE #100 + SetGlobal("P#ReactImoenLight","GLOBAL",1) + IncrementGlobal("P#KivanLove","GLOBAL",-3) +END + +IF + InParty(Myself) + Global("P#ReactImoenLight","GLOBAL",1) + Global("ImoenRomanceActive","GLOBAL",3) +THEN + RESPONSE #100 + SetGlobal("P#ReactImoenLight","GLOBAL",2) + IncrementGlobal("P#KivanLove","GLOBAL",3) +END + +IF + InParty(Myself) + Global("P#ReactImoenSerious","GLOBAL",0) + Global("ImoenRomanceActive","GLOBAL",2) +THEN + RESPONSE #100 + SetGlobal("P#ReactImoenSerious","GLOBAL",1) + SetGlobal("P#KivanLove","GLOBAL",-10) +END + +IF + InParty(Myself) + Global("P#ReactImoenSerious","GLOBAL",1) + Global("ImoenRomanceActive","GLOBAL",3) +THEN + RESPONSE #100 + SetGlobal("P#ReactImoenSerious","GLOBAL",2) + IncrementGlobal("P#KivanLove","GLOBAL",5) +END + +IF + InParty(Myself) + Global("P#ReactEdwinLight","GLOBAL",0) + Global("EdwinRomanceActive","GLOBAL",1) +THEN + RESPONSE #100 + SetGlobal("P#ReactEdwinLight","GLOBAL",1) + IncrementGlobal("P#KivanLove","GLOBAL",-3) +END + +IF + InParty(Myself) + Global("P#ReactEdwinLight","GLOBAL",1) + Global("EdwinRomanceActive","GLOBAL",3) +THEN + RESPONSE #100 + SetGlobal("P#ReactEdwinLight","GLOBAL",2) + IncrementGlobal("P#KivanLove","GLOBAL",3) +END + +IF + InParty(Myself) + Global("P#ReactEdwinSerious","GLOBAL",0) + Global("EdwinRomanceActive","GLOBAL",2) +THEN + RESPONSE #100 + SetGlobal("P#ReactEdwinSerious","GLOBAL",1) + SetGlobal("P#KivanLove","GLOBAL",-10) +END + +IF + InParty(Myself) + Global("P#ReactEdwinSerious","GLOBAL",1) + Global("EdwinRomanceActive","GLOBAL",3) +THEN + RESPONSE #100 + SetGlobal("P#ReactEdwinSerious","GLOBAL",2) + IncrementGlobal("P#KivanLove","GLOBAL",5) +END + +IF + InParty(Myself) + Global("P#ReactXanLight","GLOBAL",0) + Global("O#XanRomanceActive","GLOBAL",1) +THEN + RESPONSE #100 + SetGlobal("P#ReactXanLight","GLOBAL",1) + IncrementGlobal("P#KivanLove","GLOBAL",-3) +END + +IF + InParty(Myself) + Global("P#ReactXanLight","GLOBAL",1) + Global("O#XanRomanceActive","GLOBAL",3) +THEN + RESPONSE #100 + SetGlobal("P#ReactXanLight","GLOBAL",2) + IncrementGlobal("P#KivanLove","GLOBAL",3) +END + +IF + InParty(Myself) + Global("P#ReactXanSerious","GLOBAL",0) + Global("O#XanRomanceActive","GLOBAL",2) +THEN + RESPONSE #100 + SetGlobal("P#ReactXanSerious","GLOBAL",1) + SetGlobal("P#KivanLove","GLOBAL",-10) +END + +IF + InParty(Myself) + Global("P#ReactXanSerious","GLOBAL",1) + Global("O#XanRomanceActive","GLOBAL",3) +THEN + RESPONSE #100 + SetGlobal("P#ReactXanSerious","GLOBAL",2) + IncrementGlobal("P#KivanLove","GLOBAL",5) +END + +IF + InParty(Myself) + Global("P#ToBSwitch","GLOBAL",0) + OR(2) + AreaCheck("AR4000") + GlobalGT("Chapter","GLOBAL",%bg2_chapter_7%) +THEN + RESPONSE #100 + ChangeAIScript("P#KI25",OVERRIDE) + SetGlobal("P#ToBSwitch","GLOBAL",1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + !AreaCheck("AR0700") + Global("P#KivanAcorns","GLOBAL",0) + PartyHasItem("MISC4N") // Acorns + GlobalLT("P#KivanOffence","GLOBAL",10) +THEN + RESPONSE #100 + RealSetGlobalTimer("P#KiAcornTime","GLOBAL",3600) + PlaySong(0) + PlaySound("kivan000") + SetGlobal("P#KivanAcorns","GLOBAL",1) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + GlobalLT("P#KivanOffence","GLOBAL",10) + CombatCounter(0) + !See([ENEMY]) + RealGlobalTimerExpired("P#KiAcornTime","GLOBAL") + Global("P#KivanAcorns","GLOBAL",2) + GlobalLT("P#KivanOffence","GLOBAL",10) +THEN + RESPONSE #100 + RealSetGlobalTimer("P#KiAcornTime","GLOBAL",3600) + IncrementGlobal("P#KivanAcorns","GLOBAL",1) + PlaySong(0) + PlaySound("kivan000") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + GlobalLT("P#KivanOffence","GLOBAL",10) + CombatCounter(0) + !See([ENEMY]) + Global("P#IrenicusEyes","LOCALS",1) + RealGlobalTimerExpired("P#KiAcornTime","GLOBAL") + Global("P#KivanAcorns","GLOBAL",4) +THEN + RESPONSE #100 + RealSetGlobalTimer("P#KiAcornTime","GLOBAL",3600) + IncrementGlobal("P#KivanAcorns","GLOBAL",1) + PlaySong(0) + PlaySound("kivan000") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + Global("frLeaveDryads","ar1200",1) + Global("P#KivanAcornsDriad","GLOBAL",0) +THEN + RESPONSE #100 + IncrementGlobal("P#KivanAcornsDriad","GLOBAL",1) + PlaySong(0) + PlaySound("kivan000") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + AreaCheck("AR0900") + Global("P#GaalSpoke","GLOBAL",1) + Global("P#KivanUEQ","GLOBAL",0) +THEN + RESPONSE #100 + RealSetGlobalTimer("P#KiUETime","GLOBAL",30) + SetGlobal("P#KivanUEQ","GLOBAL",1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + GlobalLT("P#KivanOffence","GLOBAL",10) + CombatCounter(0) + !See([ENEMY]) + RealGlobalTimerExpired("P#KiUETime","GLOBAL") + Global("P#KivanUEQ","GLOBAL",1) +THEN + RESPONSE #100 + IncrementGlobal("P#KivanUEQ","GLOBAL",1) + RealSetGlobalTimer("P#ShevarashTime","GLOBAL",1800) + PlaySong(0) + PlaySound("kivan000") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",10) + OR(3) + Global("P#DeherianaDead","GLOBAL",1) + Global("P#DeherianaLives","GLOBAL",0) + Global("P#DeherianaLives","GLOBAL",3) + Global("P#Shevarash","GLOBAL",1) + RealGlobalTimerExpired("P#ShevarashTime","GLOBAL") +THEN + RESPONSE #100 + IncrementGlobal("P#Shevarash","GLOBAL",1) + PlaySong(0) + PlaySound("kivan000") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + !Global("P#NoticedSalvanas1","GLOBAL",1) + Global("P#NoticedSalvanas","GLOBAL",1) + Gender(Player1,FEMALE) +THEN + RESPONSE #100 + IncrementGlobal("P#NoticedSalvanas","GLOBAL",1) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",10) + AreaCheck("AR0203") + Dead("riftcr04") + Global("P#MercyTalkTimer","GLOBAL",0) +THEN + RESPONSE #100 + IncrementGlobal("P#MercyTalkTimer","GLOBAL",1) + RealSetGlobalTimer("P#MercyTalkTimerSet","GLOBAL",100) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",10) + RealGlobalTimerExpired("P#MercyTalkTimerSet","GLOBAL") + Dead("riftcr04") + Global("P#MercyTalk","GLOBAL",0) +THEN + RESPONSE #100 + IncrementGlobal("P#MercyTalk","GLOBAL",1) + PlaySong(0) + PlaySound("kivan000") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",10) + AreaCheck("AR1203") + Dead("firkra02") + Global("P#KivanKilledDragon","GLOBAL",0) +THEN + RESPONSE #100 + IncrementGlobal("P#KivanKilledDragon","GLOBAL",1) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + AreaCheck("AR1202") + Dead("tazok") + Global("P#TazokTalk","GLOBAL",0) +THEN + RESPONSE #100 + IncrementGlobal("P#TazokTalk","GLOBAL",1) + RealSetGlobalTimer("P#TazokTime","GLOBAL",1800) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + Global("P#KivanTazokHeart","GLOBAL",1) + RealGlobalTimerExpired("P#TazokTime","GLOBAL") + OR(3) + Global("P#TazokTalk","GLOBAL",2) + Global("P#TazokTalk","GLOBAL",4) + Global("P#TazokTalk","GLOBAL",6) +THEN + RESPONSE #100 + IncrementGlobal("P#TazokTalk","GLOBAL",1) + RealSetGlobalTimer("P#TazokTime","GLOBAL",1) + PlaySong(0) + PlaySound("kivan00") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + RealGlobalTimerExpired("P#TazokTime","GLOBAL") + OR(3) + Global("P#TazokTalk","GLOBAL",3) + Global("P#TazokTalk","GLOBAL",5) + Global("P#TazokTalk","GLOBAL",7) +THEN + RESPONSE #100 + IncrementGlobal("P#TazokTalk","GLOBAL",1) + RealSetGlobalTimer("P#TazokTime","GLOBAL",1800) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + Global("P#KivanConstitutionTazok","GLOBAL",0) + Global("P#KivanConstitutionDrain","GLOBAL",1) +THEN + RESPONSE #100 + SetGlobal("P#KivanConstitutionTazok","GLOBAL",1) + AddXPObject("P#Kivan",5000) + AddXPObject(Player1,5000) + ReallyForceSpellRES("P#WISH04","P#KIVAN") // No such index + ReallyForceSpellRES("P#WISH04","P#KIVAN") // No such index +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + Global("P#KivanConstitutionTazok","GLOBAL",0) + Global("P#KivanConstitutionDrain","GLOBAL",2) +THEN + RESPONSE #100 + AddXPObject("P#Kivan",2500) + SetGlobal("P#KivanConstitutionTazok","GLOBAL",1) + ReallyForceSpellRES("P#WISH04","P#KIVAN") // No such index + ReallyForceSpellRES("P#WISH04","P#KIVAN") // No such index + ReallyForceSpellRES("P#WISH04","P#KIVAN") // No such index +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + Global("P#KivanConstitutionTazok","GLOBAL",0) + Global("P#KivanConstitutionDrain","GLOBAL",3) +THEN + RESPONSE #100 + AddXPObject("P#Kivan",1000) + SetGlobal("P#KivanConstitutionTazok","GLOBAL",1) + ReallyForceSpellRES("P#WISH04","P#KIVAN") // No such index + ReallyForceSpellRES("P#WISH04","P#KIVAN") // No such index + ReallyForceSpellRES("P#WISH04","P#KIVAN") // No such index + ReallyForceSpellRES("P#WISH04","P#KIVAN") // No such index +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + AreaCheck("AR1901") + Dead("cefald01") + Global("GrovePoisoned","GLOBAL",0) + Global("NonEvilPath","AR1901",1) + Global("P#KivanGroveSaved","GLOBAL",0) +THEN + RESPONSE #100 + SetGlobal("P#KivanGroveSaved","GLOBAL",1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",10) + AreaCheck("AR1900") + Global("P#KivanGroveSaved","GLOBAL",1) +THEN + RESPONSE #100 + IncrementGlobal("P#KivanGroveSaved","GLOBAL",1) + RealSetGlobalTimer("P#FaldornTime","GLOBAL",3600) + PlaySong(0) + PlaySound("kivan000") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",10) + RealGlobalTimerExpired("P#FaldornTime","GLOBAL") + Global("P#FaldornTalk","GLOBAL",1) +THEN + RESPONSE #100 + IncrementGlobal("P#FaldornTalk","GLOBAL",1) + PlaySong(0) + PlaySound("kivan000") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",10) + AreaCheck("AR0516") + Global("P#KivanPlanar","GLOBAL",0) + Dead("pmaster") +THEN + RESPONSE #100 + IncrementGlobal("P#KivanPlanar","GLOBAL",1) + PlaySong(0) + PlaySound("kivan000") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + Global("P#DeherianaAphrilTalk","GLOBAL",0) + Global("P#KivanSeesAphril","GLOBAL",0) + AreaCheck("AR1515") + See("ppaphril") +THEN + RESPONSE #100 + IncrementGlobal("P#KivanSeesAphril","GLOBAL",1) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",10) + OR(4) + PartyHasItem("MISCAO") // Mind Flayer Painting + PartyHasItem("MISCAP") // Umber Hulk Painting + PartyHasItem("MISCAQ") // Troll Painting + PartyHasItem("MISCAR") // Djinni Painting + Global("P#KivanPortrait","GLOBAL",0) +THEN + RESPONSE #100 + IncrementGlobal("P#KivanPortrait","GLOBAL",1) + PlaySong(0) + PlaySound("kivan00") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",10) + Global("SahauginTravel","GLOBAL",1) + AreaCheck("AR2100") + Global("P#KivanUnderdarkEntry","GLOBAL",0) +THEN + RESPONSE #100 + IncrementGlobal("P#KivanUnderdarkEntry","GLOBAL",1) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",10) + AreaCheck("AR2200") + RealGlobalTimerExpired("P#KivanSpeakUstNatha","GLOBAL") + Global("P#KivanUst","GLOBAL",0) +THEN + RESPONSE #100 + IncrementGlobal("P#KivanUst","GLOBAL",1) + PlaySong(0) + PlaySound("kivan000") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",10) + Global("udDrowPlot","GLOBAL",100) + AreaCheck("AR2402") + Global("P#KivanDrowReversal","GLOBAL",0) +THEN + RESPONSE #100 + IncrementGlobal("P#KivanDrowReversal","GLOBAL",1) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",10) + AreaCheck("AR0800") + Global("P#BodhiDead","GLOBAL",0) + Dead("c6bodhi") +THEN + RESPONSE #100 + IncrementGlobal("P#BodhiDead","GLOBAL",1) + PlaySong(0) + PlaySound("kivan00") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + Global("P#EnteredAR0411","GLOBAL",0) + AreaCheck("AR0411") +THEN + RESPONSE #100 + SetGlobal("P#EnteredAR0411","GLOBAL",1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",10) + AreaCheck("AR0400") + Global("P#LavokDeadTimer","GLOBAL",0) + GlobalLT("Chapter","GLOBAL",%bg2_chapter_5%) + Race(Player1,HUMAN) + OR(2) + Dead("lavok") + Dead("lavok02") +THEN + RESPONSE #100 + IncrementGlobal("P#LavokDeadTimer","GLOBAL",1) + RealSetGlobalTimer("P#KivanSpeakLavok","GLOBAL",200) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",10) + Global("P#LavokDead","GLOBAL",0) + Race(Player1,HUMAN) + RealGlobalTimerExpired("P#KivanSpeakLavok","GLOBAL") +THEN + RESPONSE #100 + IncrementGlobal("P#LavokDead","GLOBAL",1) + PlaySong(0) + PlaySound("kivan000") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalGT("ElvenSpirits","GLOBAL",0) + AreaCheck("AR2800") + Global("P#KivanSulLiberated","GLOBAL",0) +THEN + RESPONSE #100 + IncrementGlobal("P#KivanSulLiberated","GLOBAL",1) + PlaySong(0) + PlaySound("kivan00") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",10) + OR(2) + AreaCheck("AR1400") + AreaCheck("AR1404") + Dead("uhrang01") + Global("P#KivanRanger","GLOBAL",0) +THEN + RESPONSE #100 + IncrementGlobal("P#KivanRanger","GLOBAL",1) + PlaySong(0) + PlaySound("kivan000") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + OR(3) + AreaCheck("AR1700") + AreaCheck("AR1800") + AreaCheck("AR2600") + GlobalGT("Chapter","GLOBAL",%bg2_chapter_4%) + Global("P#KivanTethir","GLOBAL",0) +THEN + RESPONSE #100 + IncrementGlobal("P#KivanTethir","GLOBAL",1) + PlaySong(0) + PlaySound("kivan00") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + AreaCheck("AR0404") + Global("P#RiddleSewer","GLOBAL",0) +THEN + RESPONSE #100 + SetGlobal("P#RiddleSewer","GLOBAL",1) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + AreaCheck("AR0404") + Global("P#HandSewer","GLOBAL",0) + PartyHasItem("MISC5S") // Hand +THEN + RESPONSE #100 + SetGlobal("P#HandSewer","GLOBAL",1) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + AreaCheck("AR0404") + Global("P#LoverRing","GLOBAL",0) + PartyHasItem("MISC5R") // The Lover's Ring +THEN + RESPONSE #100 + SetGlobal("P#LoverRing","GLOBAL",1) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",10) + AreaCheck("AR0404") + Global("P#LoverRing","GLOBAL",2) + Global("P#KivanLoversQuest","GLOBAL",1) + PartyHasItem("SW2H14") // Lilarcor +THEN + RESPONSE #100 + SetGlobal("P#LoverRing","GLOBAL",3) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",6) + AreaCheck("AR1401") + PartyHasItem("misc6p") // Shadow Dragon Wardstone + PartyHasItem("KEY05") // Dawn's Light Symbol + Global("P#KivanAmuana","GLOBAL",0) +THEN + RESPONSE #100 + SetGlobal("P#KivanAmuana","GLOBAL",1) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + Global("P#KivanLassal","GLOBAL",0) + Global("P#LassalCurse","GLOBAL",1) +THEN + RESPONSE #100 + SetGlobal("P#KivanLassal","GLOBAL",1) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",6) + AreaCheck("AR1102") + Global("P#KivanCabin","GLOBAL",0) +THEN + RESPONSE #100 + IncrementGlobal("P#KivanCabin","GLOBAL",1) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + AreaCheck("AR1302") + Global("P#KivanFlailOA","GLOBAL",1) + GlobalLT("P#KivanOffence","GLOBAL",6) + OR(3) + PartyHasItem("BLUN14I") // Flail of Ages + PartyHasItem("BLUN14H") // Flail of Ages + PartyHasItem("BLUN14G") // Flail of Ages +THEN + RESPONSE #100 + IncrementGlobal("P#KivanFlailOA","GLOBAL",1) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + AreaCheck("AR1302") + Global("P#KivanDogStew","GLOBAL",0) + PartyHasItem("MISC7U") // Dog Stew + InParty("AERIE") + See("AERIE") + !StateCheck("AERIE",STATE_SLEEPING) + See("Aerie") +THEN + RESPONSE #100 + IncrementGlobal("P#KivanDogStew","GLOBAL",1) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + AreaCheck("AR1303") + Global("P#KivanCoolBow","GLOBAL",0) + GlobalLT("P#KivanOffence","GLOBAL",10) + OR(2) + PartyHasItem("BOW12") // Elven Court Bow +3 + PartyHasItem("GORWOM2") // Elven Court Bow +3 +THEN + RESPONSE #100 + IncrementGlobal("P#KivanCoolBow","GLOBAL",1) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",5) + Global("P#KivanElleDream","GLOBAL",1) +THEN + RESPONSE #100 + SetGlobal("P#KivanElleDream","GLOBAL",2) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",3) + Global("P#RaelisArrested","GLOBAL",1) + GlobalLT("PlanarPrison","GLOBAL",2) + AreaCheck("AR0510") +THEN + RESPONSE #100 + SetGlobal("P#RaelisArrested","GLOBAL",2) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",5) + Global("P#KivanCenteol","GLOBAL",0) + Dead("sppain") + AreaCheck("AR0804") +THEN + RESPONSE #100 + SetGlobal("P#KivanCenteol","GLOBAL",1) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + AreaCheck("AR1201") + Global("P#KivanHaveNotSeenFL","GLOBAL",0) +THEN + RESPONSE #100 + SetGlobal("P#KivanHaveNotSeenFL","GLOBAL",1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",5) + AreaCheck("AR1200") + PartyHasItem("MISC6U") // Firkraag's Challenge + OR(2) + Global("P#KivanHaveNotSeenFL","GLOBAL",0) + !Dead("tazok") + Global("P#FirkraagChallenge","GLOBAL",0) +THEN + RESPONSE #100 + SetGlobal("P#FirkraagChallenge","GLOBAL",1) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",10) + Global("P#HappinessTalkTimer","GLOBAL",0) + Global("P#DeherianaLives","GLOBAL",6) +THEN + RESPONSE #100 + IncrementGlobal("P#HappinessTalkTimer","GLOBAL",1) + RealSetGlobalTimer("P#KivanSpeakHappy","GLOBAL",600) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#KivanOffence","GLOBAL",10) + Global("P#HappinessTalk","GLOBAL",0) + RealGlobalTimerExpired("P#KivanSpeakHappy","GLOBAL") +THEN + RESPONSE #100 + IncrementGlobal("P#HappinessTalk","GLOBAL",1) + PlaySong(0) + PlaySound("kivan000") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + PartyHasItem("SW2H14") // Lilarcor + HasItemEquipedReal("SW2H14","P#KIVAN") // Lilarcor + Global("P#KivanLilarcorStart","GLOBAL",0) +THEN + RESPONSE #100 + CreateCreatureObject("P#LILCO","P#kivan",0,0,0) + Wait(1) + SetGlobal("P#KivanLilarcorStart","GLOBAL",1) + RealSetGlobalTimer("P#KivanLil","GLOBAL",3600) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + PartyHasItem("SW2H14") // Lilarcor + HasItemEquipedReal("SW2H14","P#KIVAN") // Lilarcor + RealGlobalTimerExpired("P#KivanLil","GLOBAL") + OR(4) + Global("P#KivanLilEquiped","GLOBAL",0) + Global("P#KivanLilEquiped","GLOBAL",2) + Global("P#KivanLilEquiped","GLOBAL",4) + Global("P#KivanLilEquiped","GLOBAL",6) +THEN + RESPONSE #100 + CreateCreatureObject("P#LILCO","P#kivan",0,0,0) + Wait(1) + RealSetGlobalTimer("P#KivanLil","GLOBAL",ONE_DAY) + IncrementGlobal("P#KivanLilEquiped","GLOBAL",1) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + Global("P#KivanRestBanter","GLOBAL",0) +THEN + RESPONSE #100 + SetGlobal("P#KivanRestBanter","GLOBAL",1) + RealSetGlobalTimer("P#KivanRestTimer","GLOBAL",1800) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + InParty("KORGAN") + See("KORGAN") + !StateCheck("KORGAN",STATE_SLEEPING) + AreaCheck("AR1301") + Global("P#KorganCellar","GLOBAL",0) +THEN + RESPONSE #100 + SetGlobal("P#KorganCellar","GLOBAL",1) + ActionOverride("korgan",StartDialogueNoSet("P#kivan")) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + InParty("KORGAN") + See("KORGAN") + !StateCheck("KORGAN",STATE_SLEEPING) + AreaCheck("AR1301") + Global("P#KorganTor","GLOBAL",0) + Dead("TorGal") +THEN + RESPONSE #100 + SetGlobal("P#KorganTor","GLOBAL",1) + ActionOverride("korgan",StartDialogueNoSet("P#kivan")) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + AreaCheck("AR1301") + Global("P#NaliaTorgalDies","GLOBAL",0) + Dead("TorGal") +THEN + RESPONSE #100 + SetGlobal("P#NaliaTorgalDies","GLOBAL",1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + InParty("EDWIN") + See("EDWIN") + !StateCheck("EDWIN",STATE_SLEEPING) + AreaCheck("AR1303") + See("kpgol04") + Global("P#EdwinGolem","GLOBAL",0) +THEN + RESPONSE #100 + SetGlobal("P#EdwinGolem","GLOBAL",1) + ActionOverride("edwin",Dialogue("P#kivan")) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + InParty("JAHEIRA") + See("JAHEIRA") + !StateCheck("Jaheira",STATE_SLEEPING) + AreaCheck("AR1900") + Dead("cefgt02") + Global("P#JaheiraSD","GLOBAL",0) +THEN + RESPONSE #100 + SetGlobal("P#JaheiraSD","GLOBAL",1) + StartDialogueNoSet("jaheira") +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + InParty("aerie") + See("aerie") + !StateCheck("aerie",STATE_SLEEPING) + Global("udleaveGnome","AR2100",1) + AreaCheck("AR2100") + Global("P#KIAerieUD","GLOBAL",0) +THEN + RESPONSE #100 + SetGlobal("P#KIAerieUD","GLOBAL",1) + ActionOverride("aerie",StartDialogueNoSet("P#KIVAN")) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + !Global("P#KivanRomanceInactive","GLOBAL",1) + Global("P#KivanRomanceActive","Global",1) + RealGlobalTimerExpired("P#KiDreamCatcherTime","GLOBAL") + Global("P#DreamCatcher","GLOBAL",0) +THEN + RESPONSE #100 + SetGlobal("P#DreamCatcher","GLOBAL",1) + ActionOverride(Player1,DisplayStringHead(Player1,108003)) // You have enchanted a simple amulet to ward off bad dreams. + GiveItemCreate("P#DREAM",Player1,1,0,0) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + Global("P#KivanFriendStart","GLOBAL",0) + ReputationGT(Player1,10) +THEN + RESPONSE #100 + SetGlobal("P#KivanFriendStart","GLOBAL",1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + GlobalLT("P#DeherianaLives","GLOBAL",2) + GlobalLT("Chapter","GLOBAL",%bg2_chapter_5%) + Global("P#KivanFriendStart","GLOBAL",1) + Global("P#KiFriendTalk","GLOBAL",0) + Global("P#KivanFriend","GLOBAL",0) +THEN + RESPONSE #100 + RealSetGlobalTimer("P#KiFriendTalkTime","GLOBAL",10) + SetGlobal("P#KiFriendTalk","GLOBAL",1) + SetGlobal("P#KivanFriend","GLOBAL",1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalLT("P#DeherianaLives","GLOBAL",2) + RealGlobalTimerExpired("P#KiFriendTalkTime","GLOBAL") + ReputationGT(Player1,11) + Global("P#KivanFriend","GLOBAL",1) + Global("P#KiOldFriend","GLOBAL",1) + AreaType(OUTDOOR) + !TimeOfDay(DAY) + OR(5) + Global("P#KiFriendTalk","GLOBAL",1) + Global("P#KiFriendTalk","GLOBAL",3) + Global("P#KiFriendTalk","GLOBAL",5) + Global("P#KiFriendTalk","GLOBAL",7) + Global("P#KiFriendTalk","GLOBAL",11) +THEN + RESPONSE #100 + RealSetGlobalTimer("P#KiTalkTime","GLOBAL",1) + IncrementGlobal("P#KiFriendTalk","GLOBAL",1) + PlaySong(0) + PlaySound("kivan00") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + RealGlobalTimerExpired("P#KiTalkTime","GLOBAL") + OR(5) + Global("P#KiFriendTalk","GLOBAL",2) + Global("P#KiFriendTalk","GLOBAL",4) + Global("P#KiFriendTalk","GLOBAL",6) + Global("P#KiFriendTalk","GLOBAL",8) + Global("P#KiFriendTalk","GLOBAL",12) +THEN + RESPONSE #100 + RealSetGlobalTimer("P#KiFriendTalkTime","GLOBAL",2700) + IncrementGlobal("P#KiFriendTalk","GLOBAL",1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + GlobalGT("Chapter","GLOBAL",1) + Global("P#KivanCatch","GLOBAL",0) +THEN + RESPONSE #100 + RealSetGlobalTimer("P#KiCatchTalkTime","GLOBAL",600) + SetGlobal("P#KivanCatch","GLOBAL",1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + GlobalGT("Chapter","GLOBAL",1) + GlobalLT("Chapter","GLOBAL",%bg2_chapter_4%) + RealGlobalTimerExpired("P#KiCatchTalkTime","GLOBAL") + !AreaType(DUNGEON) + TimeOfDay(DAY) + OR(5) + Global("P#KivanCatch","GLOBAL",1) + Global("P#KivanCatch","GLOBAL",3) + Global("P#KivanCatch","GLOBAL",5) + Global("P#KivanCatch","GLOBAL",7) + Global("P#KivanCatch","GLOBAL",9) +THEN + RESPONSE #100 + RealSetGlobalTimer("P#KiCatchTalkTime","GLOBAL",1) + IncrementGlobal("P#KivanCatch","GLOBAL",1) + PlaySong(0) + PlaySound("kivan00") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + RealGlobalTimerExpired("P#KiCatchTalkTime","GLOBAL") + OR(5) + Global("P#KivanCatch","GLOBAL",2) + Global("P#KivanCatch","GLOBAL",4) + Global("P#KivanCatch","GLOBAL",6) + Global("P#KivanCatch","GLOBAL",8) + Global("P#KivanCatch","GLOBAL",10) +THEN + RESPONSE #100 + RealSetGlobalTimer("P#KiCatchTalkTime","GLOBAL",2700) + IncrementGlobal("P#KivanCatch","GLOBAL",1) +END + +IF + Global("P#KivanMatch","GLOBAL",0) + GlobalGT("P#KivanLove","GLOBAL",3) + Global("P#CheckKivanMatch","GLOBAL",0) + Global("P#DeherianaDead","GLOBAL",1) + Gender(Player1,FEMALE) + !Alignment(Player1,LAWFUL_EVIL) + Global("P#KivanRomanceActive","Global",0) + ReputationGT(Player1,11) + GlobalLT("P#KivanOffence","GLOBAL",10) +THEN + RESPONSE #100 + SetGlobal("P#KivanRomanceActive","Global",1) + SetGlobal("P#KivanMatch","GLOBAL",1) + SetGlobal("P#CheckKivanMatch","GLOBAL",1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) + Global("P#KivanFriendStart","GLOBAL",1) + OR(2) + GlobalGT("P#KiFriendTalk","GLOBAL",9) + Global("P#KiOldFriend","GLOBAL",0) + Global("P#KivanMatch","GLOBAL",1) + Global("P#DeherianaDead","GLOBAL",1) + Global("P#KivanLoveTalk","GLOBAL",0) +THEN + RESPONSE #100 + RealSetGlobalTimer("P#KiLoveTalkTime","GLOBAL",360) + SetGlobal("P#KivanLoveTalk","GLOBAL",1) + SetGlobal("P#KivanFriend","GLOBAL",2) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + RealGlobalTimerExpired("P#KiLoveTalkTime","GLOBAL") + ReputationGT(Player1,11) + AreaType(OUTDOOR) + PartyRested() + Global("P#KivanLoveTalk","GLOBAL",5) + !Global("P#KivanRomanceInactive","GLOBAL",1) + Global("P#KivanRomanceActive","GLOBAL",1) +THEN + RESPONSE #100 + RealSetGlobalTimer("P#KiLovelyTalkTime","GLOBAL",1) + IncrementGlobal("P#KivanLoveTalk","GLOBAL",1) + PlaySong(0) + PlaySound("kivan00") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + RealGlobalTimerExpired("P#KiLovelyTalkTime","GLOBAL") + OR(3) + Global("P#KivanLoveTalk","GLOBAL",2) + Global("P#KivanLoveTalk","GLOBAL",4) + Global("P#KivanLoveTalk","GLOBAL",6) +THEN + RESPONSE #100 + RealSetGlobalTimer("P#KiLoveTalkTime","GLOBAL",180) + IncrementGlobal("P#KivanLoveTalk","GLOBAL",1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) + Global("P#KivanMatch","GLOBAL",1) + Global("P#DeherianaDead","GLOBAL",1) + Global("P#KivanSweetTalk","GLOBAL",0) +THEN + RESPONSE #100 + RealSetGlobalTimer("P#KiSweetTalkTime","GLOBAL",300) + SetGlobal("P#KivanSweetTalk","GLOBAL",1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + RealGlobalTimerExpired("P#KiSweetTalkTime","GLOBAL") + ReputationGT(Player1,11) + Global("P#KivanMatch","GLOBAL",1) + !Global("P#KivanRomanceInactive","GLOBAL",1) + Global("P#KivanRomanceActive","GLOBAL",1) + GlobalLT("P#KivanOffence","GLOBAL",10) + OR(4) + Global("P#KivanSweetTalk","GLOBAL",1) + Global("P#KivanSweetTalk","GLOBAL",3) + Global("P#KivanSweetTalk","GLOBAL",5) + Global("P#KivanSweetTalk","GLOBAL",7) +THEN + RESPONSE #100 + RealSetGlobalTimer("P#KiSweetTalkTime","GLOBAL",1) + IncrementGlobal("P#KivanSweetTalk","GLOBAL",1) + IncrementGlobal("P#KivanLove","GLOBAL",1) + PlaySong(0) + PlaySound("kivan00") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + RealGlobalTimerExpired("P#KiSweetTalkTime","GLOBAL") + OR(5) + Global("P#KivanSweetTalk","GLOBAL",2) + Global("P#KivanSweetTalk","GLOBAL",4) + Global("P#KivanSweetTalk","GLOBAL",6) + Global("P#KivanSweetTalk","GLOBAL",8) + Global("P#KivanSweetTalk","GLOBAL",10) +THEN + RESPONSE #100 + RealSetGlobalTimer("P#KiSweetTalkTime","GLOBAL",1800) + IncrementGlobal("P#KivanSweetTalk","GLOBAL",1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + RealGlobalTimerExpired("P#KiSweetTalkTime","GLOBAL") + ReputationGT(Player1,11) + Global("P#KivanMatch","GLOBAL",1) + !Global("P#KivanRomanceInactive","GLOBAL",1) + Global("P#KivanRomanceActive","GLOBAL",1) + GlobalLT("P#KivanOffence","GLOBAL",10) + PartyRested() + Global("P#KivanSweetTalk","GLOBAL",9) +THEN + RESPONSE #100 + RealSetGlobalTimer("P#KiSweetTalkTime","GLOBAL",1) + IncrementGlobal("P#KivanSweetTalk","GLOBAL",1) + IncrementGlobal("P#KivanLove","GLOBAL",1) + PlaySong(0) + PlaySound("kivan00") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + Global("P#KivanRain","GLOBAL",1) + ReputationGT(Player1,11) + Global("P#KivanMatch","GLOBAL",1) + !Global("P#KivanRomanceInactive","GLOBAL",1) + Global("P#KivanRomanceActive","GLOBAL",1) + GlobalLT("P#KivanOffence","GLOBAL",10) + AreaType(OUTDOOR) + Global("P#KivanTimerForRain","GLOBAL",0) +THEN + RESPONSE #100 + SetGlobal("P#KivanTimerForRain","GLOBAL",1) + RealSetGlobalTimer("P#KiVirga","GLOBAL",200) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + Global("P#KivanRain","GLOBAL",1) + RealGlobalTimerExpired("P#KiVirga","GLOBAL") + ReputationGT(Player1,11) + Global("P#KivanMatch","GLOBAL",1) + !Global("P#KivanRomanceInactive","GLOBAL",1) + Global("P#KivanRomanceActive","GLOBAL",1) + GlobalLT("P#KivanOffence","GLOBAL",10) + AreaType(OUTDOOR) + Global("P#KivanVirgaTalk","GLOBAL",0) +THEN + RESPONSE #100 + RealSetGlobalTimer("P#KiVirga","GLOBAL",20) + IncrementGlobal("P#KivanVirgaTalk","GLOBAL",1) + Weather(RAIN) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + CombatCounter(0) + !See([ENEMY]) + RealGlobalTimerExpired("P#KiVirga","GLOBAL") + ReputationGT(Player1,11) + Global("P#KivanMatch","GLOBAL",1) + !Global("P#KivanRomanceInactive","GLOBAL",1) + Global("P#KivanRomanceActive","GLOBAL",1) + GlobalLT("P#KivanOffence","GLOBAL",10) + AreaType(OUTDOOR) + Global("P#KivanVirgaTalk","GLOBAL",1) +THEN + RESPONSE #100 + IncrementGlobal("P#KivanVirgaTalk","GLOBAL",1) + IncrementGlobal("P#KivanLove","GLOBAL",1) + PlaySong(0) + PlaySound("kivan00") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + Global("P#KiWarmth","GLOBAL",1) +THEN + RESPONSE #100 + IncrementGlobal("P#KiWarmth","GLOBAL",1) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + Global("P#KiLace","GLOBAL",1) +THEN + RESPONSE #100 + IncrementGlobal("P#KiLace","GLOBAL",1) + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + !See([ENEMY]) + ReputationGT(Player1,11) + Global("P#KivanMatch","GLOBAL",1) + !Global("P#KivanRomanceInactive","GLOBAL",1) + Global("P#KivanRomanceActive","GLOBAL",1) + GlobalLT("P#KivanOffence","GLOBAL",10) + Global("P#KivanStars","GLOBAL",0) + TimeOfDay(NIGHT) + AreaType(OUTDOOR) + GlobalGT("P#KivanLoveTalk","GLOBAL",5) +THEN + RESPONSE #100 + RealSetGlobalTimer("P#KiSweetTalkTime","GLOBAL",900) + IncrementGlobal("P#KivanStars","GLOBAL",1) + IncrementGlobal("P#KivanLove","GLOBAL",1) + PlaySong(0) + PlaySound("kivan00") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + !See([ENEMY]) + ReputationGT(Player1,11) + Global("P#KivanMatch","GLOBAL",1) + !Global("P#KivanRomanceInactive","GLOBAL",1) + Global("P#KivanRomanceActive","GLOBAL",1) + GlobalLT("P#KivanOffence","GLOBAL",10) + Global("P#KivanDungeon","GLOBAL",0) + RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") + GlobalGT("P#KivanSweetTalk","GLOBAL",3) + AreaType(DUNGEON) + !AreaCheck("AR1515") + GlobalGT("P#KivanLoveTalk","GLOBAL",5) +THEN + RESPONSE #100 + RealSetGlobalTimer("P#KiSweetTalkTime","GLOBAL",900) + IncrementGlobal("P#KivanDungeon","GLOBAL",1) + IncrementGlobal("P#KivanLove","GLOBAL",1) + PlaySong(0) + PlaySound("kivan00") + StartDialogueNoSet(Player1) +END + +IF + InParty("P#kivan") + !Dead("P#kivan") + InMyArea("P#Kivan") + Global("P#SetDrowShout","LOCALS",0) +THEN + RESPONSE #100 + SetGlobal("P#SetDrowShout","LOCALS",1) + RealSetGlobalTimer("P#KivanDrowShoutTime","GLOBAL",60) +END + +IF + OR(2) + Race(LastAttackerOf([GOODCUTOFF]),ELF) + AttackedBy([0.0.ELF],DEFAULT) + RealGlobalTimerExpired("P#KivanDrowShoutTime","GLOBAL") + OR(19) + AreaCheck("AR2100") + AreaCheck("AR2200") + AreaCheck("AR2101") + AreaCheck("AR2102") + AreaCheck("AR2103") + AreaCheck("AR2104") + AreaCheck("AR2105") + AreaCheck("AR2500") + AreaCheck("AR6100") + AreaCheck("AR6101") + AreaCheck("AR6102") + AreaCheck("AR6103") + AreaCheck("AR6104") + AreaCheck("AR6105") + AreaCheck("AR6106") + AreaCheck("AR6107") + AreaCheck("AR6108") + AreaCheck("AR6109") + AreaCheck("AR6110") +THEN + RESPONSE #50 + SetGlobal("P#Drow","LOCALS",1) + DisplayStringHead(Myself,108004) // Death to the Drow! + RealSetGlobalTimer("P#KivanDrowShoutTime","GLOBAL",60) + Shout(153) + RESPONSE #50 + SetGlobal("P#Drow","LOCALS",1) + DisplayStringHead(Myself,108005) // In Shevarash name! + RealSetGlobalTimer("P#KivanDrowShoutTime","GLOBAL",60) + Shout(153) + RESPONSE #50 + SetGlobal("P#Drow","LOCALS",1) + DisplayStringHead(Myself,108006) // Be damned, Lloth's spawn! + RealSetGlobalTimer("P#KivanDrowShoutTime","GLOBAL",60) + Shout(153) + RESPONSE #50 + SetGlobal("P#Drow","LOCALS",1) + DisplayStringHead(Myself,108007) // For Shevarash! + RealSetGlobalTimer("P#KivanDrowShoutTime","GLOBAL",60) + Shout(153) + RESPONSE #50 + SetGlobal("P#Drow","LOCALS",1) + DisplayStringHead(Myself,108008) // Doomed be the dark ones! + RealSetGlobalTimer("P#KivanDrowShoutTime","GLOBAL",60) + Shout(153) + RESPONSE #50 + SetGlobal("P#Drow","LOCALS",1) + DisplayStringHead(Myself,108009) // Vengeance for our fallen! + RealSetGlobalTimer("P#KivanDrowShoutTime","GLOBAL",60) + Shout(153) +END + +IF + InParty(Myself) + CombatCounter(0) + !See([ENEMY]) + Global("P#KivanLoversQuest","GLOBAL",1) + PartyHasItem("MISC5R") // The Lover's Ring + !AreaCheck("AR0404") + !AreaType(DUNGEON) + GlobalLT("Chapter","GLOBAL",%bg2_chapter_4%) +THEN + RESPONSE #100 + IncrementGlobal("P#KivanLoversQuest","GLOBAL",1) + StartDialogueNoSet(Player1) +END + +IF + InParty(Myself) + Global("P#KivanLoversQuest","GLOBAL",6) + Global("P#RingEntry1","GLOBAL",0) +THEN + RESPONSE #100 + SetGlobal("P#RingEntry1","GLOBAL",1) + AddJournalEntry(@10003,QUEST_DONE) + EraseJournalEntry(@10001) // The Lover's Ring Kivan thinks that we should talk to the merchant of antiquities, Quataris, in the Promenade about the Lover's Ring. +END + +IF + InParty(Myself) + Global("P#KivanLoversQuest","GLOBAL",5) + Global("P#RingEntry2","GLOBAL",0) +THEN + RESPONSE #100 + SetGlobal("P#RingEntry2","GLOBAL",1) + AddJournalEntry(@10000,QUEST) +END + +IF + InParty(Myself) + Global("P#SummonChislav","GLOBAL",1) + Global("P#RingEntry3","GLOBAL",0) +THEN + RESPONSE #100 + RealSetGlobalTimer("P#Chislav","GLOBAL",3000) + SetGlobal("P#RingEntry3","GLOBAL",1) + AddJournalEntry(@10002,QUEST) +END + +IF + InParty(Myself) + GlobalGT("P#KivanLoversQuest","GLOBAL",5) + Global("P#RingEntry4","GLOBAL",0) +THEN + RESPONSE #100 + SetGlobal("P#RingEntry4","GLOBAL",1) + EraseJournalEntry(@10001) // The Lover's Ring Kivan thinks that we should talk to the merchant of antiquities, Quataris, in the Promenade about the Lover's Ring. + EraseJournalEntry(@10000) // The Lover's Ring Upon having his memory loss 'cured' by paying us less gold pieces than he intended, the merchant of antiquities in the Promenade recalled that the Jysstev family owned a ring similar to the one we found in the sewers. The Jysstevs, according to him, are old money. Perhaps, they'd pay me for bringing the news. + EraseJournalEntry(@10002) // The Lover's Ring Lady Jysstev was quite annoyed when I mentioned the Lover's Ring to her. Perhaps I should have talked to someone else. I will have to wait and see... +END + +IF + InParty(Myself) + Global("P#SummonChislav","GLOBAL",1) + RealGlobalTimerExpired("P#Chislav","GLOBAL") + OR(7) + AreaCheck("AR0500") + AreaCheck("AR0400") + AreaCheck("AR0900") + AreaCheck("AR1000") + AreaCheck("AR0800") + AreaCheck("AR0700") + AreaCheck("AR0300") +THEN + RESPONSE #100 + SetGlobal("P#SummonChislav","GLOBAL",2) + CreateCreatureObject("P#CHISL","P#kivan",0,0,0) + Wait(1) + ActionOverride("chislav",Dialogue(Player1)) +END + +IF + InParty("P#Deher") + Global("P#DeherSoundset","GLOBAL",0) +THEN + RESPONSE #100 + SetGlobal("P#DeherSoundset","GLOBAL",1) + SetPlayerSound(Myself,-1,SELECT_RARE1) +END + +IF + !InParty("P#Deher") + Global("P#DeherSoundset","GLOBAL",1) +THEN + RESPONSE #100 + SetGlobal("P#DeherSoundset","GLOBAL",0) + SetPlayerSound(Myself,@36,SELECT_RARE1) +END \ No newline at end of file diff --git a/kivan/baf/p#kivan.baf b/kivan/baf/p#kivan.baf new file mode 100644 index 0000000..de3099b --- /dev/null +++ b/kivan/baf/p#kivan.baf @@ -0,0 +1,198 @@ +IF + Global("P#FirstTimeHere","LOCALS",0) + !Range(Player1,10) +THEN + RESPONSE #100 + SetGlobal("P#FirstTimeHere","LOCALS",1) + ActionOverride("p#kivan",MoveToObject(Player1)) + Wait(1) + FaceObject(Player1) +END + +IF + NumTimesTalkedTo(0) + Range(Player1,10) +THEN + RESPONSE #100 + SmallWait(10) + ActionOverride(Player1,FaceObject("p#kivan")) + SmallWait(10) + StartDialogueNoSet(Player1) +END + +IF + OR(3) + AttackedBy([GOODCUTOFF],DEFAULT) + HitBy([GOODCUTOFF],CRUSHING) + HPPercentLT(Myself,100) + Global("P#KivanAttacked","LOCALS",0) +THEN + RESPONSE #100 + SetGlobal("P#KivanAttacked","LOCALS",1) +END + +IF + Global("P#KivanAttacked","LOCALS",1) +THEN + RESPONSE #100 + DisplayStringHead(Myself,17101) // Hmm... finds that violence is unavoidable. Certainly to be expected in a creature such as you. + ReallyForceSpell(Myself,DRYAD_TELEPORT) // SPWI995.SPL (Dimension Door) +END + +IF + Delay(10) + See(NearestEnemyOf(Myself)) + !StateCheck(Myself,STATE_INVISIBLE) +THEN + RESPONSE #100 + Hide() + Continue() +END + +IF + See(NearestEnemyOf(Myself)) + HaveSpell(CLERIC_ARMOR_OF_FAITH) // SPPR111.SPL (Armor of Faith) + CheckStatGT(Myself,3,ARMORCLASS) + HPGT(LastSeenBy(Myself),20) +THEN + RESPONSE #100 + Spell(Myself,CLERIC_ARMOR_OF_FAITH) // SPPR111.SPL (Armor of Faith) + Continue() +END + +IF + See(NearestEnemyOf(Myself)) + HaveSpell(CLERIC_BLESS) // SPPR101.SPL (Bless) + HPGT(LastSeenBy(Myself),20) + !StateCheck(LastSeenBy(Myself),STATE_BLESS) +THEN + RESPONSE #100 + Spell(Myself,CLERIC_BLESS) // SPPR101.SPL (Bless) + Continue() +END + +IF + OR(4) + StateCheck(Myself,STATE_PANIC) + SpellCast([ANYONE],WIZARD_HORROR) // SPWI205.SPL (Horror) + SpellCast([ANYONE],WIZARD_SPOOK) // SPWI125.SPL (Spook) + SpellCastPriest([ANYONE],CLERIC_CLOAK_OF_FEAR) // SPPR416.SPL (Cloak of Fear) + HaveSpell(CLERIC_REMOVE_FEAR) // SPPR108.SPL (Remove Fear) + See(NearestEnemyOf(Myself)) +THEN + RESPONSE #100 + Spell(Myself,CLERIC_REMOVE_FEAR) // SPPR108.SPL (Remove Fear) + Continue() +END + +IF + See(NearestEnemyOfType([0.ANIMAL])) + HaveSpell(RANGER_CHARM_ANIMAL) // SPCL311.SPL (Charm Animal) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),RANGER_CHARM_ANIMAL) // SPCL311.SPL (Charm Animal) + Continue() +END + +IF + See(NearestEnemyOf(Myself)) + !StateCheck(Myself,STATE_HASTED) + HaveSpell(WIZARD_HASTE) // SPWI305.SPL (Haste) +THEN + RESPONSE #100 + Spell(Myself,WIZARD_HASTE) // SPWI305.SPL (Haste) + Continue() +END + +IF + HitBy([ANYONE],MISSILE) + HaveSpell(WIZARD_PROTECTION_FROM_NORMAL_MISSILES) // SPWI311.SPL (Protection From Normal Missiles) + !HasImmunityEffects(Myself) +THEN + RESPONSE #100 + Spell(Myself,WIZARD_PROTECTION_FROM_NORMAL_MISSILES) // SPWI311.SPL (Protection From Normal Missiles) + Continue() +END + +IF + HaveSpell(WIZARD_MINOR_SPELL_DEFLECTION) // SPWI318.SPL (Minor Spell Deflection) + OR(4) + See(NearestEnemyOfType([0.0.0.LONG_BOW])) + See(NearestEnemyOfType([0.0.0.CLERIC_ALL])) + See(NearestEnemyOfType([0.0.0.BARD_ALL])) + See(NearestEnemyOfType([0.0.0.DRUID_ALL])) + !HasBounceEffects(Myself) +THEN + RESPONSE #100 + Spell(Myself,WIZARD_MINOR_SPELL_DEFLECTION) // SPWI318.SPL (Minor Spell Deflection) + Continue() +END + +IF + See(NearestEnemyOf(Myself)) + !Range(LastSeenBy(Myself),20) + HaveSpell(CLERIC_ENTANGLE) // SPPR105.SPL (Entangle) + AreaType(OUTDOOR) +THEN + RESPONSE #100 + Spell(LastSeenBy(Myself),CLERIC_ENTANGLE) // SPPR105.SPL (Entangle) + Continue() +END + +IF + See(NearestEnemyOf(Myself)) + HaveSpell(CLERIC_DOOM) // SPPR113.SPL (Doom) +THEN + RESPONSE #50 + Spell(LastSeenBy(Myself),CLERIC_DOOM) // SPPR113.SPL (Doom) + Continue() + RESPONSE #50 + Continue() +END + +IF + HPPercentLT(Myself,30) + HaveSpell(CLERIC_CURE_MEDIUM_WOUNDS) // SPPR315.SPL (Cure Medium Wounds) +THEN + RESPONSE #100 + Spell(MostDamagedOf(Myself),CLERIC_CURE_MEDIUM_WOUNDS) // SPPR315.SPL (Cure Medium Wounds) +END + +IF + HPPercentLT(Myself,60) + HaveSpell(CLERIC_CURE_LIGHT_WOUNDS) // SPPR103.SPL (Cure Light Wounds) +THEN + RESPONSE #100 + Spell(MostDamagedOf(Myself),CLERIC_CURE_LIGHT_WOUNDS) // SPPR103.SPL (Cure Light Wounds) +END + +IF + AttackedBy([ANYONE],DEFAULT) + Range(LastAttackerOf(Myself),20) +THEN + RESPONSE #100 + EquipMostDamagingMelee() + AttackReevaluate(LastAttackerOf(Myself),30) + Continue() +END + +IF + See(NearestEnemyOf(Myself)) + Range(NearestEnemyOf(Myself),10) +THEN + RESPONSE #100 + EquipMostDamagingMelee() + AttackReevaluate(NearestEnemyOf(Myself),30) + Continue() +END + +IF + See(NearestEnemyOf(Myself)) + !Range(NearestEnemyOf(Myself),10) +THEN + RESPONSE #100 + EquipRanged() + AttackReevaluate(NearestEnemyOf(Myself),30) + Continue() +END + diff --git a/kivan/baf/p#kivd.baf b/kivan/baf/p#kivd.baf new file mode 100644 index 0000000..fa9d166 --- /dev/null +++ b/kivan/baf/p#kivd.baf @@ -0,0 +1,177 @@ +//DreamScripts + +IF +InParty(Myself) +RealGlobalTimerExpired("P#KiFriendTalkTime","GLOBAL") +ReputationGT(Player1,11) +Global("P#KivanFriend","GLOBAL",1) +Global("P#KiOldFriend","GLOBAL",1) +!TimeOfDay(DAY) +Global("P#KiFriendTalk","GLOBAL",9) +THEN +RESPONSE #100 +SetGlobal("P#KivanFriend","GLOBAL",2) +IncrementGlobal("P#KiFriendTalk","GLOBAL",1) +StartDialogueNoSet(Player1) +END + +//After We recieved arrows from Captain Arat + +IF +InParty(Myself) +CombatCounter(0) !See([ENEMY]) +Global("P#KivanArat","GLOBAL",1) +THEN +RESPONSE #100 +IncrementGlobal("P#KivanArat","GLOBAL",1) +StartDialogueNoSet(Player1) +END + +//During Chapter 4-5 Soulless Talk + +IF +InParty(Myself) +CombatCounter(0) !See([ENEMY]) +GlobalGT("AsylumPlot","GLOBAL",40) +GlobalLT("Chapter","GLOBAL",%bg2_chapter_6%) +Global("P#KivanSoul","GLOBAL",0) +THEN +RESPONSE #100 +IncrementGlobal("P#KivanSoul","GLOBAL",1) +StartDialogueNoSet(Player1) +END + +//Banter with NPC + +IF +RealGlobalTimerExpired("P#KivanRestTimer","GLOBAL") +InParty(Myself) +InParty("Mazzy") +TimeOfDay(NIGHT) +OR(9) +AreaCheck("AR0021") +AreaCheck("AR0313") +AreaCheck("AR2202") +AreaCheck("AR1105") +AreaCheck("AR0704") +AreaCheck("AR0522") +AreaCheck("AR0514") +AreaCheck("AR0509") +AreaCheck("AR0406") +OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3) +CombatCounter(0) !See([ENEMY]) +See("MAZZY") +!StateCheck("MAZZY",STATE_SLEEPING) +Global("P#MazzyTost","GLOBAL",0) +THEN +RESPONSE #100 +SetGlobal("P#MazzyTost","GLOBAL",1) +StartDialogueNoSet(Player1) +END + +IF +RealGlobalTimerExpired("P#KivanRestTimer","GLOBAL") +InParty(Myself) +InParty("Nalia") +OR(9) +AreaCheck("AR0021") +AreaCheck("AR0313") +AreaCheck("AR2202") +AreaCheck("AR1105") +AreaCheck("AR0704") +AreaCheck("AR0522") +AreaCheck("AR0514") +AreaCheck("AR0509") +AreaCheck("AR0406") +Global("P#KINA2","LOCALS",0) +THEN +RESPONSE #100 +SetGlobal("P#KINA2","LOCALS",1) +StartDialogueNoSet(Player1) +END + +//Korgan +IF +RealGlobalTimerExpired("P#KivanRestTimer","GLOBAL") +InParty(Myself) +InParty("Korgan") +OR(9) +AreaCheck("AR0021") +AreaCheck("AR0313") +AreaCheck("AR2202") +AreaCheck("AR1105") +AreaCheck("AR0704") +AreaCheck("AR0522") +AreaCheck("AR0514") +AreaCheck("AR0509") +AreaCheck("AR0406") +Global("P#KIKO4","GLOBAL",0) +Global("P#KIKO1","LOCALS",1) +THEN +RESPONSE #100 +SetGlobal("P#KIKO4","GLOBAL",1) +ActionOverride("korgan",StartDialogueNoSet("p#kivan")) +END + +//Lovetalks +IF +GlobalLT("P#KivanOffence","GLOBAL",10) +RealGlobalTimerExpired("P#KiLoveTalkTime","GLOBAL") +InParty(Myself) +AreaType(FOREST) +ReputationGT(Player1,11) +Global("P#KivanMatch","GLOBAL",1) +Global("P#KivanLoveTalk","GLOBAL",3) +!Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","Global",1) +THEN +RESPONSE #100 +IncrementGlobal("P#KivanLoveTalk","GLOBAL",1) +PlaySong(0) +PlaySound("kivan00") +StartDialogueNoSet(Player1) +END + +IF +RealGlobalTimerExpired("P#KiLoveTalkTime","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10) +InParty(Myself) +AreaType(FOREST) +ReputationGT(Player1,11) +Global("P#KivanMatch","GLOBAL",1) +Global("P#KivanLoveTalk","GLOBAL",1) +!Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) +THEN +RESPONSE #100 +CreateCreature("P#SQUI",[-1.-1],0) +IncrementGlobal("P#KivanLoveTalk","GLOBAL",1) +MoveGlobalObject("P#SQUI","P#KIVAN") +MoveGlobalObject(Player1,"P#KIVAN") +PlaySong(0) +PlaySound("kivan00") +StartDialogueNoSet(Player1) +END + +IF +RealGlobalTimerExpired("P#KiLoveTalkTime","GLOBAL") +InParty(Myself) +ReputationGT(Player1,11) +AreaType(FOREST) +GlobalGT("P#KivanLoveTalk","GLOBAL",5) +Global("P#KivanMatch","GLOBAL",1) +!Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) +GlobalLT("P#KivanOffence","GLOBAL",10) +GlobalGT("P#KivanSweetTalk","GLOBAL",5) +Global("P#KivanEmbersTalk","GLOBAL",0) +THEN +RESPONSE #100 +IncrementGlobal("P#KivanEmbersTalk","GLOBAL",1) +IncrementGlobal("P#KivanLove","GLOBAL",1) +PlaySong(0) +PlaySound("kivan00") +StartDialogueNoSet(Player1) +END + + diff --git a/kivan/baf/watcher's keep areas b/kivan/baf/watcher's keep areas new file mode 100644 index 0000000..bbf3b28 --- /dev/null +++ b/kivan/baf/watcher's keep areas @@ -0,0 +1,28 @@ +!AreaCheck("AR3000) //Watcher's Keep +!AreaCheck("AR3001) //Watcher’s Keep -- Altar level +!AreaCheck("AR3003) //Watcher’s Keep -- Compass level +!AreaCheck("AR3004) //Watcher’s Keep +!AreaCheck("AR3005) //Watcher’s Keep -- tieflings +!AreaCheck("AR3006) //Watcher’s Keep -- Succubus +!AreaCheck("AR3007) //Watcher’s Keep --Cambion +!AreaCheck("AR3008) //Watcher’s Keep -- Balor (Paladin Sword) +!AreaCheck("AR3009) //Watcher’s Keep --) //Wild Magic ? +!AreaCheck("AR3010) //Watcher’s Keep -- Tanar’ri -- Obelisk +!AreaCheck("AR3011) //Watcher’s Keep -- Bard’s Gloves, Manman’s Journal +!AreaCheck("AR3012) //Watcher’s Keep -- Tahazzar +!AreaCheck("AR3013) //Watcher’s Keep -- Ka’rashur +!AreaCheck("AR3014) //Watcher’s Keep --) //White Dragon Scales +!AreaCheck("AR3015) //Watcher’s Keep -- Aesgareth +!AreaCheck("AR3016) //Watcher’s Keep -- Chromatic Demon; Elementalist Level +!AreaCheck("AR3017) //Watcher’s Keep -- Carston and the machine +!AreaCheck("AR3018) //Watcher’s Keep -- Saladrex (Dragon) +!AreaCheck("AR3019) //Watcher’s Keep -- Helmite Level -- Last Seals +!AreaCheck("AR3020) //Watcher’s Keep -- Imprisoned One +!AreaCheck("AR3021) //Watcher’s Keep -- Ilithids +!AreaCheck("AR3022) //Watcher’s Keep -- Anti-Paladins +!AreaCheck("AR3023) //Watcher’s Keep -- "Adventure Level" (Mini Map!!!) +!AreaCheck("AR3024) //Watcher’s Keep -- Dragon -- Fear Challenge +!AreaCheck("AR3025) //Watcher’s Keep -- Orcs -- Ixil’s Nail +!AreaCheck("AR3026) //Watcher’s Keep -- Imp -- Game +!AreaCheck("AR3027) //Watcher’s Keep -- Crypt -- Demi-Lich + diff --git a/kivan/bam/cwreat.bam b/kivan/bam/cwreat.bam new file mode 100644 index 0000000..ee5c76e Binary files /dev/null and b/kivan/bam/cwreat.bam differ diff --git a/kivan/bam/ihelm29.bam b/kivan/bam/ihelm29.bam new file mode 100644 index 0000000..9ca6e01 Binary files /dev/null and b/kivan/bam/ihelm29.bam differ diff --git a/kivan/bam/ip#ho01.bam b/kivan/bam/ip#ho01.bam new file mode 100644 index 0000000..ba22916 Binary files /dev/null and b/kivan/bam/ip#ho01.bam differ diff --git a/kivan/bam/iwreat.bam b/kivan/bam/iwreat.bam new file mode 100644 index 0000000..5f943ea Binary files /dev/null and b/kivan/bam/iwreat.bam differ diff --git a/kivan/bmp/aemonm.png b/kivan/bmp/aemonm.png new file mode 100644 index 0000000..9c10f24 Binary files /dev/null and b/kivan/bmp/aemonm.png differ diff --git a/kivan/bmp/deherl.bmp b/kivan/bmp/deherl.bmp new file mode 100644 index 0000000..d1cb0cb Binary files /dev/null and b/kivan/bmp/deherl.bmp differ diff --git a/kivan/bmp/deherm.bmp b/kivan/bmp/deherm.bmp new file mode 100644 index 0000000..878201a Binary files /dev/null and b/kivan/bmp/deherm.bmp differ diff --git a/kivan/bmp/dehers.bmp b/kivan/bmp/dehers.bmp new file mode 100644 index 0000000..744616b Binary files /dev/null and b/kivan/bmp/dehers.bmp differ diff --git a/kivan/bmp/ee/deherl.bmp b/kivan/bmp/ee/deherl.bmp new file mode 100644 index 0000000..d1cb0cb Binary files /dev/null and b/kivan/bmp/ee/deherl.bmp differ diff --git a/kivan/bmp/ee/deherm.bmp b/kivan/bmp/ee/deherm.bmp new file mode 100644 index 0000000..28d3fff Binary files /dev/null and b/kivan/bmp/ee/deherm.bmp differ diff --git a/kivan/bmp/ee/dehers.bmp b/kivan/bmp/ee/dehers.bmp new file mode 100644 index 0000000..5bdd789 Binary files /dev/null and b/kivan/bmp/ee/dehers.bmp differ diff --git a/kivan/bmp/ee/p#ki1l.bmp b/kivan/bmp/ee/p#ki1l.bmp new file mode 100644 index 0000000..579aa67 Binary files /dev/null and b/kivan/bmp/ee/p#ki1l.bmp differ diff --git a/kivan/bmp/ee/p#ki1m.bmp b/kivan/bmp/ee/p#ki1m.bmp new file mode 100644 index 0000000..c687088 Binary files /dev/null and b/kivan/bmp/ee/p#ki1m.bmp differ diff --git a/kivan/bmp/ee/p#ki1s.bmp b/kivan/bmp/ee/p#ki1s.bmp new file mode 100644 index 0000000..c5b458e Binary files /dev/null and b/kivan/bmp/ee/p#ki1s.bmp differ diff --git a/kivan/bmp/ee/p#ki2l.bmp b/kivan/bmp/ee/p#ki2l.bmp new file mode 100644 index 0000000..af325bf Binary files /dev/null and b/kivan/bmp/ee/p#ki2l.bmp differ diff --git a/kivan/bmp/ee/p#ki2m.bmp b/kivan/bmp/ee/p#ki2m.bmp new file mode 100644 index 0000000..2a3fd62 Binary files /dev/null and b/kivan/bmp/ee/p#ki2m.bmp differ diff --git a/kivan/bmp/ee/p#ki2s.bmp b/kivan/bmp/ee/p#ki2s.bmp new file mode 100644 index 0000000..7b56304 Binary files /dev/null and b/kivan/bmp/ee/p#ki2s.bmp differ diff --git a/kivan/bmp/ee/p#ki2s.png b/kivan/bmp/ee/p#ki2s.png new file mode 100644 index 0000000..f143ea6 Binary files /dev/null and b/kivan/bmp/ee/p#ki2s.png differ diff --git a/kivan/bmp/ee/p#neil.bmp b/kivan/bmp/ee/p#neil.bmp new file mode 100644 index 0000000..b6d66f9 Binary files /dev/null and b/kivan/bmp/ee/p#neil.bmp differ diff --git a/kivan/bmp/ee/p#neis.bmp b/kivan/bmp/ee/p#neis.bmp new file mode 100644 index 0000000..cdbbeb1 Binary files /dev/null and b/kivan/bmp/ee/p#neis.bmp differ diff --git a/kivan/bmp/ee/p#seasn.bmp b/kivan/bmp/ee/p#seasn.bmp new file mode 100644 index 0000000..359c113 Binary files /dev/null and b/kivan/bmp/ee/p#seasn.bmp differ diff --git a/kivan/bmp/p#ki1l.bmp b/kivan/bmp/p#ki1l.bmp new file mode 100644 index 0000000..579aa67 Binary files /dev/null and b/kivan/bmp/p#ki1l.bmp differ diff --git a/kivan/bmp/p#ki1m.bmp b/kivan/bmp/p#ki1m.bmp new file mode 100644 index 0000000..4c85f35 Binary files /dev/null and b/kivan/bmp/p#ki1m.bmp differ diff --git a/kivan/bmp/p#ki1s.bmp b/kivan/bmp/p#ki1s.bmp new file mode 100644 index 0000000..754aabf Binary files /dev/null and b/kivan/bmp/p#ki1s.bmp differ diff --git a/kivan/bmp/p#ki2l.bmp b/kivan/bmp/p#ki2l.bmp new file mode 100644 index 0000000..af325bf Binary files /dev/null and b/kivan/bmp/p#ki2l.bmp differ diff --git a/kivan/bmp/p#ki2m.bmp b/kivan/bmp/p#ki2m.bmp new file mode 100644 index 0000000..127d3b6 Binary files /dev/null and b/kivan/bmp/p#ki2m.bmp differ diff --git a/kivan/bmp/p#ki2s.bmp b/kivan/bmp/p#ki2s.bmp new file mode 100644 index 0000000..f676723 Binary files /dev/null and b/kivan/bmp/p#ki2s.bmp differ diff --git a/kivan/bmp/p#ki2s.png b/kivan/bmp/p#ki2s.png new file mode 100644 index 0000000..f143ea6 Binary files /dev/null and b/kivan/bmp/p#ki2s.png differ diff --git a/kivan/bmp/p#neil.bmp b/kivan/bmp/p#neil.bmp new file mode 100644 index 0000000..5f39acc Binary files /dev/null and b/kivan/bmp/p#neil.bmp differ diff --git a/kivan/bmp/p#neil.png b/kivan/bmp/p#neil.png new file mode 100644 index 0000000..34dd9c3 Binary files /dev/null and b/kivan/bmp/p#neil.png differ diff --git a/kivan/bmp/p#neis.bmp b/kivan/bmp/p#neis.bmp new file mode 100644 index 0000000..f8a8ec1 Binary files /dev/null and b/kivan/bmp/p#neis.bmp differ diff --git a/kivan/bmp/p#seasn.bmp b/kivan/bmp/p#seasn.bmp new file mode 100644 index 0000000..7199470 Binary files /dev/null and b/kivan/bmp/p#seasn.bmp differ diff --git a/kivan/bmp/wreath1.bmp b/kivan/bmp/wreath1.bmp new file mode 100644 index 0000000..17ca452 Binary files /dev/null and b/kivan/bmp/wreath1.bmp differ diff --git a/kivan/cre/p#chisl.cre b/kivan/cre/p#chisl.cre new file mode 100644 index 0000000..ec2fd55 Binary files /dev/null and b/kivan/cre/p#chisl.cre differ diff --git a/kivan/cre/p#deh01.cre b/kivan/cre/p#deh01.cre new file mode 100644 index 0000000..1bd6d70 Binary files /dev/null and b/kivan/cre/p#deh01.cre differ diff --git a/kivan/cre/p#dehdiv.cre b/kivan/cre/p#dehdiv.cre new file mode 100644 index 0000000..dc01575 Binary files /dev/null and b/kivan/cre/p#dehdiv.cre differ diff --git a/kivan/cre/p#dehenc.cre b/kivan/cre/p#dehenc.cre new file mode 100644 index 0000000..d2f64b1 Binary files /dev/null and b/kivan/cre/p#dehenc.cre differ diff --git a/kivan/cre/p#deher.cre b/kivan/cre/p#deher.cre new file mode 100644 index 0000000..616382a Binary files /dev/null and b/kivan/cre/p#deher.cre differ diff --git a/kivan/cre/p#dehwma.cre b/kivan/cre/p#dehwma.cre new file mode 100644 index 0000000..a13adb0 Binary files /dev/null and b/kivan/cre/p#dehwma.cre differ diff --git a/kivan/cre/p#kivan.cre b/kivan/cre/p#kivan.cre new file mode 100644 index 0000000..2d89c95 Binary files /dev/null and b/kivan/cre/p#kivan.cre differ diff --git a/kivan/cre/p#lilco.cre b/kivan/cre/p#lilco.cre new file mode 100644 index 0000000..c7af224 Binary files /dev/null and b/kivan/cre/p#lilco.cre differ diff --git a/kivan/cre/p#neiros.cre b/kivan/cre/p#neiros.cre new file mode 100644 index 0000000..94c574a Binary files /dev/null and b/kivan/cre/p#neiros.cre differ diff --git a/kivan/cre/p#seasn.cre b/kivan/cre/p#seasn.cre new file mode 100644 index 0000000..53d15a8 Binary files /dev/null and b/kivan/cre/p#seasn.cre differ diff --git a/kivan/cre/p#shong.cre b/kivan/cre/p#shong.cre new file mode 100644 index 0000000..0abeece Binary files /dev/null and b/kivan/cre/p#shong.cre differ diff --git a/kivan/cre/p#squi.cre b/kivan/cre/p#squi.cre new file mode 100644 index 0000000..6c3c67d Binary files /dev/null and b/kivan/cre/p#squi.cre differ diff --git a/kivan/d/bp#deh.d b/kivan/d/bp#deh.d new file mode 100644 index 0000000..c06da09 --- /dev/null +++ b/kivan/d/bp#deh.d @@ -0,0 +1,971 @@ +BEGIN P#DEHJ + +//news about Deheriana +I_C_T PPAPHRIL 1 P#DeherianaAphrilTalk +== BP#KIV IF ~InParty("P#KIVAN") Gender(Player1,FEMALE) GlobalGT("P#KivanLove","GLOBAL",3)~ THEN @0 +== PPAPHRIL IF ~InParty("P#KIVAN") Gender(Player1,FEMALE) GlobalGT("P#KivanLove","GLOBAL",3)~ THEN @1 +== BP#KIV IF ~InParty("P#KIVAN") Gender(Player1,FEMALE) GlobalGT("P#KivanLove","GLOBAL",3)~ THEN @2 +== PPAPHRIL IF ~InParty("P#KIVAN") Gender(Player1,FEMALE) GlobalGT("P#KivanLove","GLOBAL",3)~ THEN @3 +== BP#KIV IF ~InParty("P#KIVAN") Gender(Player1,FEMALE) GlobalGT("P#KivanLove","GLOBAL",3)~ THEN @4 +== PPAPHRIL IF ~InParty("P#KIVAN") Gender(Player1,FEMALE) GlobalGT("P#KivanLove","GLOBAL",3)~ THEN @5 +== BP#KIV IF ~InParty("P#KIVAN") Gender(Player1,FEMALE) GlobalGT("P#KivanLove","GLOBAL",3)~ THEN @6 +DO ~SetGlobal("P#DeherianaDead","GLOBAL",1) SetGlobal("P#DeherianaLives","GLOBAL",0) RealSetGlobalTimer("P#KivanFlirtTimer","GLOBAL",1800)~ +END + +I_C_T PPAPHRIL 1 P#DeherianaAphrilTalk +== BP#KIV IF ~InParty("P#KIVAN") OR(2) !GlobalGT("P#KivanLove","GLOBAL",3) Gender(Player1,MALE)~ THEN @0 +== PPAPHRIL IF ~InParty("P#KIVAN") OR(2) !GlobalGT("P#KivanLove","GLOBAL",3) Gender(Player1,MALE)~ THEN @7 +== BP#KIV IF ~InParty("P#KIVAN") OR(2) !GlobalGT("P#KivanLove","GLOBAL",3) Gender(Player1,MALE)~ THEN @2 +== PPAPHRIL IF ~InParty("P#KIVAN") OR(2) !GlobalGT("P#KivanLove","GLOBAL",3) Gender(Player1,MALE)~ THEN @8 +DO ~SetGlobal("P#DeherianaLives","GLOBAL",1) SetGlobal("P#DeherianaDead","GLOBAL",0)~ +END + +//Kivan departs +I_C_T SUELLE2 3 KivanDie1 +== BP#KIV IF ~InParty("P#KIVAN") OR(2) Global("P#DeherianaLives","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",5)~ THEN @9 +== SUELLE2 IF ~InParty("P#KIVAN") OR(2) Global("P#DeherianaLives","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",5)~ THEN @10 +== BP#KIV IF ~InParty("P#KIVAN") OR(2) Global("P#DeherianaLives","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",5)~ THEN @11 +== SUELLE2 IF ~InParty("P#KIVAN") OR(2) Global("P#DeherianaLives","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",5)~ THEN @12 +== BP#KIV IF ~InParty("P#KIVAN") OR(2) Global("P#DeherianaLives","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",5)~ THEN @13 +== SUELLE2 IF ~InParty("P#KIVAN") OR(2) Global("P#DeherianaLives","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",5)~ THEN @14 +DO ~ActionOverride("P#KIVAN",GivePartyAllEquipment()) ActionOverride("P#KIVAN", LeaveParty()) ActionOverride("P#KIVAN",DestroySelf())~ +END + +I_C_T SUELLE2 6 KivanDie2 +== BP#KIV IF ~InParty("P#KIVAN") OR(2) Global("P#DeherianaLives","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",5)~ THEN @9 +== SUELLE2 IF ~InParty("P#KIVAN") OR(2) Global("P#DeherianaLives","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",5)~ THEN @10 +== BP#KIV IF ~InParty("P#KIVAN") OR(2) Global("P#DeherianaLives","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",5)~ THEN @11 +== SUELLE2 IF ~InParty("P#KIVAN") OR(2) Global("P#DeherianaLives","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",5)~ THEN @12 +== BP#KIV IF ~InParty("P#KIVAN") OR(2) Global("P#DeherianaLives","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",5)~ THEN @13 +== SUELLE2 IF ~InParty("P#KIVAN") OR(2) Global("P#DeherianaLives","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",5)~ THEN @14 +DO ~ActionOverride("P#KIVAN",GivePartyAllEquipment()) ActionOverride("P#KIVAN", LeaveParty()) ActionOverride("P#KIVAN",DestroySelf())~ +END + +//Kivan+Deh depart +I_C_T SUELLE2 3 KivanDie3 +== P#DEHJ IF ~InParty("P#KIVAN") InParty("P#DEHER") Global("P#DeherianaLives","GLOBAL",2) GlobalLT("P#PCSupport","GLOBAL",2) GlobalLT("P#CerndSupport","GLOBAL",2) GlobalLT("P#AerieSupport","GLOBAL",2)~ THEN @15 +== BP#KIV IF ~InParty("P#KIVAN") InParty("P#DEHER") Global("P#DeherianaLives","GLOBAL",2) GlobalLT("P#PCSupport","GLOBAL",2) GlobalLT("P#CerndSupport","GLOBAL",2) GlobalLT("P#AerieSupport","GLOBAL",2)~ THEN @16 += @17 +== SUELLE2 IF ~InParty("P#KIVAN") OR(2) Global("P#DeherianaLives","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",5)~ THEN @14 +DO ~ActionOverride("P#KIVAN",GivePartyAllEquipment()) ActionOverride("P#DEHER",GivePartyAllEquipment()) ActionOverride("P#KIVAN", LeaveParty()) ActionOverride("P#KIVAN",DestroySelf()) ActionOverride("P#DEHER", LeaveParty()) ActionOverride("P#DEHER",DestroySelf())~ +END + +//Kivan+Deh depart +I_C_T SUELLE2 6 KivanDie4 +== P#DEHJ IF ~InParty("P#KIVAN") InParty("P#DEHER") Global("P#DeherianaLives","GLOBAL",2) GlobalLT("P#PCSupport","GLOBAL",2) GlobalLT("P#CerndSupport","GLOBAL",2) GlobalLT("P#AerieSupport","GLOBAL",2)~ THEN @15 +== BP#KIV IF ~InParty("P#KIVAN") InParty("P#DEHER") Global("P#DeherianaLives","GLOBAL",2) GlobalLT("P#PCSupport","GLOBAL",2) GlobalLT("P#CerndSupport","GLOBAL",2) GlobalLT("P#AerieSupport","GLOBAL",2)~ THEN @16 += @18 +== SUELLE2 IF ~InParty("P#KIVAN") OR(2) Global("P#DeherianaLives","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",5)~ THEN @14 +DO ~ActionOverride("P#KIVAN",GivePartyAllEquipment()) ActionOverride("P#DEHER",GivePartyAllEquipment()) ActionOverride("P#KIVAN", LeaveParty()) ActionOverride("P#KIVAN",DestroySelf()) ActionOverride("P#DEHER", LeaveParty()) ActionOverride("P#DEHER",DestroySelf())~ +END + +//DehHealed +I_C_T SUELLE2 3 KivanHE1 +== P#DEHJ IF ~InParty("P#KIVAN") InParty("P#DEHER") Global("P#DeherianaLives","GLOBAL",2) OR(3) !GlobalLT("P#PCSupport","GLOBAL",2) !GlobalLT("P#CerndSupport","GLOBAL",2) !GlobalLT("P#AerieSupport","GLOBAL",2)~ THEN @19 += @20 +== BP#KIV IF ~InParty("P#KIVAN") InParty("P#DEHER") Global("P#DeherianaLives","GLOBAL",2) OR(3) !GlobalLT("P#PCSupport","GLOBAL",2) !GlobalLT("P#CerndSupport","GLOBAL",2) !GlobalLT("P#AerieSupport","GLOBAL",2)~ THEN @21 +== P#DEHJ IF ~InParty("P#KIVAN") InParty("P#DEHER") Global("P#DeherianaLives","GLOBAL",2) OR(3) !GlobalLT("P#PCSupport","GLOBAL",2) !GlobalLT("P#CerndSupport","GLOBAL",2) !GlobalLT("P#AerieSupport","GLOBAL",2)~ THEN @22 +== BP#KIV IF ~InParty("P#KIVAN") InParty("P#DEHER") Global("P#DeherianaLives","GLOBAL",2) OR(3) !GlobalLT("P#PCSupport","GLOBAL",2) !GlobalLT("P#CerndSupport","GLOBAL",2) !GlobalLT("P#AerieSupport","GLOBAL",2)~ THEN @23 +== SUELLE2 IF ~InParty("P#KIVAN") InParty("P#DEHER") Global("P#DeherianaLives","GLOBAL",2) OR(3) !GlobalLT("P#PCSupport","GLOBAL",2) !GlobalLT("P#CerndSupport","GLOBAL",2) !GlobalLT("P#AerieSupport","GLOBAL",2)~ THEN @24 +DO ~SetGlobal("P#DeherianaLives","GLOBAL",6)~ +END + +I_C_T SUELLE2 6 KivanHE2 +== P#DEHJ IF ~InParty("P#KIVAN") InParty("P#DEHER") Global("P#DeherianaLives","GLOBAL",2) OR(3) !GlobalLT("P#PCSupport","GLOBAL",2) !GlobalLT("P#CerndSupport","GLOBAL",2) !GlobalLT("P#AerieSupport","GLOBAL",2)~ THEN @19 += @20 +== BP#KIV IF ~InParty("P#KIVAN") InParty("P#DEHER") Global("P#DeherianaLives","GLOBAL",2) OR(3) !GlobalLT("P#PCSupport","GLOBAL",2) !GlobalLT("P#CerndSupport","GLOBAL",2) !GlobalLT("P#AerieSupport","GLOBAL",2)~ THEN @21 +== P#DEHJ IF ~InParty("P#KIVAN") InParty("P#DEHER") Global("P#DeherianaLives","GLOBAL",2) OR(3) !GlobalLT("P#PCSupport","GLOBAL",2) !GlobalLT("P#CerndSupport","GLOBAL",2) !GlobalLT("P#AerieSupport","GLOBAL",2)~ THEN @22 +== BP#KIV IF ~InParty("P#KIVAN") InParty("P#DEHER") Global("P#DeherianaLives","GLOBAL",2) OR(3) !GlobalLT("P#PCSupport","GLOBAL",2) !GlobalLT("P#CerndSupport","GLOBAL",2) !GlobalLT("P#AerieSupport","GLOBAL",2)~ THEN @23 +== SUELLE2 IF ~InParty("P#KIVAN") InParty("P#DEHER") Global("P#DeherianaLives","GLOBAL",2) OR(3) !GlobalLT("P#PCSupport","GLOBAL",2) !GlobalLT("P#CerndSupport","GLOBAL",2) !GlobalLT("P#AerieSupport","GLOBAL",2)~ THEN @24 +DO ~SetGlobal("P#DeherianaLives","GLOBAL",6)~ +END + +//resurrection possibility 1 proofed Mar05 // + +EXTEND_BOTTOM SUDEMIN 45 +IF ~Global("P#DeherianaLives","GLOBAL",1) InParty("P#KIVAN")~ THEN EXTERN BP#KIV AskDehLive +IF ~!Global("P#DeherianaLives","GLOBAL",1)InParty("P#KIVAN")~ THEN DO ~SetGlobal("DerminJob","GLOBAL",1)~ UNSOLVED_JOURNAL @25 EXIT +END + +EXTEND_BOTTOM SUDEMIN 58 +IF ~Global("P#DeherianaDead","GLOBAL",1) InParty("P#KIVAN")~ THEN SOLVED_JOURNAL @26 EXTERN BP#KIV AskDehDead +IF ~!Global("P#DeherianaDead","GLOBAL",1) InParty("P#KIVAN")~ THEN DO ~EscapeArea()~ SOLVED_JOURNAL @26 EXIT +END + +CHAIN +IF ~~ THEN BP#KIV AskDehLive +@27 +== SUDEMIN @28 +== BP#KIV @29 +== SUDEMIN @30 +== BP#KIV @31 +== SUDEMIN @32 +END +++ @33 EXTERN BP#KIV KiDeparts +++ @34 EXTERN SUDEMIN KiRessurection +++ @35 EXTERN BP#KIV KiStay ++ ~Race(Player1,ELF)~ + @36 EXTERN BP#KIV KiArgumentE ++ ~!Race(Player1,ELF)~ + @36 EXTERN BP#KIV KiArgument + +APPEND BP#KIV + +IF ~~ KiArgument +SAY @37 +++ @38 + KiARG1 +++ @39 + KiARG2 +++ @40 + KiDeparts +END + +IF ~~ KiArgumentE +SAY @41 +++ @42 + KiARG1 +++ @39 + KiARG2 +++ @40 + KiDeparts +END + +IF ~~ KiARG1 +SAY @43 +++ @44 EXTERN SUDEMIN KiRessurection1 +++ @45 + KiARG3 +++ @46 + KiDeparts +END + +IF ~~ KiARG2 +SAY @47 +++ @48 EXTERN SUDEMIN KiRessurection1 +++ @49 + KiARG3 +++ @46 + KiDeparts +END + +IF ~~ KiARG3 +SAY @50 +++ @51 + KiStay +++ @52 + KiDeparts +END + +END + +CHAIN BP#KIV AskDehDead +@27 +== SUDEMIN @28 +== BP#KIV @53 +== SUDEMIN @54 +== BP#KIV @55 +== SUDEMIN @56 += @57 +== BP#KIV @58 +== SUDEMIN @59 += @60 += @61 +== BP#KIV @62 +== SUDEMIN @63 +DO ~EscapeArea()~ +EXIT + +CHAIN SUDEMIN KiRessurection1 +@64 += @65 += @66 +== BP#KIV @67 +END SUDEMIN KiRessurection + +CHAIN +IF ~~ THEN BP#KIV KiDeparts +@68 +== SUDEMIN @69 +== BP#KIV @70 +== SUDEMIN @71 +END +IF ~~ THEN DO ~ActionOverride("P#KIVAN", LeaveParty()) ActionOverride("P#KIVAN",DestroySelf()) SetGlobal("DerminJob","GLOBAL",1)~ +UNSOLVED_JOURNAL @72 EXIT + + +CHAIN +IF ~~ THEN BP#KIV KiStay +@73 +== SUDEMIN @74 +END +IF ~~ THEN DO ~SetGlobal("DerminJob","GLOBAL",1)~ UNSOLVED_JOURNAL @75 +EXIT + +CHAIN +IF ~~ THEN SUDEMIN KiRessurection +@76 +== BP#KIV @77 +== SUDEMIN @78 +END +IF ~~ THEN DO ~ +DialogInterrupt(FALSE) +SetInterrupt(FALSE) +SetGlobal("P#DeherianaLives","GLOBAL",2) +SetGlobal("P#DehWelcome","GLOBAL",1) +SetGlobal("DerminJob","GLOBAL",1) +PlaySound("CAS_P06") +Wait(1) +CreateVisualEffectObject("SPGENHLB",Myself) +Wait(1) +CreateVisualEffectObject("SPFDEATH","P#Kivan") +Wait(1) +CreateCreature("P#DEHER", [-1.-1],0) +ActionOverride("P#DEHER",PlayDead(60)) +CreateVisualEffectObject("SPFINODI","P#DEHER") +Wait(1) +DialogInterrupt(TRUE) +SetInterrupt(TRUE) +StartDialogueNoSet([PC]) +~ UNSOLVED_JOURNAL @79 +EXIT + +CHAIN +IF WEIGHT #-1 +~Global("P#DehWelcome","GLOBAL",1)~ THEN SUDEMIN JoinDeh +@80 +== BP#KIV @81 += @82 +END +IF ~~ THEN DO ~SetGlobal("P#DehWelcome","GLOBAL",2)~ EXTERN P#DEHER P#DehWelcome + + +//DeherianaHealed +CHAIN +IF WEIGHT #990 +~Global("P#DeherianaLives","GLOBAL",4)~ +THEN P#DEHJ DEPCHealed +@83 +== BP#KIV @21 +== P#DEHJ @22 +== BP#KIV @23 +DO ~SetGlobal("P#DeherianaLives","GLOBAL",6)~ +EXIT + +///SupportTalks + +APPEND P#DEHJ + +IF WEIGHT #990 ~Global("P#DEPCTalk","GLOBAL",2)~ THEN BEGIN DEPC1 +SAY @84 +++ @85 DO ~IncrementGlobal("P#PCSupport","GLOBAL",1)~ EXIT +++ @86 DO ~IncrementGlobal("P#PCSupport","GLOBAL",1)~ + DEPC1.1 +++ @87 DO ~IncrementGlobal("P#PCSupport","GLOBAL",1)~ + DEPC1.2 ++ ~Gender(Player1, FEMALE)~ + @88 DO ~IncrementGlobal("P#PCSupport","GLOBAL",1)~ + DEPC1.3 +END + +IF ~~ DEPC1.1 +SAY @89 +++ @90 DO ~IncrementGlobal("P#PCSupport","GLOBAL",1)~ + DEPC1.4 +++ @91 DO ~IncrementGlobal("P#PCSupport","GLOBAL",1)~ + DEPC1.5 +++ @92 EXIT +END + +IF ~~ DEPC1.2 +SAY @93 +++ @94 EXIT +++ @90 DO ~IncrementGlobal("P#PCSupport","GLOBAL",1)~ + DEPC1.4 +++ @91 DO ~IncrementGlobal("P#PCSupport","GLOBAL",1)~ + DEPC1.5 +++ @92 EXIT +END + + +IF ~~ DEPC1.3 +SAY @89 +++ @95EXIT +++ @96 DO ~IncrementGlobal("P#PCSupport","GLOBAL",1)~ + DEPC1.6 +++ @97 + DEPC1.7 +END + +IF ~~ DEPC1.4 +SAY @98 ++~Race(Player1, ELF)~ + @99 + DEPC1.8E ++~!Race(Player1, ELF)~ + @99 + DEPC1.8NE +++ @100 + DEPC1.9 +++ @101 EXIT +END + +IF ~~ DEPC1.5 +SAY @102 +++ @103 DO ~IncrementGlobal("P#PCSupport","GLOBAL",1)~ EXIT +++ @104 DO ~IncrementGlobal("P#PCSupport","GLOBAL",1)~ EXIT +++ @105 EXIT +END + +IF ~~ DEPC1.6 +SAY @106 ++ ~Gender(Player1,FEMALE)~ + @107 DO ~IncrementGlobal("P#PCSupport","GLOBAL",1)~ + DEPC1.10 ++ ~Gender(Player1,MALE)~ + @103 DO ~IncrementGlobal("P#PCSupport","GLOBAL",1)~ EXIT +++ @104 DO ~IncrementGlobal("P#PCSupport","GLOBAL",1)~ EXIT +++ @105 EXIT +END + + +IF ~~ DEPC1.7 +SAY @108 ++ ~Gender(Player1,FEMALE)~ + @109 DO ~IncrementGlobal("P#PCSupport","GLOBAL",1)~ +DEPC1.10 ++ ~Gender(Player1,MALE)~ + @110 DO ~IncrementGlobal("P#PCSupport","GLOBAL",1)~ +DEPC1.14 +++ @111 EXIT +++ @112 + DEPC1.6 +END + +IF ~~ DEPC1.8E +SAY @113 +IF ~~ THEN EXIT +END + +IF ~~ DEPC1.8NE +SAY @114 += @115 +++ @116 EXIT +++ @117 EXIT +++ @118 EXIT +END + +IF ~~ DEPC1.9 +SAY @119 +IF ~~ THEN GOTO DEPC1.5 +END + +IF ~~ DEPC1.10 +SAY @120 +++ @121 + DEPC1.11 +++ @122 EXIT +++ @123 + DEPC1.12 +++ @124 + DEPC1.13 +END + +IF ~~ DEPC1.11 +SAY @125 +IF ~~ THEN DO ~IncrementGlobal("P#PCSupport","GLOBAL",1)~ EXIT +END + +IF ~~ DEPC1.12 +SAY @126 +IF ~~ THEN EXIT +END + +IF ~~ DEPC1.13 +SAY @127 +IF ~~ THEN DO ~IncrementGlobal("P#PCSupport","GLOBAL",1)~ EXIT +END + +IF ~~ DEPC1.14 +SAY @128 +IF ~~ THEN EXIT +END + +END + +CHAIN +IF WEIGHT #990 ~InParty("P#DEHER") +See("P#DEHER") +!StateCheck("P#DEHER",STATE_SLEEPING) +InParty("P#KIVAN") +Global("P#DEAETalk","GLOBAL",2) +Global("P#AEDE1","LOCALS",0)~ THEN AERIEJ P#AEDE1 +@129 +DO ~SetGlobal("P#AEDE1","LOCALS",1) IncrementGlobal("P#AerieSupport","GLOBAL",1)~ +== BP#DEH @130 +== BAERIE @131 +== BP#DEH @132 +== BAERIE @133 +== BP#DEH @134 +== BAERIE @135 +== BP#DEH @136 +== BAERIE @137 +== BP#DEH @138 +== BAERIE @139 +== BP#DEH @140 +== BAERIE @141 +EXIT + +CHAIN +IF WEIGHT #999 ~InParty("P#DEHER") +See("P#DEHER") +!StateCheck("P#DEHER",STATE_SLEEPING) +InParty("P#KIVAN") +Global("P#DEAETalk","GLOBAL",4) +Global("P#AEDE2","LOCALS",0)~ THEN AERIEJ P#AEDE2 +@142 +DO ~SetGlobal("P#AEDE2","LOCALS",1) IncrementGlobal("P#AerieSupport","GLOBAL",1)~ +== BP#DEH @143 +== BAERIE @144 +== BP#DEH @145 +== BAERIE @146 +EXIT + +CHAIN +IF WEIGHT #999 ~InParty("P#DEHER") +See("P#DEHER") +!StateCheck("P#DEHER",STATE_SLEEPING) +InParty("P#KIVAN") +Global("P#DEAETalk","GLOBAL",6) +Global("P#AEDE3","LOCALS",0)~ THEN AERIEJ P#AEDE3 +@147 +DO ~SetGlobal("P#AEDE3","LOCALS",1) IncrementGlobal("P#AerieSupport","GLOBAL",1)~ +== BP#DEH @148 +== BAERIE @149 +== BP#DEH @150 +== BAERIE @151 +== BP#DEH @152 +== BAERIE @153 +== BP#DEH @154 +== BAERIE @155 +== BP#DEH @156 +== BAERIE @157 +== BP#DEH @158 +EXIT + +CHAIN +IF WEIGHT #999 ~InParty("CERND") +See("CERND") +!StateCheck("CERND",STATE_SLEEPING) +InParty("P#KIVAN") +Global("P#DECETalk","GLOBAL",2) +Global("P#CEDE1","LOCALS",0)~ THEN P#DEHJ P#CEDE1 +@159 +DO ~SetGlobal("P#CEDE1","LOCALS",1) IncrementGlobal("P#CerndSupport","GLOBAL",1)~ +== BCERND @160 +== BP#DEH @161 +== BCERND @162 +== BP#DEH @163 +== BCERND @164 +== BP#DEH @165 +== BCERND @166 +== BP#DEH @167 +EXIT + +CHAIN +IF WEIGHT #999 ~InParty("CERND") +See("CERND") +!StateCheck("CERND",STATE_SLEEPING) +InParty("P#KIVAN") +Global("P#DECETalk","GLOBAL",4) +Global("P#CEDE2","LOCALS",0)~ THEN P#DEHJ P#CEDE2 +@168 +DO ~SetGlobal("P#CEDE2","LOCALS",1) IncrementGlobal("P#CerndSupport","GLOBAL",1)~ +== BCERND @169 +== BP#DEH @170 +== BCERND @171 +== BP#DEH @172 +== BCERND @173 += @174 +== BP#DEH @175 +EXIT + +CHAIN +IF WEIGHT #999 ~InParty("CERND") +See("CERND") +!StateCheck("CERND",STATE_SLEEPING) +InParty("P#KIVAN") +Global("P#DECETalk","GLOBAL",6) +Global("P#CEDE3","LOCALS",0)~ THEN P#DEHJ CEDE3 +@176 +DO ~SetGlobal("CEDE3","LOCALS",1) IncrementGlobal("P#CerndSupport","GLOBAL",1)~ +== BCERND @177 +== BP#DEH @178 +== BCERND @179 +== BP#DEH @180 +== BCERND @181 +== BP#DEH @182 +== BCERND @183 +EXIT + +CHAIN +IF WEIGHT #999 ~InParty("P#DEHER") +See("P#DEHER") +!StateCheck("P#DEHER",STATE_SLEEPING) +Global("P#DEKITalk","GLOBAL",2) +Global("P#KIDE1","LOCALS",0)~ THEN P#KIVJ P#KIDE1 +@184 +DO ~SetGlobal("P#KIDE1","LOCALS",1)~ +== BP#DEH @185 +== BP#KIV @186 +== BP#DEH @187 +== BP#KIV @188 +EXIT + +CHAIN +IF WEIGHT #999 ~InParty("P#DEHER") +See("P#DEHER") +!StateCheck("P#DEHER",STATE_SLEEPING) +InParty("P#KIVAN") +Global("P#DEKITalk","GLOBAL",4) +Global("P#KIDE2","LOCALS",0)~ THEN P#KIVJ P#KIDE2 +@189 += @389 +DO ~SetGlobal("P#KIDE2","LOCALS",1)~ +== BP#DEH @190 +== BP#KIV @191 += @192 +== BP#DEH @193 +== BP#KIV @194 +== BP#DEH @195 +== BP#KIV @196 +== BP#DEH @197 +EXIT + +CHAIN +IF WEIGHT #999 ~InParty("P#DEHER") +See("P#DEHER") +!StateCheck("P#DEHER",STATE_SLEEPING) +InParty("P#KIVAN") +Global("P#DEKITalk","GLOBAL",6) +Global("P#KIDE3","LOCALS",0)~ THEN P#KIVJ P#KIDE3 +@198 +DO ~SetGlobal("P#KIDE3","LOCALS",1)~ +== BP#DEH @199 +== BP#KIV @200 +== BP#DEH @201 +== BP#KIV @202 +== BP#DEH @203 +== BP#KIV @204 +EXIT + +//Deheriana Banter SoA + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) +InParty("AERIE") +See("AERIE") +!StateCheck("AERIE",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEAEP1","LOCALS",0)~ THEN BP#DEH DEPAE1 +@205 +DO ~SetGlobal("P#DEAEP1","LOCALS",1)~ +== BAERIE @206 +== BP#DEH @207 +== BAERIE @208 +== BP#DEH @209 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY]) +InParty("P#DEHER") +See("P#DEHER") +!StateCheck("P#DEHER",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEANP1","LOCALS",0)~ THEN BANOMEN DEANP1 +@210 +DO ~SetGlobal("P#DEANP1","LOCALS",1)~ +== BP#DEH @211 +== BANOMEN @212 +== BP#DEH @213 += @214 +== BANOMEN @215 +== BP#DEH @216 +== BANOMEN @217 +== BP#DEH @218 +== BANOMEN @219 +== BP#DEH @220 +== BANOMEN @221 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) +InParty("CERND") +See("CERND") +!StateCheck("CERND",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DECEP1","LOCALS",0)~ THEN BP#DEH DEPCE1 +@222 +DO ~SetGlobal("P#DECEP1","LOCALS",1)~ +== BCERND @223 +== BP#DEH @224 +== BCERND @225 +== BP#DEH @226 += @227 += @228 += @229 += @230 += @231 += @232 += @233 += @234 += @235 +== BCERND @236 +EXIT + + + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY]) +InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +InParty("P#DEHER") +See("P#DEHER") +!StateCheck("P#DEHER",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEPED1","LOCALS",0)~ THEN BEDWIN DEPED1 +@237 +DO ~SetGlobal("P#DEPED1","LOCALS",1)~ +== BP#DEH @238 +== BEDWIN @239 +== BP#DEH @240 +== BEDWIN @241 +== BP#DEH @242 +== BEDWIN @243 +== BP#DEH @244 +== BEDWIN @245 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) +InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +InParty("IMOEN2") +See("IMOEN2") +!StateCheck("IMOEN2",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEIMP1","LOCALS",0)~ THEN BP#DEH DEPIM1 +@246 +DO ~SetGlobal("P#DEIMP1","LOCALS",1)~ +== IMOEN2J @247 +== BP#DEH @248 +== IMOEN2J @249 +== BP#DEH @250 +== IMOEN2J @251 +== BP#DEH @252 +== IMOEN2J @253 +== BP#DEH @254 +== IMOEN2J @255 += @256 +== BP#DEH @257 +== IMOEN2J @258 += @259 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) +InParty("JAHEIRA") +See("JAHEIRA") +!StateCheck("JAHEIRA",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEJAP1","LOCALS",0)~ THEN BP#DEH DEPJA1 +@260 +DO ~SetGlobal("P#DEJAP1","LOCALS",1)~ +== BJAHEIR @261 +== BP#DEH @262 +== BJAHEIR @263 +== BP#DEH @264 +== BJAHEIR @265 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY]) +InParty("P#DEHER") +See("P#DEHER") +!StateCheck("P#DEHER",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEPJAN1","LOCALS",0)~ THEN BJAN DEPJAN1 +@266 +DO ~SetGlobal("P#DEPJAN1","LOCALS",1)~ +== BP#DEH @267 +== BJAN @268 +== BP#DEH @269 +== BJAN @270 +== BP#DEH @271 +== BJAN @272 +== BP#DEH @273 +== BJAN @274 +== BP#DEH @275 +== BJAN @276 +== BP#DEH @277 +== BJAN @278 += @279 +== BP#DEH @280 +== BJAN @281 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY]) +InParty("P#DEHER") +See("P#DEHER") +!StateCheck("P#DEHER",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEPHA1","LOCALS",0)~ THEN BHAERDA DEPHA1 +@282 += @283 +DO ~SetGlobal("P#DEPHA1","LOCALS",1)~ +== BP#DEH @284 +== BHAERDA @285 +== BP#DEH @286 +== BHAERDA @287 +== BP#DEH @288 +== BHAERDA @289 +== BP#DEH @290 +== BHAERDA @291 +== BP#DEH @292 +== BHAERDA @293 +== BP#DEH @294 +== BHAERDA @295 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) +InParty("KELDORN") +See("KELDORN") +!StateCheck("KELDORN",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEKEP1","LOCALS",0)~ THEN BP#DEH DEPKE1 +@296 +DO ~SetGlobal("P#DEKEP1","LOCALS",1)~ +== BKELDOR @297 +== BP#DEH @298 +== BKELDOR @299 +== BP#DEH @300 +== BKELDOR @301 +== BP#DEH @302 +== BKELDOR @303 +== BP#DEH @304 +== BKELDOR @305 += @306 +== BP#DEH @307 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) +InParty("MAZZY") +See("MAZZY") +!StateCheck("MAZZY",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEMAP1","LOCALS",0)~ THEN BP#DEH DEPMA1 +@308 +DO ~SetGlobal("P#DEMAP1","LOCALS",1)~ +== BMAZZY @309 +== BP#DEH @310 +== BMAZZY @311 +== BP#DEH @312 +== BMAZZY @313 +== BP#DEH @314 +EXIT + + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) +InParty("MINSC") +See("MINSC") +!StateCheck("MINSC",STATE_SLEEPING) +InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEMIP1","LOCALS",0)~ THEN BP#DEH DEPMI1 +@315 +DO ~SetGlobal("P#DEMIP1","LOCALS",1)~ +== BMINSC @316 +== BP#DEH @317 +== BMINSC @318 +== BP#DEH @319 +== BMINSC @320 +== BP#DEH @321 += @322 +== BP#KIV @323 +== BMINSC @324 += @325 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) +InParty("NALIA") +See("NALIA") +!StateCheck("NALIA",STATE_SLEEPING) +Global("NaliaKeepPlot","GLOBAL",1) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DENAP1","LOCALS",0)~ THEN BP#DEH DEPNA1 +@326 +DO ~SetGlobal("P#DENAP1","LOCALS",1)~ +== BNALIA @327 +== BP#DEH @328 +== BNALIA @329 +== BP#DEH @330 +== BNALIA @331 +== BP#DEH @332 +== BNALIA @333 +== BP#DEH @334 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) +InParty("VALYGAR") +See("VALYGAR") +!StateCheck("VALYGAR",STATE_SLEEPING) +InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEVAP1","LOCALS",0)~ THEN BP#DEH DEPVA1 +@335 += @336 +DO ~SetGlobal("P#DEVAP1","LOCALS",1)~ +== BVALYGA @337 +== BP#DEH @338 +== BVALYGA @339 +== BP#DEH @340 +== BVALYGA @341 +== BP#DEH @342 +== BVALYGA @343 +== BP#DEH @344 +== BVALYGA @345 +== BP#DEH @346 +== BVALYGA @347 +== BP#DEH @348 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) +InParty("VICONIA") +See("VICONIA") +!StateCheck("VICONIA",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEVIP1","LOCALS",0)~ THEN BP#DEH DEPVI1 +@349 +DO ~SetGlobal("P#DEVIP1","LOCALS",1)~ +== BVICONI @350 +== BP#DEH @351 +== BVICONI @352 += @353 +== BP#DEH @354 +== BVICONI @355 +== BP#DEH @356 +== BVICONI @357 += @358 +EXIT + +CHAIN +IF ~~ THEN BP#KIV ResChain +@359 +== SUDEMIN @360 += @361 += @362 +== BP#KIV @363 +END P#DEHER DehWelcome2 + +BEGIN P#DEHER + +APPEND P#DEHER + +IF ~Global("P#DEHERIANA","GLOBAL",8)~ THEN BEGIN MyPain +SAY @364 +IF ~~ THEN EXIT +END + +IF ~InParty("P#KIVAN")~ P#DehWelcome +SAY @365 +IF ~~ THEN EXTERN BP#KIV ResChain +END + +IF ~~ DehWelcome2 +SAY @366 +++ @367 DO ~SetGlobal("P#DehWelcome","GLOBAL",3) ActionOverride("P#KIVAN",LeaveParty()) ActionOverride("P#KIVAN",EscapeArea()) ActionOverride("P#DEHER",EscapeArea())~ EXIT +++ @368 DO ~SetGlobal("P#DehWelcome","GLOBAL",3) SetGlobal("DeherJoined","GLOBAL",1)ActionOverride("P#DEHER",JoinParty())~ EXIT +++ @369 DO ~SetGlobal("P#DehWelcome","GLOBAL",3) SetGlobal("DeherJoined","GLOBAL",1) ActionOverride("P#DEHER",JoinParty())~ EXIT +++ @370 DO ~SetGlobal("P#DehWelcome","GLOBAL",3) SetGlobal("DeherJoined","GLOBAL",1)ActionOverride("P#DEHER",JoinParty())~ EXIT +++ @371 EXIT +END + + +END + +BEGIN P#DEHP +APPEND P#DEHP +IF ~Global("DeherJoined","GLOBAL",1)~ THEN BEGIN KickOut +SAY @372 +IF ~~ THEN REPLY @373 DO ~JoinParty()~ EXIT +IF ~~ THEN REPLY @374 GOTO LeaveWKivan +END + +IF ~~ THEN BEGIN LeaveWKivan +SAY @375 +IF ~~ THEN DO ~ActionOverride("P#Kivan",LeaveParty()) ActionOverride("P#KIVAN", EscapeArea()) LeaveParty() EscapeArea()~ EXIT +END + +IF ~InParty("P#Kivan") NumTimesTalkedToGT(0)~ THEN BEGIN ReturnDeheriana +SAY @376 +IF ~~ THEN REPLY @377 DO ~SetGlobal("DeherJoined","GLOBAL",1) +JoinParty()~ EXIT +IF ~~ THEN REPLY @378 GOTO RefusedToTake +IF ~~ THEN REPLY @379 GOTO DropKivan +END + +IF ~Global("P#DehWelcome","GLOBAL",2)~ THEN BEGIN RefusedToTake +SAY @380 +IF ~~ THEN EXIT +END + +IF ~Global("P#DehWelcome","GLOBAL",2)~ DropKivan +SAY @381 +IF ~~ THEN DO ~ActionOverride("P#KIVAN",LeaveParty()) EscapeArea() ActionOverride("P#KIVAN",EscapeArea())~ +EXIT +END + +IF ~!InParty("P#Kivan") NumTimesTalkedToGT(0)~ THEN BEGIN NoKivan +SAY @382 ++ ~!Dead("P#Kivan") ~ + @383 + NoKivanJoin ++ ~Dead("P#Kivan")~ + @384 + KivDead +++ @385 + Thankyou +END + +IF ~~ NoKivanJoin +SAY @386 +IF ~~ THEN EXIT +END + +IF ~~ KivDead +SAY @387 +IF ~~ THEN DO ~DestroySelf()~ +EXIT +END + +IF ~~ Thankyou +SAY @388 +IF ~~ THEN EXIT +END + +END + +//Deheriana Tree of Life + +//Tree of Life +INTERJECT PLAYER1 33 P#TOLDeheriana +== PLAYER1 IF ~InParty("P#DEHER") +InMyArea("P#DEHER") +~ THEN @666 +END +++ @667 EXTERN P#DEHJ ToLDeh1 +++ @668 EXTERN P#DEHJ ToLDeh2 +++ @669 EXTERN P#DEHJ ToLDeh3 + +APPEND P#DEHJ + +IF ~~ THEN BEGIN ToLDeh1 +SAY @663 COPY_TRANS PLAYER1 33 +END + +IF ~~ THEN BEGIN ToLDeh2 +SAY @664 COPY_TRANS PLAYER1 33 +END + +IF ~~ THEN BEGIN ToLDeh3 +SAY @665 COPY_TRANS PLAYER1 33 +END +END + +I_C_T HELLJON 7 P#DeherHellJon +== P#DEHJ IF ~InParty("P#Deher") !Dead("P#Deher") +InMyArea("P#Deher") ~ THEN @670 +END + +I_C_T HELLJON 8 P#DeherHellJon +== P#DEHJ IF ~InParty("P#Deher") !Dead("P#Deher") +InMyArea("P#Deher") ~ THEN @670 +END + +I_C_T HELLJON 9 P#DeherHellJon +== P#DEHJ IF ~InParty("P#Deher") !Dead("P#Deher") +InMyArea("P#Deher") ~ THEN @670 +END + +I_C_T HELLJON 10 P#DeherHellJon +== P#DEHJ IF ~InParty("P#Deher") !Dead("P#Deher") +InMyArea("P#Deher") ~ THEN @670 +END diff --git a/kivan/d/bp#deh25.d b/kivan/d/bp#deh25.d new file mode 100644 index 0000000..29e6eb3 --- /dev/null +++ b/kivan/d/bp#deh25.d @@ -0,0 +1,356 @@ +//Deheriana Banter ToB - repeat of SoA + +BEGIN ~BP#DEH25~ + +//Sarevok// + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) +InParty("SAREVOK") +See("SAREVOK") +!StateCheck("SAREVOK",STATE_SLEEPING) +!Alignment("sarevok",MASK_GOOD) +Global("P#DESA1","LOCALS",0)~ THEN BP#DEH25 DESA1 +@0 +DO ~SetGlobal("P#DESA1","LOCALS",1)~ +== BSAREV25 @1 +== BP#DEH25 @2 +== BSAREV25 @3 +== BP#DEH25 @4 +== BSAREV25 @5 += @6 +EXIT + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY]) +InParty("P#DEHER") +See("P#DEHER") +!StateCheck("P#DEHER",STATE_SLEEPING) +!Alignment("sarevok",MASK_GOOD) +Global("P#DESA2","LOCALS",0)~ THEN BSAREV25 DESA2 +@7 +DO ~SetGlobal("P#DESA2","LOCALS",1)~ +== BP#DEH25 @8 +== BSAREV25 @9 +== BP#DEH25 @10 +== BSAREV25 @11 +== BP#DEH25 @12 +== BSAREV25 @13 +== BP#DEH25 @14 +== BSAREV25 @15 +== BP#DEH25 @16 +EXIT + +//Aerie// + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) +InParty("AERIE") +See("AERIE") +!StateCheck("AERIE",STATE_SLEEPING) +Global("P#DEAEP1","LOCALS",0)~ THEN BP#DEH25 DEPAE1 +@17 +DO ~SetGlobal("P#DEAEP1","LOCALS",1)~ +== BAERIE25 @18 +== BP#DEH25 @19 +== BAERIE25 @20 +== BP#DEH25 @21 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY]) +InParty("P#DEHER") +See("P#DEHER") +!StateCheck("P#DEHER",STATE_SLEEPING) +Global("P#DEANP1","LOCALS",0)~ THEN BANOME25 DEANP1 +@22 +DO ~SetGlobal("P#DEANP1","LOCALS",1)~ +== BP#DEH25 @23 +== BANOME25 @24 +== BP#DEH25 @25 += @26 +== BANOME25 @27 +== BP#DEH25 @28 +== BANOME25 @29 +== BP#DEH25 @30 +== BANOME25 @31 +== BP#DEH25 @32 +== BANOME25 @33 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) +InParty("CERND") +See("CERND") +!StateCheck("CERND",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DECEP1","LOCALS",0)~ THEN BP#DEH25 DEPCE1 +@34 +DO ~SetGlobal("P#DECEP1","LOCALS",1)~ +== BCERND25 @35 +== BP#DEH25 @36 +== BCERND25 @37 +== BP#DEH25 @38 += @39 += @40 += @41 += @42 += @43 += @44 += @45 += @46 += @47 +== BCERND25 @48 +EXIT + + + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY]) +InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +InParty("P#DEHER") +See("P#DEHER") +!StateCheck("P#DEHER",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEPED1","LOCALS",0)~ THEN BEDWIN25 DEPED1 +@49 +DO ~SetGlobal("P#DEPED1","LOCALS",1)~ +== BP#DEH25 @50 +== BEDWIN25 @51 +== BP#DEH25 @52 +== BEDWIN25 @53 +== BP#DEH25 @54 +== BEDWIN25 @55 +== BP#DEH25 @56 +== BEDWIN25 @57 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) +InParty("P#KIVAN") +See("P#KIVAN") +InParty("P#DEHER") +See("P#DEHER") +!StateCheck("P#DEHER",STATE_SLEEPING) +!StateCheck("P#KIVAN",STATE_SLEEPING) +InParty("IMOEN2") +See("IMOEN2") +!StateCheck("IMOEN2",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEIMP1","LOCALS",0)~ THEN BP#DEH25 DEPIM1 +@58 +DO ~SetGlobal("P#DEIMP1","LOCALS",1)~ +== BIMOEN25 @59 +== BP#DEH25 @60 +== BIMOEN25 @61 +== BP#DEH25 @62 +== BIMOEN25 @63 +== BP#DEH25 @64 +== BIMOEN25 @65 +== BP#DEH25 @66 +== BIMOEN25 @67 += @68 +== BP#DEH25 @69 +== BIMOEN25 @70 += @71 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) +InParty("JAHEIRA") +See("JAHEIRA") +!StateCheck("JAHEIRA",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEJAP1","LOCALS",0)~ THEN BP#DEH25 DEPJA1 +@72 +DO ~SetGlobal("P#DEJAP1","LOCALS",1)~ +== BJAHEI25 @73 +== BP#DEH25 @74 +== BJAHEI25 @75 +== BP#DEH25 @76 +== BJAHEI25 @77 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY]) +InParty("P#DEHER") +See("P#DEHER") +!StateCheck("P#DEHER",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEPJAN1","LOCALS",0)~ THEN BJAN25 DEPJAN1 +@78 +DO ~SetGlobal("P#DEPJAN1","LOCALS",1)~ +== BP#DEH25 @79 +== BJAN25 @80 +== BP#DEH25 @81 +== BJAN25 @82 +== BP#DEH25 @83 +== BJAN25 @84 +== BP#DEH25 @85 +== BJAN25 @86 +== BP#DEH25 @87 +== BJAN25 @88 +== BP#DEH25 @89 +== BJAN25 @90 += @91 +== BP#DEH25 @92 +== BJAN25 @93 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY]) +InParty("P#DEHER") +See("P#DEHER") +!StateCheck("P#DEHER",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEPHA1","LOCALS",0)~ THEN BHAERD25 DEPHA1 +@94 += @95 +DO ~SetGlobal("P#DEPHA1","LOCALS",1)~ +== BP#DEH25 @96 +== BHAERD25 @97 +== BP#DEH25 @98 +== BHAERD25 @99 +== BP#DEH25 @100 +== BHAERD25 @101 +== BP#DEH25 @102 +== BHAERD25 @103 +== BP#DEH25 @104 +== BHAERD25 @105 +== BP#DEH25 @106 +== BHAERD25 @107 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) +InParty("KELDORN") +See("KELDORN") +!StateCheck("KELDORN",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEKEP1","LOCALS",0)~ THEN BP#DEH25 DEPKE1 +@108 +DO ~SetGlobal("P#DEKEP1","LOCALS",1)~ +== BKELDO25 @109 +== BP#DEH25 @110 +== BKELDO25 @111 +== BP#DEH25 @112 +== BKELDO25 @113 +== BP#DEH25 @114 +== BKELDO25 @115 +== BP#DEH25 @116 +== BKELDO25 @117 += @118 +== BP#DEH25 @119 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) +InParty("MAZZY") +See("MAZZY") +!StateCheck("MAZZY",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEMAP1","LOCALS",0)~ THEN BP#DEH25 DEPMA1 +@120 +DO ~SetGlobal("P#DEMAP1","LOCALS",1)~ +== BMAZZY25 @121 +== BP#DEH25 @122 +== BMAZZY25 @123 +== BP#DEH25 @124 +== BMAZZY25 @125 +== BP#DEH25 @126 +EXIT + + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) +InParty("MINSC") +See("MINSC") +!StateCheck("MINSC",STATE_SLEEPING) +InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEMIP1","LOCALS",0)~ THEN BP#DEH25 DEPMI1 +@127 +DO ~SetGlobal("P#DEMIP1","LOCALS",1)~ +== BMINSC25 @128 +== BP#DEH25 @129 +== BMINSC25 @130 +== BP#DEH25 @131 +== BMINSC25 @132 +== BP#DEH25 @133 += @134 +== BP#KIV25 @135 +== BMINSC25 @136 += @137 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) +InParty("NALIA") +See("NALIA") +!StateCheck("NALIA",STATE_SLEEPING) +Global("NaliaKeepPlot","GLOBAL",1) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DENAP1","LOCALS",0)~ THEN BP#DEH25 DEPNA1 +@138 +DO ~SetGlobal("P#DENAP1","LOCALS",1)~ +== BNALIA25 @139 +== BP#DEH25 @140 +== BNALIA25 @141 +== BP#DEH25 @142 +== BNALIA25 @143 +== BP#DEH25 @144 +== BNALIA25 @145 +== BP#DEH25 @146 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) +InParty("VALYGAR") +See("VALYGAR") +!StateCheck("VALYGAR",STATE_SLEEPING) +InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEVAP1","LOCALS",0)~ THEN BP#DEH25 DEPVA1 +@147 += @148 +DO ~SetGlobal("P#DEVAP1","LOCALS",1)~ +== BVALYG25 @149 +== BP#DEH25 @150 +== BVALYG25 @151 +== BP#DEH25 @152 +== BVALYG25 @153 +== BP#DEH25 @154 +== BVALYG25 @155 +== BP#DEH25 @156 +== BVALYG25 @157 +== BP#DEH25 @158 +== BVALYG25 @159 +== BP#DEH25 @160 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) +InParty("VICONIA") +See("VICONIA") +!StateCheck("VICONIA",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",6) +Global("P#DEVIP1","LOCALS",0)~ THEN BP#DEH25 DEPVI1 +@161 +DO ~SetGlobal("P#DEVIP1","LOCALS",1)~ +== BVICON25 @162 +== BP#DEH25 @163 +== BVICON25 @164 += @165 +== BP#DEH25 @166 +== BVICON25 @167 +== BP#DEH25 @168 +== BVICON25 @169 += @170 +EXIT + diff --git a/kivan/d/bp#kiv.d b/kivan/d/bp#kiv.d new file mode 100644 index 0000000..74e178f --- /dev/null +++ b/kivan/d/bp#kiv.d @@ -0,0 +1,714 @@ +BEGIN ~BP#KIV~ +BEGIN ~P#KIVJ~ + +//Kivan-PC unisex + +APPEND BP#KIV + +IF ~~ KIAN1.2.1 +SAY @0 +IF ~~ THEN EXIT +END + +END + +APPEND P#KIVJ + +IF WEIGHT #990 ~ +Global("P#KiFriendTalk","GLOBAL",2)~ THEN BEGIN KIPC2 +SAY @1 +IF ~~ THEN REPLY @2 GOTO KIPC2.1 +IF ~~ THEN REPLY @3 GOTO KIPC2.2 +IF ~~ THEN REPLY @4 GOTO KIPC2.3 +IF ~~ THEN REPLY @5 GOTO KIPC2.3 +IF ~~ THEN REPLY @6 GOTO KIPC2.4 +IF ~Class(Player1,BARD)~ THEN REPLY @7 GOTO KIPC2.5 +END + +IF ~~ THEN BEGIN KIPC2.1 +SAY @8 +IF ~Gender(Player1,MALE)~ THEN REPLY @9 GOTO KIPC2.3 +IF ~Gender(Player1,FEMALE)~ THEN REPLY @10 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ GOTO KIPC2.3 +IF ~~ THEN REPLY @11 GOTO KIPC2.6 +END + +IF ~~ THEN BEGIN KIPC2.2 +SAY @12 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC2.3 +SAY @13 +IF ~~ THEN REPLY @14 GOTO KIPC2.7 +IF ~~ THEN REPLY @15 GOTO KIPC2.8 +IF ~~ THEN REPLY @16 GOTO KIPC2.2 +END + +IF ~~ THEN BEGIN KIPC2.4 +SAY @17 +IF ~~ THEN REPLY @18 GOTO KIPC2.2 +IF ~~ THEN REPLY @19 GOTO KIPC2.9 +IF ~~ THEN REPLY @20 GOTO KIPC2.3 +IF ~~ THEN REPLY @21 GOTO KIPC2.3 +END + +IF ~~ THEN BEGIN KIPC2.5 +SAY @22 +IF ~~ THEN REPLY @23 GOTO KIPC2.10 +IF ~~ THEN REPLY @24 GOTO KIPC2.3 +END + +IF ~~ THEN BEGIN KIPC2.6 +SAY @25 +IF ~~ THEN REPLY @14 GOTO KIPC2.7 +IF ~~ THEN REPLY @15 GOTO KIPC2.8 +IF ~~ THEN REPLY @16 GOTO KIPC2.2 +END + +IF ~~ THEN BEGIN KIPC2.7 +SAY @26 += @27 +IF ~~ THEN REPLY @28 GOTO KIPC2.2 +IF ~~ THEN REPLY @15 GOTO KIPC2.8 +IF ~~ THEN REPLY @29 GOTO KIPC2.11 +END + +IF ~~ THEN BEGIN KIPC2.8 +SAY @30 += @31 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC2.9 +SAY @32 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC2.10 +SAY @33 += @34 +IF ~~ THEN REPLY @28 GOTO KIPC2.2 +IF ~~ THEN REPLY @15 GOTO KIPC2.8 +IF ~~ THEN REPLY @29 GOTO KIPC2.11 +END + +IF ~~ THEN BEGIN KIPC2.11 +SAY @35 +IF ~~ THEN EXIT +END + +// 2 + +IF WEIGHT #990 ~ +Global("P#KiFriendTalk","GLOBAL",4) +~ THEN BEGIN KIPC6 +SAY @36 +IF ~~ THEN REPLY @37 GOTO KIPC6.1 +IF ~~ THEN REPLY @38 GOTO KIPC6.2 +IF ~~ THEN REPLY @39 GOTO KIPC6.2 +IF ~~ THEN REPLY @40 GOTO KIPC6.3 +END + +IF ~~ THEN BEGIN KIPC6.1 +SAY @41 +IF ~~ THEN REPLY @42 GOTO KIPC6.4 +IF ~~ THEN REPLY @43 GOTO KIPC6.5 +IF ~~ THEN REPLY @44 GOTO KIPC6.6 +END + +IF ~~ THEN BEGIN KIPC6.2 +SAY @45 +IF ~~ THEN REPLY @46 GOTO KIPC6.7 +IF ~~ THEN REPLY @47 GOTO KIPC6.8 +IF ~~ THEN REPLY @44 GOTO KIPC6.6 +END + +IF ~~ THEN BEGIN KIPC6.3 +SAY @48 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC6.4 +SAY @49 +IF ~~ THEN REPLY @46 GOTO KIPC6.7 +IF ~~ THEN REPLY @47 GOTO KIPC6.8 +IF ~~ THEN REPLY @50 GOTO KIPC6.9 +IF ~~ THEN REPLY @51 GOTO KIPC6.10 +END + +IF ~~ THEN BEGIN KIPC6.5 +SAY @52 +IF ~~ THEN REPLY @46 GOTO KIPC6.7 +IF ~~ THEN REPLY @47 GOTO KIPC6.8 +IF ~~ THEN REPLY @50 GOTO KIPC6.9 +IF ~~ THEN REPLY @51 GOTO KIPC6.10 +END + +IF ~~ THEN BEGIN KIPC6.6 +SAY @53 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC6.7 +SAY @54 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC6.8 +SAY @55 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC6.9 +SAY @56 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC6.10 +SAY @57 +IF ~~ THEN EXIT +END + +// 3 + +IF WEIGHT #990 ~Global("P#KiFriendTalk","GLOBAL",6)~ THEN BEGIN KIPC4 +SAY @58 +IF ~~ THEN REPLY @59 GOTO KIPC4.1 +IF ~~ THEN REPLY @60 GOTO KIPC4.2 +IF ~~ THEN REPLY @61 GOTO KIPC4.3 +IF ~~ THEN REPLY @62 GOTO KIPC4.4 +END + +IF ~~ THEN BEGIN KIPC4.1 +SAY @63 +IF ~~ THEN REPLY @64 GOTO KIPC4.4 +IF ~~ THEN REPLY @65 GOTO KIPC4.5 +IF ~~ THEN REPLY @66 GOTO KIPC4.5 +END + +IF ~~ THEN BEGIN KIPC4.2 +SAY @67 +IF ~~ THEN REPLY @64 GOTO KIPC4.4 +IF ~~ THEN REPLY @65 GOTO KIPC4.5 +IF ~~ THEN REPLY @66 GOTO KIPC4.5 +END + +IF ~~ THEN BEGIN KIPC4.3 +SAY @68 +IF ~~ THEN REPLY @69 GOTO KIPC4.6 +IF ~~ THEN REPLY @70 GOTO KIPC4.7 +IF ~~ THEN REPLY @71 GOTO KIPC4.8 +IF ~~ THEN REPLY @72 GOTO KIPC4.4 +END + +IF ~~ THEN BEGIN KIPC4.4 +SAY @73 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC4.5 +SAY @74 +IF ~~ THEN REPLY @69 GOTO KIPC4.6 +IF ~~ THEN REPLY @70 GOTO KIPC4.7 +IF ~~ THEN REPLY @71 GOTO KIPC4.8 +IF ~~ THEN REPLY @72 GOTO KIPC4.4 +END + +IF ~~ THEN BEGIN KIPC4.6 +SAY @75 +IF ~~ THEN REPLY @76 GOTO KIPC4.9 +IF ~~ THEN REPLY @77 GOTO KIPC4.10 +IF ~~ THEN REPLY @78 GOTO KIPC4.11 +IF ~Gender(Player1,FEMALE)~ THEN REPLY @79 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ GOTO KIPC4.12 +END + +IF ~~ THEN BEGIN KIPC4.7 +SAY @80 +IF ~~ THEN REPLY @76 GOTO KIPC4.9 +IF ~~ THEN REPLY @77 GOTO KIPC4.10 +IF ~~ THEN REPLY @81 GOTO KIPC4.11 +IF ~Gender(Player1,FEMALE)~ THEN REPLY @79 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ GOTO KIPC4.12 +END + +IF ~~ THEN BEGIN KIPC4.8 +SAY @82 +IF ~~ THEN REPLY @76 GOTO KIPC4.9 +IF ~~ THEN REPLY @77 GOTO KIPC4.10 +IF ~~ THEN REPLY @78 GOTO KIPC4.11 +IF ~Gender(Player1,FEMALE)~ THEN REPLY @79 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ GOTO KIPC4.12 +END + +IF ~~ THEN BEGIN KIPC4.9 +SAY @83 +IF ~~ THEN REPLY @84 GOTO KIPC4.13 +IF ~~ THEN REPLY @85 GOTO KIPC4.14 +IF ~~ THEN REPLY @86 DO ~IncrementGlobal("P#KivanLove","GLOBAL",-1)~ GOTO KIPC4.4 +IF ~~ THEN REPLY @87 GOTO KIPC4.16 +END + +IF ~~ THEN BEGIN KIPC4.10 +SAY @88 +IF ~~ THEN REPLY @85 GOTO KIPC4.14 +IF ~~ THEN REPLY @89 DO ~IncrementGlobal("P#KivanLove","GLOBAL",-1)~ GOTO KIPC4.4 +IF ~~ THEN REPLY @87 GOTO KIPC4.16 +END + +IF ~~ THEN BEGIN KIPC4.11 +SAY @90 +IF ~~ THEN REPLY @85 GOTO KIPC4.14 +IF ~~ THEN REPLY @89 DO ~IncrementGlobal("P#KivanLove","GLOBAL",-1)~ GOTO KIPC4.4 +IF ~~ THEN REPLY @87 GOTO KIPC4.16 +END + +IF ~~ THEN BEGIN KIPC4.12 +SAY @91 +IF ~~ THEN REPLY @85 GOTO KIPC4.14 +IF ~~ THEN REPLY @89 DO ~IncrementGlobal("P#KivanLove","GLOBAL",-1)~ GOTO KIPC4.4 +IF ~~ THEN REPLY @87 GOTO KIPC4.16 +END + +IF ~~ THEN BEGIN KIPC4.13 +SAY @92 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC4.14 +SAY @93 += @94 += @95 +IF ~~ THEN REPLY @96 GOTO KIPC4.16 +IF ~~ THEN REPLY @97 GOTO KIPC4.16 +IF ~~ THEN REPLY @98 GOTO KIPC4.17 +IF ~~ THEN REPLY @99 GOTO KIPC4.18 +IF ~~ THEN REPLY @100 GOTO KIPC4.19 +END + +IF ~~ THEN BEGIN KIPC4.16 +SAY @101 +IF ~~ THEN REPLY @102 GOTO KIPC4.20 +IF ~~ THEN REPLY @89 DO ~IncrementGlobal("P#KivanLove","GLOBAL",-1)~ GOTO KIPC4.4 +IF ~~ THEN REPLY @103 GOTO KIPC4.18 +END + +IF ~~ THEN BEGIN KIPC4.17 +SAY @104 += @105 +IF ~~ THEN REPLY @102 GOTO KIPC4.20 +IF ~~ THEN REPLY @89 DO ~IncrementGlobal("P#KivanLove","GLOBAL",-1)~ GOTO KIPC4.4 +IF ~~ THEN REPLY @103 GOTO KIPC4.18 +END + +IF ~~ THEN BEGIN KIPC4.18 +SAY @106 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC4.19 +SAY @107 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC4.20 +SAY @108 +IF ~~ THEN EXIT +END + +//4 + +IF WEIGHT #990 ~Global("P#KiFriendTalk","GLOBAL",8)~ THEN BEGIN KIPC7 +SAY @109 +IF ~~ THEN REPLY @110 GOTO KIPC7.1 +IF ~~ THEN REPLY @111 GOTO KIPC7.2 +IF ~~ THEN REPLY @112 GOTO KIPC7.2 +IF ~~ THEN REPLY @113 GOTO KIPC7.3 +IF ~~ THEN REPLY @114 GOTO KIPC7.4 +IF ~~ THEN REPLY @115 GOTO KIPC7.5 +END + +IF ~~ THEN BEGIN KIPC7.1 +SAY @116 +IF ~~ THEN REPLY @117 GOTO KIPC7.6 +IF ~~ THEN REPLY @118 GOTO KIPC7.7 +IF ~~ THEN REPLY @119 GOTO KIPC7.8 +END + +IF ~~ THEN BEGIN KIPC7.2 +SAY @120 +IF ~~ THEN REPLY @121 GOTO KIPC7.9 +IF ~~ THEN REPLY @122 GOTO KIPC7.10 +IF ~~ THEN REPLY @123 GOTO KIPC7.3 +END + +IF ~~ THEN BEGIN KIPC7.3 +SAY @124 +IF ~~ THEN REPLY @125 GOTO KIPC7.11 +IF ~~ THEN REPLY @126 GOTO KIPC7.12 +END + +IF ~~ THEN BEGIN KIPC7.4 +SAY @127 +IF ~~ THEN REPLY @128 GOTO KIPC7.13 +IF ~~ THEN REPLY @129 GOTO KIPC7.5 +IF ~~ THEN REPLY @130 GOTO KIPC7.14 +IF ~InParty("MINSC")~ THEN REPLY @131 GOTO KIPC7.15 +END + +IF ~~ THEN BEGIN KIPC7.5 +SAY @132 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC7.6 +SAY @133 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC7.7 +SAY @134 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC7.8 +SAY @135 +IF ~~ THEN REPLY @136 GOTO KIPC7.2 +IF ~~ THEN REPLY @137 GOTO KIPC7.2 +IF ~~ THEN REPLY @138 GOTO KIPC7.3 +IF ~~ THEN REPLY @114 GOTO KIPC7.4 +IF ~~ THEN REPLY @115 GOTO KIPC7.5 +END + +IF ~~ THEN BEGIN KIPC7.9 +SAY @139 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC7.10 +SAY @140 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC7.11 +SAY @141 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC7.12 +SAY @142 +IF ~~ THEN REPLY @143 GOTO KIPC7.16 +IF ~~ THEN REPLY @144 GOTO KIPC7.11 +IF ~~ THEN REPLY @145 GOTO KIPC7.17 +END + +IF ~~ THEN BEGIN KIPC7.13 +SAY @146 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC7.14 +SAY @147 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC7.15 +SAY @148 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC7.16 +SAY @149 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC7.17 +SAY @150 +IF ~~ THEN EXIT +END + +//5 + +//////DREAM SCRIPT////////////////// +IF WEIGHT #990 ~ +Global("P#KiFriendTalk","GLOBAL",10)~ THEN BEGIN KIPC8 +SAY @151 +IF ~~ THEN REPLY @152 DO ~SetGlobal("P#KiFriendTalk","GLOBAL",11) RealSetGlobalTimer("P#KiFriendTalkTime","GLOBAL",2700)~ GOTO KIPC8.1 +IF ~~ THEN REPLY @153 DO ~SetGlobal("P#KiFriendTalk","GLOBAL",11) RealSetGlobalTimer("P#KiFriendTalkTime","GLOBAL",2700)~ GOTO KIPC8.2 +IF ~~ THEN REPLY @154 DO ~SetGlobal("P#KiFriendTalk","GLOBAL",11) RealSetGlobalTimer("P#KiFriendTalkTime","GLOBAL",2700)~ GOTO KIPC8.3 +IF ~Gender(Player1,FEMALE)~ THEN REPLY @155 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1) SetGlobal("P#KiFriendTalk","GLOBAL",11) RealSetGlobalTimer("P#KiFriendTalkTime","GLOBAL",2700)~ GOTO KIPC8.4 +IF ~Gender(Player1,FEMALE)~ THEN REPLY @156 DO ~SetGlobal("P#KiFriendTalk","GLOBAL",11) RealSetGlobalTimer("P#KiFriendTalkTime","GLOBAL",2700)~ GOTO KIPC8.5 +END + +IF ~~ THEN BEGIN KIPC8.1 +SAY @157 +IF ~~ THEN REPLY @158 GOTO KIPC8.6 +IF ~~ THEN REPLY @159 GOTO KIPC8.7 +IF ~~ THEN REPLY @160 GOTO KIPC8.8 +END + +IF ~~ THEN BEGIN KIPC8.2 +SAY @161 +IF ~~ THEN REPLY @158 GOTO KIPC8.6 +IF ~~ THEN REPLY @162 GOTO KIPC8.8 +IF ~Gender(Player1,FEMALE)~ THEN REPLY @163 GOTO KIPC8.5 +END + +IF ~~ THEN BEGIN KIPC8.3 +SAY @164 +IF ~~ THEN DO ~RestParty()~ +EXIT +END + +IF ~~ THEN BEGIN KIPC8.4 +SAY @165 +IF ~~ THEN REPLY @166 GOTO KIPC8.9 +IF ~~ THEN REPLY @167 GOTO KIPC8.10 +IF ~~ THEN REPLY @168 GOTO KIPC8.11 +IF ~~ THEN REPLY @169 GOTO KIPC8.8 +END + +IF ~~ THEN BEGIN KIPC8.5 +SAY @170 +IF ~~ THEN REPLY @166 GOTO KIPC8.9 +IF ~~ THEN REPLY @171 GOTO KIPC8.10 +IF ~~ THEN REPLY @168 GOTO KIPC8.11 +IF ~~ THEN REPLY @172 GOTO KIPC8.8 +END + +IF ~~ THEN BEGIN KIPC8.6 +SAY @173 +IF ~~ THEN DO ~RestParty()~ +EXIT +END + +IF ~~ THEN BEGIN KIPC8.7 +SAY @174 +IF ~~ THEN REPLY @175 GOTO KIPC8.6 +IF ~~ THEN REPLY @176 GOTO KIPC8.8 +END + +IF ~~ THEN BEGIN KIPC8.8 +SAY @177 += @178 += @179 +IF ~~ THEN REPLY @180 GOTO KIPC8.12 +IF ~~ THEN REPLY @181 GOTO KIPC8.13 +IF ~~ THEN REPLY @182 GOTO KIPC8.14 +END + +IF ~~ THEN BEGIN KIPC8.9 +SAY @183 +IF ~~ THEN REPLY @184 GOTO KIPC8.15 +IF ~~ THEN REPLY @185 GOTO KIPC8.16 +IF ~~ THEN REPLY @186 GOTO KIPC8.17 +IF ~~ THEN REPLY @187 GOTO KIPC8.18 +END + +IF ~~ THEN BEGIN KIPC8.10 +SAY @188 +IF ~~ THEN DO ~RestParty()~ +EXIT +END + +IF ~~ THEN BEGIN KIPC8.11 +SAY @189 +IF ~~ THEN DO ~RestParty()~ +EXIT +END + +IF ~~ THEN BEGIN KIPC8.12 +SAY @190 += @191 +IF ~~ THEN DO ~RestParty()~ +EXIT +END + +IF ~~ THEN BEGIN KIPC8.13 +SAY @192 +IF ~~ THEN DO ~RestParty()~ +EXIT +END + + +IF ~~ THEN BEGIN KIPC8.14 +SAY @193 +IF ~~ THEN DO ~RestParty()~ +EXIT +END + +IF ~~ THEN BEGIN KIPC8.15 +SAY @194 +IF ~~ THEN DO ~RestParty()~ +EXIT +END + +IF ~~ THEN BEGIN KIPC8.16 +SAY @195 +IF ~~ THEN REPLY @196 GOTO KIPC8.17 +IF ~~ THEN REPLY @197 GOTO KIPC8.19 +IF ~~ THEN REPLY @198 GOTO KIPC8.20 +END + +IF ~~ THEN BEGIN KIPC8.17 +SAY @199 +IF ~~ THEN DO ~RestParty()~ +EXIT +END + +IF ~~ THEN BEGIN KIPC8.18 +SAY @200 +IF ~~ THEN DO ~RestParty()~ +EXIT +END + +IF ~~ THEN BEGIN KIPC8.19 +SAY @201 +IF ~~ THEN DO ~RestParty()~ +EXIT +END + +IF ~~ THEN BEGIN KIPC8.20 +SAY @202 +IF ~~ THEN DO ~RestParty()~ +EXIT +END + +//6 + +IF WEIGHT #990 ~ +Global("P#KiFriendTalk","GLOBAL",12) +~ THEN BEGIN KIPC5 +SAY @203 +IF ~~ THEN REPLY @204 GOTO KIPC5.1 +IF ~~ THEN REPLY @205 GOTO KIPC5.2 +IF ~~ THEN REPLY @206 DO ~IncrementGlobal("P#KivanLove","GLOBAL",-1)~ GOTO KIPC5.3 +END + + +IF ~~ THEN BEGIN KIPC5.1 +SAY @207 +IF ~~ THEN REPLY @208 GOTO KIPC5.4 +IF ~~ THEN REPLY @209 GOTO KIPC5.4 +IF ~~ THEN REPLY @210 GOTO KIPC5.5 +END + +IF ~~ THEN BEGIN KIPC5.2 +SAY @211 +IF ~~ THEN REPLY @208 GOTO KIPC5.4 +IF ~~ THEN REPLY @209 GOTO KIPC5.4 +IF ~~ THEN REPLY @210 GOTO KIPC5.5 +END + +IF ~~ THEN BEGIN KIPC5.3 +SAY @212 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC5.4 +SAY @213 += @214 += @215 += @216 +IF ~~ THEN REPLY @217 GOTO KIPC5.6 +IF ~~ THEN REPLY @218 GOTO KIPC5.7 +IF ~~ THEN REPLY @219 GOTO KIPC5.7 +IF ~Gender(Player1,FEMALE)~ THEN REPLY @220 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ GOTO KIPC5.8 +IF ~~ THEN REPLY @221 GOTO KIPC5.9 +END + +IF ~~ THEN BEGIN KIPC5.5 +SAY @222 += @214 += @215 += @216 +IF ~~ THEN REPLY @217 GOTO KIPC5.6 +IF ~~ THEN REPLY @218 GOTO KIPC5.7 +IF ~~ THEN REPLY @219 GOTO KIPC5.7 +IF ~Gender(Player1,FEMALE)~ THEN REPLY @220 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ GOTO KIPC5.8 +IF ~~ THEN REPLY @221 GOTO KIPC5.9 +END + +IF ~~ THEN BEGIN KIPC5.6 +SAY @223 +IF ~~ THEN REPLY @224 GOTO KIPC5.4 +IF ~~ THEN REPLY @225 GOTO KIPC5.10 +IF ~~ THEN REPLY @226 GOTO KIPC5.3 +END + +IF ~~ THEN BEGIN KIPC5.7 +SAY @227 += @228 +IF ~~ THEN REPLY @229 GOTO KIPC5.11 +IF ~Gender(Player1,FEMALE)~ THEN REPLY @230 GOTO KIPC5.11 +IF ~~ THEN REPLY @231 GOTO KIPC5.12 +IF ~~ THEN REPLY @232 GOTO KIPC5.13 +END + +IF ~~ THEN BEGIN KIPC5.8 +SAY @233 += @227 += @234 +IF ~~ THEN REPLY @229 GOTO KIPC5.11 +IF ~~ THEN REPLY @230 GOTO KIPC5.11 +IF ~~ THEN REPLY @231 GOTO KIPC5.12 +IF ~~ THEN REPLY @232 GOTO KIPC5.13 +END + +IF ~~ THEN BEGIN KIPC5.9 +SAY @235 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC5.10 +SAY @236 +IF ~~ THEN REPLY @237 GOTO KIPC5.3 +IF ~~ THEN REPLY @238 GOTO KIPC5.14 +IF ~~ THEN REPLY @239 GOTO KIPC5.7 +END + +IF ~~ THEN BEGIN KIPC5.11 +SAY @240 +IF ~~ THEN REPLY @241 GOTO KIPC5.15 +IF ~~ THEN REPLY @242 GOTO KIPC5.16 +IF ~~ THEN REPLY @243 GOTO KIPC5.13 +IF ~~ THEN REPLY @244 GOTO KIPC5.17 +END + +IF ~~ THEN BEGIN KIPC5.12 +SAY @245 +IF ~~ THEN REPLY @246 GOTO KIPC5.15 +IF ~~ THEN REPLY @242 GOTO KIPC5.16 +IF ~~ THEN REPLY @243 GOTO KIPC5.13 +IF ~~ THEN REPLY @244 GOTO KIPC5.17 +END + +IF ~~ THEN BEGIN KIPC5.13 +SAY @247 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC5.14 +SAY @248 += @249 +IF ~~ THEN REPLY @246 GOTO KIPC5.15 +IF ~~ THEN REPLY @242 GOTO KIPC5.16 +IF ~~ THEN REPLY @243 GOTO KIPC5.13 +IF ~~ THEN REPLY @244 GOTO KIPC5.17 +END + //Stopped checking for Elf here// + +IF ~~ THEN BEGIN KIPC5.15 +SAY @250 +IF ~~ THEN EXIT +END + +IF ~~ THEN BEGIN KIPC5.16 +SAY @251 +IF ~~ THEN EXIT +END + +IF ~~THEN BEGIN KIPC5.17 +SAY @252 +IF ~~ THEN EXIT +END + +END + diff --git a/kivan/d/bp#kiv25.d b/kivan/d/bp#kiv25.d new file mode 100644 index 0000000..7909d40 --- /dev/null +++ b/kivan/d/bp#kiv25.d @@ -0,0 +1,683 @@ +BEGIN ~BP#KIV25~ +BEGIN ~BP#DEH25~ + +//Sarevok// + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("SAREVOK") +See("SAREVOK") +!StateCheck("SAREVOK",STATE_SLEEPING) +!Alignment("sarevok",MASK_GOOD) +Global("P#KISA1","LOCALS",0)~ THEN BP#KIV25 KISA1 +@0 +DO ~SetGlobal("P#KISA1","LOCALS",1)~ +== BSAREV25 @1 +== BP#KIV25 @2 +== BSAREV25 @3 +== BP#KIV25 @4 +== BSAREV25 @5 +== BP#KIV25 @6 +== BSAREV25 @7 +== BP#KIV25 @8 +== BSAREV25 @9 +EXIT + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +!Alignment("sarevok",MASK_GOOD) +Global("P#KISA2","LOCALS",0)~ THEN BSAREV25 KISA2 +@10 +DO ~SetGlobal("P#KISA2","LOCALS",1)~ +== BP#KIV25 @11 +== BSAREV25 @12 +== BP#KIV25 @13 +== BSAREV25 @14 +== BP#KIV25 @15 +== BSAREV25 @16 +== BP#KIV25 @17 +== BSAREV25 @18 +EXIT + +//Aerie + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIAE2","LOCALS",0)~ THEN BAERIE25 KIAE2 +@19 +DO ~SetGlobal("P#KIAE2","LOCALS",1)~ +== BP#KIV25 @20 +== BAERIE25 @21 += @22 +== BP#KIV25 @23 +== BAERIE25 @24 +== BP#KIV25 @25 +== BAERIE25 @26 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Alignment("ANOMEN", LAWFUL_NEUTRAL) +!InParty("P#DEHER") +Global("P#KIAN1.3","LOCALS",0)~ THEN BANOME25 KIAN1.3 +@27 +DO ~SetGlobal("P#KIAN1.3","LOCALS",1)~ +== BP#KIV25 @28 +== BANOME25 @29 +== BP#KIV25 @30 +== BANOME25 @31 +== BP#KIV25 @32 +== BANOME25 @33 +== BP#KIV25 @34 +== BANOME25 @35 +EXIT + +CHAIN +IF WEIGHT #1002 ~ +CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Alignment("ANOMEN", LAWFUL_GOOD) +Global("AnomenIsKnight","GLOBAL",1) +Global("P#KIAN2.2","LOCALS",0)~ THEN BANOME25 KIAN2.2 +@36 +DO ~SetGlobal("P#KIAN2.2","LOCALS",1)~ +== BP#KIV25 @37 +== BANOME25 @38 +== BP#KIV25 @39 +== BANOME25 @40 +== BP#KIV25 @41 +== BANOME25 @42 +== BP#KIV25 @43 +== BANOME25 @44 +== BP#KIV25 @45 +EXIT + +CHAIN +IF WEIGHT #1003 ~ +CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Alignment("ANOMEN", LAWFUL_GOOD) +Global("AnomenIsKnight","GLOBAL",1) +Global("P#KIANNM3","LOCALS",0)~ THEN BANOME25 KIANNM3 +@46 +DO ~SetGlobal("P#KIANNM3","LOCALS",1)~ +== BP#KIV25 @47 +== BANOME25 @48 +== BP#KIV25 @49 +== BANOME25 @50 +== BP#KIV25 @51 +== BANOME25 @52 +== BP#KIV25 @53 +== BANOME25 @54 +== BP#KIV25 @55 +EXIT + +CHAIN +IF WEIGHT #1004 ~ +CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +!Alignment("ANOMEN", LAWFUL_GOOD) +Global("AnomenIsKnight","GLOBAL",1) +Global("P#KIANNM4","LOCALS",0)~ THEN BANOME25 KIANNM3 +@56 +DO ~SetGlobal("P#KIANNM4","LOCALS",1)~ +== BP#KIV25 @57 +== BANOME25 @48 +== BP#KIV25 @49 +== BANOME25 @50 +== BP#KIV25 @51 +== BANOME25 @52 +== BP#KIV25 @53 +== BANOME25 @54 +== BP#KIV25 @55 +EXIT + +CHAIN +IF WEIGHT #1005 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Alignment("ANOMEN", CHAOTIC_NEUTRAL) +!Race(Player1,ELF) +!InParty("jan") +Global("P#KIAN3.2","LOCALS",0)~ THEN BANOME25 KIAN3.2 +@58 +DO ~SetGlobal("P#KIAN3.2","LOCALS",1)~ +== BP#KIV25 @59 +== BANOME25 @60 +== BP#KIV25 @61 +== BANOME25 @62 +== BP#KIV25 @63 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("CERND") +See("CERND") +!StateCheck("CERND",STATE_SLEEPING) +Global("P#KICE3","LOCALS",0)~ THEN BP#KIV25 KICE3 +@64 +DO ~SetGlobal("P#KICE3","LOCALS",1)~ +== BCERND25 @65 +== BP#KIV25 @66 +== BCERND25 @67 +== BP#KIV25 @68 +== BCERND25 @69 +== BP#KIV25 @70 +== BCERND25 @71 +EXIT + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY])InParty("CERND") +See("CERND") +!StateCheck("CERND",STATE_SLEEPING) +Global("P#KICE5","LOCALS",0)~ THEN BP#KIV25 KICE5 +@72 +DO ~SetGlobal("P#KICE5","LOCALS",1)~ +== BCERND25 @73 +== BP#KIV25 @74 +== BCERND25 @75 +== BP#KIV25 @76 +== BCERND25 @77 +EXIT + +CHAIN +IF WEIGHT #1003 ~CombatCounter(0) !See([ENEMY])InParty("CERND") +See("CERND") +!StateCheck("CERND",STATE_SLEEPING) +Global("P#KICE10","LOCALS",0)~ THEN BP#KIV25 KICE10 +@78 +DO ~SetGlobal("P#KICE10","LOCALS",1)~ +== BCERND25 @79 +== BP#KIV25 @80 +== BCERND25 @81 +== BP#KIV25 @82 +== BCERND25 @83 +== BP#KIV25 @84 +== BCERND25 @85 +== BP#KIV25 @86 +== BCERND25 @87 +== BP#KIV25 @88 +== BCERND25 @89 +EXIT + +//Deheriana + +//KivanHappyTalks + +CHAIN +IF WEIGHT #1001 ~InParty("P#DEHER") +See("P#DEHER") +!StateCheck("P#DEHER",STATE_SLEEPING) +Global("P#KIDE4","LOCALS",0)~ THEN BP#KIV25 P#KIDE4 +@90 +DO ~SetGlobal("P#KIDE4","LOCALS",1)~ +== BP#DEH25 @91 +== BP#KIV25 @92 += @93 +== BP#DEH25 @94 +EXIT + +CHAIN +IF WEIGHT #1002 ~InParty("P#DEHER") +See("P#DEHER") +!StateCheck("P#DEHER",STATE_SLEEPING) +Global("P#KIDE5","LOCALS",0)~ THEN BP#KIV25 P#KIDE5 +@95 +DO ~SetGlobal("P#KIDE5","LOCALS",1)~ +== BP#DEH25 @96 +== BP#KIV25 @97 +== BP#DEH25 @98 +== BP#KIV25 @99 += @100 += @101 +== BP#DEH25 @102 +== BP#KIV25 @103 += @104 +== BP#DEH25 @105 +== BP#KIV25 @106 +== BP#DEH25 @107 +== BP#KIV25 @108 +EXIT + +CHAIN +IF WEIGHT #1003 ~InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIDE6","LOCALS",0)~ THEN BP#DEH25 P#KIDE6 +@109 +DO ~SetGlobal("P#KIDE6","LOCALS",1)~ +== BP#KIV25 @110 += @111 +== BP#DEH25 @112 +== BP#KIV25 @113 +== BP#DEH25 @114 +== BP#KIV25 @115 +== BP#DEH25 @116 +EXIT + +//Edwin + +CHAIN +IF WEIGHT #1000 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIED4","LOCALS",0)~ THEN BEDWIN25 KIED4 +@117 +DO ~SetGlobal("P#KIED4","LOCALS",1)~ +== BP#KIV25 @118 +== BEDWIN25 @119 +== BP#KIV25 @118 +== BEDWIN25 @120 +== BP#KIV25 @118 +== BEDWIN25 @121 +== BP#KIV25 @118 +== BEDWIN25 @122 += @123 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIEDNM1","LOCALS",0)~ THEN BEDWIN25 KIEDNM1 +@124 +DO ~SetGlobal("P#KIEDNM1","LOCALS",1)~ +== BP#KIV25 @125 +== BEDWIN25 @126 +== BP#KIV25 @127 +== BEDWIN25 @128 +== BP#KIV25 @129 +== BEDWIN25 @130 +EXIT + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY])InParty("EDWIN") +See("EDWIN") +!StateCheck("EDWIN",STATE_SLEEPING) +Global("P#KIEDNM2","LOCALS",0)~ THEN BP#KIV25 KIEDNM2 +@131 +DO ~SetGlobal("P#KIEDNM2","LOCALS",1)~ +== BEDWIN25 @132 +== BP#KIV25 @133 +== BEDWIN25 @134 +== BP#KIV25 @135 +== BEDWIN25 @136 +== BP#KIV25 @137 +== BEDWIN25 @138 +== BP#KIV25 @139 +== BEDWIN25 @140 +EXIT + +CHAIN +IF WEIGHT #1003 ~CombatCounter(0) !See([ENEMY])InParty("EDWIN") +See("EDWIN") +!StateCheck("EDWIN",STATE_SLEEPING) +Global("P#KIEDNM3","LOCALS",0)~ THEN BP#KIV25 KIEDNM3 +@141 +DO ~SetGlobal("P#KIEDNM3","LOCALS",1)~ +== BEDWIN25 @142 +== BP#KIV25 @143 +== BEDWIN25 @144 +== BP#KIV25 @145 +== BEDWIN25 @146 +EXIT + +//Haer'Dalis + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY])InParty("HAERDALIS") +See("HAERDALIS") +!StateCheck("HAERDALIS",STATE_SLEEPING) +Global("P#KIHA8","GLOBAL",0)~ THEN BP#KIV25 KIHA8 +@147 +DO ~SetGlobal("P#KIHA8","GLOBAL",1)~ +== BHAERD25 @148 +== BP#KIV25 @149 +== BHAERD25 @150 +== BP#KIV25 @151 +== BHAERD25 @152 +== BP#KIV25 @153 +== BHAERD25 @154 +== BP#KIV25 @155 +== BHAERD25 @156 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIHA2","LOCALS",0)~ THEN BHAERD25 KIHA2 +@157 +DO ~SetGlobal("P#KIHA2","LOCALS",1)~ +== BP#KIV25 @158 +== BHAERD25 @159 +== BP#KIV25 @160 +== BHAERD25 @161 +== BP#KIV25 @162 +== BHAERD25 @163 +EXIT + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIHA3","LOCALS",0) +Global("P#KIHA2","LOCALS",1)~ THEN BHAERD25 KIHA3 +@164 +DO ~SetGlobal("P#KIHA3","LOCALS",1)~ +== BP#KIV25 @165 +== BHAERD25 @166 += @167 += @168 +== BP#KIV25 @169 +== BHAERD25 @170 +EXIT + +//Imoen + +CHAIN +IF WEIGHT #1000 ~CombatCounter(0) !See([ENEMY])InParty("IMOEN2") +See("IMOEN2") +!StateCheck("IMOEN2",STATE_SLEEPING) +Global("P#KIIM4","LOCALS",0)~ THEN BP#KIV25 KIIM4 +@171 +DO ~SetGlobal("P#KIIM4","LOCALS",1)~ +== BIMOEN25 @172 +== BP#KIV25 @173 +== BIMOEN25 @174 +== BP#KIV25 @175 +== BIMOEN25 @176 +== BP#KIV25 @177 +== BIMOEN25 @178 +== BP#KIV25 @179 +== BIMOEN25 IF ~InParty("Minsc")~ THEN @180 +== BIMOEN25 IF ~InParty("Minsc")~ THEN @181 +== BIMOEN25 IF ~!InParty("Minsc")~ THEN @182 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIJAN2","LOCALS",0)~ THEN BJAN25 KIJAN2 +@183 +DO ~SetGlobal("P#KIJAN2","LOCALS",1)~ +== BP#KIV25 @184 +== BJAN25 @185 +== BP#KIV25 @186 +== BJAN25 @187 +== BP#KIV25 @188 +== BJAN25 @189 +== BP#KIV25 @190 +== BJAN25 @191 +== BP#KIV25 @192 +== BJAN25 @193 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIKE2","LOCALS",0)~ THEN BKELDO25 KIKE2 +@194 +DO ~SetGlobal("P#KIKE2","LOCALS",1)~ +== BP#KIV25 @195 +== BKELDO25 @196 +== BP#KIV25 @197 += @198 +== BKELDO25 @199 +== BP#KIV25 @200 +== BKELDO25 @201 +== BP#KIV25 @202 +== BKELDO25 @203 +== BP#KIV25 @204 +EXIT + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIKENM1","LOCALS",0)~ THEN BKELDO25 KIKENM1 +@205 +DO ~SetGlobal("P#KIKENM1","LOCALS",1)~ +== BP#KIV25 @206 +== BKELDO25 IF ~!InParty("anomen") ~ THEN @207 +== BKELDO25 IF ~InParty("anomen") ~ THEN @208 +== BP#KIV25 @209 +== BKELDO25 @210 +== BP#KIV25 @211 +== BKELDO25 @212 +== BP#KIV25 @213 +== BKELDO25 @214 +EXIT + +CHAIN +IF WEIGHT #1003 ~CombatCounter(0) !See([ENEMY])InParty("keldorn") +See("keldorn") +!StateCheck("keldorn",STATE_SLEEPING) +Global("P#KIKENM2","LOCALS",0)~ THEN BP#KIV25 KIKENM2 +@215 +DO ~SetGlobal("P#KIKENM2","LOCALS",1)~ +== BKELDO25 @216 +== BP#KIV25 @217 +== BKELDO25 @218 +== BP#KIV25 @219 +== BKELDO25 @220 +== BP#KIV25 @221 +== BMINSC25 IF ~InParty("minsc")~ THEN @222 +== BKELDO25 @223 +== BP#KIV25 @224 +== BKELDO25 @225 +EXIT + +CHAIN +IF WEIGHT #1004 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIKENM3","LOCALS",0)~ THEN BKELDO25 KIKENM3 +@226 +DO ~SetGlobal("P#KIKENM3","LOCALS",1)~ +== BP#KIV25 @227 +== BKELDO25 @228 +== BP#KIV25 @229 +== BKELDO25 @230 +== BP#KIV25 @231 +== BKELDO25 @232 +== BP#KIV25 @233 +== BKELDO25 @20 += @234 +== BP#KIV25 @235 +== BKELDO25 @236 +EXIT + +CHAIN +IF WEIGHT #1005 ~CombatCounter(0) !See([ENEMY])InParty("keldorn") +See("keldorn") +!StateCheck("keldorn",STATE_SLEEPING) +Global("P#KIKENM4","LOCALS",0)~ THEN BP#KIV25 KIKENM4 +@237 +DO ~SetGlobal("P#KIKENM4","LOCALS",1)~ +== BKELDO25 @238 +== BP#KIV25 @239 +== BKELDO25 @240 +== BP#KIV25 @241 +== BKELDO25 @242 +== BP#KIV25 @243 +== BKELDO25 IF ~PartyHasItem("P#TAHE")~ THEN @244 +== BP#KIV25 IF ~PartyHasItem("P#TAHE")~ THEN @245 +EXIT + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY])InParty("MAZZY") +See("MAZZY") +!StateCheck("MAZZY",STATE_SLEEPING) +Global("P#KIMA3","LOCALS",0)~ THEN BP#KIV25 KIMA3 +@246 +DO ~SetGlobal("P#KIMA3","LOCALS",1)~ +== BMAZZY25 @247 +== BP#KIV25 @248 +== BMAZZY25 @249 +== BP#KIV25 @250 +== BMAZZY25 @251 +EXIT + +///Minsc + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIMI5","LOCALS",0)~ THEN BMINSC25 KIMI5 +@252 +DO ~SetGlobal("P#KIMI5","LOCALS",1)~ +== BP#KIV25 @253 +== BMINSC25 @254 +== BP#KIV25 @255 +== BMINSC25 @256 +== BP#KIV25 @257 +== BMINSC25 @258 +== BP#KIV25 @259 +== BMINSC25 @260 +EXIT + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIMINM1","LOCALS",0)~ THEN BMINSC25 KIMINM1 +@261 +DO ~SetGlobal("P#KIMINM1","LOCALS",1)~ +== BMINSC25 @262 +== BP#KIV25 @263 +== BMINSC25 @264 +== BMINSC25 @265 +== BP#KIV25 @266 +== BMINSC25 @267 += @268 +== BP#KIV25 @269 +== BMINSC25 @270 +== BP#KIV25 @271 += @272 += @273 +== BMINSC25 @274 +== BP#KIV25 @275 += @276 +== BMINSC25 @277 +EXIT + +CHAIN +IF WEIGHT #1003 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +AreaType(FOREST) +Global("P#KIMINM2","LOCALS",0)~ THEN BMINSC25 KIMINM2 +@278 +DO ~SetGlobal("P#KIMINM2","LOCALS",1)~ +== BP#KIV25 @279 +== BMINSC25 @280 +== BP#KIV25 @281 +== BMINSC25 @282 +== BP#KIV25 @283 +== BMINSC25 @284 +EXIT + +////Nalia + +CHAIN +IF WEIGHT #1000 ~CombatCounter(0) !See([ENEMY]) InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KINA5","LOCALS",0)~ THEN BNALIA25 P#KINA5 +@285 +DO ~SetGlobal("P#KINA5","LOCALS",1)~ +== BP#KIV25 @286 +== BNALIA25 @287 +== BP#KIV25 @288 +== BNALIA25 @289 +== BP#KIV25 @290 +== BNALIA25 @291 +== BP#KIV25 @292 +== BNALIA25 @293 +== BP#KIV25 @294 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +Global("P#KIVA5","LOCALS",0)~ THEN BVALYG25 KIVA5 +@295 +DO ~SetGlobal("P#KIVA5","LOCALS",1)~ +== BP#KIV25 @296 +== BVALYG25 @297 +== BP#KIV25 @298 +== BVALYG25 @299 +== BP#KIV25 @300 +== BVALYG25 @301 +== BP#KIV25 @302 +== BVALYG25 @303 +EXIT + +CHAIN +IF WEIGHT #1000 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIVINM2","LOCALS",0)~ THEN BVICON25 KIVINM2 +@304 +DO ~SetGlobal("P#KIVINM2","LOCALS",1)~ +== BP#KIV25 @305 +== BVICON25 @306 +== BP#KIV25 @307 +== BVICON25 @308 += @309 += @310 +== BP#KIV25 @311 +== BVICON25 @312 +== BP#KIV25 @313 +== BVICON25 @314 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIVINM3","LOCALS",0)~ THEN BVICON25 KIVINM3 +@315 +DO ~SetGlobal("P#KIVINM3","LOCALS",1)~ +== BP#KIV25 @316 +== BVICON25 @317 +== BP#KIV25 @318 +== BVICON25 @319 +== BP#KIV25 @320 +== BVICON25 @321 +== BP#KIV25 @322 +== BVICON25 @323 +== BP#KIV25 @324 +== BVICON25 @325 +EXIT + +CHAIN +IF WEIGHT #1003 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIVINM4","LOCALS",0)~ THEN BVICON25 KIVINM4 +@326 +DO ~SetGlobal("P#KIVINM4","LOCALS",1)~ +== BP#KIV25 @327 +== BVICON25 @328 +== BP#KIV25 @329 +== BVICON25 @330 +== BP#KIV25 @331 +== BVICON25 @332 +EXIT + + diff --git a/kivan/d/fatesp.d b/kivan/d/fatesp.d new file mode 100644 index 0000000..907dfe8 --- /dev/null +++ b/kivan/d/fatesp.d @@ -0,0 +1,16 @@ +//Spirit of Fate + +EXTEND_TOP FATESP 6 ++ ~!InMyArea("P#KIVAN") +Global("P#KivanSummoned","GLOBAL",0)~ + @164 DO ~SetGlobal("P#KivanSummoned","GLOBAL",2)~ + 10 ++ ~!InMyArea("P#DEHER") +Global("P#DeherianaSummoned","GLOBAL",0)~ + @165 DO ~SetGlobal("P#DeherianaSummoned","GLOBAL",2)~ + P#FSDehDead +END + +APPEND FATESP + +IF ~~ P#FSDehDead +SAY @166 +IF ~~ THEN GOTO 6 +END +END diff --git a/kivan/d/p#deft25.d b/kivan/d/p#deft25.d new file mode 100644 index 0000000..24b7bbc --- /dev/null +++ b/kivan/d/p#deft25.d @@ -0,0 +1,501 @@ +//Deheriana// + +APPEND P#DE25J + +IF WEIGHT #990 +~Global("P#DeFRTOBTalk","GLOBAL",2)~ THEN BEGIN DeherianaFriendTalk1 +SAY @0 +++ @1 + P#FTDE1.1 +++ @2 + P#FTDE1.2 +++ @3 + P#FTDE1.3 ++ ~Gender(Player1,MALE)~ + @4 + P#FTDE1.4 +END + +IF ~~ P#FTDE1.9 +SAY @5 += @6 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE1.8 +SAY @7 += @8 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE1.7 +SAY @9 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE1.6 +SAY @10 += @11 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE1.5 +SAY @12 += @11 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE1.4 +SAY @13 +++ @14 + P#FTDE1.3A +++ @15 + P#FTDE1.1 +++ @16 + P#FTDE1.1 +++ @17 + P#FTDE1.3 +END + +IF ~~ P#FTDE1.3A +SAY @18 += @11 +IF ~~ THEN EXIT +END + + +IF ~~ P#FTDE1.3 +SAY @19 += @11 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE1.2 +SAY @20 +++ @21 + P#FTDE1.6 ++ ~Gender(Player1,FEMALE)~ + @22 + P#FTDE1.7 +++ @23 + P#FTDE1.8 +++ @24 + P#FTDE1.9 +END + +IF ~~ P#FTDE1.1 +SAY @25 +++ @26 + P#FTDE1.5 +++ @27 + P#FTDE1.6 ++ ~Gender(Player1,FEMALE)~ + @22 + P#FTDE1.7 +++ @28 + P#FTDE1.8 +++ @24 + P#FTDE1.9 +END + +//Talk 2 + +IF WEIGHT #990 +~Global("P#DeFRTOBTalk","GLOBAL",4)~ THEN BEGIN DeherianaFriendTalk2 +SAY @29 +++ @30 + P#FTDE2.1 ++ ~Gender(Player1,MALE)~ + @31 + P#FTDE2.2 ++ ~Gender(Player1,FEMALE)~ + @32 + P#FTDE2.2 +++ @33 + P#FTDE2.3 +++ @34 + P#FTDE2.4 +END + +IF ~~ P#FTDE2.15 +SAY @35 +IF ~~ THEN GOTO P#FTDE2.11 +END + +IF ~~ P#FTDE2.14 +SAY @36 +IF ~~ THEN GOTO P#FTDE2.11 +END + +IF ~~ P#FTDE2.13 +SAY @37 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE2.12 +SAY @38 +IF ~~ THEN GOTO P#FTDE2.11 +END + +IF ~~ P#FTDE2.11 +SAY @39 += @40 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE2.10 +SAY @41 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE2.9 +SAY @42 += @43 +++ @44 + P#FTDE2.11 +++ @45 + P#FTDE2.4A +END + +IF ~~ P#FTDE2.8 +SAY @46 += @47 +++ @44 + P#FTDE2.11 +++ @48 + P#FTDE2.4A +++ @45 + P#FTDE2.4A +END + + +IF ~~ P#FTDE2.7 +SAY @49 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE2.6 +SAY @50 +++ @51 + P#FTDE2.7 +++ @52 + P#FTDE2.4 +++ @53 + P#FTDE2.3 +END + +IF ~~ P#FTDE2.5 +SAY @54 +++ @55 + P#FTDE2.13 +++ @56 + P#FTDE2.14 +++ @57 + P#FTDE2.15 +END + +IF ~~ P#FTDE2.4A +SAY @58 +++ @44 + P#FTDE2.11 +++ @59 + P#FTDE2.12 +++ @60 + P#FTDE2.11 +END + +IF ~~ P#FTDE2.4 +SAY @61 +++ @44 + P#FTDE2.11 +++ @59 + P#FTDE2.12 +++ @62 + P#FTDE2.11 +END + +IF ~~ P#FTDE2.3 +SAY @63 +++ @44 + P#FTDE2.11 +++ @48 + P#FTDE2.4A +++ @45 + P#FTDE2.4A +END + +IF ~~ P#FTDE2.2 +SAY @64 +++ @65 + P#FTDE2.8 +++ @66 + P#FTDE2.9 +++ @67 + P#FTDE2.10 +END + +IF ~~ P#FTDE2.1 +SAY @68 +++ @69 + P#FTDE2.7 +++ @70 + P#FTDE2.5 +++ @71 + P#FTDE2.6 +END + +//Talk 3 + +IF WEIGHT #990 +~Global("P#DeFRTOBTalk","GLOBAL",6)~ THEN BEGIN DeherianaFriendTalk3 +SAY @72 +++ @73 + P#FTDE3.1 +++ @74 + P#FTDE3.2 +++ @75 + P#FTDE3.3 +END + +IF ~~ P#FTDE3.11 +SAY @76 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE3.10 +SAY @77 +++ @78 + P#FTDE3.9 +++ @79 + P#FTDE3.11 +++ @80+ P#FTDE3.7 +END + +IF ~~ P#FTDE3.9 +SAY @81 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE3.8 +SAY @82 +++ @78 + P#FTDE3.9 +++ @79 + P#FTDE3.11 +++ @80+ P#FTDE3.7 +END + +IF ~~ P#FTDE3.7 +SAY @83 += @84 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE3.6 +SAY @85 += @86 +++ @87 + P#FTDE3.8 +++ @78 + P#FTDE3.9 +++ @88 + P#FTDE3.10 +++ @80+ P#FTDE3.7 +END + +IF ~~ P#FTDE3.5 +SAY @89 += @90 +++ @87 + P#FTDE3.8 +++ @78 + P#FTDE3.9 +++ @88 + P#FTDE3.10 +++ @80+ P#FTDE3.7 +END + +IF ~~ P#FTDE3.4 +SAY @91 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE3.3 +SAY @92 +++ @87 + P#FTDE3.8 +++ @78 + P#FTDE3.9 +++ @88 + P#FTDE3.10 +++ @80+ P#FTDE3.7 +END + +IF ~~ P#FTDE3.2 +SAY @93 +++ @94 + P#FTDE3.5 +++ @95 + P#FTDE3.6 +++ @96 + P#FTDE3.5 +++ @97 + P#FTDE3.7 +END + +IF ~~ P#FTDE3.1 +SAY @98 += @99 + ++ @100 + P#FTDE3.4 +++ @101 + P#FTDE3.2 +++ @75 + P#FTDE3.3 +END + +//Talk 4 + +IF WEIGHT #990 +~Global("P#DeFRTOBTalk","GLOBAL",8)~ THEN BEGIN DeherianaFriendTalk4 +SAY @102 +++ @103 + P#FTDE4.1 +++ @104 + P#FTDE4.2 +++ @105 + P#FTDE4.3 +++ @106 + P#FTDE4.4 +++ @107 + P#FTDE4.5 +END + +IF ~~ P#FTDE4.14 +SAY @108 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE4.13 +SAY @109 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE4.12 +SAY @110 += @111 +++ @112 + P#FTDE4.8 +++ @113 + P#FTDE4.9 +++ @114 + P#FTDE4.10 +++ @115 + P#FTDE4.14 +END + +IF ~~ P#FTDE4.11 +SAY @116 += @117 += @118 +++ @112 + P#FTDE4.8 +++ @113 + P#FTDE4.9 +++ @114 + P#FTDE4.10 +++ @115 + P#FTDE4.14 +END + +IF ~~ P#FTDE4.10 +SAY @119 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE4.9 +SAY @120 +++ @121 + P#FTDE4.13 +++ @115 + P#FTDE4.14 +++ @114 + P#FTDE4.10 +END + +IF ~~ P#FTDE4.8 +SAY @122 += @123 +++ @124 + P#FTDE4.13 +++ @113 + P#FTDE4.9 +++ @114 + P#FTDE4.10 +END + +IF ~~ P#FTDE4.7 +SAY @125 +++ @126 + P#FTDE4.11 +++ @127 + P#FTDE4.12 +++ @128 + P#FTDE4.4 +++ @105 + P#FTDE4.3 +END + +IF ~~ P#FTDE4.6 +SAY @129 += @130 +++ @112 + P#FTDE4.8 +++ @113 + P#FTDE4.9 +++ @114 + P#FTDE4.10 +++ @115 + P#FTDE4.14 +END + +IF ~~ P#FTDE4.5 +SAY @131 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE4.4 +SAY @132 +IF ~~ THEN GOTO P#FTDE4.2 +END + +IF ~~ P#FTDE4.3 +SAY @133 += @134 += @111 +++ @112 + P#FTDE4.8 +++ @113 + P#FTDE4.9 +++ @114 + P#FTDE4.10 +++ @115 + P#FTDE4.14 +END + +IF ~~ P#FTDE4.2 +SAY @135 += @111 +++ @112 + P#FTDE4.8 +++ @113 + P#FTDE4.9 +++ @114 + P#FTDE4.10 +++ @115 + P#FTDE4.14 +END + +IF ~~ P#FTDE4.1 +SAY @136 +++ @137 + P#FTDE4.6 +++ @138 + P#FTDE4.7 +++ @105 + P#FTDE4.3 +++ @106 + P#FTDE4.4 +END + +//Talk 5 + +IF WEIGHT #990 +~Global("P#DeFRTOBTalk","GLOBAL",10)~ THEN BEGIN DeherianaFriendTalk5 +SAY @139 ++ ~!Race(Player1,ELF)~ + @140 + P#FTDE5.1 +++ @141 + P#FTDE5.2 +++ @142 + P#FTDE5.3 +++ @143 + P#FTDE5.4 +END + +IF ~~ P#FTDE5.16 +SAY @144 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE5.15 +SAY @145 += @146 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE5.14 +SAY @147 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE5.13 +SAY @148 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE5.12 +SAY @149 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE5.11 +SAY @150 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE5.10 +SAY @151 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE5.9 +SAY @152 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE5.8 +SAY @153 +IF ~~ THEN GOTO P#FTDE5.4 +END + +IF ~~ P#FTDE5.7 +SAY @154 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE5.6 +SAY @155 +IF ~~ THEN EXIT +END + +IF ~~ P#FTDE5.5 +SAY @156 +++ @157 + P#FTDE5.14 +++ @158 + P#FTDE5.15 +++ @159 + P#FTDE5.4 +++ @160 + P#FTDE5.16 +END + +IF ~~ P#FTDE5.4 +SAY @161 +++ @162 + P#FTDE5.11 +++ @163 + P#FTDE5.12 +++ @164 + P#FTDE5.13 +END + +IF ~~ P#FTDE5.3 +SAY @165 +++ @166 + P#FTDE5.8 +++ @167 + P#FTDE5.4 +++ @168 + P#FTDE5.9 +++ @169 + P#FTDE5.10 +END + +IF ~~ P#FTDE5.2 +SAY @170 +++ @171 + P#FTDE5.6 +++ @172 + P#FTDE5.7 +++ @173 + P#FTDE5.4 +END + +IF ~~ P#FTDE5.1 +SAY @174 ++ ~Class(Player1,BARD_ALL)~ + @175 + P#FTDE5.5 +++ @176 + P#FTDE5.2 +++ @177 + P#FTDE5.3 +++ @143 + P#FTDE5.4 +END + +END diff --git a/kivan/d/p#ki25j.d b/kivan/d/p#ki25j.d new file mode 100644 index 0000000..dcb9b19 --- /dev/null +++ b/kivan/d/p#ki25j.d @@ -0,0 +1,1021 @@ +BEGIN P#KI25P +APPEND P#KI25P + +IF ~Global("P#KivanJoined","GLOBAL",1)~ THEN BEGIN KickOut +SAY @0 +IF ~~ THEN REPLY @1 DO ~JoinParty()~ EXIT +IF ~InParty("P#DEHER") +!AreaCheck("AR0301") +!AreaCheck("AR0302") +!AreaCheck("AR0303") +!AreaCheck("AR0304") +!AreaCheck("AR0305") +!AreaCheck("AR0306") +!AreaCheck("AR0307") +!AreaCheck("AR0509") +!AreaCheck("AR0510") +!AreaCheck("AR0511") +!AreaCheck("AR1102") +!AreaCheck("AR1107") +!AreaCheck("AR0801") +!AreaCheck("AR0803") +!AreaCheck("AR1300") +!AreaCheck("AR1301") +!AreaCheck("AR1302") +!AreaCheck("AR1303") +!AreaCheck("AR0601") +!AreaCheck("AR0602") +!AreaCheck("AR0603") +!AreaCheck("AR0604") +!AreaCheck("AR0605") +!AreaCheck("AR0606") +!AreaCheck("AR3000") //Watcher's Keep// +!AreaCheck("AR3001") //Watcher’s Keep -- Altar level// +!AreaCheck("AR3003") //Watcher’s Keep -- Compass level // +!AreaCheck("AR3004") //Watcher’s Keep // +!AreaCheck("AR3005") //Watcher’s Keep -- tieflings// +!AreaCheck("AR3006") //Watcher’s Keep -- Succubus +!AreaCheck("AR3007") //Watcher’s Keep --Cambion +!AreaCheck("AR3008") //Watcher’s Keep -- Balor (Paladin Sword) +!AreaCheck("AR3009") //Watcher’s Keep --") //Wild Magic ? +!AreaCheck("AR3010") //Watcher’s Keep -- Tanar’ri -- Obelisk +!AreaCheck("AR3011") //Watcher’s Keep -- Bard’s Gloves, Manman’s Journal +!AreaCheck("AR3012") //Watcher’s Keep -- Tahazzar +!AreaCheck("AR3013") //Watcher’s Keep -- Ka’rashur +!AreaCheck("AR3014") //Watcher’s Keep --") //White Dragon Scales +!AreaCheck("AR3015") //Watcher’s Keep -- Aesgareth +!AreaCheck("AR3016") //Watcher’s Keep -- Chromatic Demon; Elementalist Level +!AreaCheck("AR3017") //Watcher’s Keep -- Carston and the machine +!AreaCheck("AR3018") //Watcher’s Keep -- Saladrex (Dragon) +!AreaCheck("AR3019") //Watcher’s Keep -- Helmite Level -- Last Seals +!AreaCheck("AR3020") //Watcher’s Keep -- Imprisoned One +!AreaCheck("AR3021") //Watcher’s Keep -- Ilithids +!AreaCheck("AR3022") //Watcher’s Keep -- Anti-Paladins +!AreaCheck("AR3023") //Watcher’s Keep -- "Adventure Level" (Mini Map!!!) +!AreaCheck("AR3024") //Watcher’s Keep -- Dragon -- Fear Challenge +!AreaCheck("AR3025") //Watcher’s Keep -- Orcs -- Ixil’s Nail +!AreaCheck("AR3026") //Watcher’s Keep -- Imp -- Game +!AreaCheck("AR3027") //Watcher’s Keep -- Crypt -- Demi-Lich +~ THEN REPLY @2 DO ~SetGlobal("P#KivanJoined","GLOBAL",0) LeaveParty() SetGlobal("DeherJoined","GLOBAL",0) ActionOverride("P#DEHER",LeaveParty()) ~ EXIT +IF ~!InParty("P#DEHER") +!AreaCheck("AR0301") +!AreaCheck("AR0302") +!AreaCheck("AR0303") +!AreaCheck("AR0304") +!AreaCheck("AR0305") +!AreaCheck("AR0306") +!AreaCheck("AR0307") +!AreaCheck("AR0509") +!AreaCheck("AR0510") +!AreaCheck("AR0511") +!AreaCheck("AR1102") +!AreaCheck("AR1107") +!AreaCheck("AR0801") +!AreaCheck("AR0803") +!AreaCheck("AR1300") +!AreaCheck("AR1301") +!AreaCheck("AR1302") +!AreaCheck("AR1303") +!AreaCheck("AR0601") +!AreaCheck("AR0602") +!AreaCheck("AR0603") +!AreaCheck("AR0604") +!AreaCheck("AR0605") +!AreaCheck("AR0606") +!AreaCheck("AR3000") //Watcher's Keep +!AreaCheck("AR3001") //Watcher’s Keep -- Altar level +!AreaCheck("AR3003") //Watcher’s Keep -- Compass level +!AreaCheck("AR3004") //Watcher’s Keep +!AreaCheck("AR3005") //Watcher’s Keep -- tieflings +!AreaCheck("AR3006") //Watcher’s Keep -- Succubus +!AreaCheck("AR3007") //Watcher’s Keep --Cambion +!AreaCheck("AR3008") //Watcher’s Keep -- Balor (Paladin Sword) +!AreaCheck("AR3009") //Watcher’s Keep --") //Wild Magic ? +!AreaCheck("AR3010") //Watcher’s Keep -- Tanar’ri -- Obelisk +!AreaCheck("AR3011") //Watcher’s Keep -- Bard’s Gloves, Manman’s Journal +!AreaCheck("AR3012") //Watcher’s Keep -- Tahazzar +!AreaCheck("AR3013") //Watcher’s Keep -- Ka’rashur +!AreaCheck("AR3014") //Watcher’s Keep --") //White Dragon Scales +!AreaCheck("AR3015") //Watcher’s Keep -- Aesgareth +!AreaCheck("AR3016") //Watcher’s Keep -- Chromatic Demon; Elementalist Level +!AreaCheck("AR3017") //Watcher’s Keep -- Carston and the machine +!AreaCheck("AR3018") //Watcher’s Keep -- Saladrex (Dragon) +!AreaCheck("AR3019") //Watcher’s Keep -- Helmite Level -- Last Seals +!AreaCheck("AR3020") //Watcher’s Keep -- Imprisoned One +!AreaCheck("AR3021") //Watcher’s Keep -- Ilithids +!AreaCheck("AR3022") //Watcher’s Keep -- Anti-Paladins +!AreaCheck("AR3023") //Watcher’s Keep -- "Adventure Level" (Mini Map!!!) +!AreaCheck("AR3024") //Watcher’s Keep -- Dragon -- Fear Challenge +!AreaCheck("AR3025") //Watcher’s Keep -- Orcs -- Ixil’s Nail +!AreaCheck("AR3026") //Watcher’s Keep -- Imp -- Game +!AreaCheck("AR3027") //Watcher’s Keep -- Crypt -- Demi-Lich +~ THEN REPLY @2 DO ~SetGlobal("P#KivanJoined","GLOBAL",0) LeaveParty()~ EXIT +IF ~!InParty("P#DEHER")~ THEN REPLY @3 GOTO PoliteRefuse +IF ~InParty("P#DEHER")~ THEN REPLY @3 GOTO PoliteRefuseD +IF ~OR(2) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaDead","GLOBAL",1) +!AreaCheck("AR0601") +!AreaCheck("AR0602") +!AreaCheck("AR0603") +!AreaCheck("AR0410") +!AreaCheck("AR0411") +!AreaCheck("AR0412") +!AreaCheck("AR0413") +!AreaCheck("AR0414") +!AreaCheck("AR1512") +!AreaCheck("AR1513") +!AreaCheck("AR1514") +!AreaCheck("AR1515") +!AreaCheck("AR1516") +!AreaCheck("AR1501") +!AreaCheck("AR1502") +!AreaCheck("AR1503") +!AreaCheck("AR1504") +!AreaCheck("AR1505") +!AreaCheck("AR1506") +!AreaCheck("AR1507") +!AreaCheck("AR1508") +!AreaCheck("AR1509") +!AreaCheck("AR1510") +!AreaCheck("AR1511") +!AreaCheck("AR2100") +!AreaCheck("AR2101") +!AreaCheck("AR2102") +!AreaCheck("AR2200") +!AreaCheck("AR2202") +!AreaCheck("AR2203") +!AreaCheck("AR2204") +!AreaCheck("AR2205") +!AreaCheck("AR2206") +!AreaCheck("AR2207") +!AreaCheck("AR2208") +!AreaCheck("AR2209") +!AreaCheck("AR2210") +!AreaCheck("AR2300") +!AreaCheck("AR2400") +!AreaCheck("AR2401") +!AreaCheck("AR2402") +!AreaCheck("AR2900") +!AreaCheck("AR2901") +!AreaCheck("AR2902") +!AreaCheck("AR2903") +!AreaCheck("AR2904") +!AreaCheck("AR2905") +!AreaCheck("AR2906")~ THEN REPLY @4 DO ~SetGlobal("P#KivanJoined","GLOBAL",0) ~ + KivanWindSpear +END + +IF ~~ KivanWindSpear +SAY @5 += @6 +IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",1) +EscapeAreaMove("AR1200",894,3209,0) ~ EXIT +END + +IF ~~ THEN BEGIN PoliteRefuse +SAY @7 +IF ~~ THEN DO ~ LeaveParty() EscapeArea()~ EXIT +END + +IF ~~ THEN BEGIN PoliteRefuse1 +SAY @7 +IF ~~ THEN DO ~ LeaveParty() EscapeArea()~ EXIT +END + +IF ~NumTimesTalkedToGT(0)~ THEN BEGIN ReturnDialogue +SAY @8 +IF ~!InParty("P#DEHER")~ THEN REPLY @9 DO ~SetGlobal("P#KivanJoined","GLOBAL",1) +JoinParty()~ EXIT +IF ~InParty("P#DEHER")~ THEN REPLY @10 DO ~SetGlobal("P#KivanJoined","GLOBAL",1) +JoinParty() ActionOverride("P#DEHER",JoinParty())~ EXIT +IF ~~ THEN REPLY @11 GOTO RefusedAgain +IF ~!Global("P#DeherianaLives","GLOBAL",2) !Global("P#DeherianaLives","GLOBAL",6)~ THEN REPLY @3 GOTO PoliteRefuse1 +IF ~OR(2) Global("P#DeherianaLives","GLOBAL",2) Global("P#DeherianaLives","GLOBAL",6)~ THEN REPLY @3 GOTO PoliteRefuse1D +END + +IF ~~ THEN BEGIN RefusedAgain +SAY @12 +IF ~~ THEN EXIT +END +END + +CHAIN IF ~~ THEN P#KI25P PoliteRefuseD +@13 +== P#KI25P @14 +END +IF ~~ THEN DO ~ActionOverride("P#DEHER",LeaveParty()) ActionOverride("P#DEHER", EscapeArea()) LeaveParty() EscapeArea()~ EXIT + + +CHAIN IF ~~ THEN P#KI25P PoliteRefuse1D +@13 +== P#KI25P @14 +END +IF ~~ THEN DO ~ActionOverride("P#DEHER",LeaveParty()) ActionOverride("P#DEHER", EscapeArea()) LeaveParty() EscapeArea()~ EXIT + +BEGIN P#DE25P +APPEND P#DE25P +IF ~Global("DeherJoined","GLOBAL",1)~ THEN BEGIN KickOut +SAY @15 +IF ~~ THEN REPLY @16 DO ~JoinParty()~ EXIT +IF ~~ THEN REPLY @17 GOTO LeaveWKivan +END + +IF ~~ THEN BEGIN LeaveWKivan +SAY @18 +IF ~~ THEN DO ~ActionOverride("P#Kivan",LeaveParty()) ActionOverride("P#KIVAN", EscapeArea()) LeaveParty() EscapeArea()~ EXIT +END + +IF ~InParty("P#Kivan") NumTimesTalkedToGT(0)~ THEN BEGIN ReturnDeheriana +SAY @19 +IF ~~ THEN REPLY @20 DO ~SetGlobal("DeherJoined","GLOBAL",1) +JoinParty()~ EXIT +IF ~~ THEN REPLY @21 GOTO RefusedToTake +IF ~~ THEN REPLY @22 GOTO DropKivan +END + +IF ~Global("P#DehWelcome","GLOBAL",2)~ THEN BEGIN RefusedToTake +SAY @23 +IF ~~ THEN EXIT +END + +IF ~Global("P#DehWelcome","GLOBAL",2)~ DropKivan +SAY @24 +IF ~~ THEN DO ~ActionOverride("P#KIVAN",LeaveParty()) EscapeArea() ActionOverride("P#KIVAN",EscapeArea())~ +EXIT +END + +IF ~!InParty("P#Kivan") NumTimesTalkedToGT(0)~ THEN BEGIN NoKivan +SAY @25 ++ ~!Dead("P#Kivan") ~ + @26 + NoKivanJoin ++ ~Dead("P#Kivan")~ + @27 + KivDead +++ @28 + Thankyou +END + +IF ~~ NoKivanJoin +SAY @29 +IF ~~ THEN EXIT +END + +IF ~~ KivDead +SAY @30 +IF ~~ THEN DO ~EscapeArea()~ +EXIT +END + +IF ~~ Thankyou +SAY @31 +IF ~~ THEN EXIT +END + +END + +//Tob Bow Upgrade + +EXTEND_BOTTOM BOTSMITH 77 +IF ~PartyHasItem("bow20") +PartyHasItem("bow22") PartyHasItem("p#bow01")~ THEN GOTO P#HasAllThreeBows +IF ~PartyHasItem("bow20") +!PartyHasItem("bow22") PartyHasItem("p#bow01")~ THEN GOTO P#HasDarkfireOnly + IF ~!PartyHasItem("bow20") +PartyHasItem("bow22") PartyHasItem("p#bow01")~ THEN GOTO P#HasTaralashOnly + IF ~!PartyHasItem("bow20") +!PartyHasItem("bow22") PartyHasItem("p#bow01")~ THEN GOTO P#HasKivanBowOnly +END + +APPEND BOTSMITH + +IF ~~ THEN BEGIN P#HasAllThreeBows + SAY @32 + IF ~PartyGoldLT(5000)~ THEN REPLY @33 GOTO 10 + IF ~PartyGoldGT(4999)~ THEN REPLY @34 DO ~SetGlobal("ItemMaker","GLOBAL",19) +TakePartyGold(5000) +TakePartyItemNum("compon10",1) +DestroyItem("compon10") +TakePartyItemNum("bow20",1) +DestroyItem("bow20") +DestroyGold(5000)~ GOTO 11 + IF ~PartyGoldGT(4999)~ THEN REPLY @35 DO ~SetGlobal("ItemMaker","GLOBAL",20) +TakePartyGold(5000) +TakePartyItemNum("compon10",1) +DestroyItem("compon10") +TakePartyItemNum("bow22",1) +DestroyItem("bow22") +DestroyGold(5000)~ GOTO 11 + IF ~PartyGoldGT(4999)~ THEN REPLY @36 DO ~SetGlobal("ItemMaker","GLOBAL",87) +TakePartyGold(5000) +TakePartyItemNum("compon10",1) +DestroyItem("compon10") +TakePartyItemNum("p#bow01",1) +DestroyItem("p#bow01") +DestroyGold(5000)~ GOTO 11 + IF ~~ THEN REPLY @37 GOTO 82 +END + +IF ~~ THEN BEGIN P#HasDarkfireOnly + SAY @32 + IF ~PartyGoldLT(5000)~ THEN REPLY @33 GOTO 10 + IF ~PartyGoldGT(4999)~ THEN REPLY @34 DO ~SetGlobal("ItemMaker","GLOBAL",19) +TakePartyGold(5000) +TakePartyItemNum("compon10",1) +DestroyItem("compon10") +TakePartyItemNum("bow20",1) +DestroyItem("bow20") +DestroyGold(5000)~ GOTO 11 + IF ~PartyGoldGT(4999)~ THEN REPLY @36 DO ~SetGlobal("ItemMaker","GLOBAL",87) +TakePartyGold(5000) +TakePartyItemNum("compon10",1) +DestroyItem("compon10") +TakePartyItemNum("p#bow01",1) +DestroyItem("p#bow01") +DestroyGold(5000)~ GOTO 11 + IF ~~ THEN REPLY @37 GOTO 82 +END + +IF ~~ THEN BEGIN P#HasTaralashOnly + SAY @32 + IF ~PartyGoldLT(5000)~ THEN REPLY @33 GOTO 10 + IF ~PartyGoldGT(4999)~ THEN REPLY @35 DO ~SetGlobal("ItemMaker","GLOBAL",20) +TakePartyGold(5000) +TakePartyItemNum("compon10",1) +DestroyItem("compon10") +TakePartyItemNum("bow22",1) +DestroyItem("bow22") +DestroyGold(5000)~ GOTO 11 + IF ~PartyGoldGT(4999)~ THEN REPLY @36 DO ~SetGlobal("ItemMaker","GLOBAL",87) +TakePartyGold(5000) +TakePartyItemNum("compon10",1) +DestroyItem("compon10") +TakePartyItemNum("p#bow01",1) +DestroyItem("p#bow01") +DestroyGold(5000)~ GOTO 11 + IF ~~ THEN REPLY @37 GOTO 82 +END + +IF ~~ THEN BEGIN P#HasKivanBowOnly + SAY @38 + IF ~PartyGoldLT(5000)~ THEN REPLY @33 GOTO 10 + IF ~PartyGoldGT(4999)~ THEN REPLY @39 DO ~SetGlobal("ItemMaker","GLOBAL",87) +TakePartyGold(5000) +TakePartyItemNum("compon10",1) +DestroyItem("compon10") +TakePartyItemNum("p#bow01",1) +DestroyItem("p#bow01") +DestroyGold(5000)~ GOTO 11 + IF ~~ THEN REPLY @37 GOTO 82 +END + +END + +BEGIN P#KI25J +BEGIN P#DE25J + +//Interjections + +//Throne of Bhaal: + +EXTEND_BOTTOM FINSOL01 27 +IF ~InParty("P#Kivan") !Dead("P#Kivan") +!Global("P#KivanRomanceInactive","GLOBAL",1) Global("P#KivanRomanceActive","GLOBAL",2)~ THEN EXTERN ~P#KI25J~ P#KivThrone1 +END + +EXTEND_BOTTOM FINSOL01 29 +IF ~InParty("P#Kivan") !Dead("P#Kivan") +!Global("P#KivanRomanceInactive","GLOBAL",1) Global("P#KivanRomanceActive","GLOBAL",2)~ THEN EXTERN ~P#KI25J~ P#KivThrone2_29 +END + +EXTEND_BOTTOM FINSOL01 30 +IF ~InParty("P#Kivan") !Dead("P#Kivan") +!Global("P#KivanRomanceInactive","GLOBAL",1) Global("P#KivanRomanceActive","GLOBAL",2)~ THEN EXTERN ~P#KI25J~ P#KivThrone2_30 +END + +EXTEND_BOTTOM FINSOL01 31 +IF ~InParty("P#Kivan") !Dead("P#Kivan") +!Global("P#KivanRomanceInactive","GLOBAL",1) Global("P#KivanRomanceActive","GLOBAL",2)~ THEN EXTERN ~P#KI25J~ P#KivThrone2_31 +END + +EXTEND_BOTTOM FINSOL01 32 +IF ~InParty("P#Kivan") !Dead("P#Kivan") +!Global("P#KivanRomanceInactive","GLOBAL",1) Global("P#KivanRomanceActive","GLOBAL",2)~ THEN EXTERN ~P#KI25J~ P#KivThrone3 +END + +APPEND P#KI25J + +IF ~~ P#KivThrone1 +SAY @40 += @41 += @42 +IF ~Race(Player1,ELF)~ THEN GOTO P#KivThrone1Elf +IF ~!Race(Player1,ELF)~ THEN GOTO P#KivThrone1NotElf +END + +IF ~~ P#KivThrone1NotElf +SAY @43 += @44 +++ @45 + KiEnd1.1 +++ @46 + KiEnd1.1 +++ @47 + KiEnd1.1 +++ @48 + KiEnd1.2 +++ @49 + KiEnd1.3 +++ @50 + KiEnd1.3 +++ @51 + KiEnd1.4 +END + +IF ~~ P#KivThrone1Elf +SAY @52 +++ @45 + KiEnd1.1 +++ @46 + KiEnd1.1 +++ @47 + KiEnd1.1 +++ @48 + KiEnd1.2 +++ @49 + KiEnd1.3 +++ @50 + KiEnd1.3 +++ @51 + KiEnd1.4 +END + + +IF ~~ KiEnd1.1 +SAY @53 += @54 +COPY_TRANS ~FINSOL01~ 27 +END + +IF ~~ KiEnd1.2 +SAY @55 += @54 +COPY_TRANS ~FINSOL01~ 27 +END + +IF ~~ KiEnd1.3 +SAY @56 += @54 +COPY_TRANS ~FINSOL01~ 27 +END + +IF ~~ KiEnd1.4 +SAY @57 += @54 +COPY_TRANS ~FINSOL01~ 27 +END + +// + +IF ~~ P#KivThrone3 +SAY @58 +COPY_TRANS ~FINSOL01~ 32 +END + +IF ~~ P#KivThrone2_29 +SAY @59 +COPY_TRANS ~FINSOL01~ 29 +END + +IF ~~ P#KivThrone2_30 +SAY @59 +COPY_TRANS ~FINSOL01~ 30 +END + +IF ~~ P#KivThrone2_31 +SAY @59 +COPY_TRANS ~FINSOL01~ 31 +END + +END + +//Watcher's Keep + +I_C_T2 GORDEMO 1 P#DehWKIO +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @60 +END + +I_C_T2 GORDEMO 1 P#KivWKIO +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @61 +END + +I_C_T2 GORDEMO 18 P#KivWKIO1 +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @62 +END + +I_C_T2 GORDEMO 24 P#KivWKIO2 +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @63 +END + +I_C_T2 GORCHR 11 P#DehWKChrDemon +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @64 +END + +I_C_T2 GORCHR 6 P#KivWKCHR +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @65 +END + +I_C_T2 GORCAR 15 P#KivWKCarston +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @66 +END + +I_C_T2 GORCAR 15 P#DehWKCarston +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @67 +END + +I_C_T2 GORCAMB 20 P#DehWKDeck +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @68 +END + +I_C_T2 GORAPR 10 P#KivWKApprentice +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @69 +END + +I_C_T2 GORAPP1 10 P#KivWKFinal +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @70 +END + +I_C_T2 GORAPP1 10 P#DehWKFinal +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @71 +END + +INTERJECT GORSUC01 8 P#KivWKSuccubus +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN") +!Global("P#KivanRomanceInactive","GLOBAL",1) Global("P#KivanRomanceActive","GLOBAL",2) +~ THEN @72 +END +++ @73 EXTERN P#KI25J KiSucc1 +++ @74 EXTERN P#KI25J KiSucc2 +++ @75 EXTERN P#KI25J KiSucc3 +++ @76 EXTERN P#KI25J KiSucc4 + + +APPEND P#KI25J + +IF ~~ KiSucc1 +SAY @77 +COPY_TRANS GORSUC01 8 +END + +IF ~~ KiSucc2 +SAY @78 +COPY_TRANS GORSUC01 8 +END + +IF ~~ KiSucc3 +SAY @79 +COPY_TRANS GORSUC01 8 +END + +IF ~~ KiSucc4 +SAY @80 +COPY_TRANS GORSUC01 8 +END + +END + +I_C_T2 GORMAD1 39 P#KivWKYakman +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @81 +END + +I_C_T2 GORMAD1 40 P#KivWKYakman +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @81 +END + +I_C_T2 GORPOL1 17 P#DehWKPol +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @82 +END + +I_C_T2 GORMAD1 2 P#DehWKYakman +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @83 +END + +I_C_T2 GORIMP01 4 P#DehWKImp +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @84 +END + +//Abzigail + +I_C_T2 AMELM01 16 P#KivElminster +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @85 += @86 += @87 +END + +I_C_T2 BAZEYE01 10 P#DehEyes +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @88 +END + + +I_C_T2 BAZDRA03 12 P#DehDragonAbz +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @89 +== BAZDRA03 IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @90 +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @91 +== BAZDRA03 IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @92 +END + +//Sendai + +I_C_T SENBEH01 3 P#DehDrowBeholder +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @93 +END + +I_C_T2 SENPRI 4 P#DehDrowPristess +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @94 +END + +I_C_T2 SENGUA01 16 P#DehDrowGuard +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @95 +END + +I_C_T2 SENGUA01 19 P#DehDrowGuard +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @95 +END + +//Amkethran + +I_C_T2 AMSAEMON 3 P#KivanSaemon +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @96 +== AMSAEMON IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @97 +END + +I_C_T2 AMASANA 3 P#DehAsana +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @98 +END + +I_C_T2 AMTGEN01 1 P#KivanJamis +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @99 +== AMTGEN01 IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @100 +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @101 +== AMTGEN01 IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @102 +END + +I_C_T2 AMCLER01 8 P#KivanClericAm +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @103 +END + +//Yaga Shura + +I_C_T2 HGNYA01 30 P#DehNyaleeSpirits +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @104 +END + +I_C_T2 YAGCON 11 P#KivanNortherner +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN") !Global("P#KivanRomanceInactive","GLOBAL",1) Global("P#KivanRomanceActive","GLOBAL",2)~ THEN @105 +END + +I_C_T2 YAGA01 6 P#KivanYaga +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @106 +END + +//Saradush + +INTERJECT SARMEL01 18 P#KivanMelissan1 +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN") ~ THEN @107 +END +++ @108 EXTERN P#KI25J KiGro1 +++ @109 EXTERN P#KI25J KiGro2 +++ @110 EXTERN P#KI25J KiGro3 +++ @111 EXTERN P#KI25J KiGro4 + + +APPEND P#KI25J + +IF ~~ KiGro1 +SAY @112 +COPY_TRANS SARMEL01 18 +END + +IF ~~ KiGro2 +SAY @113 +COPY_TRANS SARMEL01 18 +END + +IF ~~ KiGro3 +SAY @114 +COPY_TRANS SARMEL01 18 +END + +IF ~~ KiGro4 +SAY @115 +COPY_TRANS SARMEL01 18 +END + +END + +I_C_T2 GROMNIR 3 P#KivanGromnir +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN") ~ THEN @116 +END + +I_C_T2 25SPELL 0 P#DehArcana +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @118 +END + +I_C_T2 SARCNT01 10 P#DehCountess +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @119 +END + +I_C_T2 SARKIS01 22 P#DehKiser +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @120 +END + +I_C_T2 ORPHAN2 3 P#DehFezhak +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @121 +END + +I_C_T2 SARTEM01 20 P#KivanTemple +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN") ~ THEN @122 +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @123 +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN") ~ THEN @124 +END + +I_C_T2 SARELF01 2 P#KivanElfMale +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN") ~ THEN @125 +END + +I_C_T2 SARELF03 0 P#DehElfFemme +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @126 +END + +I_C_T2 SARVIE01 7 P#DehViekang +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @127 +END + +//Pocket Plane// + +I_C_T2 BOTSMITH 1 P#DehCespenar +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @128 += @129 +END + +I_C_T2 SAREV25A 1 P#KivanSarevokIntro +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN") ~ THEN @130 +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @131 +== SAREV25A IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @132 +END + +I_C_T2 SAREV25A 2 P#KivanSarevokIntro +== P#KI25J IF ~InParty("P#kivan") InMyArea("P#KIVAN") ~ THEN @130 +== P#DE25J IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @131 +== SAREV25A IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @132 +END + +//Heart// + +EXTEND_BOTTOM HGNYA01 6 +IF ~InParty("P#kivan") InMyArea("P#KIVAN") PartyHasItem("P#TAHE")~ THEN GOTO P#KivanHeart +END + +APPEND HGNYA01 + +IF WEIGHT #-1 ~ +OR(2) +Global("P#KivanInterruptNyalee","GLOBAL",1) +Global("P#NyaleeTakesHeart","LOCALS",1) +~ THEN BEGIN 7New + SAY @133 + IF ~~ THEN REPLY @134 DO ~SetGlobal("P#KivanInterruptNyalee","GLOBAL",2) SetGlobal("P#NyaleeTakesHeart","LOCALS",2)~ GOTO 8 + IF ~~ THEN REPLY @135 DO ~SetGlobal("P#KivanInterruptNyalee","GLOBAL",2) SetGlobal("P#NyaleeTakesHeart","LOCALS",2)~ GOTO 9 + IF ~~ THEN REPLY @136 DO ~SetGlobal("P#KivanInterruptNyalee","GLOBAL",2) SetGlobal("P#NyaleeTakesHeart","LOCALS",2)~ GOTO 11 + IF ~~ THEN REPLY @137 DO ~SetGlobal("P#KivanInterruptNyalee","GLOBAL",2) SetGlobal("P#NyaleeTakesHeart","LOCALS",2)~ GOTO 10 +END + +IF ~~ P#KivanHeart +SAY @138 ++ ~InParty("P#DEHER")~+ @139 EXTERN P#DE25J KiNya1.1 ++ ~InParty("P#DEHER")~+ @140 EXTERN P#DE25J KiNya1.1 ++ ~InParty("P#DEHER")~+ @141 EXTERN P#DE25J KiNya1.1 ++ ~!InParty("P#DEHER")~+ @139 + KiNya1.2 ++ ~!InParty("P#DEHER")~+ @140 + KiNya1.2 ++ ~!InParty("P#DEHER")~+ @141 + KiNya1.2 +++ @142 + KiNya1.3 +END + +IF ~~ KiNya1.2 +SAY @143 +IF ~~ THEN GOTO 7 +END + +IF ~~ KiNya1.3 +SAY @144 += @145 +++ @146 EXTERN P#KI25J KiNya1.5 +++ @147 + KiNya1.4 +++ @148 + KiNya1.6 +END + +IF ~~ KiNya1.4 +SAY @149 +IF ~~ THEN DO ~ +DialogInterrupt(FALSE) +SetInterrupt(FALSE) +SetGlobal("P#NyaleeTakesHeart","LOCALS",1) +TakePartyItem("P#TAHE") +DestroyItem("P#TAHE") +PlaySound("CAS_P06") +Wait(2) +CreateVisualEffectObject("SPGENHLB",Myself) +Wait(3) +CreateVisualEffectObject("SPFDEATH","P#Kivan") +ActionOverride("P#Kivan",PlayDead(60)) +Wait(3) +ReallyForceSpellRES("SPWISH04","P#KIVAN") +ReallyForceSpellRES("SPWISH04","P#KIVAN") +ReallyForceSpellRES("SPWISH04","P#KIVAN") +ReallyForceSpellRES("SPWISH04","P#KIVAN") +Wait(3) +CreateVisualEffectObject("SPFINODI","P#Kivan") +Wait(2) +DialogInterrupt(TRUE) +SetInterrupt(TRUE) +StartDialogueNoSet([PC])~ EXIT +END + +IF ~~ KiNya1.6 +SAY @150 +IF ~~ THEN GOTO 7 +END + +END + +CHAIN P#DE25J KiNya1.1 +@151 +== HGNYA01 @152 += @153 +END +++ @146 EXTERN P#KI25J KiNya1.5 +++ @147 EXTERN HGNYA01 KiNya1.4 +++ @154 EXTERN HGNYA01 KiNya1.6 + +CHAIN P#KI25J KiNya1.5 +@155 +END +IF ~~ THEN DO ~SetGlobal("P#KivanInterruptNyalee","GLOBAL",1) LeaveParty() Enemy() ActionOverride("P#DEHER",LeaveParty()) ActionOverride("P#DEHER",Enemy())~ EXIT + +//Watcher's Keep in SoA + +I_C_T2 GORDEMO 1 P#DehWKIO +== P#DEHJ IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @60 +END + +I_C_T2 GORDEMO 1 P#KivWKIO +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @61 +END + +I_C_T2 GORDEMO 18 P#KivWKIO1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @62 +END + +I_C_T2 GORDEMO 24 P#KivWKIO2 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @63 +END + +I_C_T2 GORCHR 11 P#DehWKChrDemon +== P#DEHJ IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @64 +END + +I_C_T2 GORCHR 6 P#KivWKCHR +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @65 +END + +I_C_T2 GORCAR 15 P#KivWKCarston +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @66 +END + +I_C_T2 GORCAR 15 P#DehWKCarston +== P#DEHJ IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @67 +END + +I_C_T2 GORCAMB 20 P#DehWKDeck +== P#DEHJ IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @68 +END + +I_C_T2 GORAPR 10 P#KivWKApprentice +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @69 +END + +I_C_T2 GORAPP1 10 P#KivWKFinal +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @70 +END + +I_C_T2 GORAPP1 10 P#DehWKFinal +== P#DEHJ IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @71 +END + +INTERJECT GORSUC01 8 P#KivWKSuccubus +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN") +!Global("P#KivanRomanceInactive","GLOBAL",1) Global("P#KivanRomanceActive","GLOBAL",2) +~ THEN @72 +END +++ @73 EXTERN P#KIVJ KiSucc1 +++ @74 EXTERN P#KIVJ KiSucc2 +++ @75 EXTERN P#KIVJ KiSucc3 +++ @76 EXTERN P#KIVJ KiSucc4 + + +APPEND P#KIVJ + +IF ~~ KiSucc1 +SAY @77 +COPY_TRANS GORSUC01 8 +END + +IF ~~ KiSucc2 +SAY @78 +COPY_TRANS GORSUC01 8 +END + +IF ~~ KiSucc3 +SAY @79 +COPY_TRANS GORSUC01 8 +END + +IF ~~ KiSucc4 +SAY @80 +COPY_TRANS GORSUC01 8 +END + +END + +I_C_T2 GORMAD1 39 P#KivWKYakman +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @81 +END + +I_C_T2 GORMAD1 40 P#KivWKYakman +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @81 +END + +I_C_T2 GORPOL1 17 P#DehWKPol +== P#DEHJ IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @82 +END + +I_C_T2 GORMAD1 2 P#DehWKYakman +== P#DEHJ IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @83 +END + +I_C_T2 GORIMP01 4 P#DehWKImp +== P#DEHJ IF ~InParty("P#DEHER") InMyArea("P#DEHER") ~ THEN @84 +END + +//Volo in Saradush //from 156// + +EXTEND_BOTTOM SARVOLO 9 +IF ~InParty("P#Kivan") +Global("P#KivanRomanceActive","GLOBAL",2)~ THEN REPLY @157 GOTO VoloKivan1 + IF ~InParty("P#Kivan") +OR(2) !Global("P#KivanRomanceActive","GLOBAL",0) Global("P#KivanRomanceInactive","GLOBAL",1)~ THEN REPLY @157 GOTO VoloKivan2 +IF ~InParty("P#DEHER")~ THEN REPLY @158 GOTO VoloDeheriana +END + +//Spirit of Fate + +EXTEND_TOP FATESP 6 ++ ~!InMyArea("P#KIVAN") +Global("P#KivanSummoned","GLOBAL",0)~ + @164 DO ~SetGlobal("P#KivanSummoned","GLOBAL",2)~ + 7 ++ ~!InMyArea("P#DEHER") +Global("P#DeherianaSummoned","GLOBAL",0)~ + @165 DO ~SetGlobal("P#DeherianaSummoned","GLOBAL",2)~ + 7 +END + +APPEND SARVOLO + +IF ~~ THEN BEGIN VoloKivan1 + SAY @159 + IF ~!IsValidForPartyDialogue("P#Kivan")~ THEN GOTO 9 + IF ~IsValidForPartyDialogue("P#KIVAN")~ THEN EXTERN P#KI25J VoloReaction1 +END + +IF ~~ THEN BEGIN VoloKivan2 + SAY @160 + IF ~!IsValidForPartyDialogue("P#Kivan")~ THEN GOTO 9 + IF ~IsValidForPartyDialogue("P#KIVAN")~ THEN EXTERN P#KI25J VoloReaction1 +END + + IF ~~ THEN BEGIN VoloDeheriana + SAY @161 + IF ~!IsValidForPartyDialogue("P#DEHER")~ THEN GOTO 9 + IF ~IsValidForPartyDialogue("P#DEHER")~ THEN EXTERN P#DE25J VoloReaction2 +END + +END + +APPEND P#KI25J + +IF ~~ THEN BEGIN VoloReaction1 + SAY @162 + IF ~~ THEN EXTERN SARVOLO 9 +END + +IF ~Global("P#KivanAdric","GLOBAL",1)~ THEN BEGIN P#KiAd +SAY @117 +IF ~~ THEN DO ~SetGlobal("P#KivanAdric","GLOBAL",2)~EXIT +END + +END + +APPEND P#DE25J + +IF ~~ THEN BEGIN VoloReaction2 + SAY @163 + IF ~~ THEN EXTERN SARVOLO 9 +END + +END + +/* +APPEND FATESP + +IF ~~ P#FSDehDead +SAY @166 +IF ~~ THEN GOTO 6 +END +END +*/ diff --git a/kivan/d/p#kift25.d b/kivan/d/p#kift25.d new file mode 100644 index 0000000..5aa4f4d --- /dev/null +++ b/kivan/d/p#kift25.d @@ -0,0 +1,1171 @@ +////////////////////////////Friendship Sequence////////////////////// + +//Prophets, No special conditions// + +APPEND P#KI25J + +IF WEIGHT #990 +~Global("P#KiFRTOBTalk","GLOBAL",2)~ THEN BEGIN KivanProphets +SAY @0 +++ @1 + P#TOBFT1.1 +++ @2 + P#TOBFT1.2 +++ @3 + P#TOBFT1.3 ++ ~Global("P#KivanRomanceActive","GLOBAL",2) !Global("P#KivanRomanceInactive","GLOBAL",1)~ + @4 + P#TOBFT1.4 +END + +IF ~~ P#TOBFT1.13 +SAY@5 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT1.12 +SAY@6 +IF ~~ THEN EXIT +END + + +IF ~~ P#TOBFT1.11 +SAY @7 += @8 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT1.10 +SAY @9 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT1.9 +SAY @10 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT1.8 +SAY @11 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT1.7 +SAY @12 +++ @13 + P#TOBFT1.11 +++ @14 + P#TOBFT1.12 +++ @15 + P#TOBFT1.13 +END + +IF ~~ P#TOBFT1.6 +SAY @16 +=@17 +++ @18 + P#TOBFT1.8 +++ @19 + P#TOBFT1.9 +++ @20 + P#TOBFT1.10 +++ @21 + P#TOBFT1.5 +END + +IF ~~ P#TOBFT1.5 +SAY @22 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT1.4 +SAY @23 +++ @24 + P#TOBFT1.7 +++ @25 + P#TOBFT1.11 +++ @14 + P#TOBFT1.12 +++ @26 + P#TOBFT1.13 +END + +IF ~~ P#TOBFT1.3 +SAY @27 +++ @18 + P#TOBFT1.8 +++ @19 + P#TOBFT1.9 +++ @20 + P#TOBFT1.10 +++ @21 + P#TOBFT1.5 +END + + +IF ~~ P#TOBFT1.2 +SAY @28 +++ @21 + P#TOBFT1.5 +++ @29 + P#TOBFT1.3 +++ @30 + P#TOBFT1.6 ++ ~Global("P#KivanRomanceActive","GLOBAL",2) !Global("P#KivanRomanceInactive","GLOBAL",1)~ + @31 + P#TOBFT1.7 +END + + +IF ~~ P#TOBFT1.1 +SAY @32 +++ @21 + P#TOBFT1.5 +++ @29 + P#TOBFT1.3 +++ @30 + P#TOBFT1.6 ++ ~Global("P#KivanRomanceActive","GLOBAL",2) !Global("P#KivanRomanceInactive","GLOBAL",1)~ + @33 + P#TOBFT1.7 +END + +///Irenicus and Ellesime/// + +IF WEIGHT #990 +~Global("P#KiFRTOBTalk","GLOBAL",4)~ THEN BEGIN KivanIrenicusAndEllesime +SAY @34 +++ @35 + P#TOBFT2.1 +++ @36 + P#TOBFT2.2 +++ @37 + P#TOBFT2.3 +++ @38 + P#TOBFT2.4 ++ ~Class(Player1,BARD_ALL)~ + @39 + P#TOBFT2.5 +END + +IF ~~ P#TOBFT2.21 +SAY @40 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT2.20 +SAY @41 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT2.19 +SAY @42 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT2.18 +SAY @43 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT2.17 +SAY @44 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT2.16 +SAY @45 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT2.15 +SAY @46 +IF ~~ THEN GOTO P#TOBFT2.8 +END + +IF ~~ P#TOBFT2.14 +SAY @47 += @48 +IF ~~ THEN GOTO P#TOBFT2.8 +END + +IF ~~ P#TOBFT2.13 +SAY @49 +IF ~~ THEN GOTO P#TOBFT2.8 +END + +IF ~~ P#TOBFT2.12 +SAY @50 +++ @51 EXIT +++ @52 + P#TOBFT2.8 +++ @53 + P#TOBFT2.21 +END + +IF ~~ P#TOBFT2.11 +SAY @54 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT2.10 +SAY @55 +++ @56 + P#TOBFT2.8 +++ @57 + P#TOBFT2.11 +END + +IF ~~ P#TOBFT2.9 +SAY @58 += @59 +++ @60 + P#TOBFT2.16 +++ @61 + P#TOBFT2.17 +++ @62 + P#TOBFT2.19 +++ @63 + P#TOBFT2.20 +++ @64 + P#TOBFT2.11 +END + +IF ~~ P#TOBFT2.8 +SAY @65 +++ @60 + P#TOBFT2.16 +++ @61 + P#TOBFT2.17 +++ @66 + P#TOBFT2.18 +++ @64 + P#TOBFT2.11 +END + +IF ~~ P#TOBFT2.7 +SAY @59 +++ @60 + P#TOBFT2.16 +++ @61 + P#TOBFT2.17 +++ @67 + P#TOBFT2.18 +++ @64 + P#TOBFT2.11 +END + +IF ~~ P#TOBFT2.6 +SAY @68 +++ @60 + P#TOBFT2.16 +++ @61 + P#TOBFT2.17 +++ @69 + P#TOBFT2.18 +++ @64 + P#TOBFT2.11 +END + +IF ~~ P#TOBFT2.5 +SAY @70 +++ @71 + P#TOBFT2.13 +++ @72 + P#TOBFT2.14 +++ @73 + P#TOBFT2.15 +END + +IF ~~ P#TOBFT2.4 +SAY @74 +IF ~~ THEN GOTO P#TOBFT2.3 +END + +IF ~~ P#TOBFT2.3 +SAY @75 +++ @76 + P#TOBFT2.1 +++ @77 + P#TOBFT2.9 +++ @78 + P#TOBFT2.11 ++ ~Global("P#KivanRomanceActive","GLOBAL",2) !Global("P#KivanRomanceInactive","GLOBAL",1)~ + @79 + P#TOBFT2.12 +END + +IF ~~ P#TOBFT2.2 +SAY @80 +++ @81 + P#TOBFT2.1 +++ @82 + P#TOBFT2.9 +++ @83 + P#TOBFT2.10 +++ @84 + P#TOBFT2.11 +END + +IF ~~ P#TOBFT2.1 +SAY @85 +++ @86 + P#TOBFT2.6 +++ @87 + P#TOBFT2.7 +++ @88 + P#TOBFT2.8 +++ @89 + P#TOBFT2.11 +END + +//Like the leaves blown by the wind// +//FT3// + +IF WEIGHT #990 +~Global("P#KiFRTOBTalk","GLOBAL",6)~ THEN BEGIN KivanLeavesOnTheWind +SAY @90 ++ ~InParty("P#DEHER")~+ @91 + P#TOBFT3.1 ++ ~Global("P#KivanRomanceActive","GLOBAL",2) !Global("P#KivanRomanceInactive","GLOBAL",1)~+ @92 + P#TOBFT3.2 ++ ~!InParty("P#DEHER") OR(2) !Global("P#KivanRomanceActive","GLOBAL",2) !Global("P#KivanRomanceInactive","GLOBAL",1)~+ @93 EXIT +END + +IF ~~ P#TOBFT3.14 +SAY @94 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT3.13 +SAY @95 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT3.12 +SAY @96 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT3.11 +SAY @97 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT3.10 +SAY @98 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT3.9 +SAY @99 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT3.8 +SAY @100 +++ @101 + P#TOBFT3.14 +++ @102 + P#TOBFT3.10 +END + +IF ~~ P#TOBFT3.7 +SAY @103 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT3.6 +SAY @104 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT3.5 +SAY @105 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT3.4 +SAY @106 ++ ~Gender(Player1,MALE)~ + @107 + P#TOBFT3.8 ++ ~Gender(Player1,MALE)~ + @108 + P#TOBFT3.9 ++ ~Gender(Player1,MALE)~ + @109 + P#TOBFT3.10 ++ ~Gender(Player1,FEMALE)~ + @110 + P#TOBFT3.11 ++ ~Gender(Player1,FEMALE)~ + @108 + P#TOBFT3.12 ++ ~Gender(Player1,FEMALE)~ + @111 + P#TOBFT3.13 +END + +IF ~~ P#TOBFT3.3 +SAY @112 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT3.2 +SAY @113 +++ @114 + P#TOBFT3.6 +++ @115 + P#TOBFT3.7 +++ @116 + P#TOBFT3.5 +END + +IF ~~ P#TOBFT3.1 +SAY @117 +++ @118 + P#TOBFT3.3 +++ @119 + P#TOBFT3.4 +++ @116 + P#TOBFT3.5 +END + +//FT4: One cannot hide from war + +IF WEIGHT #990 +~Global("P#KiFRTOBTalk","GLOBAL",8)~ THEN BEGIN KivanHideFromWar +SAY @120 +++ @121 + P#TOBFT4.1 +++ @122 + P#TOBFT4.2 +++ @123 + P#TOBFT4.3 +++ @124 + P#TOBFT4.4 +END + +IF ~~ P#TOBFT4.12R +SAY @125 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT4.12 +SAY @126 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT4.11 +SAY @127 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT4.10 +SAY @128 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT4.9 +SAY @129 +IF ~~ THEN EXIT +END + +IF ~~ P#TOBFT4.8 +SAY @130 +++ @131 + P#TOBFT4.9 +++ @132 + P#TOBFT4.10 +++ @133 + P#TOBFT4.11 ++ ~Global("P#KivanRomanceActive","GLOBAL",2) !Global("P#KivanRomanceInactive","GLOBAL",1)~+ @134 + P#TOBFT4.12R ++ ~!Global("P#KivanRomanceActive","GLOBAL",2) !Global("P#KivanRomanceInactive","GLOBAL",1)~+ @134 + P#TOBFT4.12 +END + +IF ~~ P#TOBFT4.7 +SAY @135 +++ @131 + P#TOBFT4.9 +++ @132 + P#TOBFT4.10 +++ @133 + P#TOBFT4.11 ++ ~Global("P#KivanRomanceActive","GLOBAL",2) !Global("P#KivanRomanceInactive","GLOBAL",1)~+ @134 + P#TOBFT4.12R ++ ~!Global("P#KivanRomanceActive","GLOBAL",2) !Global("P#KivanRomanceInactive","GLOBAL",1)~+ @134 + P#TOBFT4.12 +END + +IF ~~ P#TOBFT4.6 +SAY @136 += @137 +++ @131 + P#TOBFT4.9 +++ @132 + P#TOBFT4.10 +++ @133 + P#TOBFT4.11 ++ ~Global("P#KivanRomanceActive","GLOBAL",2) !Global("P#KivanRomanceInactive","GLOBAL",1)~+ @134 + P#TOBFT4.12R ++ ~!Global("P#KivanRomanceActive","GLOBAL",2) !Global("P#KivanRomanceInactive","GLOBAL",1)~+ @134 + P#TOBFT4.12 +END + +IF ~~ P#TOBFT4.5 +SAY @138 += @139 +++ @140 + P#TOBFT4.9 +++ @132 + P#TOBFT4.10 +++ @133 + P#TOBFT4.11 ++ ~Global("P#KivanRomanceActive","GLOBAL",2) !Global("P#KivanRomanceInactive","GLOBAL",1)~+ @134 + P#TOBFT4.12R ++ ~!Global("P#KivanRomanceActive","GLOBAL",2) !Global("P#KivanRomanceInactive","GLOBAL",1)~+ @134 + P#TOBFT4.12 +END + +IF ~~ P#TOBFT4.4 +SAY @141 +++ @142 + P#TOBFT4.8 +++ @143 + P#TOBFT4.1 +++ @144 + P#TOBFT4.9 +END + +IF ~~ P#TOBFT4.3 +SAY @145 +IF ~~ THEN GOTO P#TOBFT4.1 +END + +IF ~~ P#TOBFT4.2 +SAY @146 += @147 +IF ~~ THEN GOTO P#TOBFT4.1 +END + +IF ~~ P#TOBFT4.1 +SAY @148 +++ @149 + P#TOBFT4.5 +++ @150 + P#TOBFT4.6 +++ @151 + P#TOBFT4.7 +END + +//Happy endings - 5 + +IF WEIGHT #990 +~Global("P#KiFRTOBTalk","GLOBAL",10)~ THEN BEGIN KivanHappyEndings +SAY @152 +++ @153 + FTTOB5.1 +++ @154 + FTTOB5.2 +++ @155 + FTTOB5.3 +++ @156 + FTTOB5.4 +END + +IF ~~ FTTOB5.15 +SAY @157 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB5.14 +SAY @158 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB5.13 +SAY @159 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB5.12 +SAY @160 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB5.11 +SAY @161 +++ @162 + FTTOB5.15 +++ @163 + FTTOB5.15 +++ @164 + FTTOB5.15 +END + +IF ~~ FTTOB5.10 +SAY @165 += @166 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB5.9 +SAY @167 += @168 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB5.8 +SAY @169 +++ @170 + FTTOB5.7 +++ @171 + FTTOB5.12 ++ ~Class(Player1,BARD_ALL)~+ @172 + FTTOB5.13 +++ @173 + FTTOB5.14 +END + +IF ~~ FTTOB5.7 +SAY @174 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB5.6 +SAY @175 +++ @176 + FTTOB5.5 +++ @177 + FTTOB5.11 +++ @178 + FTTOB5.7 +END + +IF ~~ FTTOB5.5 +SAY @179 += @180 +IF ~~ THEN EXIT +END + + +IF ~~ FTTOB5.4 +SAY @181 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB5.3 +SAY @182 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB5.2 +SAY @183 +++ @184 + FTTOB5.7 +++ @185 + FTTOB5.8 +++ @186 + FTTOB5.9 +++ @187 + FTTOB5.10 +END + +IF ~~ FTTOB5.1 +SAY @188 +++ @189 + FTTOB5.5 +++ @190 + FTTOB5.6 +++ @191 + FTTOB5.7 +END + +////////////////////////////////////////////////// +////Conditional Friendship Talks////////////////// +///////////////////////////////////////////////// + +//Melissan, entered Amkethran// + +IF WEIGHT #990 +~Global("P#KiMelissanTalk","GLOBAL",1)~ THEN BEGIN KivanMelissan +SAY @192 +++ @193 DO ~SetGlobal("P#KiMelissanTalk","GLOBAL",2)~ + FTTOB6.1 +++ @194 DO ~SetGlobal("P#KiMelissanTalk","GLOBAL",2)~ + FTTOB6.2 +++ @195 DO ~SetGlobal("P#KiMelissanTalk","GLOBAL",2)~ + FTTOB6.3 +++ @196 DO ~SetGlobal("P#KiMelissanTalk","GLOBAL",2)~ + FTTOB6.4 +++ @197 DO ~SetGlobal("P#KiMelissanTalk","GLOBAL",2)~ + FTTOB6.5 +END + +IF ~~ FTTOB6.15 +SAY @198 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB6.14 +SAY @199 +IF ~~ THEN EXIT +END + + +IF ~~ FTTOB6.13 +SAY @200 +IF ~~ THEN GOTO FTTOB6.4 +END + +IF ~~ FTTOB6.12 +SAY @201 +IF ~~ THEN GOTO FTTOB6.4 +END + +IF ~~ FTTOB6.11 +SAY @202 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB6.10 +SAY @203 +++ @204 + FTTOB6.15 +++ @205 + FTTOB6.11 +++ @206 EXIT +END + +IF ~~ FTTOB6.9 +SAY @203 +++ @207 + FTTOB6.14 +++ @205 + FTTOB6.11 +++ @206 EXIT +END + +IF ~~ FTTOB6.8 +SAY @208 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB6.7 +SAY @209 +++ @210 + FTTOB6.6 +++ @211 EXIT +++ @212 + FTTOB6.8 +END + +IF ~~ FTTOB6.6 +SAY @213 +++ @214 + FTTOB6.8 +++ @215 + FTTOB6.2 +++ @216 + FTTOB6.3 +++ @217 + FTTOB6.4 +++ @218 + FTTOB6.5 +END + +IF ~~ FTTOB6.5 +SAY @219 +++ @220 EXIT ++ ~Gender(Player1,MALE)~ + @221 + FTTOB6.9 ++ ~Gender(Player1,FEMALE)~ + @221 + FTTOB6.10 +++ @222 + FTTOB6.11 +END + +IF ~~ FTTOB6.4 +SAY @223 +++ @224 EXIT ++ ~Gender(Player1,MALE)~ + @221 + FTTOB6.9 ++ ~Gender(Player1,FEMALE)~ + @221 + FTTOB6.10 +++ @222 + FTTOB6.11 +END + +IF ~~ FTTOB6.3 +SAY @225 +++ @226 + FTTOB6.12 +++ @194 + FTTOB6.2 +++ @227 + FTTOB6.13 +END + +IF ~~ FTTOB6.2 +SAY @228 +++ @224 EXIT ++ ~Gender(Player1,MALE)~ + @221 + FTTOB6.9 ++ ~Gender(Player1,FEMALE)~ + @221 + FTTOB6.10 +++ @222 + FTTOB6.11 +END + +IF ~~ FTTOB6.1 +SAY @229 +++ @230 + FTTOB6.6 +++ @231 + FTTOB6.7 +++ @232 + FTTOB6.8 +END + + +//Saradush fall// + +IF WEIGHT #990 +~Global("P#KiSaradushTalk","GLOBAL",2)~ THEN BEGIN KivanSaradush +SAY @233 +++ @234 DO ~SetGlobal("P#KiSaradushTalk","GLOBAL",3)~ + FTTOB7.1 +++ @235 DO ~SetGlobal("P#KiSaradushTalk","GLOBAL",3)~ + FTTOB7.2 +++ @236 DO ~SetGlobal("P#KiSaradushTalk","GLOBAL",3)~ + FTTOB7.3 +++ @237 DO ~SetGlobal("P#KiSaradushTalk","GLOBAL",3)~ + FTTOB7.4 +END + +IF ~~ FTTOB7.18 +SAY @238 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB7.17 +SAY @239 +IF ~~ THEN DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +END + +IF ~~ FTTOB7.16 +SAY @240 +++ @241 + FTTOB7.15 +++ @242 + FTTOB7.17 +END + +IF ~~ FTTOB7.15 +SAY @243 += @244 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB7.14 +SAY @245 +IF ~~ THEN DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +END + +IF ~~ FTTOB7.13 +SAY @246 +IF ~~ THEN DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +END + +IF ~~ FTTOB7.12 +SAY @247 +IF ~~ THEN DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +END + +IF ~~ FTTOB7.11 +SAY @248 +IF ~~ THEN GOTO FTTOB7.9 +END + +IF ~~ FTTOB7.10 +SAY @249 +IF ~~ THEN GOTO FTTOB7.9 +END + +IF ~~ FTTOB7.9 +SAY @250 += @251 ++ ~!Race(Player1,ELF)~ + @252 + FTTOB7.14 +++ @253 + FTTOB7.15 +++ @254 + FTTOB7.16 +++ @242 + FTTOB7.17 +++ @255 + FTTOB7.18 ++ ~ Global("P#KivanWorried","GLOBAL",1)~ + @256 EXIT +END + +IF ~~ FTTOB7.8 +SAY @257 +IF ~~ THEN DO ~SetGlobal("P#KivanWorried","GLOBAL",1)~ GOTO FTTOB7.6 +END + +IF ~~ FTTOB7.7 +SAY @258 +IF ~~ THEN DO ~SetGlobal("P#KivanWorried","GLOBAL",1)~ GOTO FTTOB7.6 +END + +IF ~~ FTTOB7.6 +SAY @259 ++ ~!Race(Player1,ELF)~ + @260 + FTTOB7.14 +++ @253 + FTTOB7.15 +++ @254 + FTTOB7.16 +++ @242 + FTTOB7.17 +++ @255 + FTTOB7.18 ++ ~ Global("P#KivanWorried","GLOBAL",1)~ + @256 EXIT +END + +IF~~ FTTOB7.5 +SAY @261 +++ @262 + FTTOB7.13 +++ @263 + FTTOB7.3 +++ @264 + FTTOB7.6 +END + + +IF ~~ FTTOB7.4 +SAY @265 +++ @266 + FTTOB7.12 +++ @267 + FTTOB7.3 +++ @264 + FTTOB7.6 +END + +IF ~~ FTTOB7.3 +SAY @268 +++ @269 + FTTOB7.11 +++ @270 + FTTOB7.9 +++ @271 + FTTOB7.10 +++ @272 + FTTOB7.9 +END + +IF ~~ FTTOB7.2 +SAY @273 +++ @274 + FTTOB7.7 +++ @275 + FTTOB7.8 +++ @276 + FTTOB7.6 +END + + +IF ~~ FTTOB7.1 +SAY @277 +++ @278 + FTTOB7.5 +++ @267 + FTTOB7.3 +++ @264 + FTTOB7.6 +END + +//Baltazar (ruler); I am guessing after the first meeting with Balthazar, because the second one can be modified by that Ascension thinggie.// + +IF WEIGHT #990 +~Global("P#KiLordTalk","GLOBAL",2)~ THEN BEGIN KivanLord +SAY @279 +++ @280 DO ~SetGlobal("P#KiLordTalk","GLOBAL",3)~ + FTTOB8.1 +++ @281 DO ~SetGlobal("P#KiLordTalk","GLOBAL",3)~ + FTTOB8.2 +++ @282 DO ~SetGlobal("P#KiLordTalk","GLOBAL",3)~ + FTTOB8.3 +++ @283 DO ~SetGlobal("P#KiLordTalk","GLOBAL",3)~ + FTTOB8.4 +END + +IF ~~ FTTOB8.15 +SAY @284 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB8.14 +SAY @285 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB8.13 +SAY @286 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB8.12 +SAY @287 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB8.11 +SAY @288 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB8.10 +SAY @289 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB8.9 +SAY @290 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB8.8 +SAY @291 +++ @292 + FTTOB8.13 +++ @293 + FTTOB8.14 +++ @294 + FTTOB8.15 +END + +IF ~~ FTTOB8.7 +SAY @295 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB8.6 +SAY @296 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB8.5 +SAY @297 +++ @298 + FTTOB8.10 +++ @299 + FTTOB8.11 +++ @300 + FTTOB8.12 +END + +IF ~~ FTTOB8.4 +SAY @301 +++ @302 + FTTOB8.5 +++ @303 + FTTOB8.6 +++ @304 + FTTOB8.7 +END + +IF ~~ FTTOB8.3 +SAY @305 +++ @306 + FTTOB8.6 +++ @307 + FTTOB8.7 +++ @308 + FTTOB8.9 +END + +IF ~~ FTTOB8.2 +SAY @309 +++ @310 + FTTOB8.8 +++ @311 + FTTOB8.3 +++ @312 + FTTOB8.4 +++ @313 + FTTOB8.1 +END + +IF ~~ FTTOB8.1 +SAY @314 +++ @302 + FTTOB8.5 +++ @315 + FTTOB8.6 +++ @304 + FTTOB8.7 +END + +//Abazigal Dead + +IF WEIGHT #990 +~Global("P#KiDragonBhaalspawn","GLOBAL",1)~ THEN BEGIN TobKilledDragon +SAY @316 +++ @317 DO ~SetGlobal("P#KiDragonBhaalspawn","GLOBAL",2)~ + P#KiDBS1.1 +++ @318 DO ~SetGlobal("P#KiDragonBhaalspawn","GLOBAL",2)~ + P#KiDBS1.2 +++ @319 DO ~SetGlobal("P#KiDragonBhaalspawn","GLOBAL",2)~ + P#KiDBS1.3 +++ @320 DO ~SetGlobal("P#KiDragonBhaalspawn","GLOBAL",2)~ + P#KiDBS1.4 +END + +IF ~~ P#KiDBS1.15 +SAY @321 +IF ~~ THEN EXIT +END + +IF ~~ P#KiDBS1.14 +SAY @322 +IF ~~ THEN EXIT +END + +IF ~~ P#KiDBS1.13 +SAY @323 +IF ~~ THEN EXIT +END + +IF ~~ P#KiDBS1.12 +SAY @324 +IF ~~ THEN EXIT +END + +IF ~~ P#KiDBS1.11 +SAY @325 +IF ~~ THEN EXIT +END + +IF ~~ P#KiDBS1.10 +SAY @326 +IF ~~ THEN EXIT +END + +IF ~~ P#KiDBS1.9 +SAY @327 +IF ~~ THEN EXIT +END + +IF ~~ P#KiDBS1.8 +SAY @328 +++ @329 + P#KiDBS1.11 +++ @330 + P#KiDBS1.12 +++ @331 + P#KiDBS1.6 +++ @332 + P#KiDBS1.3 +END + +IF ~~ P#KiDBS1.7 +SAY @333 +IF ~~ THEN EXIT +END + +IF ~~ P#KiDBS1.6 +SAY @334 +++ @335 + P#KiDBS1.13 +++ @336 + P#KiDBS1.14 +++ @337 + P#KiDBS1.15 +END + +IF ~~ P#KiDBS1.5A +SAY @338 += @339 +++ @340 + P#KiDBS1.5 +++ @341 + P#KiDBS1.6 +++ @342 + P#KiDBS1.7 +++ @343 + P#KiDBS1.8 +END + +IF ~~ P#KiDBS1.5 +SAY @344 +++ @329 + P#KiDBS1.11 +++ @330 + P#KiDBS1.12 +++ @331 + P#KiDBS1.6 +++ @332 + P#KiDBS1.3 +END + +IF ~~ P#KiDBS1.4 +SAY @345 +++ @346 + P#KiDBS1.9 +++ @347 + P#KiDBS1.10 +++ @348 + P#KiDBS1.3 +END + +IF ~~ P#KiDBS1.3 +SAY @349 +IF ~~ THEN EXIT +END + +IF ~~ P#KiDBS1.2 +SAY @350 += @339 +++ @340 + P#KiDBS1.5 +++ @341 + P#KiDBS1.6 +++ @342 + P#KiDBS1.7 +++ @343 + P#KiDBS1.8 +END + +IF ~~ P#KiDBS1.1 +SAY @351 +++ @352 + P#KiDBS1.5A +++ @319 + P#KiDBS1.3 +++ @353 + P#KiDBS1.4 +END + +//Watcher's Keep + +IF WEIGHT #990 +~Global("P#KiWKTalk","GLOBAL",1)~ THEN BEGIN KivanWatcherKeep +SAY @354 +++ @355 DO ~SetGlobal("P#KiWKTalk","GLOBAL",2)~ + P#KiWK1.1 +++ @356 DO ~SetGlobal("P#KiWKTalk","GLOBAL",2)~ + P#KiWK1.2 +++ @357 DO ~SetGlobal("P#KiWKTalk","GLOBAL",2)~ + P#KiWK1.3 ++ ~!Alignment(Player1,LAWFUL_GOOD)~ + @358 DO ~SetGlobal("P#KiWKTalk","GLOBAL",2)~ + P#KiWK1.4 +++ @359 DO ~SetGlobal("P#KiWKTalk","GLOBAL",2)~ + P#KiWK1.5 +END + +IF ~~ P#KiWK1.7 +SAY @360 += @361 +IF ~~ THEN EXIT +END + +IF ~~ P#KiWK1.6 +SAY @362 += @361 +IF ~~ THEN EXIT +END + +IF ~~ P#KiWK1.5 +SAY @363 += @361 +IF ~~ THEN EXIT +END + +IF ~~ P#KiWK1.4 +SAY @364 += @361 +IF ~~ THEN EXIT +END + +IF ~~ P#KiWK1.3 +SAY @365 +IF ~~ THEN EXIT +END + +IF ~~ P#KiWK1.2 +SAY @366 += @367 +IF ~~ THEN EXIT +END + +IF ~~ P#KiWK1.1 +SAY @368 +++ @369 + P#KiWK1.2 +++ @370 + P#KiWK1.6 +++ @371 + P#KiWK1.7 +END + +//Somewhere after some of PC's trials are done, but not finished yet; definitely after the Master Wraith; comes after 4th challenge// + +IF WEIGHT #990 +~Global("P#KiTrialTalk","GLOBAL",1)~ THEN BEGIN KivanTrial +SAY @372 +++ @373 DO ~SetGlobal("P#KiTrialTalk","GLOBAL",2)~ + FTTOB9.1 +++ @374 DO ~SetGlobal("P#KiTrialTalk","GLOBAL",2)~ + FTTOB9.2 +++ @375 DO ~SetGlobal("P#KiTrialTalk","GLOBAL",2)~ + FTTOB9.3 +++ @376 DO ~SetGlobal("P#KiTrialTalk","GLOBAL",2)~ + FTTOB9.4 +END + +IF ~~ FTTOB9.18 +SAY @377 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB9.17 +SAY @378 +IF ~~ THEN GOTO FTTOB9.15 +END + +IF ~~ FTTOB9.16 +SAY @379 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB9.15 +SAY @380 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB9.14 +SAY @381 +IF ~~ THEN EXIT +END + + +IF ~~ FTTOB9.13 +SAY @382 +++ @383 + FTTOB9.15 +++ @384 + FTTOB9.16 +++ @385 + FTTOB9.17 +++ @386 + FTTOB9.18 +END + +IF ~~ FTTOB9.12 +SAY @387 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB9.11 +SAY @388 += @389 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB9.10 +SAY @390 +++ @391 EXIT +++ @392 + FTTOB9.11 +END + +IF ~~ FTTOB9.9 +SAY @393 +++ @394 EXIT +++ @392 + FTTOB9.11 +END + +IF ~~ FTTOB9.8 +SAY @395 +++ @396 + FTTOB9.7 +++ @397 + FTTOB9.7 +++ @398 + FTTOB9.7 +++ @399 + FTTOB9.7 +END + +IF ~~ FTTOB9.7 +SAY @400 ++ ~!Global("P#KivanRomanceActive","GLOBAL",2)~+ @401 + FTTOB9.12 ++ ~Global("P#KivanRomanceActive","GLOBAL",2)~+ @401 + FTTOB9.13 +++ @402 + FTTOB9.11 +++ @403 + FTTOB9.14 +END + +IF ~~ FTTOB9.6 +SAY @404 +++ @405 EXIT +++ @392 + FTTOB9.11 +END + +IF ~~ FTTOB9.5 +SAY @406 +++ @407 EXIT +++ @392 + FTTOB9.11 +END + +IF ~~ FTTOB9.4 +SAY @408 +IF ~~ THEN EXIT +END + +IF ~~ FTTOB9.3 +SAY @409 +IF ~~ THEN GOTO FTTOB9.1 +END + +IF ~~ FTTOB9.2 +SAY @410 +IF ~~ THEN GOTO FTTOB9.1 +END + +IF ~~ FTTOB9.1 +SAY @411 +++ @412 + FTTOB9.5 +++ @413 + FTTOB9.6 +++ @414 + FTTOB9.7 +++ @415 + FTTOB9.8 +++ @416 + FTTOB9.9 +++ @417 + FTTOB9.10 +++ @418 + FTTOB9.4 +END + +END + diff --git a/kivan/d/p#kiitm.d b/kivan/d/p#kiitm.d new file mode 100644 index 0000000..c367721 --- /dev/null +++ b/kivan/d/p#kiitm.d @@ -0,0 +1,296 @@ +//Neiros Gellantara// + +BEGIN P#NEIR + +APPEND P#NEIR + +IF WEIGHT #1 +~Global("P#NEIRMakesBow","LOCALS",2) Global("P#NEIREmerald","GLOBAL",1) +PartyHasItem("MISC43") ~ THEN BEGIN NeirosCio5 +SAY @0 +++ @1 DO ~SetGlobal("P#NEIREmerald","GLOBAL",2)~ + NeirosCio5.1 +++ @2 DO ~TakePartyItem("MISC43") +DestroyItem("MISC43")~ + NeirosCio5.2 +END + +IF WEIGHT #2 +~ Global("P#NEIRMakesBow","LOCALS",2) Global("P#NEIREmerald","GLOBAL",1) !PartyHasItem("MISC43") GlobalLT("P#NEIRReturn","GLOBAL",5)~ THEN BEGIN NeirosCio3 +SAY @3 +IF ~~ THEN DO ~IncrementGlobal("P#NEIRReturn","GLOBAL",1)~ EXIT +END + +IF WEIGHT #2 +~Global("P#NEIRMakesBow","LOCALS",2) Global("P#NEIREmerald","GLOBAL",1) !PartyHasItem("MISC43") Global("P#NEIRReturn","GLOBAL",5)~ THEN BEGIN NeirosCio4 +SAY @4 +IF ~~ THEN DO ~EscapeArea()~ EXIT +END + +IF WEIGHT #1 ~Global("P#NEIRMakesBow","LOCALS",1) !Global("P#NEIREmerald","GLOBAL",1)~ THEN BEGIN NeirosCio1 +SAY @5 +IF ~~ THEN DO ~SetGlobal("P#NEIRMakesBow","LOCALS",2) +TakePartyItem("P#KISTR") +DestroyItem("P#KISTR") +TakePartyItem("P#BOW") +DestroyItem("P#BOW") +GiveItemCreate("P#BOW01",Player1,0,0,0) EscapeArea()~ EXIT +END + +IF WEIGHT #1 +~Global("P#NEIRMakesBow","LOCALS",1) Global("P#NEIREmerald","GLOBAL",1)~ THEN BEGIN NeirosCio2 +SAY @6 +IF ~~ THEN DO ~SetGlobal("P#NEIRMakesBow","LOCALS",2) +TakePartyItem("P#KISTR") +DestroyItem("P#KISTR") +TakePartyItem("P#BOW") +DestroyItem("P#BOW") +GiveItemCreate("P#BOW01",Player1,0,0,0)~ EXIT +END + +IF ~~ NeirosCio5.2 +SAY @7 +IF ~~ THEN DO ~AddexperienceParty(5000)~ GOTO NeirosCio5.1 +END + +IF ~~ NeirosCio5.1 +SAY @8 +IF ~~ THEN DO ~EscapeArea()~ EXIT +END + +IF ~NumTimesTalkedToGT(0) OR(3) !InParty("P#Kivan") Dead("P#kivan") +StateCheck("P#kivan",STATE_SLEEPING)~ THEN BEGIN NeirosGreets3 +SAY @3 +IF ~~ THEN EXIT +END + +IF ~NumTimesTalkedTo(0) OR(3) !InParty("P#Kivan") Dead("P#kivan") +StateCheck("P#kivan",STATE_SLEEPING) ~ THEN BEGIN NeirosGreets2 +SAY @9 += @10 +++ @11 EXIT +++ @12 + NeirosGreets2.1 +++ @13 + NeirosGreets2.2 +++ @14 + NeirosGreets2.3 +END + +IF ~~ NeirosGreets2.3 +SAY @15 += @16 +IF ~OR(2) !Race(Player1,ELF) Gender(Player1,MALE)~ THEN EXIT +IF ~Gender(Player1,FEMALE) Race(Player1,ELF)~ THEN GOTO NeirosGreets2.1.1 +END + +IF ~~ NeirosGreets2.2 +SAY @17 +IF ~~ THEN GOTO NeirosGreets2.1 +END + +IF ~~ NeirosGreets2.1 +SAY @18 += @16 +IF ~OR(2) !Race(Player1,ELF) Gender(Player1,MALE)~ THEN EXIT +IF ~Gender(Player1,FEMALE) Race(Player1,ELF)~ THEN GOTO NeirosGreets2.1.1 +END + +IF ~~ NeirosGreets2.1.1 +SAY @19 +++ @20 + NeirosGreets2.1.1A +++ @21 + NeirosGreets2.1.1B +++ @22 + NeirosGreets2.1.1C ++ ~GlobalLT("Chapter","GLOBAL",%bg2_chapter_4%)~ + @23 + NeirosGreets2.1.1D ++ ~GlobalLT("Chapter","GLOBAL",%bg2_chapter_4%)~ + @24 + NeirosGreets2.1.1E ++ ~GlobalLT("Chapter","GLOBAL",%bg2_chapter_4%)~ + @25 + NeirosGreets2.1.1F +END + +IF ~~ NeirosGreets2.1.1F +SAY @26 +IF ~~ THEN EXIT +END + +IF ~~ NeirosGreets2.1.1E +SAY @27 +IF ~~ THEN EXIT +END + +IF ~~ NeirosGreets2.1.1D +SAY @28 +IF ~~ THEN EXIT +END + +IF ~~ NeirosGreets2.1.1C +SAY @29 +IF ~~ THEN EXIT +END + +IF ~~ NeirosGreets2.1.1A +SAY @30 +IF ~~ THEN EXIT +END + +IF ~~ NeirosGreets2.1.1B +SAY @31 +IF ~~ THEN EXIT +END + +END + +CHAIN +IF WEIGHT #2 ~NumTimesTalkedTo(0) Gender(Player1,FEMALE) +InParty("P#kivan") !Dead("P#kivan") +!StateCheck("P#kivan",STATE_SLEEPING)~ THEN P#NEIR NeirosGreets1 +@9 +== P#KIVJ @32 +END +++ @33 EXTERN P#KIVJ NeirosGreets1.1K +++ @34 EXTERN P#KIVJ NeirosGreets1.2K +++ @35 EXTERN P#KIVJ NeirosGreets1.3K + +CHAIN P#KIVJ NeirosGreets1.1K +@36 +== P#NEIR @37 +END +++ @11 EXIT +++ @12 EXTERN P#NEIR NeirosGreets1.1 +++ @13 EXTERN P#NEIR NeirosGreets1.2 +++ @14 EXTERN P#NEIR NeirosGreets1.3 + +CHAIN P#KIVJ NeirosGreets1.2K +@38 +== P#NEIR @39 +END +++ @11 EXIT +++ @12 EXTERN P#NEIR NeirosGreets1.1 +++ @13 EXTERN P#NEIR NeirosGreets1.2 +++ @14 EXTERN P#NEIR NeirosGreets1.3 + +CHAIN P#KIVJ NeirosGreets1.3K +@40 +== P#NEIR @41 +END +++ @11 EXIT +++ @12 EXTERN P#NEIR NeirosGreets1.1 +++ @13 EXTERN P#NEIR NeirosGreets1.2 +++ @14 EXTERN P#NEIR NeirosGreets1.3 + + +CHAIN +IF WEIGHT #2 ~NumTimesTalkedTo(0) Gender(Player1,MALE) +InParty("P#kivan") !Dead("P#kivan") +!StateCheck("P#kivan",STATE_SLEEPING)~ THEN P#NEIR NeirosGreets1.0 +@9 + +END +++ @11 EXIT +++ @12 + NeirosGreets1.1 +++ @13 + NeirosGreets1.2 +++ @14 + NeirosGreets1.3 + + +APPEND P#NEIR + +IF ~NumTimesTalkedToGT(0) +InParty("P#kivan") !Dead("P#kivan") +!StateCheck("P#kivan",STATE_SLEEPING)~ NeirosGreets1.1.1G +SAY @43 +IF ~OR(2) !PartyHasItem("P#BOW") !PartyHasItem("P#KISTR")~ THEN EXIT +IF ~PartyHasItem("P#BOW") PartyHasItem("P#KISTR")~ THEN GOTO NeirosMakesBow +END + +IF ~~ NeirosGreets1.3 +SAY @15 += @19 +++ @20 + NeirosGreets1.1.1A ++ ~Gender(Player1,FEMALE)~ + @21 + NeirosGreets1.1.1B ++ ~Gender(Player1,FEMALE)~ + @22 + NeirosGreets1.1.1C ++ ~Gender(Player1,MALE)~ + @22 + NeirosGreets1.1.1M ++ ~GlobalLT("Chapter","GLOBAL",%bg2_chapter_4%)~ + @23 + NeirosGreets1.1.1D ++ ~GlobalLT("Chapter","GLOBAL",%bg2_chapter_4%)~ + @24 + NeirosGreets1.1.1E ++ ~GlobalLT("Chapter","GLOBAL",%bg2_chapter_4%)~ + @25 + NeirosGreets1.1.1F +END + +IF ~~ NeirosGreets1.2 +SAY @17 +IF ~~ THEN GOTO NeirosGreets1.1 +END + +IF ~~ NeirosGreets1.1 +SAY @18 += @19 +++ @20 + NeirosGreets1.1.1A +++ @21 + NeirosGreets1.1.1B +++ @22 + NeirosGreets1.1.1C ++ ~GlobalLT("Chapter","GLOBAL",%bg2_chapter_4%)~ + @23 + NeirosGreets1.1.1D ++ ~GlobalLT("Chapter","GLOBAL",%bg2_chapter_4%)~ + @24 + NeirosGreets1.1.1E ++ ~GlobalLT("Chapter","GLOBAL",%bg2_chapter_4%)~ + @25 + NeirosGreets1.1.1F +END + +IF ~~ NeirosMakesBow +SAY @44 +++ @45 + NeirosMakesBow1 +++ @46 + NeirosMakesBow3 +++ @47 + NeirosMakesBow2 +END + +IF ~~ NeirosMakesBow2 +SAY @48 +IF ~~ THEN DO ~SetGlobal("P#NEIREmerald","GLOBAL",1) ~ + NeirosMakesBow1 +END + +IF ~~ NeirosMakesBow1 +SAY @49 +IF ~~ THEN DO ~DialogInterrupt(FALSE) +SetInterrupt(FALSE) +SetGlobal("P#NEIRMakesBow","LOCALS",1) +CreateVisualEffectObject("SPCRTWPN",Myself) +Wait(3) +DialogInterrupt(TRUE) +SetInterrupt(TRUE) +StartDialogueNoSet([PC])~ EXIT +END + +IF ~~ NeirosMakesBow3 +SAY @50 +IF ~~ THEN GOTO NeirosCio5.1 +END + +IF ~~ NeirosGreets1.1.1F +SAY @26 +IF ~~ THEN EXIT +END + +IF ~~ NeirosGreets1.1.1E +SAY @27 +IF ~OR(2) !PartyHasItem("P#BOW") !PartyHasItem("P#KISTR")~ THEN EXIT +IF ~PartyHasItem("P#BOW") PartyHasItem("P#KISTR")~ THEN GOTO NeirosMakesBow +END + +IF ~~ NeirosGreets1.1.1D +SAY @51 +IF ~OR(2) !PartyHasItem("P#BOW") !PartyHasItem("P#KISTR")~ THEN EXIT +IF ~PartyHasItem("P#BOW") PartyHasItem("P#KISTR")~ THEN GOTO NeirosMakesBow +END + +IF ~~ NeirosGreets1.1.1C +SAY @29 +IF ~OR(2) !PartyHasItem("P#BOW") !PartyHasItem("P#KISTR")~ THEN EXIT +IF ~PartyHasItem("P#BOW") PartyHasItem("P#KISTR")~ THEN GOTO NeirosMakesBow +END + +IF ~~ NeirosGreets1.1.1M +SAY @52 +IF ~OR(2) !PartyHasItem("P#BOW") !PartyHasItem("P#KISTR")~ THEN EXIT +IF ~PartyHasItem("P#BOW") PartyHasItem("P#KISTR")~ THEN GOTO NeirosMakesBow +END + +IF ~~ NeirosGreets1.1.1A +SAY @30 +IF ~OR(2) !PartyHasItem("P#BOW") !PartyHasItem("P#KISTR")~ THEN EXIT +IF ~PartyHasItem("P#BOW") PartyHasItem("P#KISTR")~ THEN GOTO NeirosMakesBow +END + +IF ~~ NeirosGreets1.1.1B +SAY @31 +IF ~~ THEN EXIT +END + +END + diff --git a/kivan/d/p#kilt.d b/kivan/d/p#kilt.d new file mode 100644 index 0000000..60fed5b --- /dev/null +++ b/kivan/d/p#kilt.d @@ -0,0 +1,1258 @@ +APPEND P#KIVJ + +//2 +IF WEIGHT #990 ~ +Global("P#KivanLoveTalk","GLOBAL",2) +~ THEN BEGIN KIST1 +SAY @0 += @1 +++ @2 DO ~RealSetGlobalTimer("P#KiLoveTalkTime","GLOBAL", 1800) ActionOverride("P#SQUI",DestroySelf()) SetGlobal("P#KivanLoveTalk","GLOBAL",3)~ GOTO KIST1.1 +++ @3 DO ~RealSetGlobalTimer("P#KiLoveTalkTime","GLOBAL", 1800) MoveGlobalObject(Player1,"P#KIVAN") MoveGlobalObject("P#SQUI","P#KIVAN") SetGlobal("P#KivanLoveTalk","GLOBAL",3)~ GOTO KIST1.2 +++ @4 DO ~RealSetGlobalTimer("P#KiLoveTalkTime","GLOBAL", 1800) MoveGlobalObject(Player1,"P#KIVAN") MoveGlobalObject("P#SQUI","P#KIVAN") SetGlobal("P#KivanLoveTalk","GLOBAL",3)~ GOTO KIST1.3 +++ @5 DO ~RealSetGlobalTimer("P#KiLoveTalkTime","GLOBAL", 1800) MoveGlobalObject(Player1,"P#KIVAN") MoveGlobalObject("P#SQUI","P#KIVAN") SetGlobal("P#KivanLoveTalk","GLOBAL",3)~ GOTO KIST1.4 ++ ~InParty("Korgan")~ + @6 DO ~RealSetGlobalTimer("P#KiLoveTalkTime","GLOBAL", 1800) MoveGlobalObject(Player1,"P#KIVAN") MoveGlobalObject("P#SQUI","P#KIVAN") SetGlobal("P#KivanLoveTalk","GLOBAL",3)~ GOTO KIST1.5 ++ ~InParty("Minsc")~ + @7 DO ~RealSetGlobalTimer("P#KiLoveTalkTime","GLOBAL", 1800) MoveGlobalObject(Player1,"P#KIVAN") MoveGlobalObject("P#SQUI","P#KIVAN") SetGlobal("P#KivanLoveTalk","GLOBAL",3)~ GOTO KIST1.3 +END + +IF ~~ KIST1.1 +SAY @8 +++ @9 GOTO KIST1.6 ++ ~InParty("Korgan")~ + @6 GOTO KIST1.5 +++ @10 GOTO KIST1.6 +++ @11 GOTO KIST1.4 +END + +IF ~~ KIST1.2 +SAY @12 += @13 +++ @14 GOTO KIST1.7 +++ @15 GOTO KIST1.7 +++ @10 GOTO KIST1.6 +++ @11 GOTO KIST1.4 +END + +IF ~~ KIST1.3 +SAY @16 +++ @17 + KIST1.8 +++ @18 + KIST1.9 +++ @19 GOTO KIST1.4 +END + +IF ~~ KIST1.4 +SAY @20 +++ @21 DO ~RestParty() ActionOverride("P#SQUI",DestroySelf())~ EXIT +++ @22 GOTO KIST1.10 +++ @23 GOTO KIST1.11 +++ @24 GOTO KIST1.12 +END +IF ~~ KIST1.5 +SAY @25 +IF ~~ GOTO KIST1.4 +END + +IF ~~ KIST1.6 +SAY @26 +++ @27 + KIST1.13 +++ @28 + KIST1.13 +++ @29 + KIST1.3 +++ @30 +KIST1.9 +++ @31 + KIST1.9 +END + +IF ~~ KIST1.7 +SAY @32 +++ @33 GOTO KIST1.6 +++ @34 GOTO KIST1.4 +++ @35 DO ~RestParty() ActionOverride("P#SQUI",DestroySelf())~ EXIT ++ ~Class(Player1, DRUID_ALL)~ + @36 + KIST1.14 +END + + +IF ~~ KIST1.8 +SAY @37 += @38 += @39 +IF ~~ THEN GOTO KIST1.4 +END + +IF ~~ KIST1.9 +SAY @40 +++ @41 GOTO KIST1.15 +++ @42 GOTO KIST1.16 +++ @43 GOTO KIST1.17 +++ @44 DO ~SetGlobal("P#KivanRomanceInactive","GLOBAL",1) RestParty() ActionOverride("P#SQUI",DestroySelf())~ EXIT +++ @45 DO ~SetGlobal("P#KivanRomanceInactive","GLOBAL",1) RestParty() ActionOverride("P#SQUI",DestroySelf())~ EXIT +END + +IF ~~ KIST1.10 +SAY @46 +IF ~~ THEN DO ~RestParty() ActionOverride("P#SQUI",DestroySelf())~ EXIT +END + +IF ~~ KIST1.11 +SAY @47 += @48 +IF ~~ THEN DO ~RestParty() ActionOverride("P#SQUI",DestroySelf())~ EXIT +END + +IF ~~ KIST1.12 +SAY @49 +++ @50 GOTO KIST1.11 +++ @51 + KIST1.18 +END + +IF ~~ KIST1.13 +SAY @52 +IF ~~ THEN GOTO KIST1.3 +END + + +IF ~~ KIST1.14 +SAY @53 +++ @54 + KIST1.19 +++ @55 GOTO KIST1.4 +++ @56 DO ~RestParty() ActionOverride("P#SQUI",DestroySelf())~ EXIT +END + +IF ~~ KIST1.15 +SAY @57 +IF ~~ THEN DO ~RestParty() ActionOverride("P#SQUI",DestroySelf())~ EXIT +END + +IF ~~ KIST1.16 +SAY @58 +IF ~~ THEN DO ~RestParty() ActionOverride("P#SQUI",DestroySelf())~ EXIT +END + +IF ~~ KIST1.17 +SAY @59 +IF ~~ THEN DO ~SetGlobal("P#KivanRomanceInactive","GLOBAL",1) RestParty() ActionOverride("P#SQUI",DestroySelf())~ EXIT +END + +IF ~~ KIST1.18 +SAY @60 += @61 += @62 +IF ~~ THEN DO ~RestParty() ActionOverride("P#SQUI",DestroySelf())~ EXIT +END + +IF ~~ KIST1.19 +SAY @63 +IF ~~ THEN DO ~RestParty() ActionOverride("P#SQUI",DestroySelf())~ EXIT +END + +IF WEIGHT #990 ~ +Global("P#KivanLoveTalk","GLOBAL",4) +~ THEN BEGIN KIPC3 +SAY @64 +IF ~~ THEN REPLY @65 DO ~SetGlobal("P#KivanLoveTalk","GLOBAL",5)~ GOTO KIPC3.1 +IF ~~ THEN REPLY @66 DO ~SetGlobal("P#KivanLoveTalk","GLOBAL",5)~ GOTO KIPC3.2 +IF ~~ THEN REPLY @67 DO ~SetGlobal("P#KivanLoveTalk","GLOBAL",5)~ GOTO KIPC3.3 +IF ~Class(Player1,BARD)~ THEN REPLY @68 DO ~SetGlobal("P#KivanLoveTalk","GLOBAL",5)~ GOTO KIPC3.4 +END + +IF ~~ THEN BEGIN KIPC3.1 +SAY @69 +IF ~~ THEN REPLY @70 GOTO KIPC3.5 +IF ~~ THEN REPLY @71 GOTO KIPC3.6 +IF ~~ THEN REPLY @72 GOTO KIPC3.7 +END + +IF ~~ THEN BEGIN KIPC3.2 +SAY @73 += @74 +IF ~~ THEN REPLY @70 GOTO KIPC3.5 +IF ~~ THEN REPLY @71 GOTO KIPC3.6 +IF ~~ THEN REPLY @72 GOTO KIPC3.7 +END + +IF ~~ THEN BEGIN KIPC3.3 +SAY @75 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ THEN BEGIN KIPC3.4 +SAY @76 += @77 +IF ~~ THEN REPLY @70 GOTO KIPC3.5 +IF ~~ THEN REPLY @71 GOTO KIPC3.6 +IF ~~ THEN REPLY @72 GOTO KIPC3.7 +END + +IF ~~ THEN BEGIN KIPC3.5 +SAY @78 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ THEN BEGIN KIPC3.6 +SAY @79 +IF ~~ THEN REPLY @80 GOTO KIPC3.5 +IF ~~ THEN REPLY @81 GOTO KIPC3.8 +END + +IF ~~ THEN BEGIN KIPC3.7 +SAY @82 += @83 +IF ~~ THEN REPLY @84 GOTO KIPC3.9 +IF ~~ THEN REPLY @85 GOTO KIPC3.10 +IF ~~ THEN REPLY @86 GOTO KIPC3.5 +END + +IF ~~ THEN BEGIN KIPC3.8 +SAY @87 += @88 +IF ~~ THEN REPLY @84 GOTO KIPC3.9 +IF ~~ THEN REPLY @85 GOTO KIPC3.10 +IF ~~ THEN REPLY @86 GOTO KIPC3.5 +END + +IF ~~ THEN BEGIN KIPC3.9 +SAY @89 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ THEN BEGIN KIPC3.10 +SAY @90 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF WEIGHT #990 ~ +Global("P#KivanLoveTalk","GLOBAL",6) +~ THEN BEGIN KIST3 +SAY @91 +++ @92 DO ~RestParty()~ EXIT +++ @93 + KIST3.1 +++ @94 + KIST3.2 +END + +IF ~~ KIST3.1 +SAY @95 +++ @96 + KIST3.3 +++ @97 + KIST3.4 +++ @98 + KIST3.5 +END + +IF ~~ KIST3.2 +SAY @99 +++ @100 + KIST3.3 +++ @101 + KIST3.6 +++ @102 + KIST3.7 +END + +IF ~~ KIST3.3 +SAY @103 +++ @104 + KIST3.8 +++ @105 + KIST3.9 +++ @106 DO ~RestParty()~ EXIT +END + +IF ~~ KIST3.4 +SAY @107 +++ @108 + KIST3.3 +++ @109 DO ~RestParty() SetGlobal("P#KivanRomanceInactive","GLOBAL",1)~ EXIT +++ @110 + KIST3.10 +END + +IF ~~ KIST3.5 +SAY @111 +++ @108 + KIST3.3 +++ @109 DO ~RestParty() SetGlobal("P#KivanRomanceInactive","GLOBAL",1)~ EXIT +++ @110 + KIST3.10 +END + +IF ~~ KIST3.6 +SAY @112 +++ @108 + KIST3.3 +++ @109 DO ~RestParty() SetGlobal("P#KivanRomanceInactive","GLOBAL",1)~ EXIT +++ @110 + KIST3.10 +END + +IF ~~ KIST3.7 +SAY @113 +++ @108 + KIST3.3 +++ @109 DO ~RestParty() SetGlobal("P#KivanRomanceInactive","GLOBAL",1)~ EXIT +++ @110 + KIST3.10 +END + +IF ~~ KIST3.8 +SAY @114 +++ @115 + KIST3.11 +++ @116 + KIST3.10 +END + +IF ~~ KIST3.9 +SAY @117 ++ ~!Class(Player1, CLERIC_ALL) !Class(Player1, SORCERER) !Class(Player1, MAGE_ALL) !Class(Player1, BARD) !Class(Player1, PALADIN) !Class(Player1, DRUID_ALL) !Class(Player1, RANGER_ALL)~ + @118 DO ~RestParty()~ EXIT ++ ~OR(7) Class(Player1, CLERIC_ALL) Class(Player1, SORCERER) Class(Player1, MAGE_ALL) Class(Player1, BARD_ALL) Class(Player1, PALADIN_ALL) Class(Player1, DRUID_ALL) Class(Player1, RANGER_ALL)~ + @118 DO ~RestParty() RealSetGlobalTimer("P#KiDreamCatcherTime","GLOBAL",7200)~ EXIT +++ @119 + KIST3.10 +++ @120 EXIT +END + +IF ~~ KIST3.11 +SAY @121 +IF ~~ THEN GOTO KIST3.10 +END + +IF ~~ KIST3.10 +SAY @122 += @123 += @124 += @125 += @126 ++ ~!Class(Player1, CLERIC_ALL) !Class(Player1, SORCERER) !Class(Player1, MAGE_ALL) !Class(Player1, BARD_ALL) !Class(Player1, PALADIN) !Class(Player1, DRUID_ALL) !Class(Player1, RANGER_ALL)~ + @127 DO ~RestParty()~ EXIT ++ ~OR(7) Class(Player1, CLERIC_ALL) Class(Player1, SORCERER) Class(Player1, MAGE_ALL) Class(Player1, BARD_ALL) Class(Player1, PALADIN_ALL) Class(Player1, DRUID_ALL) Class(Player1, RANGER_ALL)~ + @128 DO ~RestParty() RealSetGlobalTimer("P#KiDreamCatcherTime","GLOBAL",7200)~ EXIT +++ @120 EXIT +END + +IF ~~ KIAN1.2.1 +SAY @129 +IF ~~ THEN EXIT +END + +END + +APPEND P#KIVJ + +IF WEIGHT #990 +~Global("P#KivanSweetTalk","GLOBAL",2)~ THEN BEGIN KIALT1 +SAY @130 +++ @131 + P#KIALT1.1 +++ @132 + P#KIALT1.2 +++ @133 + P#KIAT1.3 +END + +IF ~~ P#KIALT1.1 +SAY @134 +++ @135 + P#KIAT1.4 +++ @136 + P#KIALT1.5 +++ @137 EXIT +++ @138 + P#KIALT1.13 +END + +IF ~~ P#KIALT1.2 +SAY @139 +++ @140 + P#KIALT1.6 +++ @141 + P#KIALT1.7 +++ @142 + P#KIALT1.8 +++ @143 + P#KIALT1.14 +END + +IF ~~ P#KIAT1.3 +SAY @144 +++ @145 + P#KIALT1.9 +++ @146 + P#KIALT1.10 +++ @147 + P#KIALT1.11 +++ @148 EXIT +END + +IF ~~ P#KIAT1.4 +SAY @149 +++ @137 EXIT +++ @150 + P#KIALT1.2 +++ @151 + P#KIALT1.12 +END + +IF ~~ P#KIALT1.5 +SAY @152 +++ @145 + P#KIALT1.9 +++ @146 + P#KIALT1.10 +++ @153 + P#KIALT1.12 +++ @148 EXIT +++ @143 + P#KIALT1.14 +END + +IF ~~ P#KIALT1.6 +SAY @154 +++ @155 + P#KIALT1.14 +++ @156 + P#KIALT1.7 +++ @143 + P#KIALT1.14 +END + +IF ~~ P#KIALT1.7 +SAY @121 += @157 +IF ~~ THEN EXIT +END + +IF ~~ P#KIALT1.8 +SAY @158 +IF ~~ THEN EXIT +END + +IF ~~ P#KIALT1.9 +SAY @159 += @160 +IF ~~ THEN EXIT +END + +IF ~~ P#KIALT1.10 +SAY @161 +IF ~~ THEN EXIT +END + +IF ~~ P#KIALT1.11 +SAY @162 += @163 +++ @140 + P#KIALT1.6 +++ @141 + P#KIALT1.7 +++ @142 + P#KIALT1.8 +++ @143 + P#KIALT1.14 +END + +IF ~~ P#KIALT1.12 +SAY @164 += @161 +IF ~~ THEN EXIT +END + +IF ~~ P#KIALT1.13 +SAY @165 +++ @166 + P#KIALT1.5 +++ @137 EXIT +++ @167 GOTO P#KIALT1.10 +END + +IF ~~ P#KIALT1.14 +SAY @168 +IF ~~ THEN EXIT +END + +IF WEIGHT #990 +~Global("P#KivanSweetTalk","GLOBAL",4)~ THEN BEGIN KIALT2 +SAY @169 +++ @170 + KILTA2.1 +++ @171 + KILTA2.2 ++~Race(Player1,ELF)~+ @172 + KILTA2.3E ++~!Race(Player1,ELF)~+ @172 + KILTA2.3 +++ @173 + KILTA2.4 +END + +IF ~~ KILTA2.1 +SAY @174 +++ @171 + KILTA2.2 ++~Race(Player1,ELF)~+ @172 + KILTA2.3E ++~!Race(Player1,ELF)~+ @172 + KILTA2.3 +++ @173 + KILTA2.4 +END + +IF ~~ KILTA2.2 +SAY @175 +++ @176 + KILTA2.5 ++~Race(Player1,ELF)~+ @172 + KILTA2.3E ++~!Race(Player1,ELF)~+ @172 + KILTA2.3 ++~Race(Player1,ELF)~+ @177 + KILTA2.6E ++~!Race(Player1,ELF)~+ @178 + KILTA2.6 +END + +IF ~~ KILTA2.3E +SAY @179 += @180 ++~Race(Player1,ELF)~+ @181 + KILTA2.7E ++~!Race(Player1,ELF)~+ @182 + KILTA2.7 +++ @183 + KILTA2.8 +++ @184 + KILTA2.9 +++ @185 + KILTA2.10 +END + +IF ~~ KILTA2.3 +SAY @186 += @187 +++ @188 + KILTA2.7 +++ @183 + KILTA2.8 +++ @185 + KILTA2.10 +END + +IF ~~ KILTA2.4 +SAY @189 ++~Race(Player1,ELF)~+ @172 + KILTA2.3E ++~!Race(Player1,ELF)~+ @172 + KILTA2.3 ++~Race(Player1,ELF)~+ @177 + KILTA2.6E ++~!Race(Player1,ELF)~+ @178 + KILTA2.6 +END + +IF ~~ KILTA2.5 +SAY @190 ++~Race(Player1,ELF)~+ @191 + KILTA2.6E ++~!Race(Player1,ELF)~+ @192 + KILTA2.6 +++ @183 + KILTA2.8 ++~Race(Player1,ELF)~+ @184 + KILTA2.9 +++ @185 + KILTA2.10 +END + +IF ~~ KILTA2.6 +SAY @193 += @194 +++ @195 + KILTA2.7 +++ @183 + KILTA2.8 ++~Race(Player1,ELF)~+ @184 + KILTA2.9 +++ @196 + KILTA2.10 +END + + +IF ~~ KILTA2.6E +SAY @197 += @194 +++ @195 + KILTA2.7 +++ @183 + KILTA2.8 ++~Race(Player1,ELF)~+ @184 + KILTA2.9 +++ @196 + KILTA2.10 +END + + +IF ~~ KILTA2.7 +SAY @198 += @199 +++ @200 + KILTA2.11 +++ @201 EXIT +++ @202 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~EXIT +END + +IF ~~ KILTA2.7E +SAY @198 += @199 +++ @200 + KILTA2.11 +++ @201 EXIT +++ @202 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~EXIT +END + +IF ~~ KILTA2.8 +SAY @203 += @204 +++ @200 + KILTA2.11 +++ @201 EXIT +++ @202 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~EXIT +END + +IF ~~ KILTA2.9 +SAY @205 += @206 +++ @200 + KILTA2.11 +++ @201 EXIT +++ @202 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~EXIT +END + +IF ~~ KILTA2.10 +SAY @207 += @208 += @206 +++ @200 + KILTA2.11 +++ @201 EXIT +++ @202 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~EXIT +END + +IF ~~ KILTA2.11 +SAY @209 +++ @210 + KILTA2.12 +++ @211 + KILTA2.13 +++ @212 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",3)~EXIT +END + +IF ~~ KILTA2.12 +SAY @213 +IF ~~ THEN EXIT +END + +IF ~~ KILTA2.13 +SAY @214 +IF ~~ THEN EXIT +END + +//At Rest + +IF WEIGHT #990 +~Global("P#KivanEmbersTalk","GLOBAL",1)~ THEN BEGIN KIALT3 +SAY @215 +++ @216 DO ~SetGlobal("P#KivanEmbersTalk","GLOBAL",2) RealSetGlobalTimer("P#KiLoveTalkTime","GLOBAL",100)~ + KILTA3.1 +++ @217 DO ~SetGlobal("P#KivanEmbersTalk","GLOBAL",2) RealSetGlobalTimer("P#KiLoveTalkTime","GLOBAL",100)~ + KILTA3.2 +++ @218 DO ~SetGlobal("P#KivanEmbersTalk","GLOBAL",2) RealSetGlobalTimer("P#KiLoveTalkTime","GLOBAL",100) IncrementGlobal("P#KivanOffence","GLOBAL",2) RestParty()~EXIT ++ ~OR(2) Class(Player1,CLERIC_ALL) Class(Player1,DRUID_ALL) HPPercentLT("P#Kivan",90)~ + @219 DO ~SetGlobal("P#KivanEmbersTalk","GLOBAL",2) RealSetGlobalTimer("P#KiLoveTalkTime","GLOBAL",100)~ + KILTA3.3 +END + +IF ~~ KILTA3.1 +SAY @220 +++ @221 + KILTA3.4 +++ @222 + KILTA3.4 +++ @223 + KILTA3.4 +++ @224 + KILTA3.5 +++ @225 DO ~RestParty()~EXIT +END + +IF ~~ KILTA3.2 +SAY @226 += @227 +++ @221 + KILTA3.4 +++ @222 + KILTA3.4 +++ @223 + KILTA3.4 +++ @224 + KILTA3.5 +++ @225 DO ~RestParty()~EXIT +END + +IF ~~ KILTA3.3 +SAY @228 += @227 +++ @221 + KILTA3.4 +++ @222 + KILTA3.4 +++ @223 + KILTA3.4 +++ @224 + KILTA3.5 +++ @225 DO ~RestParty()~EXIT +END + +IF ~~ KILTA3.4 +SAY @229 += @230 += @231 += @232 +++ @233 DO ~RestParty()~EXIT +++ @234 DO ~ RestParty()~EXIT +++ @235 + KILTA3.6 +++ @236 + KILTA3.7 +END + +IF ~~ KILTA3.5 +SAY @237 += @238 += @239 +IF ~~ THEN DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1) RestParty()~EXIT +END + +IF ~~ KILTA3.6 +SAY @240 +++ @233 DO ~RestParty()~EXIT +++ @241 + KILTA3.7 +END + +IF ~~ KILTA3.7 +SAY @242 +++ @243 EXIT +++ @244 DO ~SetGlobal("P#KiWarmth", "GLOBAL",1) RestParty()~ EXIT +++ @245 + KILTA3.8A +++ @246 DO ~SetGlobal("P#KiLace", "GLOBAL",1) RestParty()~ EXIT +END + +IF ~~ KILTA3.8A +SAY @247 +IF ~~ THEN DO ~RestParty()~EXIT +END + +//Morning After 1 + +IF WEIGHT #990 +~Global("P#KiWarmth", "GLOBAL",2)~ THEN BEGIN KILTA3.8 +SAY @248 +++ @249 DO ~SetGlobal("P#KiWarmth", "GLOBAL",3)~ + KILTA3.8.1 +++ @250 DO ~SetGlobal("P#KiWarmth", "GLOBAL",3)~ + KILTA3.8.2 +++ @251 DO ~SetGlobal("P#KiWarmth", "GLOBAL",3)~ + KILTA3.8.3 +END + +IF ~~ KILTA3.8.1 +SAY @252 +IF ~~ THEN GOTO KILTA3.8.3 +END + +IF ~~ KILTA3.8.2 +SAY @253 +IF ~~ THEN EXIT +END + +IF ~~ KILTA3.8.3 +SAY @254 +IF ~~ THEN EXIT +END + +IF WEIGHT #990 +~Global("P#KiLace", "GLOBAL",2)~ THEN BEGIN KILTA3.9 +SAY @255 +IF ~~ THEN DO ~SetGlobal("P#KiLace", "GLOBAL",3)~ EXIT +END + +//Stars in the Night Time Outdoors + +IF WEIGHT #990 +~Global("P#KivanStars","GLOBAL",1)~ THEN BEGIN KILTA4.0 +SAY @256 += @257 += @258 += @259 +++ @260 DO ~SetGlobal("P#KivanStars","GLOBAL",2)~ + KILTA4.1 +++ @261 DO ~SetGlobal("P#KivanStars","GLOBAL",2)~ + KILTA4.2 +END + +IF ~~ KILTA4.1 +SAY @262 +IF ~~ THEN GOTO KILTA4.2 +END + +IF ~~ KILTA4.2 +SAY @263 +++ @264 + KILTA4.3 +++ @265 + KILTA4.4 +++ @266 + KILTA4.5 +END + +IF ~~ KILTA4.3 +SAY @267 +++ @268 + KILTA4.6 +++ @269 + KILTA4.4 +++ @270 + KILTA4.7 +END + +IF ~~ KILTA4.4 +SAY @271 +++ @272 + KILTA4.8 +++ @273 + KILTA4.7 +END + +IF ~~ KILTA4.5 +SAY @274 +++ @272 + KILTA4.8 +++ @273 + KILTA4.7 +END + +IF ~~ KILTA4.6 +SAY @275 +++ @276 + KILTA4.8 +++ @273 + KILTA4.7 +END + +IF ~~ KILTA4.7 +SAY @277 +++ @278 + KILTA4.8 +++ @279 EXIT +++ @280 + KILTA4.9 +END + +IF ~~ KILTA4.8 +SAY @281 +IF ~~ THEN EXIT +END + +IF ~~ KILTA4.9 +SAY @282 +++ @278 + KILTA4.8 +++ @279 EXIT +++ @283 + KILTA4.10 +END + +IF ~~ KILTA4.10 +SAY @284 +IF ~~ THEN EXIT +END + +//The Good Looking Tease in a Dungeon + +IF WEIGHT #990 +~Global("P#KivanDungeon","GLOBAL",1)~ THEN BEGIN KILTA5.0 +SAY @285 ++ ~!Race(Player1, ELF)~ + @286 DO ~RealSetGlobalTimer("P#KivanFlirtTimer","GLOBAL",1) SetGlobal("P#KivanDungeon","GLOBAL",2)~ + KILTA5.1 ++ ~Race(Player1, ELF)~ + @287 DO ~RealSetGlobalTimer("P#KivanFlirtTimer","GLOBAL",1) SetGlobal("P#KivanDungeon","GLOBAL",2)~ + KILTA5.2 ++ ~!InParty("aerie")~+ @288 DO ~RealSetGlobalTimer("P#KivanFlirtTimer","GLOBAL",1) SetGlobal("P#KivanDungeon","GLOBAL",2)~ + KILTA5.3 ++ ~InParty("aerie")~+ @289 DO ~RealSetGlobalTimer("P#KivanFlirtTimer","GLOBAL",1) SetGlobal("P#KivanDungeon","GLOBAL",2)~ + KILTA5.4 +++ @290 DO ~RealSetGlobalTimer("P#KivanFlirtTimer","GLOBAL",1) SetGlobal("P#KivanDungeon","GLOBAL",2)~ + KILTA5.5 +END + +IF ~~ KILTA5.1 +SAY @291 ++ ~CheckStatGT(Player1,14,DEX)~ + @292 + KILTA5.7 ++ ~CheckStatGT(Player1,9,INT)~ + @293 + KILTA5.8 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,1)~ + @294 + KILTA5.8 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,2)~ + @295 + KILTA5.9 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,3)~ + @295 + KILTA5.9 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,4)~ + @296 + KILTA5.9 +++ @297 EXIT +END + +IF ~~ KILTA5.2 +SAY @298 +++ @299 + KILTA5.10 +++ @300 + KILTA5.11 +++ @301 + KILTA5.12 +END + +IF ~~ KILTA5.3 +SAY @302 += @303 ++ ~CheckStatGT(Player1,9,INT)~ + @304 + KILTA5.8 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,1)~ + @305 + KILTA5.8 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,2)~ + @306 + KILTA5.9 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,3)~ + @306 + KILTA5.9 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,4)~ + @306 + KILTA5.9 +++ @297 EXIT +++ @307 + KILTA5.6 +END + +IF ~~ KILTA5.4 +SAY @302 += @308 += @309 ++ ~CheckStatGT(Player1,9,INT)~ + @304 + KILTA5.8 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,1)~ + @305 + KILTA5.8 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,2)~ + @306 + KILTA5.9 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,3)~ + @306 + KILTA5.9 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,4)~ + @306 + KILTA5.9 +++ @297 EXIT +++ @307 + KILTA5.6 +END + +IF ~~ KILTA5.5 +SAY @310 ++ ~CheckStatGT(Player1,14,DEX)~ + @311 + KILTA5.7 ++ ~CheckStatGT(Player1,9,INT)~ + @312 + KILTA5.8 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,1)~ + @313 + KILTA5.8 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,2)~ + @314 + KILTA5.9 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,3)~ + @314 + KILTA5.9 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,4)~ + @314 + KILTA5.9 +++ @315 EXIT +END + +IF ~~ KILTA5.6 +SAY @316 ++ ~CheckStatGT(Player1,9,INT)~ + @304 + KILTA5.8 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,1)~ + @305 + KILTA5.8 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,2)~ + @306 + KILTA5.9 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,3)~ + @306 + KILTA5.9 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,4)~ + @306 + KILTA5.9 +++ @297 EXIT +END + +IF ~~ KILTA5.7 +SAY @317 ++ ~CheckStatGT(Player1,9,INT)~ + @312 + KILTA5.8 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,1)~ + @318 + KILTA5.8 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,2)~ + @319 + KILTA5.9 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,3)~ + @319 + KILTA5.9 ++ ~!CheckStatGT(Player1,9,INT) RandomNum(4,4)~ + @319 + KILTA5.9 +++ @315 EXIT +END + +IF ~~ KILTA5.8 +SAY @320 += @321 +++ @299 + KILTA5.10 +++ @300 + KILTA5.11 +++ @301 + KILTA5.12 +END + +IF ~~ KILTA5.9 +SAY @322 += @323 +IF ~~ THEN EXIT +END + +IF ~~ KILTA5.10 +SAY @324 +IF ~~ THEN EXIT +END + +IF ~~ KILTA5.11 +SAY @325 +++ @326 EXIT +++ @301 + KILTA5.12 +++ @327 + KILTA5.13 +END + +IF ~~ KILTA5.12 +SAY @328 +++ @329 + KILTA5.14 +++ @330 + KILTA5.15 +++ @331 + KILTA5.16 +++ @332 + KILTA5.17 +END + +IF ~~ KILTA5.13 +SAY @333 +IF ~~ THEN EXIT +END + +IF ~~ KILTA5.14 +SAY @334 +++ @335 + KILTA5.18 +++ @336 + KILTA5.19 +++ @337 + KILTA5.17 +END + +IF ~~ KILTA5.15 +SAY @338 +IF ~~ THEN EXIT +END + +IF ~~ KILTA5.16 +SAY @339 +IF ~~ THEN EXIT +END + +IF ~~ KILTA5.17 +SAY @340 +IF ~~ THEN EXIT +END + +IF ~~ KILTA5.18 +SAY @341 +IF ~~ THEN EXIT +END + +IF ~~ KILTA5.19 +SAY @342 += @343 +IF ~~ THEN EXIT +END + +//Continue with the Sweet Sequence + +IF WEIGHT #990 +~Global("P#KivanSweetTalk","GLOBAL",6)~ THEN BEGIN KILTA6.0 +SAY @344 +++ @345 + KILTA6.1 +++ @346 + KILTA6.2 +++ @347 + KILTA6.3 +++ @348 + KILTA6.4 +++ @349 EXIT +END + +IF ~~ KILTA6.1 +SAY @350 +++ @348 + KILTA6.4 +++ @351 + KILTA6.5 +++ @352 + KILTA6.6 +++ @349 EXIT +END + +IF ~~ KILTA6.2 +SAY @353 +++ @348 + KILTA6.4 +++ @351 + KILTA6.5 +++ @352 + KILTA6.6 +++ @349 EXIT +END + +IF ~~ KILTA6.3 +SAY @354 +++ @348 + KILTA6.4 +++ @351 + KILTA6.5 +++ @352 + KILTA6.6 +++ @349 EXIT +END + +IF ~~ KILTA6.4 +SAY @355 += @356 +++ @357 EXIT +++ @358 + KILTA6.7 +++ @359 EXIT +END + +IF ~~ KILTA6.5 +SAY @360 +++ @361 + KILTA6.8 +++ @348 + KILTA6.4 +++ @359 EXIT +END + +IF ~~ KILTA6.6 +SAY @362 += @363 +IF ~~ THEN EXIT +END + +IF ~~ KILTA6.7 +SAY @364 +++ @365 + KILTA6.9 +++ @366 + KILTA6.10 +++ @367 EXIT +END + +IF ~~ KILTA6.8 +SAY @368 += @340 +++ @348 + KILTA6.4 +++ @369 EXIT +END + +IF ~~ KILTA6.9 +SAY @370 += @371 +IF ~~ THEN EXIT +END + +IF ~~ KILTA6.10 +SAY @372 +IF ~~ THEN EXIT +END + +IF WEIGHT #990 +~Global("P#KivanSweetTalk","GLOBAL",8)~ THEN BEGIN KILTA7.0 +SAY @373 ++ ~CheckStatGT(Player1,13,INT)~+ @374 + KILTA7.1 +++ @375 + KILTA7.2 +++ @376 + KILTA7.3 +END + +IF ~~ KILTA7.1 +SAY @377 += @378 +++ @379 EXIT +++ @380 + KILTA7.4 +++ @381 + KILTA7.5 +END + +IF ~~ KILTA7.2 +SAY @382 +++ @383 EXIT +++ @380 + KILTA7.4 +++ @381 + KILTA7.5 +END + +IF ~~ KILTA7.3 +SAY @384 +IF ~~ THEN EXIT +END + +IF ~~ KILTA7.4 +SAY @385 +++ @386 + KILTA7.6 +++ @387 + KILTA7.7 +++ @388+ KILTA7.8 +++ @389 EXIT +END + +IF ~~ KILTA7.5 +SAY @390 +++ @391+ KILTA7.9 +++ @387 + KILTA7.7 +++ @388+ KILTA7.8 +++ @389 EXIT +END + +IF ~~ KILTA7.6 +SAY @392 +++ @393 + KILTA7.10 +++ @391+ KILTA7.11 +++ @388+ KILTA7.8 +++ @389 EXIT +END + +IF ~~ KILTA7.7 +SAY @394 +++ @395+ KILTA7.12 +++ @396+ KILTA7.8 +++ @389 EXIT +END + +IF ~~ KILTA7.8 +SAY @397 +++ @398 + KILTA7.13 +++ @399 + KILTA7.14 +++ @389 EXIT +END + +IF ~~ KILTA7.9 +SAY @400 +++ @401 + KILTA7.7 +++ @389 EXIT +END + +IF ~~ KILTA7.10 +SAY @317 +++ @402+ KILTA7.15 +++ @403+ KILTA7.8 +++ @389 EXIT +END + +IF ~~ KILTA7.11 +SAY @404 +++ @405+ KILTA7.15 +++ @406+ KILTA7.8 +++ @389 EXIT +END + +IF ~~ KILTA7.12 +SAY @407 +++ @396+ KILTA7.8 +++ @389 EXIT +END + +IF ~~ KILTA7.13 +SAY @408 +IF ~~ THEN DO ~SetGlobal("P#KivanRain","GLOBAL",1)~ EXIT +END + +IF ~~ KILTA7.14 +SAY @409 +IF ~~ THEN DO ~SetGlobal("P#KivanRain","GLOBAL",1)~ EXIT +END + +IF ~~ KILTA7.15 +SAY @410 +++ @411+ KILTA7.8 +++ @412 EXIT +END + + +//Virga Talk + +IF WEIGHT #990 +~Global("P#KivanVirgaTalk","GLOBAL",2)~ THEN BEGIN KIVirga +SAY @413 +++ @414 DO ~SetGlobal("P#KivanVirgaTalk","GLOBAL",3)~ + KILTA8.1 +++ @415 DO ~SetGlobal("P#KivanVirgaTalk","GLOBAL",3)~ + KILTA8.2 +++ @416 DO ~SetGlobal("P#KivanVirgaTalk","GLOBAL",3)~ + KILTA8.3 +++ @417 DO ~SetGlobal("P#KivanVirgaTalk","GLOBAL",3)~ + KILTA8.4 +++ @418 DO ~SetGlobal("P#KivanVirgaTalk","GLOBAL",3)~ + KILTA8.5 +END + +IF ~~ KILTA8.1 +SAY @419 +++ @420 EXIT +++ @421 + KILTA8.2 +++ @422 EXIT +END + +IF ~~ KILTA8.2 +SAY @423 +++ @424 + KILTA8.6 +++ @425 + KILTA8.7 +++ @426 EXIT +END + +IF ~~ KILTA8.3 +SAY @427 +++ @424 + KILTA8.6 +++ @428 + KILTA8.7 +++ @426 EXIT +END + +IF ~~ KILTA8.4 +SAY @429 +IF ~~ THEN EXIT +END + +IF ~~ KILTA8.5 +SAY @430 +++ @431 EXIT +++ @432 + KILTA8.2 +++ @422 EXIT +END + +IF ~~ KILTA8.6 +SAY @433 +IF ~~ THEN EXIT +END + +IF ~~ KILTA8.7 +SAY @434 += @435 +IF ~~ THEN EXIT +END + +//Another Normal Sequence + +IF WEIGHT #990 +~Global("P#KivanSweetTalk","GLOBAL",10)~ THEN BEGIN KILTA9.0 +SAY @436 +++ @437 + KILTA9.1 +++ @438 + KILTA9.2 +++ @439 + KILTA9.3 +++ @440 + KILTA9.4 +END + +IF ~~ KILTA9.1 +SAY @441 +++ @442 + KILTA9.5 +++ @443 + KILTA9.6 +++ @444 EXIT +++ @445 + KILTA9.7 +++ @446 + KILTA9.8 +END + + +IF ~~ KILTA9.2 +SAY @447 +++ @448 + KILTA9.1 +++ @439 + KILTA9.3 +++ @444 EXIT +++ @445 + KILTA9.7 +++ @446 + KILTA9.8 +++ @443 + KILTA9.6 +END + +IF ~~ KILTA9.3 +SAY @449 +++ @444 EXIT +++ @445 + KILTA9.7 +++ @446 + KILTA9.8 +++ @450 + KILTA9.9 +++ @451 + KILTA9.6 +END + +IF ~~ KILTA9.4 +SAY @452 +++ @453 EXIT +++ @454 + KILTA9.10 +++ @443 + KILTA9.6 +END + +IF ~~ KILTA9.5 +SAY @455 +++ @444 EXIT +++ @456 + KILTA9.7 +++ @443 + KILTA9.6 +END + +IF ~~ KILTA9.6 +SAY @457 += @458 +++ @459 + KILTA9.11 +++ @460 EXIT +++ @461 EXIT +END + +IF ~~ KILTA9.7 +SAY @462 +++ @463 EXIT +++ @443 + KILTA9.6 +END + +IF ~~ KILTA9.8 +SAY @464 +++ @465 + KILTA9.12 +++ @466 EXIT +++ @463 EXIT +++ @443 + KILTA9.6 +END + +IF ~~ KILTA9.9 +SAY @467 +++ @466 EXIT +++ @468 EXIT +++ @443 + KILTA9.6 +END + +IF ~~ KILTA9.10 +SAY @469 +++ @463 EXIT +++ @443 + KILTA9.6 +END + +IF ~~ KILTA9.11 +SAY @470 +++ @471 + KILTA9.13 +++ @472 + KILTA9.14 +++ @463 EXIT +END + +IF ~~ KILTA9.12 +SAY @473 +IF ~~ THEN EXIT +END + +IF ~~ KILTA9.13 +SAY @474 +IF ~~ THEN EXIT +END + +IF ~~ KILTA9.14 +SAY @475 +IF ~~ THEN DO ~IncrementGlobal("P#KivanOffence","GLOBAL",3)~ EXIT +END + +END + diff --git a/kivan/d/p#kilt25.d b/kivan/d/p#kilt25.d new file mode 100644 index 0000000..5a42b44 --- /dev/null +++ b/kivan/d/p#kilt25.d @@ -0,0 +1,1382 @@ +//LT1// +APPEND P#KI25J + +IF WEIGHT #990 +~Global("P#KiLOTOBTalk","GLOBAL",2)~ THEN BEGIN KivanLoveTalk1 +SAY @0 +++ @1 + LTTOB1.1 +++ @2 DO ~SetGlobal("P#KivanAskedLove","GLOBAL",1)~ + LTTOB1.2 +++ @3 + LTTOB1.3 +++ @4 + LTTOB1.4 +++ @5 + LTTOB1.5 +END + +IF ~~ LTTOB1.20 +SAY @6 +IF ~~ THEN EXIT +END + +IF ~~ LTTOB1.19 +SAY @7 +++ @8 + LTTOB1.18 +++ @9 + LTTOB1.20 +++ @10 + LTTOB1.17 +++ @11 DO ~SetGlobal("P#KivanRomanceInactive","GLOBAL",1)~ EXIT +END + +IF ~~ LTTOB1.18 +SAY @12 +++ @13 + LTTOB1.20 +++ @14 + LTTOB1.12 +++ @11 DO ~SetGlobal("P#KivanRomanceInactive","GLOBAL",1)~ EXIT +END + +IF ~~ LTTOB1.17 +SAY @15 +IF ~~ THEN DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~EXIT +END + +IF ~~ LTTOB1.16 +SAY @16 +++ @17 + LTTOB1.17 +++ @18 + LTTOB1.19 +++ @11 DO ~SetGlobal("P#KivanRomanceInactive","GLOBAL",1)~ EXIT +END + +IF ~~ LTTOB1.15 +SAY@19 +++ @20 + LTTOB1.17 +++ @18 + LTTOB1.19 +++ @21 + LTTOB1.20 +END + +IF ~~ LTTOB1.14 +SAY @22 +++ @23 + LTTOB1.18 ++~OR(3) Class(Player1, MAGE_ALL) Class(Player1,SORCERER) Class(Player1, BARD_ALL) ~ + @24 DO ~ReallyForceSpellRES("SPIN160","P#KIVAN") SetGlobal("P#KivanRomanceInactive","GLOBAL",1)~ EXIT +++ @25 + LTTOB1.17 +++ @18 + LTTOB1.19 +++ @11 DO ~SetGlobal("P#KivanRomanceInactive","GLOBAL",1)~ EXIT +END + +IF ~~ LTTOB1.13 +SAY @26 +IF ~~ THEN GOTO LTTOB1.11 +END + +IF ~~ LTTOB1.12 +SAY @27 +IF ~~ THEN DO ~SetGlobal("P#KivanRomanceInactive","GLOBAL",1)~ EXIT +END + +IF ~~ LTTOB1.11 +SAY @28 += @29 +++ @30 + LTTOB1.14 +++ @31 + LTTOB1.15 +++ @32 + LTTOB1.16 +++ @33 + LTTOB1.17 +END + +IF ~~ LTTOB1.10 +SAY @34 +IF ~~ THEN GOTO LTTOB1.4 +END + +IF ~~ LTTOB1.9 +SAY @35 += @29 +++ @30 + LTTOB1.14 +++ @31 + LTTOB1.15 +++ @32 + LTTOB1.16 +++ @33 + LTTOB1.17 +END + +IF ~~ LTTOB1.8 +SAY @36 += @37 +++ @38 + LTTOB1.5 +++ @39 + LTTOB1.9 +++ @40 + LTTOB1.12 ++~Global("P#KivanAskedLove","GLOBAL",0)~+ @41 DO ~SetGlobal("P#KivanAskedLove","GLOBAL",1)~ + LTTOB1.13 +END + +IF ~~ LTTOB1.7 +SAY @42 +++ @43 + LTTOB1.8 +++ @39 + LTTOB1.9 +++ @44 + LTTOB1.12 ++~Global("P#KivanAskedLove","GLOBAL",0)~+ @41 DO ~SetGlobal("P#KivanAskedLove","GLOBAL",1)~ + LTTOB1.13 +END + +IF ~~ LTTOB1.6 +SAY @45 +++ @46 + LTTOB1.8 +++ @39 + LTTOB1.9 +++ @44 + LTTOB1.12 ++~Global("P#KivanAskedLove","GLOBAL",0)~+ @41 DO ~SetGlobal("P#KivanAskedLove","GLOBAL",1)~ + LTTOB1.13 +END + +IF ~~ LTTOB1.5 +SAY @47 += @29 +++ @30 + LTTOB1.14 +++ @31 + LTTOB1.15 +++ @32 + LTTOB1.16 +++ @33 + LTTOB1.17 +END + +IF ~~ LTTOB1.4 +SAY @48 += @49 ++ ~Race(Player1,ELF)~+ @50 + LTTOB1.6 ++ ~!Race(Player1,ELF)~+ @50 + LTTOB1.7 +++ @51 + LTTOB1.8 +++ @39 + LTTOB1.9 +++ @44 + LTTOB1.12 +END + +IF ~~ LTTOB1.3 +SAY @52 +++ @53 + LTTOB1.10 +++ @54 + LTTOB1.1 +END + +IF ~~ LTTOB1.2 +SAY @55 +++ @56 + LTTOB1.3 +++ @4 + LTTOB1.4 +++ @57 + LTTOB1.5 +++ @58 + LTTOB1.11 +END + +IF ~~ LTTOB1.1 +SAY @59 += @49 ++ ~Race(Player1,ELF)~+ @50 + LTTOB1.6 ++ ~!Race(Player1,ELF)~+ @50 + LTTOB1.7 +++ @51 + LTTOB1.8 +++ @39 + LTTOB1.9 +++ @44 + LTTOB1.12 ++~Global("P#KivanAskedLove","GLOBAL",0)~+ @41 DO ~SetGlobal("P#KivanAskedLove","GLOBAL",1)~ + LTTOB1.13 +END + +//LT2// + +IF WEIGHT #990 +~Global("P#KiLOTOBTalk","GLOBAL",4)~ THEN BEGIN KivanLoveTalk2 +SAY @60 +++ @61 + LTTOB2.0 +++ @62 + LTTOB2.0 +++ @63 + LTTOB2.0 +++ @64 + LTTOB2.0 +END + +IF ~~ LTTOB2.0 +SAY @65 += @66 +++ @67 + LTTOB2.1 +++ @68 + LTTOB2.2 +++ @69 + LTTOB2.3 +++ @424 + KiAddLove1.1 +++ @425 + KiAddLove1.2 +END + +//add on + +IF ~~ KiAddLove1.10 +SAY @426 +IF ~~ THEN GOTO LTTOB2.3 +END + +IF ~~ KiAddLove1.9 +SAY @427 +++ @428 + KiAddLove1.6 +++ @429 + KiAddLove1.10 +++ @430 + LTTOB2.3 +END + +IF ~~ KiAddLove1.8 +SAY @431 +++ @432 + KiAddLove1.6 +++ @433 + KiAddLove1.9 +++ @434 + KiAddLove1.10 +++ @435 + LTTOB2.3 +END + +IF ~~ KiAddLove1.7 +SAY @436 +++ @437 + LTTOB2.3 +++ @438 + KiAddLove1.6 +++ @439 + KiAddLove1.8 +END + +IF ~~ KiAddLove1.6 +SAY @440 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiAddLove1.5 +SAY @441 +IF ~~ THEN GOTO LTTOB2.2 +END + +IF ~~ KiAddLove1.4 +SAY @442 +IF ~~ THEN GOTO LTTOB2.3 +END + +IF ~~ KiAddLove1.3 +SAY @443 +++ @444 + KiAddLove1.6 +++ @445 + KiAddLove1.5 +++ @446 + KiAddLove1.6 +END + +IF ~~ KiAddLove1.2 +SAY @447 +++ @448 + KiAddLove1.3 +++ @449 + KiAddLove1.4 +++ @450 + KiAddLove1.5 +++ @451 + KiAddLove1.6 +++ @452 + KiAddLove1.7 +END + +IF ~~ KiAddLove1.1 +SAY @453 +IF ~~ THEN GOTO LTTOB2.2 +END + +//add on + +IF ~~ LTTOB2.10 +SAY @70 +IF ~~ THEN DO ~SetGlobal("P#KivanIntimate","GLOBAL",1) IncrementGlobal("P#KivanLove","GLOBAL",1) RestParty()~ EXIT +END + +IF ~~ LTTOB2.9 +SAY @71 +++ @61 + LTTOB2.10 +++ @72 + LTTOB2.6 +++ @73 + LTTOB2.7 +END + +IF ~~ LTTOB2.8 +SAY @74 +++ @72 + LTTOB2.6 +++ @73 + LTTOB2.7 +END + +IF ~~ LTTOB2.7 +SAY @75 +IF ~~ THEN DO ~RestParty() ~ EXIT +END + +IF ~~ LTTOB2.6 +SAY @76 +IF ~~ THEN DO ~RestParty() SetGlobal("P#KivanIntimate","GLOBAL",1) IncrementGlobal("P#KivanLove","GLOBAL",1)~ EXIT +END + +IF ~~ LTTOB2.5 +SAY @77 +++ @78 + LTTOB2.8 +++ @72 + LTTOB2.6 +++ @73 + LTTOB2.7 +END + +IF ~~ LTTOB2.4 +SAY @79 +++ @72 + LTTOB2.6 +++ @69 + LTTOB2.9 +++ @73 + LTTOB2.7 +END + +IF ~~ LTTOB2.3 +SAY @80 +++ @81 + LTTOB2.8 +++ @61 + LTTOB2.4 +++ @72 + LTTOB2.6 +++ @73 + LTTOB2.7 +END + +IF ~~ LTTOB2.2 +SAY @82 +++ @78 + LTTOB2.8 +++ @83 + LTTOB2.5 +++ @72 + LTTOB2.6 +++ @73 + LTTOB2.7 +END + +IF ~~ LTTOB2.1 +SAY @84 +++ @85 + LTTOB2.4 +++ @83 + LTTOB2.5 +++ @86 + LTTOB2.6 +++ @87 + LTTOB2.7 +END + +//MA LT2// + +IF WEIGHT #990 +~Global("P#KiMorningTalk","GLOBAL",1)~ THEN BEGIN KivanMorningTalk1 +SAY @88 +++ @89 DO ~SetGlobal("P#KiMorningTalk","GLOBAL",2)~ + LTTOB2A.1 +++ @90 DO ~SetGlobal("P#KiMorningTalk","GLOBAL",2)~ + LTTOB2A.2 +++ @91 DO ~SetGlobal("P#KiMorningTalk","GLOBAL",2)~ + LTTOB2A.3 +++ @92 DO ~SetGlobal("P#KiMorningTalk","GLOBAL",2)~ + LTTOB2A.4 +++ @93 DO ~SetGlobal("P#KiMorningTalk","GLOBAL",2)~ + LTTOB2A.5 +END + +IF ~~ LTTOB2A.13 +SAY @94 +++ @95 + LTTOB2A.12 +++ @96 + LTTOB2A.10 +END + +IF ~~ LTTOB2A.12 +SAY @97 +IF ~~ THEN EXIT +END + +IF ~~ LTTOB2A.11 +SAY @98 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ LTTOB2A.10 +SAY @99 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ LTTOB2A.9 +SAY @100 +++ @101 + LTTOB2A.10 +++ @102 + LTTOB2A.11 +++ @95 + LTTOB2A.12 +++ @103 + LTTOB2A.13 +END + +IF ~~ LTTOB2A.8 +SAY @104 +IF ~~ THEN EXIT +END + +IF ~~ LTTOB2A.7 +SAY @105 +IF ~~ THEN EXIT +END + +IF ~~ LTTOB2A.6 +SAY @106 +IF ~~ THEN DO ~SetGlobal("P#KivanRomanceInactive","GLOBAL",1)~ EXIT +END + +IF ~~ LTTOB2A.5 +SAY @107 +++ @108 + LTTOB2A.4 +++ @109 + LTTOB2A.9 +++ @110 + LTTOB2A.6 +END + +IF ~~ LTTOB2A.4 +SAY @28 +IF ~~ THEN EXIT +END + +IF ~~ LTTOB2A.3 +SAY @111 +IF ~~ THEN EXIT +END + +IF ~~ LTTOB2A.2 +SAY @112 +IF ~~ THEN EXIT +END + +IF ~~ LTTOB2A.1 +SAY @113 +++ @114 + LTTOB2A.7 +++ @115 + LTTOB2A.8 +++ @109 + LTTOB2A.9 +END + +//LT3// + +IF WEIGHT #990 +~Global("P#KiLOTOBTalk","GLOBAL",6)~ THEN BEGIN KivanLoveTalk3 +SAY @116 +++ @117 + LTTOB3.1 +++ @118 + LTTOB3.2 +++ @119 + LTTOB3.3 +++ @120 + LTTOB3.4 +END + +IF ~~ LTTOB3.18 +SAY @121 += @122 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ LTTOB3.17 +SAY @123 +IF ~~ THEN GOTO LTTOB3.11 +END + +IF ~~ LTTOB3.16 +SAY @124 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ LTTOB3.15 +SAY @125 +IF ~~ THEN GOTO LTTOB3.14 +END + +IF ~~ LTTOB3.14 +SAY @126 +++ @127 + LTTOB3.11 +++ @128 + LTTOB3.7 +++ @129 + LTTOB3.16 +END + +IF ~~ LTTOB3.13 +SAY @130 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ LTTOB3.12 +SAY @131 += @132 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ LTTOB3.11 +SAY @133 +++ @134 + LTTOB3.7 +++ @135 + LTTOB3.18 +++ @136 + LTTOB3.16 +END + +IF ~~ LTTOB3.10 +SAY @137 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ LTTOB3.9 +SAY @138 += @139 +++ @140 + LTTOB3.7 +++ @141 + LTTOB3.15 +++ @142 + LTTOB3.16 +END + +IF ~~ LTTOB3.8 +SAY @143 +++ @144 + LTTOB3.7 +++ @141 + LTTOB3.15 +++ @142 + LTTOB3.16 +++ @145 + LTTOB3.17 +END + +IF ~~ LTTOB3.7 +SAY @146 += @147 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ LTTOB3.6 +SAY @148 +++ @144 + LTTOB3.7 +++ @141 + LTTOB3.15 +++ @149 + LTTOB3.16 +++ @145 + LTTOB3.17 +END + +IF ~~ LTTOB3.5 +SAY @150 +++ @151 + LTTOB3.7 +++ @152 + LTTOB3.13 +++ @153 + LTTOB3.14 +END + +IF ~~ LTTOB3.4 +SAY @154 +++ @155 + LTTOB3.10 +++ @156 + LTTOB3.10 +++ @157 + LTTOB3.7 +++ @158 + LTTOB3.11 +END + +IF ~~ LTTOB3.3 +SAY @159 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ LTTOB3.2 +SAY @160 +++ @161 + LTTOB3.7 +++ @162 + LTTOB3.8 +++ @163 + LTTOB3.9 +END + +IF ~~ LTTOB3.1 +SAY @164 +++ @165 + LTTOB3.3 +++ @166 + LTTOB3.5 +++ @167 + LTTOB3.6 +++ @168 + LTTOB3.12 +END + +//LT 4// + +IF WEIGHT #990 +~Global("P#KiLOTOBTalk","GLOBAL",8)~ THEN BEGIN KivanLoveTalk4 +SAY @169 += @170 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +//LT 5// +//A cup of mulled/chilled wine // + +//DAY// + +IF WEIGHT #990 +~Global("P#KiLOTOBTalk","GLOBAL",10) TimeOfDay(DAY)~ THEN BEGIN KivanLoveTalk5A +SAY @171 +IF ~~ THEN GOTO LTTOB5.0 +END + +//NIGHT// + +IF WEIGHT #990 +~Global("P#KiLOTOBTalk","GLOBAL",10) !TimeOfDay(DAY)~ THEN BEGIN KivanLoveTalk5B +SAY @172 +IF ~~ THEN GOTO LTTOB5.0 +END + +IF ~~ LTTOB5.0 +SAY @173 +++ @174 + LTTOB5.1 +++ @175 + LTTOB5.2 +++ @176 + LTTOB5.3 +++ @177 + LTTOB5.4 +END + +IF ~~ LTTOB5.11 +SAY @178 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ LTTOB5.10 +SAY @179 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ LTTOB5.9 +SAY @180 +++ @176 + LTTOB5.3 +++ @181 + LTTOB5.10 +++ @182 + LTTOB5.11 +END + +IF ~~ LTTOB5.8 +SAY @183 +++ @184 + LTTOB5.7 +++ @185 + LTTOB5.7 +++ @181 + LTTOB5.10 +END + +IF ~~ LTTOB5.8B +SAY @186 +IF ~~ THEN GOTO LTTOB5.8 +END + +IF ~~ LTTOB5.8A +SAY @187 +IF ~~ THEN GOTO LTTOB5.8 +END + +IF ~~ LTTOB5.7 +SAY @188 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ LTTOB5.6 +SAY @189 +++ @185 + LTTOB5.7 +++ @176 + LTTOB5.3 +++ @181 + LTTOB5.10 +END + +IF ~~ LTTOB5.5 +SAY @190 +++ @191+ LTTOB5.8B +++ @192 + LTTOB5.8 +++ @193 + LTTOB5.9 +END + +IF ~~ LTTOB5.4 +SAY @194 +++ @195 + LTTOB5.6 +++ @184 + LTTOB5.7 +++ @176 + LTTOB5.3 +++ @181 + LTTOB5.10 +END + +IF ~~ LTTOB5.3 +SAY @196 +++ @197 + LTTOB5.8A +++ @198+ LTTOB5.8B +++ @199 + LTTOB5.8 +END + +IF ~~ LTTOB5.2 +SAY @200 +++ @195 + LTTOB5.6 +++ @184 + LTTOB5.7 +++ @176 + LTTOB5.3 +++ @181 + LTTOB5.10 +END + +IF ~~ LTTOB5.1 +SAY @201 += @202 +++ @176 + LTTOB5.3 +++ @203 + LTTOB5.5 +END + +//LT 6// +//Blanket game, murmurs into your hair// + +IF WEIGHT #990 +~Global("P#KiLOTOBTalk","GLOBAL",12)~ THEN BEGIN KivanLoveTalk6 +SAY @204 +++ @205 + LTTOB6.1 +++ @206 + LTTOB6.2 +++ @207 + LTTOB6.3 +++ @208 + LTTOB6.4 +END + +IF ~~ LTTOB6.9 +SAY @209 +++ @210 + LTTOB6.8 +++ @211 + LTTOB6.4 +++ @212 + LTTOB6.7 +END + +IF ~~ LTTOB6.8 +SAY @213 +IF ~~ THEN GOTO LTTOB6.6 +END + +IF ~~ LTTOB6.7 +SAY @214 +++ @210 + LTTOB6.8 +++ @211 + LTTOB6.4 +++ @215 + LTTOB6.6 +END + +IF ~~ LTTOB6.6 +SAY @216 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ LTTOB6.5 +SAY @217 +++ @210 + LTTOB6.8 +++ @211 + LTTOB6.4 +++ @69 + LTTOB6.9 +END + +IF ~~ LTTOB6.4 +SAY @218 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ LTTOB6.3 +SAY @219 +++ @69 + LTTOB6.6 +++ @220 + LTTOB6.4 +++ @212 + LTTOB6.7 +END + +IF ~~ LTTOB6.2 +SAY @221 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ LTTOB6.1 +SAY @222 +++ @223 + LTTOB6.2 +++ @207 + LTTOB6.3 +++ @224 + LTTOB6.5 +++ @208 + LTTOB6.4 +END + +//LT7// + +IF WEIGHT #990 +~Global("P#KiLOTOBTalk","GLOBAL",14)~ THEN BEGIN KivanLoveTalk7 +SAY @225 +++ @226 + LTTOB7.1 +++ @227 + LTTOB7.2 +++ @228 + LTTOB7.3 +++ @229 + LTTOB7.4 +END + +IF ~~ LTTOB7.17 +SAY @230 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ LTTOB7.16 +SAY @231 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ LTTOB7.15 +SAY @232 +++ @233 + LTTOB7.16 +++ @234 + LTTOB7.17 +++ @235 + LTTOB7.7 +END + +IF ~~ LTTOB7.14 +SAY @236 += @237 +++ @238 + LTTOB7.3 +++ @239 + LTTOB7.7 +END + +IF ~~ LTTOB7.13 +SAY @240 +++ @238 + LTTOB7.3 +++ @241 + LTTOB7.7 +END + +IF ~~ LTTOB7.12 +SAY @242 +++ @238 + LTTOB7.3 +++ @241 + LTTOB7.7 +END + +IF ~~ LTTOB7.11 +SAY @243 +++ @238 + LTTOB7.3 +++ @241 + LTTOB7.7 +END + +IF ~~ LTTOB7.10 +SAY @244 +++ @245 + LTTOB7.6 +++ @238 + LTTOB7.3 +END + +IF ~~ LTTOB7.9 +SAY @246 +++ @247 + LTTOB7.15 +++ @248 + LTTOB7.15 +++ @249 + LTTOB7.15 +++ @233 + LTTOB7.16 +END + +IF ~~ LTTOB7.8 +SAY @250 +++ @251 + LTTOB7.11 +++ @252 + LTTOB7.12 +++ @253 + LTTOB7.13 +++ @254 + LTTOB7.14 +END + +IF ~~ LTTOB7.7 +SAY @255 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ LTTOB7.6 +SAY @256 +++ @257 + LTTOB7.9 +++ @258 + LTTOB7.7 +END + +IF ~~ LTTOB7.5 +SAY @259 += @260 +++ @261 + LTTOB7.6 +++ @262 + LTTOB7.10 +++ @263 + LTTOB7.3 +END + +IF ~~ LTTOB7.4 +SAY @264 +++ @265 + LTTOB7.6 +++ @262 + LTTOB7.10 +++ @266 + LTTOB7.3 +END + +IF ~~ LTTOB7.3 +SAY @267 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ LTTOB7.2 +SAY @268 +++ @258 + LTTOB7.7 +++ @269 + LTTOB7.8 +++ @270 + LTTOB7.9 +END + +IF ~~ LTTOB7.1 +SAY @271 +++ @272 + LTTOB7.5 +++ @273 + LTTOB7.6 +++ @228 + LTTOB7.3 +++ @229 + LTTOB7.4 +END + +//After Innocence Challenge// + +IF WEIGHT #990 +~Global("P#KiInnocence","GLOBAL",1)~ THEN BEGIN KivanLoveTalk8 +SAY @274 +++ @275 DO ~SetGlobal("P#KiInnocence","GLOBAL",2)~ + P#P#In1.1 +++ @276 DO ~SetGlobal("P#KiInnocence","GLOBAL",2)~ + P#P#In1.2 +++ @277 DO ~SetGlobal("P#KiInnocence","GLOBAL",2)~ + P#P#In1.3 +++ @278 DO ~SetGlobal("P#KiInnocence","GLOBAL",2)~ + P#P#In1.4 +END + +IF ~~ P#P#In1.12 +SAY @279 +IF ~~ THEN EXIT +END + +IF ~~ P#P#In1.11 +SAY @280 += @281 +IF ~~ THEN EXIT +END + +IF ~~ P#P#In1.10 +SAY @282 +IF ~~ THEN EXIT +END + +IF ~~ P#P#In1.9 +SAY @283 +IF ~~ THEN EXIT +END + +IF ~~ P#P#In1.8 +SAY @284 +++ @285 + P#P#In1.5 +++ @286 + P#P#In1.6 +++ @287 + P#P#In1.7 +END + +IF ~~ P#P#In1.7 +SAY @288 +IF ~~ THEN EXIT +END + +IF ~~ P#P#In1.6 +SAY @289 += @290 += @291 += @292 +IF ~~ THEN EXIT +END + +IF ~~ P#P#In1.5 +SAY @293 += @291 += @292 +IF ~~ THEN EXIT +END + +IF ~~ P#P#In1.4 +SAY @294 +IF ~~ THEN EXIT +END + +IF ~~ P#P#In1.3 +SAY @295 +++ @296 + P#P#In1.10 +++ @297 + P#P#In1.11 +++ @298 + P#P#In1.12 +END + +IF ~~ P#P#In1.2 +SAY @299 +++ @300 + P#P#In1.8 +++ @301 + P#P#In1.9 +++ @302 + P#P#In1.3 +++ @278 + P#P#In1.4 +END + +IF ~~ P#P#In1.1 +SAY @303 +++ @285 + P#P#In1.5 +++ @286 + P#P#In1.6 +++ @287 + P#P#In1.7 +END + + +//Standard Flirts// + +IF WEIGHT #990 +~Global("P#KivFlirtEarly","GLOBAL",2)~ THEN BEGIN KivanFlirtStandard +SAY @304 +IF ~Global("P#GaveWreath","GLOBAL",0) RandomNum(20,1)~ THEN GOTO KiTOBFL1.1 +IF ~Global("P#GaveWreath","GLOBAL",0) RandomNum(20,2)~ THEN GOTO KiTOBFL1.2 +IF ~Global("P#GaveWreath","GLOBAL",0) RandomNum(20,3)~ THEN GOTO KiTOBFL1.3 +IF ~Global("P#GaveWreath","GLOBAL",0) RandomNum(20,4)~ THEN GOTO KiTOBFL1.4 +IF ~Global("P#GaveWreath","GLOBAL",0) RandomNum(20,5)~ THEN GOTO KiTOBFL1.5 +IF ~Global("P#GaveWreath","GLOBAL",0) RandomNum(20,6)~ THEN GOTO KiTOBFL1.6 +IF ~Global("P#GaveWreath","GLOBAL",0) RandomNum(20,7)~ THEN GOTO KiTOBFL1.7 +IF ~Global("P#GaveWreath","GLOBAL",0) RandomNum(20,8)~ THEN GOTO KiTOBFL1.8 +IF ~Global("P#GaveWreath","GLOBAL",0) RandomNum(20,9)~ THEN GOTO KiTOBFL1.9 +IF ~Global("P#GaveWreath","GLOBAL",0) RandomNum(20,10)~ THEN GOTO KiTOBFL1.10 +IF ~Global("P#GaveWreath","GLOBAL",0) RandomNum(20,11)~ THEN GOTO KiTOBFL1.11 +IF ~Global("P#GaveWreath","GLOBAL",0) RandomNum(20,12)~ THEN GOTO KiTOBFL1.12 +IF ~Global("P#GaveWreath","GLOBAL",0) RandomNum(20,13)~ THEN GOTO KiTOBFL1.13 +IF ~Global("P#GaveWreath","GLOBAL",0) RandomNum(20,14)~ THEN GOTO KiTOBFL1.14 +IF ~Global("P#GaveWreath","GLOBAL",0) RandomNum(20,15)~ THEN GOTO KiTOBFL1.15 +IF ~Global("P#GaveWreath","GLOBAL",0) RandomNum(20,16)~ THEN GOTO KiTOBFL1.16 +IF ~Global("P#GaveWreath","GLOBAL",0) RandomNum(20,17)~ THEN GOTO KiTOBFL1.17 +IF ~Global("P#GaveWreath","GLOBAL",0) RandomNum(20,18)~ THEN GOTO KiTOBFL1.18 +IF ~Global("P#GaveWreath","GLOBAL",0) RandomNum(20,19)~ THEN GOTO KiTOBFL1.19 +IF ~Global("P#GaveWreath","GLOBAL",0) RandomNum(20,20)~ THEN GOTO KiTOBFL1.20 + +IF ~Global("P#GaveWreath","GLOBAL",1) RandomNum(19,1)~ THEN GOTO KiTOBFL1.1 +IF ~Global("P#GaveWreath","GLOBAL",1) RandomNum(19,2)~ THEN GOTO KiTOBFL1.2 +IF ~Global("P#GaveWreath","GLOBAL",1) RandomNum(19,3)~ THEN GOTO KiTOBFL1.3 +IF ~Global("P#GaveWreath","GLOBAL",1) RandomNum(19,4)~ THEN GOTO KiTOBFL1.4 +IF ~Global("P#GaveWreath","GLOBAL",1) RandomNum(19,5)~ THEN GOTO KiTOBFL1.5 +IF ~Global("P#GaveWreath","GLOBAL",1) RandomNum(19,6)~ THEN GOTO KiTOBFL1.6 +IF ~Global("P#GaveWreath","GLOBAL",1) RandomNum(19,7)~ THEN GOTO KiTOBFL1.7 +IF ~Global("P#GaveWreath","GLOBAL",1) RandomNum(19,8)~ THEN GOTO KiTOBFL1.8 +IF ~Global("P#GaveWreath","GLOBAL",1) RandomNum(19,9)~ THEN GOTO KiTOBFL1.9 +IF ~Global("P#GaveWreath","GLOBAL",1) RandomNum(19,10)~ THEN GOTO KiTOBFL1.10 +IF ~Global("P#GaveWreath","GLOBAL",1) RandomNum(19,11)~ THEN GOTO KiTOBFL1.11 +IF ~Global("P#GaveWreath","GLOBAL",1) RandomNum(19,12)~ THEN GOTO KiTOBFL1.12 +IF ~Global("P#GaveWreath","GLOBAL",1) RandomNum(19,13)~ THEN GOTO KiTOBFL1.13 +IF ~Global("P#GaveWreath","GLOBAL",1) RandomNum(19,14)~ THEN GOTO KiTOBFL1.14 +IF ~Global("P#GaveWreath","GLOBAL",1) RandomNum(19,15)~ THEN GOTO KiTOBFL1.15 +IF ~Global("P#GaveWreath","GLOBAL",1) RandomNum(19,16)~ THEN GOTO KiTOBFL1.20 +IF ~Global("P#GaveWreath","GLOBAL",1) RandomNum(19,17)~ THEN GOTO KiTOBFL1.17 +IF ~Global("P#GaveWreath","GLOBAL",1) RandomNum(19,18)~ THEN GOTO KiTOBFL1.18 +IF ~Global("P#GaveWreath","GLOBAL",1) RandomNum(19,19)~ THEN GOTO KiTOBFL1.19 +END + +IF ~~ KiTOBFL1.1 +SAY @305 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.2 +SAY @306 +++ @307 + KiTOBFL1.2.1 +++ @308 + KiTOBFL1.2.2 +++ @309 + KiTOBFL1.2.3 +END + +IF ~~ KiTOBFL1.2.1 +SAY @310 += @311 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.2.2 +SAY @312 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.2.3 +SAY @313 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.3 +SAY @314 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.4 +SAY @315 +++ @316 + KiTOBFL1.4.1 +++ @317 + KiTOBFL1.4.2 +++ @318 + KiTOBFL1.4.3 +++ @319 + KiTOBFL1.4.4 +++ @320 + KiTOBFL1.4.5 +END + +IF ~~ KiTOBFL1.4.1 +SAY @321 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.4.2 +SAY @322 +++ @323 + KiTOBFL1.4.2.1 +++ @324 + KiTOBFL1.4.2.2 +++ @325 + KiTOBFL1.4.2.2 +++ @318 + KiTOBFL1.4.3 +END + +IF ~~ KiTOBFL1.4.2.1 +SAY @326 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.4.2.2 +SAY @327 +++ @328 + KiTOBFL1.4.2.2 +++ @329 + KiTOBFL1.4.2.3 +++ @318 + KiTOBFL1.4.2.4 +END + +IF ~~ KiTOBFL1.4.2.3 +SAY @330 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.4.2.4 +SAY @331 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.4.3 +SAY @332 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.4.4 +SAY @333 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.4.5 +SAY @334 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.5 +SAY @335 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.6 +SAY @336 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.7 +SAY @337 += @338 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.8 +SAY @339 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.9 +SAY @340 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.10 +SAY @341 +++ @342 + KiTOBFL1.10.1 +++ @343 + KiTOBFL1.10.2 +++ @344 + KiTOBFL1.10.3 +++ @345 + KiTOBFL1.10.4 +END + +IF ~~ KiTOBFL1.10.1 +SAY @346 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.10.2 +SAY @347 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.10.3 +SAY @348 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.10.4 +SAY @349 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.11 +SAY @350 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.12 +SAY @351 += @352 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.13 +SAY @353 += @354 +++ @355 + KiTOBFL1.13.1 +++ @356 + KiTOBFL1.13.2 +++ @357 + KiTOBFL1.13.3 +END + +IF ~~ KiTOBFL1.13.1 +SAY @358 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.13.2 +SAY @359 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.13.3 +SAY @360 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.14 +SAY @361 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.15 +SAY @362 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.16 +SAY @363 +IF ~~ THEN DO ~SetGlobal("P#GaveWreath","GLOBAL",1) GiveItemCreate("P#WREATH",Player1,1,0,0)~ EXIT +END + +IF ~~ KiTOBFL1.17 +SAY @364 +++ @365 + KiTOBFL1.17.1 +++ @366 + KiTOBFL1.17.2 +++ @367 + KiTOBFL1.17.3 +++ @368 + KiTOBFL1.17.4 +END + +IF ~~ KiTOBFL1.17.1 +SAY @369 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.17.2 +SAY @370 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.17.3 +SAY @371 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.17.4 +SAY @372 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.18 +SAY @373 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.19 +SAY @374 +IF ~~ THEN EXIT +END + +IF ~~ KiTOBFL1.20 +SAY @375 +IF ~~ THEN EXIT +END + +IF WEIGHT #990 +~Global("P#KivFlirtNight","GLOBAL",2)~ THEN BEGIN KivanFlirtNight +SAY @376 +IF ~RandomNum(20,1)~ THEN GOTO KiNiFl1.1 +IF ~RandomNum(20,2)~ THEN GOTO KiNiFl1.2 +IF ~RandomNum(20,3)~ THEN GOTO KiNiFl1.3 +IF ~RandomNum(20,4)~ THEN GOTO KiNiFl1.4 +IF ~RandomNum(20,5)~ THEN GOTO KiNiFl1.5 +IF ~RandomNum(20,6)~ THEN GOTO KiNiFl1.6 +IF ~RandomNum(20,7)~ THEN GOTO KiNiFl1.7 +IF ~RandomNum(20,8)~ THEN GOTO KiNiFl1.8 +IF ~RandomNum(20,9)~ THEN GOTO KiNiFl1.9 +IF ~RandomNum(20,10)~ THEN GOTO KiNiFl1.10 +IF ~RandomNum(20,11)~ THEN GOTO KiNiFl1.11 +IF ~RandomNum(20,12)~ THEN GOTO KiNiFl1.12 +IF ~RandomNum(20,13)~ THEN GOTO KiNiFl1.13 +IF ~RandomNum(20,14)~ THEN GOTO KiNiFl1.14 +IF ~RandomNum(20,15)~ THEN GOTO KiNiFl1.15 +IF ~RandomNum(20,16)~ THEN GOTO KiNiFl1.16 +IF ~RandomNum(20,17)~ THEN GOTO KiNiFl1.17 +IF ~RandomNum(20,18)~ THEN GOTO KiNiFl1.18 +IF ~RandomNum(20,19)~ THEN GOTO KiNiFl1.19 +IF ~RandomNum(20,20)~ THEN GOTO KiNiFl1.20 +END + +IF ~~ KiNiFl1.1 +SAY @377 += @378 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.2 +SAY @379 += @380 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.3 +SAY @381 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.4 +SAY @382 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.5 +SAY @383 += @384 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.6 +SAY @385 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.7 +SAY @386 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.8 +SAY @387 += @388 +++ @389 + KiNiFl1.8.1 +++ @390 + KiNiFl1.8.2 +++ @391 + KiNiFl1.8.3 +++ @392 + KiNiFl1.8.4 +++ @393 + KiNiFl1.8.5 +END + +IF ~~ KiNiFl1.8.1 +SAY @394 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.8.2 +SAY @395 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.8.3 +SAY @396 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.8.4 +SAY@397 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.8.5 +SAY @398 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.9 +SAY @399 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.10 +SAY @400 += @401 += @402 += @403 += @404 += @405 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.11 +SAY @406 += @407 += @408 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.12 +SAY @409 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.13 +SAY @410 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.14 +SAY @411 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.15 +SAY @412 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.16 +SAY @413 += @414 += @415 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.17 +SAY @416 += @417 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.18 +SAY @418 += @419 += @420 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.19 +SAY @421 += @422 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KiNiFl1.20 +SAY @423 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +END + diff --git a/kivan/d/p#kimaq.d b/kivan/d/p#kimaq.d new file mode 100644 index 0000000..3f6f37e --- /dev/null +++ b/kivan/d/p#kimaq.d @@ -0,0 +1,238 @@ +//Jozzi// + +BEGIN P#IHTIA + +CHAIN +IF WEIGHT #0 ~CombatCounter(0) +InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#TalkedToSnake","GLOBAL",0)~ THEN P#IHTIA StartMalentiQuest +@0 +== P#KIVJ @1 +== P#IHTIA @2 +== P#KIVJ @3 +== P#IHTIA @4 +== P#KIVJ @5 +== P#IHTIA @6 += @7 +DO ~SetGlobal("P#TalkedToSnake","GLOBAL",1) SetGlobal("P#MeetJozzi","GLOBAL",1)~ +END +++ @8 EXTERN P#KIVJ P#KIQUC1.2 +++ @9 DO ~SetGlobal("P#KnowMalenti", "GLOBAL",1)~ + P#KIQUC1.1 +++ @10 DO ~SetGlobal("P#KnowMalenti","GLOBAL",1)~ + P#KIQUC1.3 +++ @11 DO ~SetGlobal("P#KnowMalenti", "GLOBAL",1)~ + P#KIQUC1.4 + +APPEND P#IHTIA + +IF ~~ P#KIQUC1.1 +SAY @12 += @13 += @14 += @15 += @16 +++ @17 + P#KIQUC1.7 +++ @18 + P#KIQUC1.8 +++ @19 + P#KIQUC1.9 +END + +IF ~~ P#KIQUC1.3 +SAY @20 +++ @17 + P#KIQUC1.7 +++ @21 + P#KIQUC1.10 +++ @19 + P#KIQUC1.9 +++ @22 + P#KIQUC1.11 +END + +IF ~~ P#KIQUC1.4 +SAY @23 += @24 += @25 +IF ~~ THEN DO ~SetGlobal("P#BetrayMalenti","GLOBAL",1)~ EXIT +END + +IF ~~ P#KIQUC1.5 +SAY @26 +++ @27 + P#KIQUC1.13 +++ @28 EXTERN P#KIVJ P#KIQUC1.12 +END + +IF ~~ P#KIQUC1.6 +SAY @29 += @13 += @30 += @15 += @31 +++ @17 + P#KIQUC1.7 +++ @32 + P#KIQUC1.8 +++ @33 + P#KIQUC1.9 +++ @34 + P#KIQUC1.7 +END + +IF ~~ P#KIQUC1.7 +SAY @35 += @36 += @25 +IF ~~ THEN DO ~SetGlobal("P#BetrayMalenti","GLOBAL",1)~ EXIT +END + +IF ~~ P#KIQUC1.8 +SAY @37 +IF ~~ THEN DO ~SetGlobal("P#HelpMalenti","GLOBAL",1) SetGlobal("P#MalentiWaits","GLOBAL",1)~ EXIT +END + +IF ~~ P#KIQUC1.9 +SAY @38 += @39 +++ @40 DO ~SetGlobal("P#MalentiReward","GLOBAL",1)~ + P#KIQUC1.14 +++ @41 DO ~SetGlobal("P#MalentiReward","GLOBAL",1)~ + P#KIQUC1.15 +++ @42 DO ~SetGlobal("P#MalentiReward","GLOBAL",1)~+ P#KIQUC1.16 +++ @34 DO ~SetGlobal("P#MalentiReward","GLOBAL",1)~ + P#KIQUC1.7 +END + +IF ~~ P#KIQUC1.10 +SAY @43 +IF ~~ THEN DO ~ SetGlobal("P#MalentiReward","GLOBAL",2) SetGlobal("P#MalentiWaits","GLOBAL",1)~ EXIT +END + +IF ~~ P#KIQUC1.11 +SAY @15 += @16 +++ @17 + P#KIQUC1.7 +++ @44 + P#KIQUC1.10 +++ @33 + P#KIQUC1.9 +++ @34 + P#KIQUC1.7 +END + +IF ~~ P#KIQUC1.14 +SAY @45 += @46 +++ @47 + P#KIQUC1.16 +++ @34 + P#KIQUC1.7 +END + +IF ~~ P#KIQUC1.15 +SAY @48 += @49 +++ @50 + P#KIQUC1.7 +++ @51 + P#KIQUC1.10 ++ ~!Alignment(Player1,MASK_GOOD)~ + @52 + P#KIQUC1.16 +++ @34 + P#KIQUC1.7 +END + +IF ~~ P#KIQUC1.16 +SAY @53 +IF ~~ THEN DO ~SetGlobal("P#MalentiReward","GLOBAL",3) SetGlobal("P#MalentiWaits","GLOBAL",1)~ EXIT +END + +END + +CHAIN P#KIVJ P#KIQUC1.12 +@54 +== P#IHTIA @55 += @56 += @57 +END +++ @40 EXTERN P#IHTIA P#KIQUC1.14 +++ @41 EXTERN P#IHTIA P#KIQUC1.15 +++ @42 EXTERN P#IHTIA P#KIQUC1.16 +++ @34 EXTERN P#IHTIA P#KIQUC1.7 + +CHAIN P#IHTIA P#KIQUC1.13 + @58 += @59 += @60 += @61 += @62 += @63 += @64 += @65 += @66 +== P#KIVJ @67 += @68 +== P#IHTIA @69 +== P#KIVJ @70 +== P#IHTIA @71 +== P#KIVJ @72 +END P#IHTIA P#KIQUC1.11 + + +CHAIN P#KIVJ P#KIQUC1.2 +@73 += @74 +== P#IHTIA @75 += @76 +== P#KIVJ @77 +== P#IHTIA @78 +END +++ @79 EXTERN P#IHTIA P#KIQUC1.5 +++ @80 EXTERN P#IHTIA P#KIQUC1.6 + + +// Once party has the item: + + +APPEND P#IHTIA + +IF ~Global("P#MalentiWaits","GLOBAL",3)~ MalentyFinale +SAY @81 +++ @82 DO ~SetGlobal("P#MalentiWaits","GLOBAL",4)~ + P#KIQUC1.18 ++ ~Global("P#MalentiReward","GLOBAL",3)~+ @83 DO ~SetGlobal("P#MalentiWaits","GLOBAL",4)~ + P#KIQUC1.19 +++ @84 DO ~SetGlobal("P#MalentiWaits","GLOBAL",4)~ EXTERN P#KIVJ P#KIQUC1.20 +END + +IF ~~ P#KIQUC1.24 +SAY @85 +IF ~~ THEN DO ~Enemy()~ +EXIT +END + +END + +CHAIN P#IHTIA P#KIQUC1.18 +@86 +== P#KIVJ @87 +END +++ @88 EXTERN P#KIVJ P#KIQUC1.21 +++ @89 EXTERN P#KIVJ P#KIQUC1.22 +++ @90 + P#KIQUC1.23 + +CHAIN P#IHTIA P#KIQUC1.19 +@91 +== P#KIVJ @87 +END +++ @88 EXTERN P#KIVJ P#KIQUC1.21 +++ @89 EXTERN P#KIVJ P#KIQUC1.22 +++ @90 + P#KIQUC1.23 + +CHAIN P#KIVJ P#KIQUC1.20 +@92 +== P#IHTIA @93 +END +++ @94 EXTERN P#IHTIA P#KIQUC1.24 +++ @95 EXTERN P#IHTIA P#KIQUC1.18 ++ ~Global("P#MalentiReward","GLOBAL",3)~+ @96 EXTERN P#IHTIA P#KIQUC1.19 + +CHAIN P#KIVJ P#KIQUC1.21 +@97 += @98 +== P#IHTIA @99 +END +IF ~!Global("P#MalentiReward","GLOBAL",2)~ THEN DO ~AddexperienceParty(5000) TakePartyItem("P#IHTIA") GiveGoldForce(10000) GiveItemCreate("P#UL11",Player1,0,10,0) SetGlobal("P#MalentiReward","GLOBAL",5) ActionOverride("seasnake1",ApplySpell(Myself,DRYAD_TELEPORT))~ EXIT +IF ~Global("P#MalentiReward","GLOBAL",2)~ THEN DO ~AddexperienceParty(5000) TakePartyItem("P#IHTIA") GiveItemCreate("P#UL11",Player1,0,10,0) SetGlobal("P#MalentiReward","GLOBAL",5) ActionOverride("seasnake1",ApplySpell(Myself,DRYAD_TELEPORT))~ EXIT + + +CHAIN P#KIVJ P#KIQUC1.22 +@100 // Joined the first two sentences, and reworded some for clarity. += @101 +== P#IHTIA @99 +END +IF ~!Global("P#MalentiReward","GLOBAL",2)~ THEN DO ~AddexperienceParty(10000) GiveGoldForce(10000) TakePartyItem("P#IHTIA") GiveItemCreate("P#UL11",Player1,0,10,0) SetGlobal("P#MalentiReward","GLOBAL",6) ActionOverride("seasnake1",ApplySpell(Myself,DRYAD_TELEPORT))~ EXIT +IF ~Global("P#MalentiReward","GLOBAL",2)~ THEN DO ~AddexperienceParty(10000) TakePartyItem("P#IHTIA") GiveItemCreate("P#UL11",Player1,0,10,0) SetGlobal("P#MalentiReward","GLOBAL",6) ActionOverride("seasnake1",ApplySpell(Myself,DRYAD_TELEPORT))~ EXIT + +CHAIN P#IHTIA P#KIQUC1.23 +@102 += @103 +END +IF ~~ THEN DO ~AddexperienceParty(3000) TakePartyItem("P#IHTIA") SetGlobal("P#MalentiReward","GLOBAL",7) ActionOverride("seasnake1",ApplySpell(Myself,DRYAD_TELEPORT))~ EXIT + diff --git a/kivan/d/p#kimw.d b/kivan/d/p#kimw.d new file mode 100644 index 0000000..3081ea5 --- /dev/null +++ b/kivan/d/p#kimw.d @@ -0,0 +1,56 @@ +//Master Wraith// + +BEGIN ~P#DEH01~ + +EXTEND_BOTTOM HGWRA01 18 +IF ~InParty("P#kivan") !Dead("P#Kivan") Global("P#KivanRomanceActive","GLOBAL",2) !Global("P#KivanRomanceInactive","GLOBAL",1)~ THEN GOTO P#KivanWraith +END + +EXTEND_BOTTOM HGWRA01 24 +IF ~Global("P#KiLovedOne","GLOBAL",1) +~ THEN DO ~ClearAllActions() +StartCutSceneMode() +StartCutScene("P#KIMW") +~ EXIT +END + +APPEND HGWRA01 + +IF ~~ P#KivanWraith +SAY @0 +IF ~~ THEN DO ~SetGlobal("P#KiLovedOne","GLOBAL",1)~ EXTERN P#KI25J P#KiWraith1 +END + +END + +APPEND P#KI25J + +IF ~~ P#KiWraith1 +SAY @1 +IF ~~ THEN EXTERN HGWRA01 24 +END + +IF ~~ KiWra1.1 +SAY @2 +IF ~~ THEN EXTERN HGWRA01 25 +END + +IF ~~ KiWra1.2 +SAY @3 +IF ~~ THEN EXTERN HGWRA01 25 +END +END + +CHAIN +IF ~NumTimesTalkedTo(0)~ THEN P#DEH01 P#DeherianaWraith +@4 += @5 +== P#KI25J @6 +END +++ @7 EXTERN P#KI25J KiWra1.1 +++ @8 EXTERN P#KI25J KiWra1.2 +++ @9 EXTERN P#KI25J KiWra1.1 +++ @10 EXTERN P#KI25J KiWra1.1 +++ @11 EXTERN P#KI25J KiWra1.1 +++ @12 EXTERN P#KI25J KiWra1.2 + diff --git a/kivan/d/p#kinew.d b/kivan/d/p#kinew.d new file mode 100644 index 0000000..b372734 --- /dev/null +++ b/kivan/d/p#kinew.d @@ -0,0 +1,4333 @@ +ADD_TRANS_ACTION BHOISIG BEGIN 0 END BEGIN +END +~SetGlobal("P#GaalSpoke","GLOBAL",1)~ + +APPEND P#KIVJ + +//Catching up Cycle, new + +IF WEIGHT #990 +~Global("P#KivanCatch","GLOBAL",2)~ THEN BEGIN KivanCatch1 +SAY @0 +++ @1 + KIOL1.1 +++ @2 + KIOL1.2 +++ @3 + KIOL1.3 +++ @4 + KIOL1.4 ++ ~Gender(Player1,FEMALE)~ + @5 + KIOL1.5 +END + +IF ~~ KIOL1.17 +SAY @6 +IF ~~ THEN EXIT +END + +IF ~~ KIOL1.16 +SAY @7 +IF ~~ THEN EXIT +END + +IF ~~ KIOL1.15 +SAY @8 +IF ~~ THEN EXIT +END + +IF ~~ KIOL1.14 +SAY @9 +++ @10 + KIOL1.15 +++ @11 + KIOL1.16 ++ ~Class(Player1,BARD_ALL)~+ @12 + KIOL1.17 +++ @13 EXIT +++ @14 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ EXIT +END + +IF ~~ KIOL1.13 +SAY @15 += @16 +IF ~~ THEN EXIT +END + +IF ~~ KIOL1.12 +SAY @17 += @18 +IF ~~ THEN EXIT +END + + +IF ~~ KIOL1.11 +SAY @19 +IF ~~ THEN EXIT +END + +IF ~~ KIOL1.10 +SAY @20 +IF ~~ THEN EXIT +END + +IF ~~ KIOL1.9 +SAY @21 +++ @22 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIOL1.5A +++ @23 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIOL1.5A +++ @24 + KIOL1.5A +++ @25 + KIOL1.5A ++ ~OR(4) +Global("J#KelseyRomanceActive","GLOBAL",1) +Global("TsujathaRomanceActive","GLOBAL",1) +GlobalGT("SolaTalk","GLOBAL",1) +Global("H#ValygarRomanceActive","GLOBAL",1) +~ + @26 DO ~IncrementGlobal("P#KivanLove","GLOBAL",-10)~ + KIOL1.5B ++ ~OR(2) +Global("ChloeRomanceActiveCR","GLOBAL",1) +Global("ImoenRomanceActive","GLOBAL",1) +~ + @27 DO ~IncrementGlobal("P#KivanLove","GLOBAL",-10)~ + KIOL1.5B +END + +IF ~~ KIOL1.8 +SAY @28 +IF ~~ THEN EXIT +END + +IF ~~ KIOL1.7 +SAY @29 +++ @30 + KIOL1.12 +++ @31 + KIOL1.13 +++ @32 EXIT +END + +IF ~~ KIOL1.6 +SAY @33 +++ @34 + KIOL1.11 +++ @35 EXIT +++ @36 EXIT +END + +IF ~~ KIOL1.5 +SAY @37 +++ @22 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIOL1.5A +++ @23 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIOL1.5A +++ @24 + KIOL1.5A +++ @25 + KIOL1.5A ++ ~OR(4) +Global("J#KelseyRomanceActive","GLOBAL",1) +Global("TsujathaRomanceActive","GLOBAL",1) +GlobalGT("SolaTalk","GLOBAL",1) +Global("H#ValygarRomanceActive","GLOBAL",1)~ + @26 DO ~IncrementGlobal("P#KivanLove","GLOBAL",-10)~ + KIOL1.5B ++ ~OR(2) +Global("ChloeRomanceActiveCR","GLOBAL",1) +Global("ImoenRomanceActive","GLOBAL",1)~ + @27 DO ~IncrementGlobal("P#KivanLove","GLOBAL",-10)~ + KIOL1.5B +END + +IF ~~ KIOL1.5A +SAY @38 +++ @39 DO ~IncrementGlobal("P#KivanOffence","GLOBAL", 1) IncrementGlobal("P#KivanLove","GLOBAL",-1)~ + KIOL1.10 +++ @40 EXIT +++ @41 + KIOL1.14 +END + +IF ~~ KIOL1.5B +SAY @42 +IF ~~ THEN EXIT +END + +IF ~~ KIOL1.4 +SAY @43 +++ @44 + KIOL1.6 +++ @45 + KIOL1.7 +++ @46 + KIOL1.8 ++ ~Gender(Player1,FEMALE)~ + @5 + KIOL1.9 +END + +IF ~~ KIOL1.3 +SAY @47 +++ @44 + KIOL1.6 +++ @45 + KIOL1.7 +++ @46 + KIOL1.8 ++ ~Gender(Player1,FEMALE)~ + @5 + KIOL1.9 +END + +IF ~~ KIOL1.2 +SAY @48 += @43 +++ @44 + KIOL1.6 +++ @45 + KIOL1.7 +++ @46 + KIOL1.8 ++ ~Gender(Player1,FEMALE)~ + @5 + KIOL1.9 +END + +IF ~~ KIOL1.1 +SAY @49 +++ @44 + KIOL1.6 +++ @45 + KIOL1.7 +++ @46 + KIOL1.8 ++ ~Gender(Player1,FEMALE)~ + @5 + KIOL1.9 +END + +// + +IF WEIGHT #990 +~Global("P#KivanCatch","GLOBAL",4)~ THEN BEGIN KivanCatch2 +SAY @50 +++ @51 + KIOL2.1 ++ ~!Class(Player1,THIEF_ALL) !Class(Player1,RANGER_ALL)~ + @52 + KIOL2.2 +++ @53 + KIOL2.3 +END + +IF ~~ KIOL2.18 +SAY @54 +IF ~~ THEN GOTO KIOL2.13 +END + + +IF ~~ KIOL2.17 +SAY @55 +IF ~~ THEN GOTO KIOL2.13 +END + +IF ~~ KIOL2.16 +SAY @56 +++ @57 EXIT +++ @58 EXIT +++ @59 + KIOL2.17 +END + +IF ~~ KIOL2.15 +SAY @60 +IF ~~ THEN EXIT +END + +IF ~~ KIOL2.14 +SAY @61 +IF ~~ THEN GOTO KIOL2.13 +END + +IF ~~ KIOL2.13 +SAY @62 +IF ~~ THEN GOTO KIOL2.10 +END + +IF ~~ KIOL2.12 +SAY @63 +IF ~~ THEN GOTO KIOL2.10 +END + +IF ~~ KIOL2.11 +SAY @64 +IF ~~ THEN EXIT +END + +IF ~~ KIOL2.10 +SAY @65 +IF ~~ THEN EXIT +END + +IF ~~ KIOL2.9 +SAY @66 +IF ~~ THEN EXIT +END + +IF ~~ KIOL2.8 +SAY @67 +IF ~~ THEN EXIT +END + +IF ~~ KIOL2.7 +SAY @68 +++ @69 + KIOL2.16 +++ @70 + KIOL2.17 +++ @71 + KIOL2.18 +END + +IF ~~ KIOL2.6 +SAY @72 ++ ~!Class(Player1,THIEF_ALL) !Class(Player1,RANGER_ALL)~ + @73+ KIOL2.14 +++ @74+ KIOL2.7 ++~InParty("Yoshimo")~+ @75+ KIOL2.15 +END + +IF ~~ KIOL2.5 +SAY @76 ++ ~Gender(Player1,FEMALE)~ + @77 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIOL2.11 +++ @78 + KIOL2.12 +++ @79 + KIOL2.13 +END + +IF ~~ KIOL2.4 +SAY @80 +IF ~~ THEN GOTO KIOL2.3 +END + +IF ~~ KIOL2.3 +SAY @81 += @82 +++ @83 + KIOL2.8 +++ @84 + KIOL2.8 +++ @85 + KIOL2.9 +++ @86 + KIOL2.10 +END + +IF ~~ KIOL2.2 +SAY @87 +++ @88+ KIOL2.5 +++ @89+ KIOL2.6 +++ @74+ KIOL2.7 +END + +IF ~~ KIOL2.1 +SAY @90 +++ @91 + KIOL2.3 +++ @92 + KIOL2.4 +END + +// +IF WEIGHT #990 +~Global("P#KivanCatch","GLOBAL",6)~ THEN BEGIN KivanCatch3 +SAY @93 +++ @94 + KIOL3.1 +++ @95 + KIOL3.2 +++ @96 + KIOL3.3 +END + +IF ~~ KIOL3.1 +SAY @97 +++ @98 EXIT +++ @95 + KIOL3.2 +++ @96 + KIOL3.3 +END + +IF ~~ KIOL3.2 +SAY @99 +++ @100 + KIOL3.4 +++ @101 + KIOL3.5 +END + +IF ~~ KIOL3.3 +SAY @102 +++ @103 + KIOL3.6 +++ @104 + KIOL3.4 +++ @105+ KIOL3.7 +++ @106+ KIOL3.8 +END + +IF ~~ KIOL3.4 +SAY @107 +++ @108+ KIOL3.9 +++ @109+ KIOL3.10 +++ @110 + KIOL3.11 +END + +IF ~~ KIOL3.5 +SAY @111 +++ @112 + KIOL3.12 +++ @113 + KIOL3.12 +++ @114 + KIOL3.3 +END + +IF ~~ KIOL3.6 +SAY @115 +++ @116 + KIOL3.14 +++ @117 EXIT +++ @106+ KIOL3.8 +END + +IF ~~ KIOL3.7 +SAY @118 +IF ~~ THEN EXIT +END + +IF ~~ KIOL3.8 +SAY @119 +IF ~~ THEN EXIT +END + +IF ~~ KIOL3.9 +SAY @120 +IF ~~ THEN DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +END + +IF ~~ KIOL3.10 +SAY @121 ++ ~InParty("Minsc")~+ @112 + KIOL3.12 +++ @122 + KIOL3.12 +++ @123 + KIOL3.11 +++ @124 + KIOL3.3 +END + +IF ~~ KIOL3.11 +SAY @125 +IF ~~ THEN EXIT +END + +IF ~~ KIOL3.12 +SAY @126 +IF ~~ THEN EXIT +END + +//no 3.13// + +IF ~~ KIOL3.14 +SAY @127 +IF ~~ THEN EXIT +END + +IF WEIGHT #990 +~Global("P#KivanCatch","GLOBAL",8)~ THEN BEGIN KivanCatch4 +SAY @128 +++ @129 + KIOL4.1 +++ @130 + KIOL4.2 +++ @131 + KIOL4.3 +++ @132 + KIOL4.4 +++ @133 + KIOL4.5 +++ @134 + KIOL4.1 +END + +IF ~~ KIOL4.28 +SAY @135 += @136 +IF ~~ THEN EXIT +END + +IF ~~ KIOL4.27 +SAY @137 +IF ~~ THEN EXIT +END + +IF ~~ KIOL4.26 +SAY @138 +IF ~~ THEN EXIT +END + +IF ~~ KIOL4.25 +SAY @139 +++ @140 + KIOL4.26 +++ @141 + KIOL4.27 +++ @142 + KIOL4.28 +++ @143 + KIOL4.27 +END + +IF ~~ KIOL4.24 +SAY @144 +IF ~~ THEN EXIT +END + +IF ~~ KIOL4.23 +SAY @32 ++ ~Race(Player1,ELF)~ + @145 + KIOL4.24 ++ ~!Race(Player1,ELF)~ + @145 + KIOL4.25 +++ @143 EXIT +++ @146 + KIOL4.21 +END + +IF ~~ KIOL4.22 +SAY @147 ++ ~Race(Player1,ELF)~ + @148 + KIOL4.24 ++ ~!Race(Player1,ELF)~ + @148 + KIOL4.25 +++ @149 + KIOL4.23 +++ @143 EXIT +END + +IF ~~ KIOL4.21 +SAY @150 += @151 +IF ~~ THEN EXIT +END + +IF ~~ KIOL4.20 +SAY @152 +IF ~~ THEN EXIT +END + +IF ~~ KIOL4.19 +SAY @153 +++ @154 + KIOL4.21 +++ @155 + KIOL4.18 +END + +IF ~~ KIOL4.18 +SAY @156 +++ @157 + KIOL4.22 +++ @158 + KIOL4.23 ++ ~Race(Player1,ELF)~ + @145 + KIOL4.24 ++ ~!Race(Player1,ELF)~ + @145 + KIOL4.25 +++ @143 EXIT +END + +IF ~~ KIOL4.17 +SAY @159 += @160 += @151 +IF ~~ THEN EXIT +END + +IF ~~ KIOL4.16 +SAY @161 += @160 += @151 +IF ~~ THEN EXIT +END + +IF ~~ KIOL4.15 +SAY @162 +++ @163 + KIOL4.21 +++ @164 + KIOL4.21 +++ @165 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +END + +IF ~~ KIOL4.14 +SAY @166 +IF ~~ THEN EXIT +END + +IF ~~ KIOL4.13 +SAY @167 +IF ~~ THEN EXIT +END + +IF ~~ KIOL4.12 +SAY @168 +IF ~~ THEN EXIT +END + +IF ~~ KIOL4.11 +SAY @169 +++ @170 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIOL4.17 +++ @171 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIOL4.18 +++ @172 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIOL4.19 +++ @173 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ + KIOL4.20 +END + +IF ~~ KIOL4.10 +SAY @174 += @151 +IF ~~ THEN EXIT +END + +IF ~~ KIOL4.9 +SAY @175 +++ @176 + KIOL4.14 +++ @177 + KIOL4.15 +++ @178 + KIOL4.16 +END + +IF ~~ KIOL4.8 +SAY @179 +++ @180 + KIOL4.12 +++ @181 + KIOL4.13 +++ @182 EXIT +END + +IF ~~ KIOL4.7 +SAY @183 +++ @180 + KIOL4.12 +++ @184 + KIOL4.13 +++ @182 EXIT +END + +//no 4.6// + +IF ~~ KIOL4.5 +SAY @185 +++ @186 + KIOL4.7 +++ @187 + KIOL4.8 +++ @188 + KIOL4.9 +++ @189 + KIOL4.10 ++ ~Gender(Player1,FEMALE)~ + @190 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIOL4.11 +END + +IF ~~ KIOL4.4 +SAY @191 +++ @192 + KIOL4.7 +++ @193 + KIOL4.8 +++ @194 + KIOL4.9 +++ @195 + KIOL4.10 ++ ~Gender(Player1,FEMALE)~ + @196 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIOL4.11 +END + + +IF ~~ KIOL4.3 +SAY @197 +++ @198 + KIOL4.7 +++ @199 + KIOL4.8 +++ @200 + KIOL4.9 +++ @201 + KIOL4.10 ++ ~Gender(Player1,FEMALE)~ + @202 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIOL4.11 +END + + +IF ~~ KIOL4.2 +SAY @203 +++ @192 + KIOL4.7 +++ @193 + KIOL4.8 +++ @204 + KIOL4.9 +++ @205 + KIOL4.10 ++ ~Gender(Player1,FEMALE)~ + @206 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIOL4.11 +END + +IF ~~ KIOL4.1 +SAY @207 +++ @208 + KIOL4.7 +++ @193 + KIOL4.8 +++ @204 + KIOL4.9 +++ @209 + KIOL4.10 ++ ~Gender(Player1,FEMALE)~ + @202 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIOL4.11 +END + +IF WEIGHT #990 +~Global("P#KivanCatch","GLOBAL",10)~ THEN BEGIN KivanCatch5 +SAY @210 +++ @211 + KIOL5.7 ++~!InParty("TLXan") !InParty("O#Xan") !InParty("Coran")~ + @212 + KIOL5.1 ++~OR(3) InParty("TLXan") InParty("O#Xan") InParty("Coran")~ + @213 + KIOL5.6A +++ @214 EXIT +END + +IF ~~ KIOL5.14 +SAY @215 +IF ~~ THEN EXIT +END + +IF ~~ KIOL5.13 +SAY @216 += @217 +IF ~~ THEN EXIT +END + +IF ~~ KIOL5.12 +SAY @218 +IF ~~ THEN EXIT +END + +IF ~~ KIOL5.11 +SAY @219 +IF ~~ THEN EXIT +END + +IF ~~ KIOL5.10 +SAY @220 +++ @221 + KIOL5.13 +++ @222 + KIOL5.14 +++ @223 DO ~IncrementGlobal("P#KIVANOFFENCE","GLOBAL",1)~ EXIT +END + +IF ~~ KIOL5.9 +SAY @224 +IF ~~ THEN EXIT +END + +IF ~~ KIOL5.8 +SAY @225 +++ @226 + KIOL5.12 ++ ~OR(9) InParty("aerie") +InParty("anomen") +InParty("cernd") +InParty("jan") +InParty("haerdalis") +InParty("nalia") +InParty("mazzy") +InParty("valygar") +InParty("keldorn") +~ ++ @227 + KIOL5.11 ++ ~Gender(Player1,FEMALE)~ + @228 DO ~IncrementGlobal("P#KIVANLOVE","GLOBAL",1)~ + KIOL5.12 +END + +IF ~~ KIOL5.7 +SAY @229 +++ @230 + KIOL5.8 +++ @231 + KIOL5.9 +++ @232 + KIOL5.10 +++ @233 + KIOL5.10 ++ ~OR(9) InParty("aerie") +InParty("anomen") +InParty("cernd") +InParty("jan") +InParty("haerdalis") +InParty("nalia") +InParty("mazzy") +InParty("valygar") +InParty("keldorn")~ ++ @227 + KIOL5.11 +END + +IF ~~ KIOL5.7F +SAY @234 +IF ~~ THEN GOTO KIOL5.7 +END + +IF ~~ KIOL5.7E +SAY @235 +IF ~~ THEN GOTO KIOL5.7 +END + +IF ~~ KIOL5.7D +SAY @236 +IF ~~ THEN GOTO KIOL5.7 +END + +IF ~~ KIOL5.7C +SAY @237 +IF ~~ THEN GOTO KIOL5.7 +END + +IF ~~ KIOL5.7B +SAY @238 +IF ~~ THEN GOTO KIOL5.7 +END + +IF ~~ KIOL5.7A +SAY @239 +IF ~~ THEN GOTO KIOL5.7 +END + +IF ~~ KIOL5.6 +SAY @240 +++ @241 + KIOL5.7A ++ ~!InParty("A!Eldoth")~+ @242 + KIOL5.7B +++ @243 + KIOL5.7C +++ @244 + KIOL5.7D ++~!InParty("G#ALOR")~+ @245 + KIOL5.7E +++ @246 + KIOL5.7F +++ @247 + KIOL5.7 +END + +IF ~~ KIOL5.6A +SAY @248 +++ @241 + KIOL5.7A ++ ~!InParty("A!Eldoth")~+ @242 + KIOL5.7B +++ @243 + KIOL5.7C +++ @244 + KIOL5.7D ++~!InParty("G#ALOR")~+ @245 + KIOL5.7E +++ @246 + KIOL5.7F +++ @249 + KIOL5.7 +END + +IF ~~ KIOL5.5 +SAY @250 +IF ~~ THEN GOTO KIOL5.6 +END + +IF ~~ KIOL5.4 +SAY @251 +IF ~~ THEN GOTO KIOL5.6 +END + +IF ~~ KIOL5.3 +SAY @252 +IF ~~ THEN GOTO KIOL5.6 +END + +IF ~~ KIOL5.2 +SAY @253 +IF ~~ THEN GOTO KIOL5.6 +END + +IF ~~ KIOL5.1 +SAY @254 +++ @255 + KIOL5.2 +++ @256 + KIOL5.3 ++ ~Gender(Player1,FEMALE) Race(Player1,ELF)~ + @257 DO ~SetGlobal("P#KIVANLOVE","GLOBAL",-10)~+ KIOL5.4 ++ ~Gender(Player1,FEMALE)~ + @258 DO ~SetGlobal("P#KIVANLOVE","GLOBAL",-10)~+ KIOL5.5 +END + +//Acorn's Cycle, new + +IF WEIGHT #990 +~Global("P#KivanAcorns","GLOBAL",3)~ THEN BEGIN KivanAcorns1 +SAY @259 +++ @260 DO ~SetGlobal("P#KivanAcorns","GLOBAL",4)~ + KIPCS1.1 +++ @261 DO ~SetGlobal("P#KivanAcorns","GLOBAL",4)~ + KIPCS1.2 +++ @262 DO ~SetGlobal("P#KivanAcorns","GLOBAL",4)~ + KIPCS1.2A +++ @263 DO ~SetGlobal("P#KivanAcorns","GLOBAL",4)~ + KIPCS1.3 +END + +IF ~~ KIPCS1.1 +SAY @264 +++ @265 + KIPCS1.4 +++ @262 + KIPCS1.2A +++ @263 + KIPCS1.3 +END + +IF ~~ KIPCS1.2 +SAY @266 +IF ~~ THEN GOTO KIPCS1.2A +END + +IF ~~ KIPCS1.2A +SAY @267 +++ @268 EXIT +++ @269 + KIPCS1.4 +++ @263 + KIPCS1.3 +++ @270 + +KIPCS1.5 +END + +IF ~~ KIPCS1.3 +SAY @271 +++ @272 EXIT +++ @273 + KIPCS1.6 +END + +IF ~~ KIPCS1.4 +SAY @274 +++ @275 EXIT +++ @276 + KIPCS1.7 +++ @277 + KIPCS1.6 +END + +IF ~~ KIPCS1.5 +SAY @278 +++ @275 EXIT +++ @279 + KIPCS1.7 +++ @280 + KIPCS1.6 +END + +IF ~~ KIPCS1.6A +SAY @281 +IF ~~ THEN GOTO KIPCS1.6 +END + +IF ~~ KIPCS1.6 +SAY @282 +++ @283 + +KIPCS1.8 +++ @284 + KIPCS1.9 +++ @285 + +KIPCS1.10 +END + +IF ~~ KIPCS1.7 +SAY @286 +++ @287 + KIPCS1.6 +++ @288 + KIPCS1.6A +++ @289 + KIPCS1.12 +END + +IF ~~ KIPCS1.8 +SAY @290 +IF ~~ THEN EXIT +END + +IF ~~ KIPCS1.9 +SAY @291 +++ @292 EXIT +++ @293 + KIPCS1.12 +++ @294 + KIPCS1.10 +END + +IF ~~ KIPCS1.10 +SAY @295 +++ @296 + KIPCS1.11 +++ @297 + KIPCS1.13 +++ @298 + KIPCS1.14 +++ @299 + KIPCS1.15 +END + +IF ~~ KIPCS1.11 +SAY @300 +IF ~~ THEN DO ~SetGlobal("P#IrenicusEyes","LOCALS",1)~ EXIT +END + +IF ~~ KIPCS1.12 +SAY @301 +IF ~~ THEN EXIT +END + +IF ~~ KIPCS1.13 +SAY @302 +IF ~~ THEN EXIT +END + +IF ~~ KIPCS1.14 +SAY @303 +IF ~~ THEN EXIT +END + +IF ~~ KIPCS1.15 +SAY @304 +IF ~~ THEN EXIT +END + +//Acorns - 2 (if mentioned Irenicus' Eyes) + +IF WEIGHT #990 +~Global("P#KivanAcorns","GLOBAL",5)~ THEN BEGIN KivanAcorns2 +SAY @305 ++ ~CheckStatLT(Player1,12,INT) !Race(Player1,ELF)~ + @306 DO ~SetGlobal("P#KivanAcorns","GLOBAL",6)~ + KIPCST2.1NE ++ ~CheckStatLT(Player1,12,INT) Race(Player1,ELF)~ + @306 DO ~SetGlobal("P#KivanAcorns","GLOBAL",6)~ + KIPCST2.1E ++ ~CheckStatGT(Player1,11,INT) !Race(Player1,ELF)~ + @307 DO ~SetGlobal("P#KivanAcorns","GLOBAL",6)~ + KIPCST2.2NE ++ ~CheckStatGT(Player1,11,INT) Race(Player1,ELF)~ + @308 DO ~SetGlobal("P#KivanAcorns","GLOBAL",6)~ + KIPCST2.2E +++ @309 DO ~SetGlobal("P#KivanAcorns","GLOBAL",6)~ EXIT +END + +IF ~~ KIPCST2.1NE +SAY @310 +++ @311 + KIPCST2.3 ++ ~Gender(Player1,FEMALE)~ + @312 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIPCST2.4 +++ @313 + KIPCST2.5 +END + +IF ~~ KIPCST2.1E +SAY @314 +++ @315 + KIPCST2.3E ++ ~Gender(Player1,FEMALE)~ + @316 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIPCST2.4E +++ @317 + KIPCST2.5E +++ @318 + KIPCST2.6 ++ ~Gender(Player1,FEMALE)~ + @319 DO~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIPCST2.7 +END + +IF ~~ KIPCST2.2NE +SAY @320 +++ @311 + KIPCST2.3 ++ ~Gender(Player1,FEMALE)~ + @312 DO~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIPCST2.4 +++ @313 + KIPCST2.5 +END + +IF ~~ KIPCST2.2E +SAY @321 +++ @322 + KIPCST2.3E ++ ~Gender(Player1,FEMALE)~ + @316 DO~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIPCST2.4E +++ @317 + KIPCST2.5E +++ @318 + KIPCST2.6 ++ ~Gender(Player1,FEMALE)~ + @319 DO~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIPCST2.7 +END + +IF ~~ KIPCST2.3 +SAY @323 +++ @324 + KIPCST2.5 +++ @325 + KIPCST2.8 +END + +IF ~~ KIPCST2.3E +SAY @326 ++ ~Gender(Player1,FEMALE)~ + @316 DO~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIPCST2.4E +++ @318 + KIPCST2.6 ++ ~Gender(Player1,FEMALE)~ + @319 DO~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIPCST2.7 +END + +IF ~~ KIPCST2.4 +SAY @327 +++ @328 DO ~IncrementGlobal("P#KivanLove","GLOBAL",2)~ + KIPCST2.9 +++ @329 + KIPCST2.9 +++ @330 + KIPCST2.8 +END + +IF ~~ KIPCST2.4E +SAY @327 +++ @328 DO ~IncrementGlobal("P#KivanLove","GLOBAL",2)~ + KIPCST2.9E +++ @329 + KIPCST2.9E +END + +IF ~~ KIPCST2.5 +SAY @331 +++ @332 + KIPCST2.10 +++ @333 + KIPCST2.9 +++ @334 + KIPCST2.11 ++ ~Race(Player1,HALFORC)~ + @335 + KIPCST2.12 +END + +IF ~~ KIPCST2.5E +SAY @336 ++ ~Gender(Player1,FEMALE)~ + @316 DO~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIPCST2.4E +++ @318 + KIPCST2.6 ++ ~Gender(Player1,FEMALE)~ + @319 DO~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIPCST2.7 +END +IF ~~ KIPCST2.6 +SAY @337 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST2.7 +SAY @338 +++ @339 + KIPCST2.13 +++ @340 + KIPCST2.14 +++ @341 DO~IncrementGlobal("P#KivanLove","GLOBAL",-2)~ EXIT +++ @342 EXIT +END + +IF ~~ KIPCST2.8 +SAY @343 += @344 +IF ~~ THEN GOTO KIPCST2.5 +END + +IF ~~ KIPCST2.9 +SAY @345 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST2.9E +SAY @346 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST2.10 +SAY @347 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST2.11 +SAY @348 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST2.12 +SAY @349 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST2.13 +SAY @350 += @351 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST2.14 +SAY @352 +IF ~~ THEN EXIT +END + +//Acorns - 3 (when returned Acorns) + +IF WEIGHT #990 +~Global("P#KivanAcornsDriad","GLOBAL",1)~ THEN BEGIN KivanAcorns3 +SAY @353 ++~GlobalGT("Chapter", "GLOBAL",2)~ + @354 DO ~SetGlobal("P#KivanAcornsDriad","GLOBAL",2)~ + KIPCST3.1 ++~!GlobalGT("Chapter", "GLOBAL",2)~ + @354 DO ~SetGlobal("P#KivanAcornsDriad","GLOBAL",2)~ + KIPCST3.2 ++ ~Gender(Player1,MALE) ~ + @355 DO ~SetGlobal("P#KivanAcornsDriad","GLOBAL",2)~ + KIPCST3.3 ++ ~Gender(Player1,FEMALE) ~ + @356 DO ~SetGlobal("P#KivanAcornsDriad","GLOBAL",2)~ + KIPCST3.4 +++ @357 DO ~SetGlobal("P#KivanAcornsDriad","GLOBAL",2)~ + KIPCST3.5 ++~Class(Player1,PALADIN_ALL)~ + @358 DO ~SetGlobal("P#KivanAcornsDriad","GLOBAL",2)~ + KIPCST3.6 +END + +IF ~~ KIPCST3.1 +SAY @359 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST3.2 +SAY @360 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST3.3 +SAY @361 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST3.4 +SAY @362 +++ @363 EXIT +++ @364 + KIPCST3.7 +++ @365 + KIPCST3.5 ++~Class(Player1,PALADIN_ALL)~ + @366 + KIPCST3.6 +END + +IF ~~ KIPCST3.5 +SAY @367 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST3.6 +SAY @368 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST3.7 +SAY @369 +++ @370 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ EXIT +END + +//After UE prophet + +IF WEIGHT #990 +~Global("P#KivanUEQ","GLOBAL",2)~ THEN BEGIN KivUnseen +SAY @371 +++ @372 DO ~SetGlobal("P#KivanUEQ","GLOBAL",3)~ + KIPCST4.1 ++~OR(3) !Class(Player1,CLERIC_ALL) !Class(Player1,DRUID_ALL) !Class(Player1,PALADIN_ALL)~ + @373 DO ~SetGlobal("P#KivanUEQ","GLOBAL",3)~ + KIPCST4.2 ++~Global("NoHelpBeholder","GLOBAL",1)~+ @374 DO ~SetGlobal("P#KivanUEQ","GLOBAL",3)~ + KIPCST4.3 +++ @375 DO ~SetGlobal("P#KivanUEQ","GLOBAL",3)~ + KIPCST4.4 ++ ~Race(Player1,ELF)~+ @376 DO ~SetGlobal("P#KivanUEQ","GLOBAL",3)~ + KIPCST4.7 ++ ~!Race(Player1,ELF)~+ @377 DO ~SetGlobal("P#KivanUEQ","GLOBAL",3)~ + KIPCST4.8 ++ ~Global("BeholderPlot","GLOBAL",1)~ + @378 DO ~SetGlobal("P#KivanUEQ","GLOBAL",3)~ + KIPCST4.9 +END + +IF ~~ KIPCST4.1 +SAY @379 +++ @380 + KIPCST4.5 +++ @381 + KIPCST4.6 ++~Global("NoHelpBeholder","GLOBAL",1)~+ @374 + KIPCST4.3 +++ @382 + KIPCST4.4 +END + +IF ~~ KIPCST4.2 +SAY @383 ++ ~Race(Player1,ELF)~+ @384 + KIPCST4.7 ++ ~!Race(Player1,ELF)~+ @385 + KIPCST4.8 +++ @386 + KIPCST4.4 +END + +IF ~~ KIPCST4.3 +SAY @387 +++ @388 + KIPCST4.10 +++ @389 + KIPCST4.11 +END + +IF ~~ KIPCST4.4 +SAY @390 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST4.5 +SAY @391 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST4.6 +SAY @392 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST4.7 +SAY @393 +++ @394 + KIPCST4.12 +END + +IF ~~ KIPCST4.8 +SAY @395 +++ @394 + KIPCST4.12 +END + +IF ~~ KIPCST4.9 +SAY @396 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST4.10 +SAY @397 +++ @398 + KIPCST4.13 +++ @375 + KIPCST4.4 ++ ~Race(Player1,ELF)~+ @399 + KIPCST4.7 ++ ~!Race(Player1,ELF)~+ @377 + KIPCST4.8 ++ ~Global("BeholderPlot","GLOBAL",1)~ + @378 + KIPCST4.9 +END + +IF ~~ KIPCST4.11 +SAY @400 +++ @401 + KIPCST4.4 ++ ~Race(Player1,ELF)~+ @399 + KIPCST4.7 ++ ~!Race(Player1,ELF)~+ @377 + KIPCST4.8 ++ ~Global("BeholderPlot","GLOBAL",1)~ + @378 + KIPCST4.9 +++ @402 EXIT +END + +IF ~~ KIPCST4.12 +SAY @403 +IF ~~ THEN DO ~SetGlobal("P#Shevarash", "GLOBAL",1)~ EXIT +END + +IF ~~ KIPCST4.13 +SAY @404 +++ @401 + KIPCST4.4 ++ ~Race(Player1,ELF)~+ @399 + KIPCST4.7 ++ ~!Race(Player1,ELF)~+ @377 + KIPCST4.8 ++ ~Global("BeholderPlot","GLOBAL",1)~ + @405 + KIPCST4.9 +++ @402 EXIT +END + +//The talk about Shevarash + +IF WEIGHT #990 +~Global("P#Shevarash", "GLOBAL",2)~ THEN BEGIN KivShevarash +SAY @406 +++ @407 DO ~SetGlobal("P#Shevarash", "GLOBAL",3)~ + KIPCST5.1 +++ @408 DO ~SetGlobal("P#Shevarash", "GLOBAL",3)~ + KIPCST5.2 ++ ~!Race(Player1,ELF)~ + @409 DO ~SetGlobal("P#Shevarash", "GLOBAL",3)~ EXIT +END + +IF ~~ KIPCST5.1 +SAY @410 +++ @411 + KIPCST5.3 ++ ~Gender(Player1,FEMALE) OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3)~ + @412 + KIPCST5.4 ++ ~Gender(Player1,FEMALE) OR(2) Global("P#DeherianaLives","GLOBAL",1)Global("P#DeherianaLives","GLOBAL",2)~ + @413 + KIPCST5.5 ++ ~Gender(Player1,MALE)~ + @414 + KIPCST5.6 ++ ~Gender(Player1,FEMALE) ~+ @415 + KIPCST5.7 ++ ~Gender(Player1,MALE)~+ @415 + KIPCST5.8 ++ ~Gender(Player1,MALE) Race(Player1, ELF)~+ @416 + KIPCST5.9 ++ ~Gender(Player1,MALE) !Race(Player1, ELF)~+ @416 + KIPCST5.10 +END + +IF ~~ KIPCST5.2 +SAY @417 += @418 += @419 += @420 +++ @421 + KIPCST5.11 +++ @422 + KIPCST5.12 +++ @423 + KIPCST5.13 +++ @424 + KIPCST5.1 +END + +IF ~~ KIPCST5.3 +SAY @425 += @426 += @427 += @428 ++ ~Global("P#KivanTazokHeart","GLOBAL",1)~ + @429 + KIPCST5.14 +++ @430 + KIPCST5.15 ++ ~Gender(Player1,FEMALE) Race(Player1,ELF)~ + @431 + KIPCST5.16 ++ ~Gender(Player1,FEMALE) OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3)~ + @432 + KIPCST5.17 ++ ~Gender(Player1,FEMALE) OR(2) Global("P#DeherianaLives","GLOBAL",1)Global("P#DeherianaLives","GLOBAL",2)~ + @432 + KIPCST5.18 ++ ~Gender(Player1,MALE)~ + @432 + KIPCST5.18 +END + +IF ~~ KIPCST5.4 +SAY @433 += @434 += @427 += @428 ++ ~Global("P#KivanTazokHeart","GLOBAL",1)~ + @429 + KIPCST5.14 +++ @430 + KIPCST5.15 ++ ~Race(Player1,ELF)~ + @431 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIPCST5.16 +++ @432 + KIPCST5.17 +++ @435 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIPCST5.18 +END + +IF ~~ KIPCST5.5 +SAY @436 += @1433 += @427 += @428 ++ ~Global("P#KivanTazokHeart","GLOBAL",1)~ + @437 + KIPCST5.14 +++ @438 + KIPCST5.15 ++ ~ Race(Player1,ELF)~ + @439 + KIPCST5.16 +++ @432 + KIPCST5.17 +END + +IF ~~ KIPCST5.6 +SAY @425 += @426 += @427 += @440 ++ ~Global("P#KivanTazokHeart","GLOBAL",1)~ + @429 + KIPCST5.14 +++ @430 + KIPCST5.15 +++ @432 + KIPCST5.18 ++ ~Gender(Player1,MALE)~+ @415 + KIPCST5.8 ++ ~Gender(Player1,MALE) Race(Player1, ELF)~+ @416 + KIPCST5.9 ++ ~Gender(Player1,MALE) !Race(Player1, ELF)~+ @416 + KIPCST5.10 +END + +IF ~~ KIPCST5.7 +SAY @441 += @426 += @427 += @428 ++ ~Global("P#KivanTazokHeart","GLOBAL",1)~ + @429 + KIPCST5.14 +++ @430 + KIPCST5.15 ++ ~Gender(Player1,FEMALE) Race(Player1,ELF)~ + @431 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIPCST5.16 ++ ~Gender(Player1,FEMALE)~ + @432 + KIPCST5.17 +END + +IF ~~ KIPCST5.8 +SAY @441 += @426 += @427 += @428 ++ ~Global("P#KivanTazokHeart","GLOBAL",1)~ + @429 + KIPCST5.14 +++ @430 + KIPCST5.15 +++ @432 + KIPCST5.18 +END + +IF ~~ KIPCST5.9 +SAY @442 +++ @443 + KIPCST5.19 ++ ~GlobalLT("AerieRomanceActive", "GLOBAL",1) GlobalLT("JaheiraRomanceActive", "GLOBAL",1) GlobalLT("ViconiaRomanceActive", "GLOBAL",1) ~ + @444 + KIPCST5.20 ++~GlobalGT("AerieRomanceActive", "GLOBAL",1)~ + @444 + KIPCST5.20A ++~GlobalGT("JaheiraRomanceActive", "GLOBAL",1) ~ + @444 + KIPCST5.20J ++~GlobalGT("ViconiaRomanceActive", "GLOBAL",1) ~ + @444 + KIPCST5.20V +++ @445 + KIPCST5.21 +++ @446 + KIPCST5.22 +++ @447 + KIPCST5.23 +END + +IF ~~ KIPCST5.10 +SAY @448 +IF ~~ THEN GOTO KIPCST5.8 +END + +IF ~~ KIPCST5.11 +SAY @449 +++ @450 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~EXIT +++ @451 + KIPCST5.1 +++ @452 + KIPCST5.24 +++ @453 EXIT +END + +IF ~~ KIPCST5.12 +SAY @454 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST5.13 +SAY @455 +++ @456 + KIPCST5.1 +++ @457 EXIT +END + +IF ~~ KIPCST5.14 +SAY @458 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST5.15 +SAY @459 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST5.16 +SAY @460 +++ @461 EXIT +++ @462 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIPCST5.25 +++ @463 + KIPCST5.26 +END + +IF ~~ KIPCST5.17 +SAY @464 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST5.18 +SAY @465 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST5.19 +SAY @466 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST5.20 +SAY @467 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST5.20A +SAY @468 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST5.20J +SAY @469 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST5.20V +SAY @470 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST5.21 +SAY @471 += @472 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST5.22 +SAY @473 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST5.23 +SAY @474 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST5.24 +SAY @475 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST5.25 +SAY @476 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST5.26 +SAY @477 +IF ~~ THEN DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +END + +//Mercy talk, after you killed the creature in the UE + +IF WEIGHT #990 +~Global("P#MercyTalk", "GLOBAL",1)~ THEN BEGIN KivMercy +SAY @478 +++ @479 DO ~SetGlobal("P#MercyTalk", "GLOBAL",2)~ + KIPCST6.1 ++~GlobalGT("Chapter","GLOBAL",%bg2_chapter_4%)~+ @480 DO ~SetGlobal("P#MercyTalk", "GLOBAL",2)~ + KIPCST6.2 +++ @481 DO ~SetGlobal("P#MercyTalk", "GLOBAL",2)~ + KIPCST6.3 +++ @482 DO ~SetGlobal("P#MercyTalk", "GLOBAL",2)~ + KIPCST6.4 +END + +IF ~~ KIPCST6.1 +SAY @483 ++ ~!Race(Player1, ELF)~ + @484 + KIPCST6.5 ++ ~Race(Player1, ELF)~ + @485 + KIPCST6.6 +++ @486 + KIPCST6.7 +++ @487 EXIT +++ @488 + KIPCST6.8 +++ @489 + KIPCST6.9 +END + +IF ~~ KIPCST6.2 +SAY @490 +++ @491 + KIPCST6.10 +++ @492 + KIPCST6.11 +END + +IF ~~ KIPCST6.3 +SAY @493 +++ @494 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +++ @495 + KIPCST6.12 +END + +IF ~~ KIPCST6.4 +SAY @496 +IF ~Class(Player1,BARD_ALL)~ THEN GOTO KIPCST6.13 +IF ~!Class(Player1,BARD_ALL)~ THEN EXIT +END + +IF ~~ KIPCST6.5 +SAY @497 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST6.6 +SAY @498 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST6.7 +SAY @499 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST6.8 +SAY @500 +IF ~~ THEN DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +END + +IF ~~ KIPCST6.9 +SAY @501 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST6.10 +SAY @502 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST6.11 +SAY @503 +++ @504 + KIPCST6.14 +++ @505 + KIPCST6.15 ++ ~!Race(Player1,ELF)~ + @506 + KIPCST6.16 ++ ~Race(Player1,ELF)~ + @506 + KIPCST6.17 +END + +IF ~~ KIPCST6.12 +SAY @507 ++ ~Gender(Player1,MALE)~ + @508+ KIPCST6.18 ++ ~Gender(Player1,FEMALE)~ + @509+ KIPCST6.19 +++ @510 + KIPCST6.20 +++ @511 + KIPCST6.21 +END + +IF ~~ KIPCST6.13 +SAY @512 +++ @513 EXIT +++ @514 EXIT +END + +IF ~~ KIPCST6.14 +SAY @515 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST6.16 +SAY @516 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST6.17 +SAY @517 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST6.18 +SAY @518 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST6.19 +SAY @519 += @518 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST6.20 +SAY @520 +++ @521 + KIPCST6.18 +++ @522 + KIPCST6.22 ++ ~Gender(Player1, FEMALE)~ + @523 + KIPCST6.23 +++ @524 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +END + +IF ~~ KIPCST6.21 +SAY @525 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST6.22 +SAY @526 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST6.23 +SAY @527 +++ @528 + KIPCST6.24 +++ @529 + KIPCST6.25 +END + +IF ~~ KIPCST6.24 +SAY @8 +IF ~~ THEN DO ~IncrementGlobal("P#KivanOffence","GLOBAL",5)~ EXIT +END + +IF ~~ KIPCST6.25 +SAY @474 +++ @530 + KIPCST6.26 +++ @531 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",5)~ EXIT +END + +IF ~~ KIPCST6.26 +SAY @532 +IF ~~ THEN DO ~IncrementGlobal("P#KivanOffence","GLOBAL",5)~ EXIT +END + +END + +CHAIN P#KIVJ KIPCST6.15 +@533 +== BP#DEH IF ~InParty("P#DEHER") !Dead("P#DEHER")~ THEN @534 +== BP#KIV IF ~InParty("P#DEHER") !Dead("P#DEHER")~ THEN @535 +== BP#DEH IF ~InParty("P#DEHER") !Dead("P#DEHER")~ THEN @536 +== BP#KIV IF ~InParty("P#DEHER") !Dead("P#DEHER")~ THEN @537 +EXIT + +///Tazok's Heart Cycle/// + +APPEND P#KIVJ + +IF WEIGHT #990 +~Global("P#TazokTalk","GLOBAL",1)~ THEN BEGIN KivTazok1 +SAY @538 +++ @539 DO ~SetGlobal("P#TazokTalk","GLOBAL",2)~ + KIPCST7.1 +END + +IF ~~ KIPCST7.1 +SAY @540 += @541 +++ @542 + KIPCST7.2 +++ @543 + KIPCST7.3 +++ @544 + KIPCST7.4 +END + +IF ~~ KIPCST7.2 +SAY @545 ++ ~Race(Player1,ELF)~+ @546 + KIPCST7.5 ++ ~!Race(Player1,ELF)~+ @547 + KIPCST7.5 +++ @548 + KIPCST7.6 +++ @549+ KIPCST7.7 +++ @550 + KIPCST7.8 +++ @551 + KIPCST7.9 +++ @552 + KIPCST7.10 +++ @553 + KIPCST7.12 +END + +IF ~~ KIPCST7.3 +SAY @554 +IF ~~ THEN GOTO KIPCST7.2 +END + +IF ~~ KIPCST7.4 +SAY @555 +IF ~~ THEN GOTO KIPCST7.2 +END + +IF ~~ KIPCST7.5 +SAY @556 += @557 += @558 += @559 +++ @560 DO ~SetGlobal("P#KivanTazokHeart", "GLOBAL",1) GiveItemCreate("P#TAHE","P#Kivan",1,0,0)~ EXIT +++ @561 + KIPCST7.11 +++ @562 DO ~SetGlobal("P#KivanTazokHeart", "GLOBAL",1) GiveItemCreate("P#TAHE","P#Kivan",1,0,0)~ EXIT +END + +IF ~~ KIPCST7.6 +SAY @563 +++ @564 + KIPCST7.5 +++ @565 + KIPCST7.12 +END + +IF ~~ KIPCST7.7 +SAY @566 +++ @564 + KIPCST7.5 +++ @553 + KIPCST7.12 ++ ~Race(Player1,ELF)~+ @546 + KIPCST7.5 ++ ~!Race(Player1,ELF)~+ @547 + KIPCST7.5 +END + +IF ~~ KIPCST7.8 +SAY @567 +++ @564 + KIPCST7.5 ++ ~Gender(Player1,FEMALE)~ + @568 + KIPCST7.13 ++ ~Race(Player1,ELF)~+ @546 + KIPCST7.5 ++ ~!Race(Player1,ELF)~+ @547 + KIPCST7.5 +END + +IF ~~ KIPCST7.9 +SAY @569 += @570 += @559 +++ @560 DO ~SetGlobal("P#KivanTazokHeart", "GLOBAL",1) GiveItemCreate("P#TAHE","P#Kivan",1,0,0)~ EXIT +++ @561 + KIPCST7.11 +++ @562 DO ~SetGlobal("P#KivanTazokHeart", "GLOBAL",1) GiveItemCreate("P#TAHE","P#Kivan",1,0,0)~ EXIT +END + +IF ~~ KIPCST7.10 +SAY @571 += @572 +++ @564 + KIPCST7.5 +++ @573 + KIPCST7.5 +++ @574 + KIPCST7.14 +END + +IF ~~ KIPCST7.11 +SAY @575 +IF ~~ THEN DO ~AddXPObject("P#KIVAN",5000)~ EXIT +END + +IF ~~ KIPCST7.12 +SAY @576 ++ ~Gender(Player1,FEMALE)~ + @577 + KIPCST7.13 +++ @578 + KIPCST7.5 +++ @579 + KIPCST7.14 ++ ~!Class(Player1,RANGER_ALL) !Class(Player1,PALADIN_ALL)~ + @580 + KIPCST7.15 ++ ~Race(Player1,ELF)~+ @546 + KIPCST7.5 ++ ~!Race(Player1,ELF)~+ @547 + KIPCST7.5 +END + +IF ~~ KIPCST7.13 +SAY @581 +++ @582 + KIPCST7.14 ++ ~!Class(Player1,RANGER_ALL) !Class(Player1,PALADIN_ALL)~ + @580 + KIPCST7.15 ++ ~Race(Player1,ELF)~+ @546 + KIPCST7.5 ++ ~!Race(Player1,ELF)~+ @547 + KIPCST7.5 +END + +IF ~~ KIPCST7.14 +SAY @583 += @584 +IF ~~ THEN DO ~AddXPObject("P#KIVAN",10000)~ EXIT +END + +IF ~~ KIPCST7.15 +SAY @585 += @586 += @587 +IF ~~ THEN DO ~AddXPObject("P#KIVAN",10000)~ EXIT +END + +//2nd Tazok's Talk + +IF WEIGHT #990 +~Global("P#TazokTalk", "GLOBAL",3)~ THEN BEGIN KivTazok2 +SAY @588 += @589 +++ @590 DO ~SetGlobal("P#KivanDrifting","GLOBAL",1)~ + KIPCST8.33 +++ @591 + KIPCST8.34 ++ ~Class(Player1,DRUID_ALL)~ + @592 + KIPCST8.35 +++ @593 + KIPCST8.36 +++ @594 + KIPCST8.37 +END + +IF ~~ KIPCST8.33 +SAY @595 += @596 ++ ~ Global("P#KivanDrifting","GLOBAL",1)~ + @597 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +++ @598 + KIPCST8.38 +++ @599 + KIPCST8.39 +++ @600 + KIPCST8.40 +END + +IF ~~ KIPCST8.34 +SAY @601 +IF ~~ THEN GOTO KIPCST8.33 +END + +IF ~~ KIPCST8.35 +SAY @602 +IF ~~ THEN GOTO KIPCST8.33 +END + +IF ~~ KIPCST8.36 +SAY @603 +IF ~~ THEN GOTO KIPCST8.34 +END + + +IF ~~ KIPCST8.37 +SAY @604 +IF ~~ THEN GOTO KIPCST8.33 +END + +IF ~~ KIPCST8.38 +SAY @605 +IF ~~ THEN GOTO KIPCST8.0 +END + +IF ~~ KIPCST8.39 +SAY @606 +IF ~~ THEN GOTO KIPCST8.0 +END + +IF ~~ KIPCST8.40 +SAY @607 +IF ~~ THEN GOTO KIPCST8.0 +END + +IF ~~ KIPCST8.0 +SAY @608 +++ @609 + KIPCST8.1 +++ @610 + KIPCST8.2 ++ ~Gender(Player1,MALE)~ + @611 + KIPCST8.3 ++ ~Gender(Player1,FEMALE)~ + @612 + KIPCST8.3 ++ ~Gender(Player1,FEMALE) Global("P#DeherianaDead","GLOBAL",1)~ + @613 + KIPCST8.4 ++ ~Gender(Player1,FEMALE) !Global("P#DeherianaDead","GLOBAL",1)~ + @613 + KIPCST8.5 +++ @614 + KIPCST8.6 +++ @615 + KIPCST8.18 +END + +IF ~~ KIPCST8.1 +SAY @616 +++ @617 EXIT +++ @618 EXIT +++ @619 + KIPCST8.9 ++ ~Gender(Player1,FEMALE)~ + @620 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIPCST8.10 +END + +IF ~~ KIPCST8.2 +SAY @621 +++ @622 + KIPCST8.11 +++ @623 + KIPCST8.12 ++ ~OR(2) Global("JaheiraRomanceActive","GLOBAL",1) Global("JaheiraRomanceActive","GLOBAL",2)~ + @624 + KIPCST8.13 ++ ~!Global("JaheiraRomanceActive","GLOBAL",1) !Global("JaheiraRomanceActive","GLOBAL",2)~ + @625 + KIPCST8.14 +++ @626 + KIPCST8.15 +++ @627 + KIPCST8.16 +END + +IF ~~ KIPCST8.3 +SAY @628 +++ @629 + KIPCST8.2 +++ @630 + KIPCST8.17 +++ @631 + KIPCST8.18 +END + + + +IF ~~ KIPCST8.4 +SAY @632 +++ @633 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +++ @634 + KIPCST8.19 +++ @635 + KIPCST8.20 +END + +IF ~~ KIPCST8.5 +SAY @636 +IF ~~ GOTO KIPCST8.4 +END + +IF ~~ KIPCST8.6 +SAY @637 +++ @638 + KIPCST8.21 +++ @639 + KIPCST8.22 +++ @640 + KIPCST8.23 +++ @641 + KIPCST8.18 +END + +IF ~~ KIPCST8.9 +SAY @642 += @643 +++ @622 + KIPCST8.11 +++ @644 EXIT ++ ~OR(2) Global("JaheiraRomanceActive","GLOBAL",1) Global("JaheiraRomanceActive","GLOBAL",2)~ + @624 + KIPCST8.13 ++ ~!Global("JaheiraRomanceActive","GLOBAL",1) !Global("JaheiraRomanceActive","GLOBAL",2)~ + @625 + KIPCST8.14 +++ @645 + KIPCST8.15 +END + +IF ~~ KIPCST8.10 +SAY @646 +IF ~~ THEN GOTO KIPCST8.2 +END + +IF ~~ KIPCST8.11 +SAY @647 +++ @648 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +++ @649 + KIPCST8.12 ++ ~OR(2) Global("JaheiraRomanceActive","GLOBAL",1) Global("JaheiraRomanceActive","GLOBAL",2)~ + @650 + KIPCST8.13 +++ @651 + KIPCST8.15 +++ @652 + KIPCST8.16 +END + +IF ~~ KIPCST8.12 +SAY @653 += @654 += @655 +++ @656 + KIPCST8.23A +++ @657 + KIPCST8.24 +END + +IF ~~ KIPCST8.13 +SAY @658 +++ @648 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +++ @659 + KIPCST8.26 +++ @660 + KIPCST8.27 +++ @661 + KIPCST8.28 +END + +IF ~~ KIPCST8.14 +SAY @662 += @654 += @655 +++ @663 + KIPCST8.23A +++ @657 + KIPCST8.24 +END + +IF ~~ KIPCST8.15 +SAY @664 += @654 += @655 +++ @665 + KIPCST8.23A +++ @657 + KIPCST8.24 +END + +IF ~~ KIPCST8.16 +SAY @666 += @654 += @655 +++ @663 + KIPCST8.23A +++ @657 + KIPCST8.24 +END + +IF ~~ KIPCST8.17 +SAY @667 +++ @668 + KIPCST8.29 +++ @669 + KIPCST8.30 +++ @670 + KIPCST8.31 +END + +IF ~~ KIPCST8.18 +SAY @671 += @654 += @655 +++ @656 + KIPCST8.23A +++ @657 + KIPCST8.24 +END + +IF ~~ KIPCST8.19 +SAY @474 +++ @672 + KIPCST8.29 +++ @669 + KIPCST8.30 +++ @670 + KIPCST8.31F +++ @673 + KIPCST8.32 +END + +IF ~~ KIPCST8.20 +SAY @674 +++ @672 + KIPCST8.29 +++ @669 + KIPCST8.30 +++ @670 + KIPCST8.31F +++ @673 + KIPCST8.32 +END + +IF ~~ KIPCST8.21 +SAY @675 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST8.22 +SAY @676 += @654 += @655 +++ @656 + KIPCST8.23 +++ @657 + KIPCST8.24 +++ @677 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +END + +IF ~~ KIPCST8.23 +SAY @678 +IF ~~ THEN GOTO KIPCST8.2 +END + +IF ~~ KIPCST8.23A +SAY @679 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST8.24 +SAY @680 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST8.26 +SAY @681 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST8.27 +SAY @682 +++ @683 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +++ @684 EXIT +++ @685 EXIT +END + +IF ~~ KIPCST8.28 +SAY @686 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST8.29 +SAY @654 += @655 +++ @656 + KIPCST8.23 +++ @657 + KIPCST8.24 +++ @677 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +END + +IF ~~ KIPCST8.30 +SAY @687 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST8.31 +SAY @688 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST8.31F +SAY @689 += @690 +IF ~~ THEN GOTO KIPCST8.29 +END + +IF ~~ KIPCST8.32 +SAY @691 += @692 +IF ~~ THEN GOTO KIPCST8.29 +END + +//3rd Tazok Talk + +IF WEIGHT #990 +~Global("P#TazokTalk", "GLOBAL",5)~ THEN BEGIN KivTazok3 +SAY @693 +++ @694 + KIPCST9.1 ++ ~Alignment(Player1, MASK_EVIL)~+ @695 + KIPCST9.2 ++ ~Alignment(Player1, MASK_EVIL) ReputationGT(Player1,15)~+ @696 + KIPCST9.3A ++ ~Alignment(Player1, MASK_EVIL) ReputationLT(Player1,16)~+ @696 + KIPCST9.3B +++ @697 + KIPCST9.4 +++ @698 + KIPCST9.5 +++ @699 + KIPCST9.6 +++ @700 + KIPCST9.7 +++ @701 + KIPCST9.8 ++ ~Class(Player1,PALADIN_ALL)~ + @702 + KIPCST9.9 +END + +IF ~~ KIPCST9.1 +SAY @703 +++ @704 + KIPCST9.10 +++ @705 + KIPCST9.11 +++ @706 + KIPCST9.12 +END + +IF ~~ KIPCST9.2 +SAY @707 + += @708 +++ @709 + KIPCST9.12 +++ @710 + KIPCST9.4 +++ @711 + KIPCST9.5 +++ @712 + KIPCST9.6 +++ @713 + KIPCST9.7 +END + +IF ~~ KIPCST9.3A +SAY @714 + +++ @715 + KIPCST9.13 +++ @716 + KIPCST9.14 +++ @717 + KIPCST9.15 +++ @718 + KIPCST9.16 +END + +IF ~~ KIPCST9.3B +SAY @719 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST9.4 +SAY @720 += @721 += @722 +++ @723 + KIPCST9.16 +++ @724 EXIT +++ @725 + KIPCST9.17 +END + +IF ~~ KIPCST9.5 +SAY @726 += @727 +++ @723 + KIPCST9.16 +++ @728 EXIT +++ @729 + KIPCST9.18 +END + +IF ~~ KIPCST9.6 +SAY @730 += @731 +++ @732 + KIPCST9.16 +++ @728 EXIT +++ @733 + KIPCST9.19 +END + +IF ~~ KIPCST9.7 +SAY @734 += @731 +++ @732 + KIPCST9.16 +++ @728 EXIT +++ @735 + KIPCST9.20 +END + +IF ~~ KIPCST9.8 +SAY @736 +++ @737 + KIPCST9.16 +++ @728 EXIT +END + +IF ~~ KIPCST9.9 +SAY @738 += @739 +++ @737 + KIPCST9.16 +++ @728 EXIT +END + +IF ~~ KIPCST9.10 +SAY @740 +++ @737 + KIPCST9.16 +++ @741 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +++ @728 EXIT +END + +IF ~~ KIPCST9.11 +SAY @742 +++ @743 + KIPCST9.16 +++ @728 EXIT +END + +IF ~~ KIPCST9.12 +SAY @740 +++ @737 + KIPCST9.16 +++ @741 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +++ @728 EXIT +END + +IF ~~ KIPCST9.13 +SAY @744 +IF ~~ THEN DO ~LeaveParty() EscapeArea()~ EXIT +END + +IF ~~ KIPCST9.14 +SAY @745 +++ @743 + KIPCST9.16 +++ @728 EXIT +END + +IF ~~ KIPCST9.15 +SAY @746 += @747 +++ @743 + KIPCST9.16 +++ @748 + KIPCST9.16 +++ @728 EXIT +END + +IF ~~ KIPCST9.16 +SAY @749 += @750 += @751 += @752 += @753 += @754 += @755 += @756 += @757 += @758 += @759 += @760 += @761 +++ @762 + KIPCST9.21 +++ @763 EXIT +++ @764 EXIT +++ @765 + KIPCST9.22 +++ @766 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +END + +IF ~~ KIPCST9.17 +SAY @474 +++ @767 + KIPCST9.16 +++ @768 EXIT +++ @728 EXIT +END + +IF ~~ KIPCST9.18 +SAY @769 +++ @767 + KIPCST9.16 +++ @770 EXIT +++ @728 EXIT +END + +IF ~~ KIPCST9.19 +SAY @771 +++ @772 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +++ @767 + KIPCST9.16 +++ @728 EXIT +END + +IF ~~ KIPCST9.20 +SAY @773 += @771 +++ @772 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +++ @767 + KIPCST9.16 +++ @728 EXIT +END + +IF ~~ KIPCST9.21 +SAY @774 +IF ~~ THEN DO ~SetGlobal("P#KivanCoA","GLOBAL",1)~ EXIT +END + +IF ~~ KIPCST9.22 +SAY @775 +IF ~~ THEN EXIT +END + +//Tazok's Heart 4 + +IF WEIGHT #990 +~Global("P#TazokTalk", "GLOBAL",7)~ THEN BEGIN KivTazok4 +SAY @776 ++ ~Race(Player1,ELF)~ + @777 + KIPCST10.1 +++ @778 + KIPCST10.2 ++ ~Gender(Player1, FEMALE)~ + @779 + KIPCST10.3 +++ @780 + KIPCST10.4 ++ ~Class(Player1, BARD_ALL)~ + @781 + KIPCST10.5 + +++ @782 + KIPCST10.6 +END + +IF ~~ KIPCST10.1 +SAY @783 +++ @784 + KIPCST10.7 +++ @785 + KIPCST10.4 +++ @781 + KIPCST10.5E +++ @782 + KIPCST10.6 +END + + +IF ~~ KIPCST10.2 +SAY @474 += @786 +++ @787 + KIPCST10.4 ++ ~Class(Player1, BARD_ALL)~ + @781 + KIPCST10.5 +++ @782 + KIPCST10.6 +++ @788 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1) SetGlobal("P#KivanConstitutionDrain","GLOBAL",3)~ EXIT +END + +IF ~~ KIPCST10.3 +SAY @789 += @790 +++ @787 + KIPCST10.4 ++ ~Class(Player1, BARD_ALL)~ + @781 + KIPCST10.5 +++ @782 + KIPCST10.6 +++ @791+ KIPCST10.9 ++ ~OR(2) Class(Player1,CLERIC_ALL) Class(Player1,DRUID_ALL)~ + @792+ KIPCST10.10 +++ @793 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1) SetGlobal("P#KivanConstitutionDrain","GLOBAL",3)~ EXIT +END + +IF ~~ KIPCST10.4 +SAY @794 += @795 ++ ~Gender(Player1, FEMALE) OR(2) Global("P#DeherianaLives","GLOBAL",1)Global("P#DeherianaLives","GLOBAL",2)~ + @796 + KIPCST10.11 ++ ~Gender(Player1, FEMALE) OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3)~ + @796 + KIPCST10.12 +++ @797 + KIPCST10.9 ++ ~OR(2) Class(Player1,CLERIC_ALL) Class(Player1,DRUID_ALL)~ + @792+ KIPCST10.10 +++ @793 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1) SetGlobal("P#KivanConstitutionDrain","GLOBAL",3)~ EXIT +++ @798 + KIPCST10.13 +END + +IF ~~ KIPCST10.5 +SAY @799 += @794 += @800 ++ ~Gender(Player1, FEMALE) OR(2) Global("P#DeherianaLives","GLOBAL",1)Global("P#DeherianaLives","GLOBAL",2)~ + @796 + KIPCST10.11 ++ ~Gender(Player1, FEMALE) OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3)~ + @796 + KIPCST10.12 +++ @797 + KIPCST10.9 ++ ~OR(2) Class(Player1,CLERIC_ALL) Class(Player1,DRUID_ALL)~ + @792+ KIPCST10.10 +++ @793 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1) SetGlobal("P#KivanConstitutionDrain","GLOBAL",3)~ EXIT +++ @798 + KIPCST10.13 +END + +IF ~~ KIPCST10.5E +SAY @801 += @794 += @800 ++ ~Gender(Player1, FEMALE) OR(2) Global("P#DeherianaLives","GLOBAL",1)Global("P#DeherianaLives","GLOBAL",2)~ + @796 + KIPCST10.11 ++ ~Gender(Player1, FEMALE) OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3)~ + @796 + KIPCST10.12 +++ @797 + KIPCST10.9 ++ ~OR(2) Class(Player1,CLERIC_ALL) Class(Player1,DRUID_ALL)~ + @792+ KIPCST10.10 +++ @793 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1) SetGlobal("P#KivanConstitutionDrain","GLOBAL",3)~ EXIT +++ @798 + KIPCST10.13 +END + +IF ~~ KIPCST10.6 +SAY @802 +++ @803 + KIPCST10.8 +END + +IF ~~ KIPCST10.7 +SAY @804 += @805 +++ @806 + KIPCST10.14 +++ @807 + KIPCST10.15 +++ @808 + KIPCST10.16 +END + +IF ~~ KIPCST10.8 +SAY @809 ++ ~Gender(Player1, FEMALE) OR(2) Global("P#DeherianaLives","GLOBAL",1)Global("P#DeherianaLives","GLOBAL",2)~ + @796 + KIPCST10.11 ++ ~Gender(Player1, FEMALE) OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3)~ + @796 + KIPCST10.12 +++ @797 + KIPCST10.9 ++ ~OR(2) Class(Player1,CLERIC_ALL) Class(Player1,DRUID_ALL)~ + @792+ KIPCST10.10 +++ @793 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1) SetGlobal("P#KivanConstitutionDrain","GLOBAL",3)~ EXIT +++ @798 + KIPCST10.13 +END + +IF ~~ KIPCST10.9 +SAY @810 += @811 +++ @806 + KIPCST10.14 +++ @807 + KIPCST10.15 +++ @808 + KIPCST10.16 +++ @812 + KIPCST10.17 +END + +IF ~~ KIPCST10.10 +SAY @813 += @810 += @811 +++ @806 + KIPCST10.14 +++ @807 + KIPCST10.15 +++ @808 + KIPCST10.16 +++ @812 + KIPCST10.17 +END + +IF ~~ KIPCST10.11 +SAY @814 += @815 += @816 += @811 +++ @806 + KIPCST10.14 +++ @807 + KIPCST10.15 +++ @808 + KIPCST10.16 +++ @812 + KIPCST10.17 +END + +IF ~~ KIPCST10.12 +SAY @817 += @815 += @816 += @811 +++ @806 + KIPCST10.14 +++ @807 + KIPCST10.15 +++ @808 + KIPCST10.16 +END + +IF ~~ KIPCST10.13 +SAY @818 += @816 += @811 +++ @806 + KIPCST10.14 +++ @807 + KIPCST10.15 +++ @808 + KIPCST10.16 +END + +IF ~~ KIPCST10.14 +SAY @819 +++ @807 + KIPCST10.15 +++ @808 + KIPCST10.16 +END + +IF ~~ KIPCST10.15 +SAY @820 +++ @821 + KIPCST10.18 +++ @822 + KIPCST10.19 +END + +IF ~~ KIPCST10.16 +SAY @823 +++ @821 + KIPCST10.18 +++ @822 + KIPCST10.19 +END + +IF ~~ KIPCST10.17 +SAY @824 +IF ~~ THEN DO ~ IncrementGlobal("P#KivanOffence","GLOBAL",1) SetGlobal("P#KivanConstitutionDrain","GLOBAL",3)~ EXIT //Kivan will lose 4 points of constitution +END + +IF ~~ KIPCST10.18 +SAY @825 +IF ~~ THEN DO ~SetGlobal("P#KivanConstitutionDrain","GLOBAL",2)~ EXIT //Kivan will loose 3 points of constitution +END + +IF ~~ KIPCST10.19 +SAY @826 +IF ~~ THEN DO ~SetGlobal("P#KivanConstitutionDrain","GLOBAL",1)~ EXIT //Kivan will loose 2 points of constitution +END + +//Druid's Grove Liberated + +IF WEIGHT #990 +~Global("P#KivanGroveSaved","GLOBAL",2)~ THEN BEGIN KivGroveSaved1 +SAY @827 ++~!Race(Player1,ELF) !Class(Player1,DRUID_ALL)~ + @828 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1) SetGlobal("P#KivanGroveSaved","GLOBAL",3)~ + KIPCST11.1 ++~!Class(Player1,DRUID_ALL)~ + @829 DO ~SetGlobal("P#KivanGroveSaved","GLOBAL",3)~ + KIPCST11.2 ++~!Race(Player1,ELF)~ + @830 DO ~SetGlobal("P#KivanGroveSaved","GLOBAL",3)~ + KIPCST11.3 +++ @831 DO ~SetGlobal("P#KivanGroveSaved","GLOBAL",3)~ + KIPCST11.4 +++ @832 DO ~SetGlobal("P#KivanGroveSaved","GLOBAL",3)~ + KIPCST11.5 +++ @833 DO ~SetGlobal("P#KivanGroveSaved","GLOBAL",3)~ + KIPCST11.6 +++ @834 DO ~SetGlobal("P#KivanGroveSaved","GLOBAL",2)~ + KIPCST11.7 +++ @835 DO ~SetGlobal("P#FaldornTalk","GLOBAL",1) SetGlobal("P#KivanGroveSaved","GLOBAL",3)~ + KIPCST11.8 ++ ~!Race(Player1,ELF) !Race(Player1,HALF_ELF)~+ @836 DO ~SetGlobal("P#KivanGroveSaved","GLOBAL",3)~ + KIPCST11.13 +END + +IF ~~ KIPCST11.1 +SAY @837 +++ @838 EXIT +++ @839 + KIPCST11.9 +++ @840 + KIPCST11.9 +++ @841 DO ~SetGlobal("P#FaldornTalk","GLOBAL",1)~+ KIPCST11.8 +END + +IF ~~ KIPCST11.2 +SAY @842 +++ @838 EXIT +++ @839 + KIPCST11.9 +++ @840 + KIPCST11.9 +++ @841 DO ~SetGlobal("P#FaldornTalk","GLOBAL",1)~+ KIPCST11.8 +END + +IF ~~ KIPCST11.3 +SAY @843 +++ @844 EXIT +++ @845 + KIPCST11.2 +END + +IF ~~ KIPCST11.4 +SAY @846 += @847 +++ @848 + KIPCST11.10 +++ @849 + KIPCST11.11 +++ @841 DO ~SetGlobal("P#FaldornTalk","GLOBAL",1)~ + KIPCST11.8 +END + +IF ~~ KIPCST11.5 +SAY @850 +++ @838 EXIT +++ @839 + KIPCST11.9 +++ @840 + KIPCST11.9 +++ @841 DO ~SetGlobal("P#FaldornTalk","GLOBAL",1)~+ KIPCST11.8 +END + +IF ~~ KIPCST11.6 +SAY @851 += @852 += @847 +++ @853 + KIPCST11.10 +++ @849 + KIPCST11.11 +++ @854 EXIT ++ ~Gender(Player1,FEMALE) OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3)~ + @855 + KIPCST11.12 +END + +IF ~~ KIPCST11.7 +SAY @852 += @847 +++ @853 + KIPCST11.10 +++ @849 + KIPCST11.11 +++ @856 EXIT ++ ~Gender(Player1,FEMALE) OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3)~ + @855 + KIPCST11.12 +END + +IF ~~ KIPCST11.8 +SAY @857 += @858 += @859 +IF ~~ THEN DO ~SetGlobal("P#FaldornTalk","GLOBAL",1)~ EXIT +END + +IF ~~ KIPCST11.9 +SAY @860 += @861 += @862 += @863 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST11.10 +SAY @864 += @865 += @861 += @862 += @863 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST11.11 +SAY @866 += @861 += @862 += @863 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST11.12 +SAY @867 += @868 += @869 += @861 += @862 += @863 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST11.13 +SAY @870 += @847 +++ @853 + KIPCST11.10 +++ @849 + KIPCST11.11 +++ @841 DO ~SetGlobal("P#FaldornTalk","GLOBAL",1)~ + KIPCST11.8 +END + +//Druid Grove 2 - Faldorn's Talk + +IF WEIGHT #990 +~Global("P#FaldornTalk","GLOBAL",2)~ THEN BEGIN KivFaldorn +SAY @871 +++ @872 DO ~SetGlobal("P#FaldornTalk","GLOBAL",3)~ + KIPCST12.1 +++ @873 DO ~SetGlobal("P#FaldornTalk","GLOBAL",3)~ + KIPCST12.2 +++ @874 DO ~SetGlobal("P#FaldornTalk","GLOBAL",3)~ + KIPCST12.3 +++ @875 DO ~SetGlobal("P#FaldornTalk","GLOBAL",3)~ + KIPCST12.4 +++ @876 DO ~SetGlobal("P#FaldornTalk","GLOBAL",3)~ + KIPCST12.5 +END + +IF ~~ KIPCST12.1 +SAY @877 += @878 +++ @879 + KIPCST12.2 +++ @880 + KIPCST12.3 +++ @881 + KIPCST12.6 +END + +IF ~~ KIPCST12.2 +SAY @882 +++ @883 + KIPCST12.7 +++ @884 + KIPCST12.3 +END + +IF ~~ KIPCST12.4 +SAY @885 +++ @886 + KIPCST12.8 +++ @887 + KIPCST12.9 +++ @888 + KIPCST12.10 +END + +IF ~~ KIPCST12.5 +SAY @889 +++ @890+ KIPCST12.11 +++ @891 + KIPCST12.12 +END + +IF ~~ KIPCST12.6 +SAY @892 +++ @893 + KIPCST12.14 +++ @894 + KIPCST12.15 +++ @895 + KIPCST12.16 +++ @896 + KIPCST12.22 +++ @897 EXIT +END + +IF ~~ KIPCST12.3 +SAY @898 +++ @899 + KIPCST12.17 +++ @900 + KIPCST12.17 +++ @901 + KIPCST12.18 +++ @902 + KIPCST12.19 +END + +IF ~~ KIPCST12.7 +SAY @903 +++ @904 + KIPCST12.20 +++ @905 + KIPCST12.21 +END + +IF ~~ KIPCST12.8 +SAY @906 += @907 +++ @893 + KIPCST12.14 +++ @908 + KIPCST12.15 +++ @895 + KIPCST12.16 +++ @896 + KIPCST12.22 +++ @897 EXIT +END + + +IF ~~ KIPCST12.9 +SAY @909 +++ @910 + KIPCST12.13 +++ @911 + KIPCST12.13 +++ @912 + KIPCST12.23 +END + +IF ~~ KIPCST12.10 +SAY @913 +IF ~~ THEN DO ~ IncrementGlobal("P#KivanOffence", "GLOBAL",1)~ EXIT +END + +IF ~~ KIPCST12.11 +SAY @914 += @915 += @916 += @917 ++ ~Race(Player1, ELF)~ + @918 + KIPCST12.24 ++ ~Race(Player1, ELF)~ + @919 DO ~ SetGlobal("P#Eldreth","GLOBAL",1) ~ + KIPCST12.25 ++ ~!Race(Player1, ELF)~ + @920 + KIPCST12.26 ++ ~!Race(Player1, ELF)~ + @921 + KIPCST12.27 ++ ~!Race(Player1, ELF)~ + @922 + KIPCST12.28 +END + +IF ~~ KIPCST12.12 +SAY @923 +++ @924 + KIPCST12.29 +++ @925 + KIPCST12.21 +END + +IF ~~ KIPCST12.13 +SAY @926 +IF ~~ THEN GOTO KIPCST12.7 +END + +IF ~~ KIPCST12.14 +SAY @927 += @928 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST12.15 +SAY @929 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST12.16 +SAY @930 += @931 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST12.17 +SAY @932 + += @933 +IF ~~ THEN GOTO KIPCST12.7 +END + +IF ~~ KIPCST12.18 +SAY @934 += @933 +IF ~~ THEN GOTO KIPCST12.7 +END + +IF ~~ KIPCST12.19 +SAY @935 += @936 +IF ~~ THEN GOTO KIPCST12.7 +END + +IF ~~ KIPCST12.20 +SAY @937 += @915 += @916 += @917 ++ ~Race(Player1, ELF)~ + @918 + KIPCST12.24 ++ ~Race(Player1, ELF)~ + @919 DO ~ SetGlobal("P#Eldreth","GLOBAL",1) ~ + KIPCST12.25 ++ ~!Race(Player1, ELF)~ + @920 + KIPCST12.26 ++ ~!Race(Player1, ELF)~ + @938 + KIPCST12.27 ++ ~!Race(Player1, ELF)~ + @922 + KIPCST12.28 +END + +IF ~~ KIPCST12.21 +SAY @939 += @940 += @915 += @916 += @917 ++ ~Race(Player1, ELF)~ + @918 + KIPCST12.24 ++ ~Race(Player1, ELF)~ + @919 DO ~ SetGlobal("P#Eldreth","GLOBAL",1) ~ + KIPCST12.25 ++ ~!Race(Player1, ELF)~ + @920 + KIPCST12.26 ++ ~!Race(Player1, ELF)~ + @921 + KIPCST12.25 ++ ~!Race(Player1, ELF)~ + @922 + KIPCST12.27 +END + +IF ~~ KIPCST12.22 +SAY @941 += @942 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST12.23 +SAY @943 += @944 +IF ~~ THEN GOTO KIPCST12.7 +END + +IF ~~ KIPCST12.24 +SAY @945 += @946 + +++ @947 EXIT +++ @948 EXIT +++ @949 EXIT +END + +IF ~~ KIPCST12.25 +SAY @950 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST12.26 +SAY @951 += @946 +++ @952 EXIT +++ @948 EXIT +++ @953 EXIT +++ @954 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +END + +IF ~~ KIPCST12.27 +SAY @955 +IF ~~ THEN DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +END + +IF ~~ KIPCST12.28 +SAY @956 +IF ~~ THEN DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1) SetGlobal("P#Eldreth","GLOBAL",1) ~ EXIT +END + +IF ~~ KIPCST12.29 +SAY @957 +IF ~~ THEN DO ~IncrementGlobal("P#KivanOffence", "GLOBAL",1)~ EXIT +END + +//Planar Prison Done + +IF WEIGHT #990 +~Global("P#KivanPlanar","GLOBAL",1)~ THEN BEGIN KivPlanar +SAY @958 +++ @959 DO ~SetGlobal("P#KivanPlanar","GLOBAL",2)~ EXIT ++ ~GlobalLT("Chapter","GLOBAL",%bg2_chapter_6%) ~ + @960 DO ~SetGlobal("P#KivanPlanar","GLOBAL",2)~ + KIPCST13.2 ++ ~GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) ~ + @961 DO ~SetGlobal("P#KivanPlanar","GLOBAL",2)~ + KIPCST13.2 +++ @962 DO ~SetGlobal("P#KivanPlanar","GLOBAL",2)~ + KIPCST13.3 +++ @963 DO ~SetGlobal("P#KivanPlanar","GLOBAL",2)~ + KIPCST13.4 ++ ~!Dead("c6coran")~+ @964 DO ~SetGlobal("P#KivanPlanar","GLOBAL",2)~ + KIPCST13.5A ++ ~Dead("c6coran")~+ @964 DO ~SetGlobal("P#KivanPlanar","GLOBAL",2)~ + KIPCST13.5B +++ @965 DO ~SetGlobal("P#KivanPlanar","GLOBAL",2)~ + KIPCST13.1 +END + +IF ~~ KIPCST13.1 +SAY @966 += @967 +++ @968 EXIT +++ @969 + KIPCST13.6 +++ @970 + KIPCST13.3 ++ ~OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3)~ + @971 + KIPCST13.7 +END + +IF ~~ KIPCST13.2 +SAY @972 += @973 += @974 +++ @968 EXIT +++ @969 + KIPCST13.6 ++ ~OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3)~ + @971 + KIPCST13.7 +END + +IF ~~ KIPCST13.3 +SAY @975 +++ @976 + KIPCST13.8 ++ ~OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3)~ + @977 + KIPCST13.7 +++ @978 + KIPCST13.9 +++ @979 + KIPCST13.10 +END + +IF ~~ KIPCST13.4 +SAY @980 += @973 += @974 +++ @968 EXIT +++ @969 + KIPCST13.6 ++ ~OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3)~ + @971 + KIPCST13.7 +END + +IF ~~ KIPCST13.5A +SAY @981 += @1434 += @967 +++ @968 EXIT +++ @969 + KIPCST13.6 +++ @970 + KIPCST13.3 ++ ~OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3)~ + @982 + KIPCST13.7 +END + +IF ~~ KIPCST13.5B +SAY @983 += @984 +++ @985 EXIT +++ @986 + KIPCST13.11 +END + +IF ~~ KIPCST13.6 +SAY @987 +++ @988 + KIPCST13.12 +++ @989 + KIPCST13.12 +++ @990 + KIPCST13.13 +END + +IF ~~ KIPCST13.7 +SAY @991 += @992 +++ @993 EXIT +++ @994 + KIPCST13.14 +++ @995 + KIPCST13.15A +++ @996 + KIPCST13.16A +END + +IF ~~ KIPCST13.8 +SAY @997 +++ @998 + KIPCST13.14A +++ @999 + KIPCST13.15 ++ ~Gender(Player1, FEMALE)~ + @1000 + KIPCST13.16 ++ ~Gender(Player1, MALE)~ + @1000 + KIPCST13.17 +END + +IF ~~ KIPCST13.9 +SAY @1001 += @1002 +++ @1003 EXIT +++ @1004 + KIPCST13.18 +++ @1005 EXIT +END + +IF ~~ KIPCST13.10 +SAY @1006 += @1007 +++ @1008 EXIT +++ @995 + KIPCST13.15A +++ @1009 + KIPCST13.16A +END + +IF ~~ KIPCST13.11 +SAY @1010 += @1011 +++ @1012 + KIPCST13.19 +++ @1013 EXIT +++ @1014 + KIPCST13.20 +END + +IF ~~ KIPCST13.12 +SAY @1015 += @1016 +++ @1017 + KIPCST13.21 +++ @1008 EXIT +++ @1018 + KIPCST13.15A +++ @1009 + KIPCST13.16A +END + + +IF ~~ KIPCST13.13 +SAY @1019 += @1016 +++ @1008 EXIT +++ @1018 + KIPCST13.15A +++ @1020 + KIPCST13.16A +END + +IF ~~ KIPCST13.14 +SAY @1021 +IF ~Global("P#Shevarash","GLOBAL",0)~ THEN DO ~RealSetGlobalTimer("P#ShevarashTime","GLOBAL",1800) SetGlobal("P#Shevarash","GLOBAL",1) IncrementGlobal("P#KivanOffence", "GLOBAL",1)~ EXIT +IF ~GlobalGT("P#Shevarash","GLOBAL",0)~ THEN DO ~IncrementGlobal("P#KivanOffence", "GLOBAL",1)~ EXIT +END + +IF ~~ KIPCST13.14A +SAY @1022 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST13.15A +SAY @1023 +++ @1024 + KIPCST13.22 +++ @1025 EXIT +END + +IF ~~ KIPCST13.16A +SAY @1026 += @1027 +++ @1024 + KIPCST13.22 +++ @1025 EXIT +END + +IF ~~ KIPCST13.15 +SAY @1028 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST13.16 +SAY @1029 +IF ~~ THEN DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ EXIT +END + +IF ~~ KIPCST13.17 +SAY @1030 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST13.18 +SAY @1031 += @1032 +++ @1008 EXIT +++ @1033 + KIPCST13.15A +++ @1009 + KIPCST13.16A +END + +IF ~~ KIPCST13.19 +SAY @1034 += @1035 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST13.20 +SAY @1036 +IF ~~ THEN DO ~IncrementGlobal("P#KivanOffence", "GLOBAL",1)~EXIT +END + +IF ~~ KIPCST13.21 +SAY @1037 +IF ~~ THEN DO ~IncrementGlobal("P#KivanOffence", "GLOBAL",1)~EXIT +END + +IF ~~ KIPCST13.22 +SAY @1038 +IF ~~ THEN EXIT +END + +//Recieved Arrows from Captain Arat, At Rest + +IF WEIGHT #990 +~Global("P#KivanArat","GLOBAL",2)~ THEN BEGIN KivArrows +SAY @1039 ++ ~Gender(Player1,FEMALE) OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3)~ + @1040 DO ~SetGlobal("P#KivanArat","GLOBAL",3) IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIPCST14.1 ++ ~Gender(Player1,FEMALE) OR(2) Global("P#DeherianaLives","GLOBAL",1)Global("P#DeherianaLives","GLOBAL",2)~ + @1041 DO ~SetGlobal("P#KivanArat","GLOBAL",3)~ + KIPCST14.2 ++ ~Gender(Player1,MALE) ~ + @1041 DO ~SetGlobal("P#KivanArat","GLOBAL",3)~ + KIPCST14.2 +++ @1042 DO ~SetGlobal("P#KivanArat","GLOBAL",3)~ + KIPCST14.3 +++ @1043 DO ~GiveItemCreate("P#AROW","p#kivan",20,0,0) RestParty()~ DO ~SetGlobal("P#KivanArat","GLOBAL",3)~ EXIT +++ @1044 DO ~SetGlobal("P#KivanArat","GLOBAL",3)~ + KIPCST14.8 +END + +IF ~~ KIPCST14.1 +SAY @1045 +++ @1046 + KIPCST14.3 +++ @1047 + KIPCST14.4 +++ @1043 DO ~GiveItemCreate("P#AROW","p#kivan",20,0,0) RestParty()~ EXIT +END + +IF ~~ KIPCST14.2A +SAY @1048 +++ @1049 + KIPCST14.3 +++ @1043 DO ~GiveItemCreate("P#AROW","p#kivan",20,0,0) RestParty()~ EXIT +END + + +IF ~~ KIPCST14.2 +SAY @1050 +++ @1049 + KIPCST14.3 +++ @1043 DO ~GiveItemCreate("P#AROW","p#kivan",20,0,0) RestParty()~ EXIT +END + +IF ~~ KIPCST14.3 +SAY @1051 +++ @1052 + KIPCST14.5 +++ @1053 + KIPCST14.6 ++~!Class(Player1,RANGER_ALL) ~ + @1054 + KIPCST14.7 +END + +IF ~~ KIPCST14.4 +SAY @1055 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KIPCST14.5 +SAY @1056 +IF ~~ DO ~GiveItemCreate("P#AROW","p#kivan",40,0,0) RestParty()~ EXIT +END + +IF ~~ KIPCST14.6 +SAY @1057 += @1058 += @1059 += @1060 +++ @1061 DO ~GiveItemCreate("P#AROW","p#kivan",20,0,0) RestParty()~ EXIT +++ @1062 + KIPCST14.5 +++ @1063 + KIPCST14.14 +END + +IF ~~ KIPCST14.7 +SAY @1064 += @1065 += @1066 += @1067 += @1060 +++ @1061 DO ~GiveItemCreate("P#AROW","p#kivan",20,0,0) RestParty()~ EXIT +++ @1068 + KIPCST14.15 +++ @1063 + KIPCST14.14 +END + +IF ~~ KIPCST14.8 +SAY @1069 += @1070 +++ @1071 + KIPCST14.2A +++ @1072 + KIPCST14.9 +++ @1073 DO ~GiveItemCreate("P#AROW","p#kivan",20,0,0) RestParty()~ EXIT +++ @1074 + KIPCST14.3 +END + +IF ~~ KIPCST14.9 +SAY @1075 +++ @1076 + KIPCST14.10 +++ @1077 DO ~GiveItemCreate("P#AROW","p#kivan",20,0,0) RestParty()~ EXIT +++ @1074 + KIPCST14.3 +END + +IF ~~ KIPCST14.10 +SAY @1078 +++ @1079 + KIPCST14.11 +++ @1077 DO ~GiveItemCreate("P#AROW","p#kivan",20,0,0) RestParty()~ EXIT +++ @1074 + KIPCST14.3 +END + +IF ~~ KIPCST14.11 +SAY @1080 +++ @1081 + KIPCST14.12 +++ @1077 DO ~GiveItemCreate("P#AROW","p#kivan",20,0,0) RestParty()~ EXIT +++ @1074 + KIPCST14.3 +END + +IF ~~ KIPCST14.12 +SAY @1082 +++ @1083 + KIPCST14.13 +++ @1077 DO ~GiveItemCreate("P#AROW","p#kivan",20,0,0) RestParty()~ EXIT +++ @1084 + KIPCST14.3 +END + +IF ~~ KIPCST14.13 +SAY @1085 += @1086 +++ @1077 DO ~GiveItemCreate("P#AROW","p#kivan",20,0,0) RestParty()~ EXIT +++ @1084 + KIPCST14.3 +END + +IF ~~ KIPCST14.14 +SAY @1087 += @1088 +IF ~~ DO ~GiveItemCreate("P#AROW","p#kivan",40,0,0) RestParty()~ EXIT +END + +IF ~~ KIPCST14.15 +SAY @1089 += @1088 +IF ~~ DO ~GiveItemCreate("P#AROW","p#kivan",40,0,0) RestParty()~ EXIT +END + +//Found a painting of a monster + +IF WEIGHT #990 +~Global("P#KivanPortrait","GLOBAL",1)~ THEN BEGIN KivPainting +SAY @1090 +++ @1091 DO ~SetGlobal("P#KivanPortrait","GLOBAL",2) RealSetGlobalTimer("P#KivanFlirtTimer","GLOBAL",1)~ + KIPCST15.1 +++ @1092 DO ~SetGlobal("P#KivanPortrait","GLOBAL",2) RealSetGlobalTimer("P#KivanFlirtTimer","GLOBAL",1)~ + KIPCST15.2 ++~!Race(Player1,ELF)~+ @1093 DO ~SetGlobal("P#KivanPortrait","GLOBAL",2) RealSetGlobalTimer("P#KivanFlirtTimer","GLOBAL",1)~ + KIPCST15.3 +++ @1094 DO ~SetGlobal("P#KivanPortrait","GLOBAL",2) RealSetGlobalTimer("P#KivanFlirtTimer","GLOBAL",1)~ + KIPCST15.4 +END + +IF ~~ KIPCST15.1 +SAY @1095 +++ @1096 + KIPCST15.4 +++ @1097 + KIPCST15.5 +++ @1098 + KIPCST15.6 +END + +IF ~~ KIPCST15.2 +SAY @1099 +++ @1100 + KIPCST15.7 ++ ~Class(Player1,BARD_ALL)~ + @1101 + KIPCST15.8 +++ @1102 + KIPCST15.9 ++ ~Race(Player1,ELF)~+ @1103 + KIPCST15.10 ++ ~!Race(Player1,ELF)~+ @1103 + KIPCST15.11 ++ ~Race(Player1,ELF)~+ @1104 + KIPCST15.12 +END + +IF ~~ KIPCST15.3 +SAY @1105 +++ @1100 + KIPCST15.7 ++ ~Class(Player1,BARD_ALL)~ + @1106 + KIPCST15.8 +++ @1102 + KIPCST15.9 ++ ~Race(Player1,ELF)~+ @1103 + KIPCST15.10 ++ ~!Race(Player1,ELF)~+ @1103 + KIPCST15.11 ++ ~Race(Player1,ELF)~+ @1104 + KIPCST15.12 +END + +IF ~~ KIPCST15.4 +SAY @474 +IF ~~ THEN GOTO KIPCST15.2 +END + +IF ~~ KIPCST15.5 +SAY @1107 +++ @1108 EXIT ++ ~Class(Player1,BARD_ALL)~ + @1109 + KIPCST15.13 +++ @1110 + KIPCST15.2 +END + +IF ~~ KIPCST15.6 +SAY @1111 +IF ~~ THEN DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +END + +IF ~~ KIPCST15.7 +SAY @1112 +IF ~~ THEN DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXIT +END + +IF ~~ KIPCST15.8 +SAY @1113 += @1114 +++ @1115 + KIPCST15.14 +++ @1116 + KIPCST15.15 +++ @1117 + KIPCST15.7 +++ @1118 + KIPCST15.16 +++ @1119 + KIPCST15.17 +END + +IF ~~ KIPCST15.9 +SAY @1120 +++ @1115 + KIPCST15.18 +++ @1121 + KIPCST15.19 +++ @1117 + KIPCST15.7 +++ @1122 + KIPCST15.20 +END + +IF ~~ KIPCST15.10 +SAY @1123 ++ ~Race(Player1,ELF)~ + @1124 + KIPCST15.21 +++ @1125 EXIT +++ @1102 + KIPCST15.9 +END + +IF ~~ KIPCST15.11 +SAY @1126 +++ @1124 + KIPCST15.21 +++ @1125 EXIT +++ @1102 + KIPCST15.9 +END + +IF ~~ KIPCST15.12 +SAY @1127 += @1128 +++ @1129 + KIPCST15.21 +++ @1130 EXIT +END + +IF ~~ KIPCST15.13 +SAY @1131 +IF ~~ THEN GOTO KIPCST15.8 +END + +IF ~~ KIPCST15.14 +SAY @1132 += @1133 +++ @1134 EXIT +++ @1135 + KIPCST15.22 +END + +IF ~~ KIPCST15.15 +SAY @1136 +IF ~~ THEN GOTO KIPCST15.14 +END + +IF ~~ KIPCST15.16 +SAY @1057 += @1137 +++ @1134 EXIT +++ @1135 + KIPCST15.22 +END + +IF ~~ KIPCST15.17 +SAY @1138 +IF ~~ THEN GOTO KIPCST15.7 +END + +IF ~~ KIPCST15.18 +SAY @1132 += @1139 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST15.19 +SAY @1140 +++ @1141 EXIT + ++ @1122 + KIPCST15.20 +END + +IF ~~ KIPCST15.20 + SAY@1142 += @1143 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST15.21 +SAY @1144 += @1143 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST15.22 +SAY @1145 +IF ~~ THEN EXIT +END + +//PC is without Soul, at Rest + +IF WEIGHT #990 +~Global("P#KivanSoul","GLOBAL",1)~ THEN BEGIN KivSoulless +SAY @1146 +++ @1147 DO ~SetGlobal("P#KivanSoul","GLOBAL",2) RealSetGlobalTimer("P#KivanFlirtTimer","GLOBAL",1)~ + KIPCST16.1 +++ @1148 DO ~SetGlobal("P#KivanSoul","GLOBAL",2) RealSetGlobalTimer("P#KivanFlirtTimer","GLOBAL",1)~ + KIPCST16.2 +++ @1149 DO ~SetGlobal("P#KivanSoul","GLOBAL",2) RealSetGlobalTimer("P#KivanFlirtTimer","GLOBAL",1)~ + KIPCST16.3 +++ @1150 DO ~SetGlobal("P#KivanSoul","GLOBAL",2) RealSetGlobalTimer("P#KivanFlirtTimer","GLOBAL",1)~ + KIPCST16.4 +++ @1151 DO ~SetGlobal("P#KivanSoul","GLOBAL",2) RealSetGlobalTimer("P#KivanFlirtTimer","GLOBAL",1)~ + KIPCST16.5 +++ @1152 DO ~SetGlobal("P#KivanSoul","GLOBAL",2) RealSetGlobalTimer("P#KivanFlirtTimer","GLOBAL",1)~ + KIPCST16.8 +END + +IF ~~ KIPCST16.1 +SAY @1153 +++ @1149 + KIPCST16.3 ++ ~GlobalGT("DrowTalk","GLOBAL",4)~ + @1154 + KIPCST16.6 +++ @1155 + KIPCST16.7 +++ @1152 + KIPCST16.8 +END + +IF ~~ KIPCST16.2 +SAY @1156 +++ @1157 + KIPCST16.1 +++ @1158 + KIPCST16.9 +++ @1159 + KIPCST16.10 +++ @1160 + KIPCST16.11 ++~Gender(Player1,FEMALE) OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3)~+ @1161+ KIPCST16.12 +END + +IF ~~ KIPCST16.3 +SAY @1162 +++ @1157 + KIPCST16.1 +++ @1158 + KIPCST16.9 +++ @1159 + KIPCST16.10 +++ @1160 + KIPCST16.11 ++~Gender(Player1,FEMALE) OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3)~+ @1163+ KIPCST16.12 +END + +IF ~~ KIPCST16.4 +SAY @1164 += @1165 +++ @1152 + KIPCST16.8 +++ @1158 + KIPCST16.9 +++ @1166 + KIPCST16.10 ++~Gender(Player1,FEMALE) OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3)~+ @1163 + KIPCST16.12 ++~Gender(Player1,FEMALE) OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3)~+ @1167 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIPCST16.13 +END + +IF ~~ KIPCST16.5 +SAY @1168 +++ @1169 DO ~RestParty()~ EXIT +++ @1170 + KIPCST16.14 +++ @1171 + KIPCST16.8 +END + +IF ~~ KIPCST16.6 +SAY @1172 +++ @1173 + KIPCST16.7 +++ @1174 + KIPCST16.14 +++ @1175 + KIPCST16.8 +END + +IF ~~ KIPCST16.7 +SAY @1176 +IF ~~ THEN DO ~ReallyForceSpellRES("SPIN121",Player1) RestParty()~ EXIT +END + +IF ~~ KIPCST16.8 +SAY @1177 ++ ~InParty("Jan")~ + @1178 + KIPCST16.15 +++ @1179 + KIPCST16.16 ++ ~!Race(Player1,ELF)~+ @1180 + KIPCST16.17 +END + +IF ~~ KIPCST16.9 +SAY @1181 += @1182 +IF ~~ THEN DO ~ReallyForceSpellRES("SPIN121",Player1) RestParty()~ EXIT +END + +IF ~~ KIPCST16.10 +SAY @1183 += @1184 += @1185 += @1186 += @1187 += @1188 +++ @1189 + KIPCST16.8 +++ @1190 + KIPCST16.16 +++ @1191 + KIPCST16.9 +++ @1192 + KIPCST16.7 +END + +IF ~~ KIPCST16.11 +SAY @1193 += @1182 +IF ~~ THEN DO ~ReallyForceSpellRES("SPIN121",Player1) RestParty()~ EXIT +END + +IF ~~ KIPCST16.12 +SAY @1194 +++ @1195 + KIPCST16.18 +++ @1196 + KIPCST16.19 ++ ~Class(Player1,BARD_ALL)~ + @1197 + KIPCST16.20 +++ @1198 + KIPCST16.18 +END + +IF ~~ KIPCST16.13 +SAY @1199 +++ @1200 + KIPCST16.7 +++ @1201 + KIPCST16.21 +++ @1202 DO ~RestParty()~ EXIT ++~Gender(Player1,FEMALE) OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3)~+ @1163 + KIPCST16.12 +END + +IF ~~ KIPCST16.14 +SAY @1203 +IF ~~ THEN GOTO KIPCST16.9 +END + +IF ~~ KIPCST16.15 +SAY @1204 += @1205 += @1206 +++ @1207 + KIPCST16.7 +++ @1208 + KIPCST16.22 +END + +IF ~~ KIPCST16.16 +SAY @1209 += @1210 +IF ~~ THEN DO ~ReallyForceSpellRES("SPIN121",Player1) RestParty()~ EXIT +END + +IF ~~ KIPCST16.17 +SAY @1211 +IF ~~ THEN GOTO KIPCST16.14 +END + +IF ~~ KIPCST16.18 +SAY @1212 += @1213 +++ @1214 + KIPCST16.7 +++ @1215 + KIPCST16.23 +++ @1216 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KIPCST16.24 +++ @1217 + KIPCST16.25 +END + +IF ~~ KIPCST16.19 +SAY @1218 +IF ~~ THEN GOTO KIPCST16.18 +END + +IF ~~ KIPCST16.20 +SAY @1219 +++ @1214 + KIPCST16.7 +++ @1215 + KIPCST16.23 +++ @1220 + KIPCST16.24 +++ @1217 + KIPCST16.25 +++ @1221 + KIPCST16.26 +END + +IF ~~ KIPCST16.21 +SAY @1222 +IF ~~ THEN GOTO KIPCST16.7 +END + +IF ~~ KIPCST16.22 +SAY @1223 += @1224 += @1436 += @1225 += @1226 += @1227 += @1228 += @1229 += @1230 += @1231 += @1232 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KIPCST16.23 +SAY @1233 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KIPCST16.24 +SAY @1234 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ KIPCST16.25 +SAY @1235 += @1236 +IF ~~ THEN GOTO KIPCST16.7 +END + +IF ~~ KIPCST16.26 +SAY @1237 +IF ~~ THEN GOTO KIPCST16.7 +END + +//In the Underdark + +IF WEIGHT #990 +~Global("P#KivanUnderdarkEntry","GLOBAL",1)~ THEN BEGIN KivUnderdark +SAY @1238 +++ @1239 DO ~SetGlobal("P#KivanUnderdarkEntry","GLOBAL",2)~ EXIT +++ @1240 DO ~SetGlobal("P#KivanUnderdarkEntry","GLOBAL",2)~ + KivUnderdark1.1 +++ @1241 DO ~SetGlobal("P#KivanUnderdarkEntry","GLOBAL",2)~ + KivUnderdark1.2 +++ @1242 DO ~SetGlobal("P#KivanUnderdarkEntry","GLOBAL",2)~ + KivUnderdark1.3 +END + +IF ~~ KivUnderdark1.8 +SAY @1243 +IF ~~ THEN GOTO KivUnderdark1.3 +END + +IF ~~ KivUnderdark1.7 +SAY @1244 +IF ~~ THEN GOTO KivUnderdark1.3 +END + +IF ~~ KivUnderdark1.6 +SAY @1245 +IF ~~ THEN GOTO KivUnderdark1.3 +END + +IF ~~ KivUnderdark1.5 +SAY @1246 +IF ~~ THEN GOTO KivUnderdark1.3 +END + +IF ~~ KivUnderdark1.4 +SAY @1247 +IF ~~ THEN EXIT +END + +IF ~~ KivUnderdark1.3 +SAY @1248 +IF ~~ THEN EXIT +END + +IF ~~ KivUnderdark1.2 +SAY @1249 +++ @1250 + KivUnderdark1.4 +++ @1251 + KivUnderdark1.8 +++ @1252 + KivUnderdark1.7 +END + +IF ~~ KivUnderdark1.1 +SAY @1253 +++ @1250 + KivUnderdark1.4 +++ @1254 + KivUnderdark1.5 +++ @1255 + KivUnderdark1.6 +END + +//In Ust Natha + +IF WEIGHT #990 +~Global("P#KivanUst","GLOBAL",1)~ THEN BEGIN KivUstNatha1 +SAY @1256 +++ @1257 DO ~SetGlobal("P#KivanUst","GLOBAL",2)~ + KIPCST17.1 ++ ~Gender(Player1,MALE)~+ @1258 DO ~SetGlobal("P#KivanUst","GLOBAL",2)~ + KIPCST17.2M ++ ~Gender(Player1,FEMALE)~+ @1258 DO ~SetGlobal("P#KivanUst","GLOBAL",2)~ + KIPCST17.2F +++ @1259 DO ~SetGlobal("P#KivanUst","GLOBAL",2)~ + KIPCST17.3 +++ @1260 DO ~SetGlobal("P#KivanUst","GLOBAL",2)~ + KIPCST17.4 +++ @1261 DO ~SetGlobal("P#KivanUst","GLOBAL",2)~ + KIPCST17.5 +END + +IF ~~ KIPCST17.1 +SAY @1262 +++ @1263 + KIPCST17.6 +++ @1264 + KIPCST17.4 +++ @1261 + KIPCST17.5 ++ ~!Race(Player1,ELF)~ + @1265 + KIPCST17.7 +END + +IF ~~ KIPCST17.2M +SAY @1266 +++ @1267 DO ~IncrementGlobal("P#KivanOffence", "GLOBAL",1)~EXIT +++ @1268 EXIT ++ + @1269 + KIPCST17.8 +END + +IF ~~ KIPCST17.2F +SAY @1270 +++ @1267 DO ~IncrementGlobal("P#KivanOffence", "GLOBAL",1)~EXIT +++ @1271 EXIT ++ ~OR(2) Global("P#DeherianaLives","GLOBAL",1)Global("P#DeherianaLives","GLOBAL",2)~ + @1272 + KIPCST17.8 ++ ~OR(3) Global("P#DeherianaDead","GLOBAL",1) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3)~ + @1273 + KIPCST17.9 +END + +IF ~~ KIPCST17.3 +SAY @1274 += @1275 +++ @1263 + KIPCST17.6 +++ @1264 + KIPCST17.4 +++ @1261 + KIPCST17.5 ++ ~!Race(Player1,ELF)~ + @1265 + KIPCST17.7 +END + +IF ~~ KIPCST17.4 +SAY @1276 +++ @1277 + KIPCST17.10 +++ @1278 + KIPCST17.11 +++ @1279 + KIPCST17.8 +++ @1280 + KIPCST17.12 ++ ~!Race(Player1,ELF)~ + @1265 + KIPCST17.7 +END + +IF ~~ KIPCST17.5 +SAY @1281 += @1282 +++ @1283 + KIPCST17.8 +++ @1284 + KIPCST17.4 +++ @1285 + KIPCST17.13 +END + +IF ~~ KIPCST17.6 +SAY @1286 += @1287 +IF ~~ THEN GOTO KIPCST17.4 +END + +IF ~~ KIPCST17.7 +SAY @1288 += @1289 += @1290 += @1291 +++ @1292 + KIPCST17.14 +++ @1293 + KIPCST17.15 +++ @1294 + KIPCST17.8 +END + +IF ~~ KIPCST17.8 +SAY @1295 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST17.9 +SAY @1296 += @1297 +++ @1298 + KIPCST17.8 +++ @1299 + KIPCST17.4 +++ @1300 + KIPCST17.16 +END + +IF ~~ KIPCST17.10 +SAY @1301 += @1302 += @1303 +++ @1304 + KIPCST17.8 +++ @1305 + KIPCST17.17 +++ @1306 + KIPCST17.18 +END + +IF ~~ KIPCST17.11 +SAY @1307 += @1308 += @1309 += @1310 += @1291 +++ @1292 + KIPCST17.14 +++ @1293 + KIPCST17.15 +++ @1294 + KIPCST17.8 +END + +IF ~~ KIPCST17.12 +SAY @1311 += @1312 += @1313 += @1310 += @1291 +++ @1292 + KIPCST17.14 +++ @1293 + KIPCST17.15 +++ @1294 + KIPCST17.8 +END + +IF ~~ KIPCST17.13 +SAY @1314 +++ @1315 + KIPCST17.7 +++ @1316 + KIPCST17.8 +END + +IF ~~ KIPCST17.14 +SAY @1317 +IF ~~ THEN DO ~IncrementGlobal("P#KivanOffence", "GLOBAL",5)~EXIT +END + +IF ~~ KIPCST17.15 +SAY @1318 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST17.16 +SAY @1319 += @1320 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST17.17 +SAY @1321 +=@1322 += @1323 += @1324 +IF ~~ THEN EXIT +END + +IF ~~ KIPCST17.18 +SAY @1325 +IF ~~ THEN EXIT +END + +//Merella died + +IF WEIGHT #990 +~Global("P#KivanRanger","GLOBAL",1)~ THEN BEGIN KivRanger1 +SAY @1326 ++ ~Class(Player1,RANGER_ALL)~ + @1327 DO ~SetGlobal("P#KivanRanger","GLOBAL",2)~ + KIST19.1 ++ ~Class(Player1,RANGER_ALL)~ + @1328 DO ~SetGlobal("P#KivanRanger","GLOBAL",2)~ + KIST19.1 +++ @1329 DO ~SetGlobal("P#KivanRanger","GLOBAL",2)~ EXIT ++ ~!Class(Player1,RANGER_ALL)~ + @1330 DO ~SetGlobal("P#KivanRanger","GLOBAL",2)~ + KIST19.2 ++ ~!Class(Player1,RANGER_ALL)~ + @1331 DO ~SetGlobal("P#KivanRanger","GLOBAL",2)~ + KIST19.3 +END + +IF ~~ KIST19.1 +SAY @1332 ++~InParty("Minsc") InParty("Valygar") ~ + @1333 + KIST19.4 +++ @1334 + KIST19.5 +++ @1335+ KIST19.6 +++ @1336+ KIST19.7 +END + +IF ~~ KIST19.2 +SAY @1337 +++ @1338 + KIST19.8 +++ @1339 + KIST19.9 +++ @1340 + KIST19.10 +++ @1341 + KIST19.11 +END + +IF ~~ KIST19.3 +SAY @1342 +++ @1338 + KIST19.8 +++ @1339 + KIST19.9 +++ @1340 + KIST19.10 +++ @1341 + KIST19.11 +++ @1343 + KIST19.12 +END + +IF ~~ KIST19.4 +SAY @1344 +IF ~~ THEN EXIT +END + +IF ~~ KIST19.5 +SAY @1345 +++ @1346 + KIST19.8 +++ @1347 + KIST19.9 +++ @1348 + KIST19.12 +END + +IF ~~ KIST19.6 +SAY @1349 +++ @1347 + KIST19.9 +++ @1348 + KIST19.12 +++ @1350 + KIST19.13 +END + +IF ~~ KIST19.7 +SAY @1351 +IF ~~ THEN EXIT +END + +IF ~~ KIST19.8 +SAY @1352 += @1353 += @1354 += @1355 +IF ~!Class(Player1,RANGER_ALL)~ THEN EXIT +IF ~Class(Player1,RANGER_ALL)~ THEN GOTO KIST19.14 +END + +IF ~~ KIST19.9 +SAY @1356 +IF ~~ THEN EXIT +END + +IF ~~ KIST19.12 +SAY @1357 += @1358 += @1355 +IF ~!Class(Player1,RANGER_ALL)~ THEN EXIT +IF ~Class(Player1,RANGER_ALL)~ THEN GOTO KIST19.14 +END + +IF ~~ KIST19.13 +SAY @1359 +++ @1360 EXIT +++ @1361 + KIST19.8 +END + +IF ~~ KIST19.14 +SAY @1362 +++ @1363 DO ~SetGlobal("P#RangerWantsHold","GLOBAL",1)~ + KIST19.15 +++ @1364 + KIST19.16 +++ @1365 + KIST19.17 +END + +IF ~~ KIST19.15 +SAY @1366 +IF~~ THEN EXIT +END + +IF ~~ KIST19.16 +SAY @1367 +IF~~ THEN EXIT +END + +IF ~~ KIST19.17 +SAY @1368 +IF~~ THEN EXIT +END + +//In Tethyr + +IF WEIGHT #990 +~Global("P#KivanTethir","GLOBAL",1)~ THEN BEGIN KivTethyr1 +SAY @1369 +++ @1370 DO ~SetGlobal("P#KivanTethir","GLOBAL",2)~ + KIST20.1 +++ @1371 DO ~SetGlobal("P#KivanTethir","GLOBAL",2)~ + KIST20.2 +++ @1372 DO ~SetGlobal("P#KivanTethir","GLOBAL",2)~ + KIST20.3 +END + +IF ~~ KIST20.1 +SAY @1373 +IF ~~ THEN GOTO KIST20.3 +END + +IF ~~ KIST20.2 +SAY @1374 +IF ~~ THEN GOTO KIST20.3 +END + +IF ~~ KIST20.3 +SAY @1375 +++ @1376 + KIST20.4 +++ @1377 + KIST20.5 +++ @1378 + KIST20.6 +++ @1379 EXIT +END + +IF ~~ KIST20.4 +SAY @1380 += @1381 +IF ~~ THEN EXIT +END + +IF ~~ KIST20.5 +SAY @1382 += @1383 +IF ~~ THEN EXIT +END + +IF ~~ KIST20.6 +SAY @1384 += @1385 +IF ~~ THEN EXIT +END + +//Ellesime's Dream + +IF WEIGHT #990 +~Global("P#KivanElleDream","GLOBAL",2)~ THEN BEGIN KivEllesDream +SAY @1386 +++ @1387 DO ~ SetGlobal("P#KivanElleDream","GLOBAL",3)~ + P#KiElDream1.1 +++ @1388 DO ~ SetGlobal("P#KivanElleDream","GLOBAL",3)~ + P#KiElDream1.2 +++ @1389 DO ~ SetGlobal("P#KivanElleDream","GLOBAL",3)~ + P#KiElDream1.3 +END + +IF ~~ P#KiElDream1.1 +SAY @1390 += @1391 +++ @1392 DO ~ SetGlobal("P#KivanElleDream","GLOBAL",3)~ + P#KiElDream1.2 +++ @1389 DO ~ SetGlobal("P#KivanElleDream","GLOBAL",3)~ + P#KiElDream1.3 +END + +IF ~~ P#KiElDream1.2 +SAY @1393 +++ @1394 + P#KiElDream1.4 ++ ~Gender(Player1,MALE)~ + @1395 + P#KiElDream1.5 +++ @1389 DO ~ SetGlobal("P#KivanElleDream","GLOBAL",3)~ + P#KiElDream1.3 +END + +IF ~~ P#KiElDream1.3 +SAY @1396 +IF ~~ THEN DO ~IncrementGlobal("P#kivanOffence","GLOBAL",1)~ EXIT +END + +IF ~~ P#KiElDream1.4 +SAY @1397 +++ @1398 + P#KiElDream1.6 ++ ~Gender(Player1,MALE)~ + @1399 + P#KiElDream1.5 +++ @1400 + P#KiElDream1.7 +++ @1389 DO ~ SetGlobal("P#KivanElleDream","GLOBAL",3)~ + P#KiElDream1.3 +END +IF ~~ P#KiElDream1.5 +SAY @1401 +IF ~~ THEN EXIT +END + +IF ~~ P#KiElDream1.6 +SAY @1402 +IF ~~ THEN EXIT +END + +IF ~~ P#KiElDream1.7 +SAY @1403 +IF ~~ THEN EXIT +END + +//Pai'na// + +IF WEIGHT #990 +~Global("P#KivanCenteol","GLOBAL",1)~ THEN BEGIN KivCenteol +SAY @1465 +++ @1437 DO ~SetGlobal("P#KivanCenteol","GLOBAL",2)~ + KiCenteol1.1 +++ @1438 DO ~SetGlobal("P#KivanCenteol","GLOBAL",2)~ + KiCenteol1.2 +++ @1439 DO ~SetGlobal("P#KivanCenteol","GLOBAL",2)~ + KiCenteol1.3 +++ @1440 DO ~SetGlobal("P#KivanCenteol","GLOBAL",2)~ + KiCenteol1.4 +END + +IF ~~ KiCenteol1.12 +SAY @1441 +IF ~~ THEN EXIT +END + +IF ~~ KiCenteol1.11 +SAY @1442 += @1443 +IF ~~ THEN DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ EXIT +END + +IF ~~ KiCenteol1.10 +SAY @1444 +IF ~~ THEN EXIT +END + +IF ~~ KiCenteol1.9 +SAY @1445 +IF ~~ THEN EXIT +END + +IF ~~ KiCenteol1.8 +SAY @1446 +++ @1447 + KiCenteol1.12 +++ @1448 + KiCenteol1.10 ++ ~Gender(Player1,FEMALE)~+ @1449 + KiCenteol1.11 +++ @1450 EXIT +END + +IF ~~ KiCenteol1.7 +SAY @1451 +++ @1452 + KiCenteol1.5 +++ @1453 + KiCenteol1.6 +++ @1454 EXIT +++ @1455 + KiCenteol1.8 +END + +IF ~~ KiCenteol1.6 +SAY @1456 +++ @1457 + KiCenteol1.9 +++ @1458 + KiCenteol1.10 ++ ~Gender(Player1,FEMALE)~+ @1449 + KiCenteol1.11 +++ @1450 EXIT +END + +IF ~~ KiCenteol1.5 +SAY @1459 +++ @1457 + KiCenteol1.9 +++ @1458 + KiCenteol1.10 ++ ~Gender(Player1,FEMALE)~+ @1449 + KiCenteol1.11 +++ @1450 EXIT +END + +IF ~~ KiCenteol1.4 +SAY @1460 +++ @1452 + KiCenteol1.5 +++ @1453 + KiCenteol1.6 +++ @1461 + KiCenteol1.7 +++ @1455 + KiCenteol1.8 +END + +IF ~~ KiCenteol1.3 +SAY @1462 +++ @1452 + KiCenteol1.5 +++ @1453 + KiCenteol1.6 +++ @1461 + KiCenteol1.7 +++ @1455 + KiCenteol1.8 +END + +IF ~~ KiCenteol1.2 +SAY @1463 +IF ~~ THEN EXIT +END + +IF ~~ KiCenteol1.1 +SAY @1464 +++ @1452 + KiCenteol1.5 +++ @1453 + KiCenteol1.6 +++ @1461 + KiCenteol1.7 +END + +//lavok for a human + +IF WEIGHT #990 +~Global("P#LavokDead","GLOBAL",1)~ THEN BEGIN LavokDead +SAY @1466 +++ @1467 DO ~SetGlobal("P#LavokDead","GLOBAL",2)~ + P#KiLa1.1 +++ @1468 DO ~SetGlobal("P#LavokDead","GLOBAL",2)~ + P#KiLa1.2 +++ @1469 DO ~SetGlobal("P#LavokDead","GLOBAL",2)~ + P#KiLa1.3 +++ @1470 DO ~SetGlobal("P#LavokDead","GLOBAL",2)~ + P#KiLa1.4 +END + +IF ~~ P#KiLa1.14 +SAY @1471 +IF ~~ THEN EXIT +END + +IF ~~ P#KiLa1.13 +SAY @1472 +IF ~~ THEN EXIT +END + +IF ~~ P#KiLa1.12 +SAY @1473 +IF ~~ THEN EXIT +END + +IF ~~ P#KiLa1.11 +SAY @1474 +IF ~~ THEN EXIT +END + +IF ~~ P#KiLa1.10 +SAY @1475 +IF ~~ THEN EXIT +END + +IF ~~ P#KiLa1.9 +SAY @1476 +++ @1477 + P#KiLa1.14 +++ @1478 + P#KiLa1.7 +++ @1479 + P#KiLa1.8 +++ @1480 + P#KiLa1.12 +END + +IF ~~ P#KiLa1.8 +SAY @1481 +IF ~~ THEN EXIT +END + +IF ~~ P#KiLa1.7 +SAY @1482 +IF ~~ THEN DO ~IncrementGlobal("P#KivanLove","GLOBAL",-1)~ EXIT +END + +IF ~~ P#KiLa1.6 +SAY @1483 +IF ~~ THEN GOTO P#KiLa1.5 +END + +IF ~~ P#KiLa1.5 +SAY @1484 +IF ~~ THEN EXIT +END + +IF ~~ P#KiLa1.4 +SAY @1485 +++ @1486 + P#KiLa1.13 +++ @1487 EXIT +++ @1488 + P#KiLa1.3 +END + +IF ~~ P#KiLa1.3 +SAY @1489 +++ @1490 + P#KiLa1.10 +++ @1491 + P#KiLa1.11 +++ @1480 + P#KiLa1.12 +END + +IF ~~ P#KiLa1.2 +SAY @1492 +++ @1493 + P#KiLa1.7 +++ @1494 + P#KiLa1.8 +++ @1495 + P#KiLa1.9 +END + +IF ~~ P#KiLa1.1 +SAY @1496 +++ @1497 + P#KiLa1.5 +++ @1498 + P#KiLa1.6 +++ @1499 + P#KiLa1.3 +++ @1470 + P#KiLa1.4 +END + +//bodhi dead + +IF WEIGHT #990 +~Global("P#BodhiDead","GLOBAL",1)~ THEN BEGIN BodhiDead +SAY @1500 +++ @1501 DO ~SetGlobal("P#BodhiDead","GLOBAL",2)~ + P#KiBo1.1 +++ @1502 DO ~SetGlobal("P#BodhiDead","GLOBAL",2)~ + P#KiBo1.2 +++ @1503 DO ~SetGlobal("P#BodhiDead","GLOBAL",2)~ + P#KiBo1.3 +++ @1504 DO ~SetGlobal("P#BodhiDead","GLOBAL",2)~ + P#KiBo1.4 ++ ~PartyHasItem("MISCBP")~+ @1505 DO ~SetGlobal("P#BodhiDead","GLOBAL",2)~ + P#KiBo1.5 ++ ~Global("P#KivanRomanceActive","GLOBAL",1)~ + @1506 DO ~SetGlobal("P#BodhiDead","GLOBAL",2)~ + P#KiBo1.6 ++ ~Global("P#KivanRomanceActive","GLOBAL",1)~ + @1507 DO ~SetGlobal("P#BodhiDead","GLOBAL",2)~ + P#KiBo1.7 +END + +IF ~~ P#KiBo1.22 +SAY @1508 +IF ~~ THEN EXIT +END + +IF ~~ P#KiBo1.21 +SAY @1509 +IF ~~ THEN EXIT +END + +IF ~~ P#KiBo1.20 +SAY @1510 +IF ~~ THEN EXIT +END + +IF ~~ P#KiBo1.19 +SAY @1511 +IF ~~ THEN EXIT +END + +IF ~~ P#KiBo1.18 +SAY @1512 +IF ~~ THEN EXIT +END + +IF ~~ P#KiBo1.17 +SAY @1513 +IF ~~ THEN EXIT +END + +IF ~~ P#KiBo1.16 +SAY @1514 +IF ~~ THEN EXIT +END + +IF ~~ P#KiBo1.15 +SAY @1515 +IF ~~ THEN EXIT +END + +IF ~~ P#KiBo1.14 +SAY @1516 +IF ~~ THEN EXIT +END + + +IF ~~ P#KiBo1.13 +SAY @1517 +IF ~~ THEN EXIT +END + +IF ~~ P#KiBo1.12 +SAY @1518 +IF ~~ THEN EXIT +END + +IF ~~ P#KiBo1.11 +SAY @1519 +++ @1520 + P#KiBo1.20 +++ @1521 + P#KiBo1.21 +++ @1522 + P#KiBo1.22 +IF ~~ THEN EXIT +END + +IF ~~ P#KiBo1.10 +SAY @1523 +IF ~~ THEN EXIT +END + +IF ~~ P#KiBo1.9 +SAY @1524 +IF ~~ THEN GOTO P#KiBo1.3 +END + +IF ~~ P#KiBo1.8 +SAY @1525 +IF ~~ THEN EXIT +END + +IF ~~ P#KiBo1.7 +SAY @1526 += @1527 +++ @1528 + P#KiBo1.18 +++ @1529 + P#KiBo1.19 +++ @1530 + P#KiBo1.12 +++ @1531 + P#KiBo1.13 +END + +IF ~~ P#KiBo1.6 +SAY @1532 +++ @1528 + P#KiBo1.18 +++ @1529 + P#KiBo1.19 +++ @1530 + P#KiBo1.12 +++ @1533 + P#KiBo1.13 +END + +IF ~~ P#KiBo1.5 +SAY @1534 +++ @1535 + P#KiBo1.15 +++ @1536 + P#KiBo1.16 +++ @1537 + P#KiBo1.17 +END + +IF ~~ P#KiBo1.4 +SAY @1538 +IF ~~ THEN GOTO P#KiBo1.3 +END + +IF ~~ P#KiBo1.3 +SAY @1539 ++ ~PartyHasItem("MISCBP")~+ @1540 + P#KiBo1.5 ++ ~InPartyAllowDead(Player2) !InParty(Player2)~ + @1541 + P#KiBo1.8 ++ ~InPartyAllowDead(Player3) !InParty(Player3) InParty(Player2)~ + @1541 + P#KiBo1.8 ++ ~InPartyAllowDead(Player4) !InParty(Player4) InParty(Player2) InParty(Player3)~ + @1541 + P#KiBo1.8 ++ ~InPartyAllowDead(Player5) !InParty(Player5) InParty(Player2) InParty(Player3) InParty(Player4)~ + @1541 + P#KiBo1.8 ++ ~InPartyAllowDead(Player6) !InParty(Player6) InParty(Player2) InParty(Player3) InParty(Player4) InParty(Player5)~ + @1541 + P#KiBo1.8 +++ @1542 + P#KiBo1.11 +++ @1543 + P#KiBo1.12 +++ @1544 + P#KiBo1.13 +++ @1545 + P#KiBo1.14 +END + +IF ~~ P#KiBo1.2 +SAY @1546 ++ ~PartyHasItem("MISCBP")~+ @1540 + P#KiBo1.5 ++ ~InPartyAllowDead(Player2) !InParty(Player2)~ + @1541 + P#KiBo1.8 ++ ~InPartyAllowDead(Player3) !InParty(Player3) InParty(Player2)~ + @1541 + P#KiBo1.8 ++ ~InPartyAllowDead(Player4) !InParty(Player4) InParty(Player2) InParty(Player3)~ + @1541 + P#KiBo1.8 ++ ~InPartyAllowDead(Player5) !InParty(Player5) InParty(Player2) InParty(Player3) InParty(Player4)~ + @1541 + P#KiBo1.8 ++ ~InPartyAllowDead(Player6) !InParty(Player6) InParty(Player2) InParty(Player3) InParty(Player4) InParty(Player5)~ + @1541 + P#KiBo1.8 +++ @1542 + P#KiBo1.11 +++ @1543 + P#KiBo1.12 +++ @1544 + P#KiBo1.13 +++ @1545 + P#KiBo1.14 +END + +IF ~~ P#KiBo1.1 +SAY @1547 +++ @1548 + P#KiBo1.3 ++ ~InPartyAllowDead(Player2) !InParty(Player2)~ + @1549 + P#KiBo1.8 ++ ~InPartyAllowDead(Player3) !InParty(Player3) InParty(Player2)~ + @1549 + P#KiBo1.8 ++ ~InPartyAllowDead(Player4) !InParty(Player4) InParty(Player2) InParty(Player3)~ + @1549 + P#KiBo1.8 ++ ~InPartyAllowDead(Player5) !InParty(Player5) InParty(Player2) InParty(Player3) InParty(Player4)~ + @1549 + P#KiBo1.8 ++ ~InPartyAllowDead(Player6) !InParty(Player6) InParty(Player2) InParty(Player3) InParty(Player4) InParty(Player5)~ + @1549 + P#KiBo1.8 +++ @1550 + P#KiBo1.9 +++ @1551 + P#KiBo1.10 ++ ~PartyHasItem("MISCBP")~+ @1540 + P#KiBo1.5 +END + +IF WEIGHT #990 +~Global("P#HappinessTalk","GLOBAL",1)~ THEN BEGIN DeherianaLives +SAY @1552 +++ @1553 DO ~SetGlobal("P#HappinessTalk","GLOBAL",2)~ + P#KiHa1.1 +++ @1554 DO ~SetGlobal("P#HappinessTalk","GLOBAL",2)~ + P#KiHa1.2 +++ @1555 DO ~SetGlobal("P#HappinessTalk","GLOBAL",2)~ + P#KiHa1.3 +++ @1556 DO ~SetGlobal("P#HappinessTalk","GLOBAL",2)~ + P#KiHa1.4 +END + +IF ~~ P#KiHa1.22 +SAY @1557 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHa1.21 +SAY @1558 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHa1.20 +SAY @1559 +IF ~~ THEN GOTO P#KiHa1.19 +END + +IF ~~ P#KiHa1.19 +SAY @1560 += @1561 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHa1.18 +SAY @1562 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHa1.17 +SAY @1563 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHa1.16 +SAY @1564 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHa1.15 +SAY @1565 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHa1.14 +SAY @1566 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHa1.13 +SAY @1567 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHa1.12 +SAY @1568 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHa1.11 +SAY @1569 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHa1.10 +SAY @1570 +++ @1571 + P#KiHa1.5 +++ @1572 + P#KiHa1.18 +++ @1573 + P#KiHa1.19 +++ @1574 + P#KiHa1.21 +++ @1575 + P#KiHa1.22 +END + +IF ~~ P#KiHa1.9 +SAY @1576 += @1577 += @1578 +++ @1579 + P#KiHa1.20 +++ @1580 + P#KiHa1.5 +++ @1581 + P#KiHa1.10 +END + +IF ~~ P#KiHa1.8 +SAY @1582 +++ @1579 + P#KiHa1.20 +++ @1580 + P#KiHa1.5 +++ @1581 + P#KiHa1.10 +END + +IF ~~ P#KiHa1.7 +SAY @1583 +++ @1584 + P#KiHa1.11 +++ @1585 + P#KiHa1.12 +++ @1586 + P#KiHa1.13 +++ @1587 + P#KiHa1.14 +++ @1588 + P#KiHa1.15 +++ @1589 + P#KiHa1.16 +++ @1590 + P#KiHa1.17 +++ @1572 + P#KiHa1.18 +++ @1573 + P#KiHa1.19 +++ @1574 + P#KiHa1.21 +END + +IF ~~ P#KiHa1.6 +SAY @1591 +++ @1579 + P#KiHa1.20 +++ @1580 + P#KiHa1.5 +++ @1581 + P#KiHa1.10 +END + +IF ~~ P#KiHa1.5 +SAY @1592 +++ @1593 + P#KiHa1.11 +++ @1585 + P#KiHa1.12 +++ @1586 + P#KiHa1.13 +++ @1587 + P#KiHa1.14 +++ @1594 + P#KiHa1.15 +++ @1589 + P#KiHa1.16 +++ @1590 + P#KiHa1.17 +++ @1572 + P#KiHa1.18 +++ @1573 + P#KiHa1.19 +END + +IF ~~ P#KiHa1.4 +SAY @1595 +++ @1593 + P#KiHa1.11 +++ @1585 + P#KiHa1.12 +++ @1586 + P#KiHa1.13 +++ @1587 + P#KiHa1.14 +++ @1594 + P#KiHa1.15 +++ @1589 + P#KiHa1.16 +++ @1590 + P#KiHa1.17 +++ @1572 + P#KiHa1.18 +END + +IF ~~ P#KiHa1.3 +SAY @1596 +++ @1580 + P#KiHa1.5 +++ @1597 + P#KiHa1.8 +++ @1598 + P#KiHa1.9 +++ @1581 + P#KiHa1.10 +END + +IF ~~ P#KiHa1.2 +SAY @1599 +++ @1600 + P#KiHa1.5 +++ @1601 + P#KiHa1.8 +++ @1602 + P#KiHa1.9 +++ @1581 + P#KiHa1.10 +END + +IF ~~ P#KiHa1.1 +SAY @1603 +++ @1604 + P#KiHa1.5 +++ @1605 + P#KiHa1.6 +++ @1606 + P#KiHa1.7 +END + +END + +CHAIN P#KIVJ KIST19.11 +@1404 +== P#DEHJ IF ~InParty("P#DEHER")~ THEN @1405 +== P#KIVJ IF ~!InParty("P#DEHER")~ THEN @1406 +== P#KIVJ IF ~InParty("P#KIVAN")~ THEN @1407 +EXIT + +CHAIN P#KIVJ KIST19.10 +@1408 +== P#DEHJ IF ~InParty("P#DEHER")~ THEN @1409 +== P#KIVJ IF ~InParty("P#KIVAN")~ THEN @1410 +== P#KIVJ IF ~!InParty("P#DEHER")~ THEN @1409 +EXIT + +//Dealing With Solaufein// + +ADD_TRANS_TRIGGER UDSOLA01 126 ~OR(3) !InParty("P#kivan") Dead("P#kivan") StateCheck("P#kivan",STATE_SLEEPING)~ + + +EXTEND_BOTTOM UDSOLA01 126 +IF ~InParty("P#kivan") !Dead("P#kivan") !StateCheck("P#kivan",STATE_SLEEPING)~ THEN REPLY @1411 GOTO 127 +IF ~InParty("P#kivan") !Dead("P#kivan") !StateCheck("P#kivan",STATE_SLEEPING)~ THEN REPLY @1412 EXTERN P#KIVJ P#KnifeSola +IF ~InParty("P#kivan") !Dead("P#kivan") !StateCheck("P#kivan",STATE_SLEEPING)~ THEN REPLY @1413 GOTO 133 +END + +CHAIN P#KIVJ P#KnifeSola + @1414 +== UDSOLA01 @1415 +== P#KIVJ @1416 +== UDSOLA01 @1417 +== UDSOLA01 @1435 +== P#KIVJ @1418 +END +IF ~~ THEN DO ~ApplyDamage("Solaufein",5,PIERCING)~ EXTERN P#KIVJ P#KnifeSola1 + +CHAIN P#KIVJ P#KnifeSola1 + @1419 +== UDSOLA01 @1420 +== P#KIVJ @1421 +== P#KIVJ IF ~InParty("Aerie")~ THEN @1422 +== AERIEJ IF ~InParty("Aerie")~ THEN @1423 +== UDSOLA01 IF ~InParty("Aerie")~ THEN @1424 +== P#KIVJ IF ~InParty("Aerie")~ THEN @1425 +== UDSOLA01 IF ~InParty("Aerie")~ THEN @1426 +== P#KIVJ IF ~InParty("Aerie")~ THEN @1427 +== AERIEJ IF ~InParty("Aerie")~ THEN @1428 +== UDSOLA01 IF ~InParty("Aerie")~ THEN @1429 +== P#KIVJ IF ~!InParty("Aerie")~ THEN @1430 +== UDSOLA01 IF ~!InParty("Aerie")~ THEN @1431 +== P#KIVJ @1432 +END +IF ~~ THEN DO ~ReallyForceSpellRES("SPIN101","solaufein")~ EXTERN UDSOLA01 128 + + + diff --git a/kivan/d/p#kipid.d b/kivan/d/p#kipid.d new file mode 100644 index 0000000..f38a7ea --- /dev/null +++ b/kivan/d/p#kipid.d @@ -0,0 +1,2078 @@ +I_C_T2 P#KIVJ 1264 P#KivAmuanaMazzy +== MAZZYJ IF ~InParty("mazzy") !Dead("mazzy") +!StateCheck("mazzy",STATE_SLEEPING)~ THEN @0 +END + +I_C_T2 P#KIVJ 1264 P#KivAmuanaAnomen +== ANOMENJ IF ~InParty("anomen") !Dead("anomen") +!StateCheck("anomen",STATE_SLEEPING) Alignment("anomen",LAWFUL_NEUTRAL) +OR(3) !InParty("mazzy") Dead("mazzy") +StateCheck("mazzy",STATE_SLEEPING) +~ THEN @1 +END + +I_C_T2 P#KIVJ 1264 P#KivAmuanaMinsc +== MINSCJ IF ~ +InParty("minsc") !Dead("minsc") +!StateCheck("minsc",STATE_SLEEPING)~ THEN @2 +END + +//Deheriana Stops Kivan from Taking Tazok's Heart// + +INTERJECT P#KIVJ 377 P#DeherianaStopsKivan +== P#DEHJ IF ~InParty("P#DEHER") !Dead("P#DEHER") !StateCheck("P#DEHER",STATE_SLEEPING) ~ THEN @3 +DO ~SetGlobal("P#TazokTalk","GLOBAL",2)~ +EXIT + +////SoA PID/// + +APPEND P#KIVJ + +IF WEIGHT #100100 ~IsGabber(Player1) +CombatCounter(0)~ P#KiFlirt +SAY @4 + ++ ~GlobalLT("Chapter","GLOBAL",%bg2_chapter_4%) GlobalLT("P#KivanLove","GLOBAL",4)~ + @568 + P#KivanInitiateRomance + ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL")~ + @5 EXIT + ++ ~Global("P#DeherianaDead","GLOBAL",1) !RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL")~ + @6 + P#KivanRefusesToTalk + ++ ~RandomNum(4,1) OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL")~ + @7 + KiFlirt1 ++ ~RandomNum(4,2) OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL")~ + @7 + KiFlirt2 ++ ~RandomNum(4,3) OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL")~ + @7 + KiFlirt3 ++ ~RandomNum(4,4) OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL")~ + @7 + KiFlirt4 + ++ ~Global("SupportInitiated","GLOBAL",0) InParty("P#DEHER") Global("P#DeherianaLives","GLOBAL",2)~ + @8 DO ~SetGlobal("SupportInitiated","GLOBAL",1) IncrementGlobal("P#PCSupport","GLOBAL",1)~ EXIT ++ ~Global("SupportInitiated","GLOBAL",0) InParty("P#DEHER") Global("P#DeherianaLives","GLOBAL",2) ~ + @9 DO ~SetGlobal("SupportInitiated","GLOBAL",1) IncrementGlobal("P#PCSupport","GLOBAL",-1)~ EXIT + ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") GlobalLT("X#AskedKivanDoing","GLOBAL",11) HPPercentGT(Player1,50) RandomNum(2,1)~ + @10 DO ~IncrementGlobal("X#AskedKivanDoing","GLOBAL",1)~ + X#KiHow1 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") GlobalLT("X#AskedKivanDoing","GLOBAL",11) HPPercentGT(Player1,50) RandomNum(2,2)~ + @10 DO ~IncrementGlobal("X#AskedKivanDoing","GLOBAL",1)~ + X#KiHow2 + ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !HPPercentGT(Player1,50)~ + @10 + X#KiHow3 + ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") Global("X#AskedKivanDoing","GLOBAL",11) HPPercentGT(Player1,50)~ + @10 DO ~IncrementGlobal("X#AskedKivanDoing","GLOBAL",1)~ + X#KiHow4 + ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") GlobalGT("X#AskedKivanDoing","GLOBAL",11) HPPercentGT(Player1,50) RandomNum(6,1)~ + @10 DO ~IncrementGlobal("X#AskedKivanDoing","GLOBAL",1)~ + X#KiHow5 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") GlobalGT("X#AskedKivanDoing","GLOBAL",11) HPPercentGT(Player1,50) RandomNum(6,1)~ + @10 DO ~IncrementGlobal("X#AskedKivanDoing","GLOBAL",1)~ + X#KiHow6 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") GlobalGT("X#AskedKivanDoing","GLOBAL",11) HPPercentGT(Player1,50) RandomNum(6,1)~ + @10 DO ~IncrementGlobal("X#AskedKivanDoing","GLOBAL",1)~ + X#KiHow7 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") GlobalGT("X#AskedKivanDoing","GLOBAL",11) HPPercentGT(Player1,50) RandomNum(6,1)~ + @10 DO ~IncrementGlobal("X#AskedKivanDoing","GLOBAL",1)~ + X#KiHow8 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") GlobalGT("X#AskedKivanDoing","GLOBAL",11) HPPercentGT(Player1,50) RandomNum(6,1)~ + @10 DO ~IncrementGlobal("X#AskedKivanDoing","GLOBAL",1)~ + X#KiHow9 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") GlobalGT("X#AskedKivanDoing","GLOBAL",11) HPPercentGT(Player1,50) RandomNum(6,1)~ + @10 DO ~IncrementGlobal("X#AskedKivanDoing","GLOBAL",1)~ + X#KiHow10 + ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(8,1)~ + @11 + X#KiMaleEl1 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(8,2)~ + @11 + X#KiMaleEl2 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(8,3)~ + @11 + X#KiMaleEl3 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(8,4)~ + @11 + X#KiMaleEl4 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(8,5)~ + @11 + X#KiMaleEl5 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(8,6)~ + @11 + X#KiMaleEl6 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(8,7)~ + @11 + X#KiMaleEl7 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(8,8)~ + @11 + X#KiMaleEl8 + ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(7,1)~ + @11 + X#KiMaleEl1 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(7,2)~ + @11 + X#KiMaleEl2 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(7,3)~ + @11 + X#KiMaleEl3 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(7,4)~ + @11 + X#KiMaleEl4 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(7,5)~ + @11 + X#KiMaleEl5 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(7,6)~ + @11 + X#KiMaleEl6 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(7,7)~ + @11 + X#KiMaleEl7 + ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(10,1)~ + @11 + X#KiMaleEl1 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(10,2)~ + @11 + X#KiMaleEl2 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(10,3)~ + @11 + X#KiMaleEl3 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(10,4)~ + @11 + X#KiMaleEl4 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(10,5)~ + @11 + X#KiMaleEl5 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(10,6)~ + @11 + X#KiMaleEl6 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(10,7)~ + @11 + X#KiMaleEl7 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(10,8)~ + @11 + X#KiMaleEl8 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(10,9)~ + @11 + X#KiMaleEl9 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(10,10)~ + @11 + X#KiMaleEl10 + + ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(9,1)~ + @11 + X#KiMaleEl1 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(9,2)~ + @11 + X#KiMaleEl2 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(9,3)~ + @11 + X#KiMaleEl3 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(9,4)~ + @11 + X#KiMaleEl4 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(9,5)~ + @11 + X#KiMaleEl5 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(9,6)~ + @11 + X#KiMaleEl6 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(9,7)~ + @11 + X#KiMaleEl7 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(9,8)~ + @11 + X#KiMaleEl9 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(9,9)~ + @11 + X#KiMaleEl10 + ++ ~Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10) + RandomNum(8,1)~ + @12 + P#KIWho1 ++ ~Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10) + RandomNum(8,2)~ + @12 + P#KIWho2 ++ ~Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10) + RandomNum(8,3)~ + @12 + P#KIWho3 ++ ~Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10) + RandomNum(8,4)~ + @12 + P#KIWho4 ++ ~Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10) + RandomNum(8,5)~ + @12 + P#KIWho5 ++ ~Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10) + RandomNum(8,6)~ + @12 + P#KIWho6 ++ ~Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10) + RandomNum(8,7)~ + @12 + P#KIWho7 ++ ~Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10) + RandomNum(8,8)~ + @12 + P#KIWho8 + ++ ~RandomNum(8,1) OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL")~ + @13 + P#KIElf1 ++ ~RandomNum(8,2) OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL")~ + @13 + P#KIElf2 ++ ~RandomNum(8,3) OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL")~ + @13 + P#KIElf3 ++ ~RandomNum(8,4) OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL")~ + @13 + P#KIElf4 ++ ~RandomNum(8,5) OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL")~ + @13 + P#KIElf5 ++ ~RandomNum(8,6) OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL")~ + @13 + P#KIElf6 ++ ~RandomNum(8,7) OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL")~ + @13 + P#KIElf7 ++ ~RandomNum(8,8) OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL")~ + @13 + P#KIElf8 + ++ ~Global("P#KivanRomanceActive","Global",1) PartyHasItem("P#Dream") Global("P#DreamCatcher","GLOBAL",1)~ + @14 + KiFlirt5 + ++ ~RandomNum(8,1) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @15 + P#KIHood1 ++ ~RandomNum(8,2) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @15 + P#KIHood2 ++ ~RandomNum(8,3) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @15 + P#KIHood3 ++ ~RandomNum(8,4) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @15 + P#KIHood4 ++ ~RandomNum(8,5) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @15 + P#KIHood5 ++ ~RandomNum(8,6) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @15 + P#KIHood6 ++ ~RandomNum(8,7) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @15 + P#KIHood7 ++ ~RandomNum(8,8) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @15 + P#KIHood8 + ++ ~RandomNum(8,1) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @16 + P#KIWalk1 ++ ~RandomNum(8,2) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @16 + P#KIWalk2 ++ ~RandomNum(8,3) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @16 + P#KIWalk3 ++ ~RandomNum(8,4) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @16 + P#KIWalk4 ++ ~RandomNum(8,5) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @16 + P#KIWalk5 ++ ~RandomNum(8,6) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @16 + P#KIWalk6 ++ ~RandomNum(8,7) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @16 + P#KIWalk7 ++ ~RandomNum(8,8) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @16 + P#KIWalk8 + ++ ~RandomNum(8,1) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @17 + P#KIHand1 ++ ~RandomNum(8,2) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @17 + P#KIHand2 ++ ~RandomNum(8,3) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @17 + P#KIHand3 ++ ~RandomNum(8,4) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @17 + P#KIHand4 ++ ~RandomNum(8,5) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @17 + P#KIHand5 ++ ~RandomNum(8,6) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @17 + P#KIHand6 ++ ~RandomNum(8,7) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @17 + P#KIHand7 ++ ~RandomNum(8,8) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @17 + P#KIHand8 + ++ ~RandomNum(8,1) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @18 + P#KIClap1 ++ ~RandomNum(8,2) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @18 + P#KIClap2 ++ ~RandomNum(8,3) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @18 + P#KIClap3 ++ ~RandomNum(8,4) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @18 + P#KIClap4 ++ ~RandomNum(8,5) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @18 + P#KIClap5 ++ ~RandomNum(8,6) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @18 + P#KIClap6 ++ ~RandomNum(8,7) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @18 + P#KIClap7 ++ ~RandomNum(8,8) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @18 + P#KIClap8 + ++ ~RandomNum(8,1) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @19 + P#KIShoul1 ++ ~RandomNum(8,2) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @19 + P#KIShoul2 ++ ~RandomNum(8,3) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @19 + P#KIShoul3 ++ ~RandomNum(8,4) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @19 + P#KIShoul4 ++ ~RandomNum(8,5) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @19 + P#KIShoul5 ++ ~RandomNum(8,6) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @19 + P#KIShoul6 ++ ~RandomNum(8,7) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @19 + P#KIShoul7 ++ ~RandomNum(8,8) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @19 + P#KIShoul8 + ++ ~RandomNum(8,1) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @20 + P#KIKiss1 ++ ~RandomNum(8,2) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @20 + P#KIKiss2 ++ ~RandomNum(8,3) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @20 + P#KIKiss3 ++ ~RandomNum(8,4) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @20 + P#KIKiss4 ++ ~RandomNum(8,5) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @20 + P#KIKiss5 ++ ~RandomNum(8,6) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @20 + P#KIKiss6 ++ ~RandomNum(8,7) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @20 + P#KIKiss7 ++ ~RandomNum(8,8) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @20 + P#KIKiss8 + ++ ~RandomNum(8,1) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @21 + P#KIHair1 ++ ~RandomNum(8,2) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @21 + P#KIHair2 ++ ~RandomNum(8,3) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @21 + P#KIHair3 ++ ~RandomNum(8,4) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @21 + P#KIHair6 ++ ~RandomNum(8,5) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @21 + P#KIHair4 ++ ~RandomNum(8,6) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @21 + P#KIHair5 ++ ~RandomNum(8,7) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @21 + P#KIHair7 ++ ~RandomNum(8,8) Global("P#KivanMatch","GLOBAL",1) GlobalGT("Chapter","GLOBAL",%bg2_chapter_5%) +Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") +GlobalLT("P#KivanOffence","GLOBAL",10)~ + @21 + P#KIHair8 + ++ ~AreaCheck("AR1300")~ + @22 + NaliaTrolls + ++ ~AreaCheck("AR2000")~ + @23 + P#Trademeet1 + ++ ~!Dead("Tazok") AreaCheck("AR1200")~ + @24 + P#Wspear1 ++ ~Dead("Tazok") Dead("firkra02") AreaCheck("AR1200")~ + @24 + P#Wspear2 + ++ ~AreaCheck("AR1100") !Dead("shadel")~ + @25 + P#Umar ++ ~AreaCheck("AR1100") Dead("shadel")~ + @26 + P#Umar1 + ++ ~AreaCheck("AR1404") !Dead("shadel")~ + @27 + P#SHT ++ ~OR(2) AreaCheck("AR1400") AreaCheck("AR1404") Dead("shadel")~ + @28 + P#SHT1 + ++ ~AreaCheck("AR0700") !Global("P#KivanLoversQuest","GLOBAL",3) RandomNum(4,1)~ + @29 + P#Promenade1 ++ ~AreaCheck("AR0700") !Global("P#KivanLoversQuest","GLOBAL",3) RandomNum(4,2)~ + @29 + P#Promenade2 ++ ~AreaCheck("AR0700") !Global("P#KivanLoversQuest","GLOBAL",3) RandomNum(4,3)~ + @29 + P#Promenade3 ++ ~AreaCheck("AR0700") !Global("P#KivanLoversQuest","GLOBAL",3) RandomNum(4,4)~ + @29 + P#Promenade4 + ++ ~AreaCheck("AR0700") Global("P#KivanLoversQuest","GLOBAL",3)~ + @30 + P#Promenade5 + ++ ~AreaCheck("AR1900")~ + @31 + P#Grove + ++ ~AreaCheck("AR0400")~ + @32 + P#Slums + ++ ~AreaCheck("AR0900")~ + @33 + P#Temple + ++ ~AreaCheck("AR0800")~ + @34 + P#Grave + ++ ~AreaCheck("AR1000")~ + @35 + P#GOVER + ++ ~AreaCheck("AR0500")~ + @36 + P#Bridge + ++ ~AreaCheck("AR2800")~ + @37 + P#Sul + ++ ~AreaCheck("AR2300")~ + @38 + P#Sauh + ++ ~AreaCheck("AR2500") See([ENEMY])~ + @39 + P#Temud + ++ ~AreaCheck("AR2400")~ + @40 + P#Mindfl + ++ ~AreaCheck("AR2402")~ + @41 + P#Kuo + ++ ~AreaCheck("AR2101")~ + @42 + P#Behol + ++ ~AreaCheck("AR2200") RandomNum(4,1)~ + @43 + P#USTN1 ++ ~AreaCheck("AR2200") RandomNum(4,2)~ + @43 + P#USTN2 ++ ~AreaCheck("AR2200") RandomNum(4,3)~ + @43 + P#USTN3 ++ ~AreaCheck("AR2200") RandomNum(4,4)~ + @43 + P#USTN4 + ++ ~AreaCheck("AR2200")~ + @44 + P#USTN5 + ++ ~AreaCheck("AR2100")~ + @45 + P#UD + ++ ~AreaCheck("AR2600") Global("CoranJob","GLOBAL",0)~ + @46 + P#CW + ++ ~AreaCheck("AR2600") GlobalGT("CoranJob","GLOBAL",0) !Dead("c6coran")~ + @47 + P#CW4 + ++ ~AreaCheck("AR1600") ~ + @48 + P#Bryn + ++ ~AreaCheck("AR1500") ~ + @49 + NotInMood + ++ ~Global("BodhiAppear","GLOBAL",1) GlobalLT("WorkingForAran","GLOBAL",1) GlobalLT("WorkingForBodhi","GLOBAL",1) Global("P#TalkedAboutBodhiAran","GLOBAL",0) ~ + @50 DO ~SetGlobal("P#TalkedAboutBodhiAran","GLOBAL",1)~ + P#BodhiAran + ++ ~Global("P#KiOldFriend","GLOBAL",0) Global("P#AcknowledgePast","GLOBAL",0) Gender(Player1,MALE)~ + @51 DO ~SetGlobal("P#KiOldFriend","GLOBAL",1) SetGlobal("P#AcknowledgePast","GLOBAL",1) ~ + P#KiOldFr1 ++ ~Global("P#KiOldFriend","GLOBAL",0) Gender(Player1,FEMALE) Global("P#AcknowledgePast","GLOBAL",0) ~ + @51 DO ~SetGlobal("P#KiOldFriend","GLOBAL",1) SetGlobal("P#AcknowledgePast","GLOBAL",1) ~ + P#KiOldFr1 ++ ~Global("P#KiOldFriend","GLOBAL",0) Gender(Player1,FEMALE) Global("P#AcknowledgePast","GLOBAL",0) ~ + @52 DO ~SetGlobal("P#AcknowledgePast","GLOBAL",1) IncrementGlobal("P#KivanLove","GLOBAL",1)~ + P#KiOldFr2 + ++~Global("P#KivHow","GLOBAL",0)~ + @53 + P#KIHow1 + ++~Global("P#KivanCoA","GLOBAL",1)~ + @54 + P#KIAunt1 + ++~OR(2) Global("P#DeherianaDead","GLOBAL",1) Global("P#KivanCondolences","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",3)~ + @55 + P#KIDehe1 + ++ ~Global("P#Eldreth","GLOBAL",1)~ + @56 + KivEld + ++ ~Class(Player1,BARD_ALL) Global("P#KivanMatch","GLOBAL",1) +!Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) +GlobalLT("P#KivanOffence","GLOBAL",10) +GlobalGT("P#KivanLove","GLOBAL",5)~ + @57 + P#KISong1 + ++ ~AreaCheck("AR1100") RandomNum(8,1) !GlobalTimerExpired("MairynAppear","GLOBAL") Global("RangerProtector","GLOBAL",1) Global("P#KivanRangerStronghold","GLOBAL",1)~ + @58 + KiRaPro1.1 ++ ~AreaCheck("AR1100") RandomNum(8,2) !GlobalTimerExpired("MairynAppear","GLOBAL") Global("RangerProtector","GLOBAL",1) Global("P#KivanRangerStronghold","GLOBAL",1)~ + @58 + KiRaPro1.2 ++ ~AreaCheck("AR1100") RandomNum(8,3) !GlobalTimerExpired("MairynAppear","GLOBAL") Global("RangerProtector","GLOBAL",1) Global("P#KivanRangerStronghold","GLOBAL",1)~ + @58 + KiRaPro1.3 ++ ~AreaCheck("AR1100") RandomNum(8,4) !GlobalTimerExpired("MairynAppear","GLOBAL") Global("RangerProtector","GLOBAL",1) Global("P#KivanRangerStronghold","GLOBAL",1)~ + @58 + KiRaPro1.4 ++ ~AreaCheck("AR1100") RandomNum(8,5) !GlobalTimerExpired("MairynAppear","GLOBAL") Global("RangerProtector","GLOBAL",1) Global("P#KivanRangerStronghold","GLOBAL",1)~ + @58 + KiRaPro1.5 ++ ~AreaCheck("AR1100") RandomNum(8,6) !GlobalTimerExpired("MairynAppear","GLOBAL") Global("RangerProtector","GLOBAL",1) Global("P#KivanRangerStronghold","GLOBAL",1)~ + @58 + KiRaPro1.6 ++ ~AreaCheck("AR1100") RandomNum(8,7) !GlobalTimerExpired("MairynAppear","GLOBAL") Global("RangerProtector","GLOBAL",1) Global("P#KivanRangerStronghold","GLOBAL",1)~ + @58 + KiRaPro1.7 ++ ~AreaCheck("AR1100") RandomNum(8,8) !GlobalTimerExpired("MairynAppear","GLOBAL") Global("RangerProtector","GLOBAL",1) Global("P#KivanRangerStronghold","GLOBAL",1)~ + @58 + KiRaPro1.8 + ++ ~Global("IgenPlot","GLOBAL",1) !Global("IgenJob","GLOBAL",1)~ + @58 + KiRaPro1.9 + ++ ~Global("IgenPlot","GLOBAL",1) Global("IgenJob","GLOBAL",1)~ + @58 + KiRaPro1.10 + ++ ~Global("IgenPlot","GLOBAL",2) Global("RangerProtector","GLOBAL",1)~ + @58 + KiRaPro1.11 + ++ ~AreaCheck("AR1100") RandomNum(8,1) Global("Mairyn3","GLOBAL",0) Global("RangerProtector","GLOBAL",2) !Global("OgronAttack","GLOBAL",1)~ + @58 + KiRaPro1.1 ++ ~AreaCheck("AR1100") RandomNum(8,2) Global("Mairyn3","GLOBAL",0) Global("RangerProtector","GLOBAL",2) !Global("OgronAttack","GLOBAL",1)~ + @58 + KiRaPro1.2 ++ ~AreaCheck("AR1100") RandomNum(8,3) Global("Mairyn3","GLOBAL",0) Global("RangerProtector","GLOBAL",2) !Global("OgronAttack","GLOBAL",1)~ + @58 + KiRaPro1.3 ++ ~AreaCheck("AR1100") RandomNum(8,4) Global("Mairyn3","GLOBAL",0) Global("RangerProtector","GLOBAL",2) !Global("OgronAttack","GLOBAL",1)~ + @58 + KiRaPro1.4 ++ ~AreaCheck("AR1100") RandomNum(8,5) Global("Mairyn3","GLOBAL",0) Global("RangerProtector","GLOBAL",2) !Global("OgronAttack","GLOBAL",1)~ + @58 + KiRaPro1.5 ++ ~AreaCheck("AR1100") RandomNum(8,6) Global("Mairyn3","GLOBAL",0) Global("RangerProtector","GLOBAL",2) !Global("OgronAttack","GLOBAL",1)~ + @58 + KiRaPro1.6 ++ ~AreaCheck("AR1100") RandomNum(8,7) Global("Mairyn3","GLOBAL",0) Global("RangerProtector","GLOBAL",2) Global("GivenIgenReward","GLOBAL",1) !Global("OgronAttack","GLOBAL",1)~ + @58 + KiRaPro1.7 ++ ~AreaCheck("AR1100") RandomNum(8,8) Global("Mairyn3","GLOBAL",0) Global("RangerProtector","GLOBAL",2) Global("GivenIgenReward","GLOBAL",1) !Global("OgronAttack","GLOBAL",1)~ + @58 + KiRaPro1.8 + ++ ~Global("OgronAttack","GLOBAL",1) Global("RangerProtector","GLOBAL",2) !Global("MadulfOgronDone","GLOBAL",1)~ + @58 + KiRaPro1.12 + ++ ~AreaCheck("AR1100") RandomNum(8,1) Global("Mairyn3","GLOBAL",0) OR(2) Global("RangerProtector","GLOBAL",3) Global("MadulfOgronDone","GLOBAL",1) Global("UmarPlot","GLOBAL",0)~ + @58 + KiRaPro1.1 ++ ~AreaCheck("AR1100") RandomNum(8,2) Global("Mairyn3","GLOBAL",0) OR(2) Global("RangerProtector","GLOBAL",3) Global("MadulfOgronDone","GLOBAL",1) Global("UmarPlot","GLOBAL",0)~ + @58 + KiRaPro1.2 ++ ~AreaCheck("AR1100") RandomNum(8,3) Global("Mairyn3","GLOBAL",0) OR(2) Global("RangerProtector","GLOBAL",3) Global("MadulfOgronDone","GLOBAL",1) Global("UmarPlot","GLOBAL",0)~ + @58 + KiRaPro1.3 ++ ~AreaCheck("AR1100") RandomNum(8,4) Global("Mairyn3","GLOBAL",0) OR(2) Global("RangerProtector","GLOBAL",3) Global("MadulfOgronDone","GLOBAL",1) Global("UmarPlot","GLOBAL",0)~ + @58 + KiRaPro1.4 ++ ~AreaCheck("AR1100") RandomNum(8,5) Global("Mairyn3","GLOBAL",0) OR(2) Global("RangerProtector","GLOBAL",3) Global("MadulfOgronDone","GLOBAL",1) Global("UmarPlot","GLOBAL",0)~ + @58 + KiRaPro1.5 ++ ~AreaCheck("AR1100") RandomNum(8,6) Global("Mairyn3","GLOBAL",0) OR(2) Global("RangerProtector","GLOBAL",3) Global("MadulfOgronDone","GLOBAL",1) Global("UmarPlot","GLOBAL",0)~ + @58 + KiRaPro1.6 ++ ~AreaCheck("AR1100") RandomNum(8,7) Global("Mairyn3","GLOBAL",0) OR(2) Global("RangerProtector","GLOBAL",3) Global("MadulfOgronDone","GLOBAL",1) Global("UmarPlot","GLOBAL",0)~ + @58 + KiRaPro1.7 ++ ~AreaCheck("AR1100") RandomNum(8,8) Global("Mairyn3","GLOBAL",0) OR(2) Global("RangerProtector","GLOBAL",3) Global("MadulfOgronDone","GLOBAL",1) Global("UmarPlot","GLOBAL",0)~ + @58 + KiRaPro1.8 + ++ ~Global("RangerProtector","GLOBAL",3) Global("UmarPlot","GLOBAL",1) Global("Minister3","GLOBAL",1)~ + @58 + KiRaPro1.13 + ++ ~Global("RangerProtector","GLOBAL",3) Global("UmarPlot","GLOBAL",2) Global("Minister3","GLOBAL",1)~ + @58 + KiRaPro1.14 + ++ ~AreaCheck("AR1100") RandomNum(8,1) Global("RangerProtector","GLOBAL",4)~ + @58 + KiRaPro1.15 ++ ~AreaCheck("AR1100") RandomNum(8,2) Global("RangerProtector","GLOBAL",4)~ + @58 + KiRaPro1.16 ++ ~AreaCheck("AR1100") RandomNum(8,3) Global("RangerProtector","GLOBAL",4)~ + @58 + KiRaPro1.17 ++ ~AreaCheck("AR1100") RandomNum(8,4) Global("RangerProtector","GLOBAL",4)~ + @58 + KiRaPro1.18 ++ ~AreaCheck("AR1100") RandomNum(8,5) Global("RangerProtector","GLOBAL",4)~ + @58 + KiRaPro1.15 ++ ~AreaCheck("AR1100") RandomNum(8,6) Global("RangerProtector","GLOBAL",4)~ + @58 + KiRaPro1.15 ++ ~AreaCheck("AR1100") RandomNum(8,7) Global("RangerProtector","GLOBAL",4)~ + @58 + KiRaPro1.15 ++ ~AreaCheck("AR1100") RandomNum(8,8) Global("RangerProtector","GLOBAL",4)~ + @58 + KiRaPro1.15 + ++ ~Global("P#DisableKivanFlirts","GLOBAL",0) +!Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1)~ + @59 DO ~SetGlobal("P#DisableKivanFlirts","GLOBAL",1)~ EXIT + +++ @60 + KiVoice +END + +IF ~~ P#KivanInitiateRomance +SAY @569 += @570 += @571 +IF ~~ THEN DO ~IncrementGlobal("P#KivanLove","GLOBAL",4)~ EXIT +END + +IF ~~ KiVoice +SAY @61 +IF ~~ THEN DO ~SetName(@522) + SetPlayerSound(Myself,@523,INITIAL_MEETING) + SetPlayerSound(Myself,@524,MORALE) + SetPlayerSound(Myself,@525,HAPPY) + SetPlayerSound(Myself,@526,UNHAPPY_ANNOYED) + SetPlayerSound(Myself,@527,UNHAPPY_SERIOUS) + SetPlayerSound(Myself,@528,UNHAPPY_BREAKING_POINT) + SetPlayerSound(Myself,@529,LEADER) + SetPlayerSound(Myself,@530,TIRED) + SetPlayerSound(Myself,@531,BORED) + SetPlayerSound(Myself,@532,BATTLE_CRY1) + SetPlayerSound(Myself,@533,BATTLE_CRY2) + SetPlayerSound(Myself,@534,BATTLE_CRY3) + SetPlayerSound(Myself,@535,BATTLE_CRY4) + SetPlayerSound(Myself,@536,DAMAGE) + SetPlayerSound(Myself,@537,DYING) + SetPlayerSound(Myself,@538,HURT) + SetPlayerSound(Myself,@539,AREA_FOREST) + SetPlayerSound(Myself,@540,AREA_CITY) + SetPlayerSound(Myself,@541,AREA_DUNGEON) + SetPlayerSound(Myself,@542,AREA_DAY) + SetPlayerSound(Myself,@543,AREA_NIGHT) + SetPlayerSound(Myself,@544,SELECT_COMMON1) + SetPlayerSound(Myself,@545,SELECT_COMMON2) + SetPlayerSound(Myself,@546,SELECT_COMMON3) + SetPlayerSound(Myself,@547,SELECT_COMMON4) + SetPlayerSound(Myself,@548,SELECT_COMMON5) + SetPlayerSound(Myself,@549,SELECT_COMMON6) + SetPlayerSound(Myself,@550,SELECT_ACTION1) + SetPlayerSound(Myself,@551,SELECT_ACTION2) + SetPlayerSound(Myself,@552,SELECT_ACTION3) + SetPlayerSound(Myself,@553,SELECT_ACTION4) + SetPlayerSound(Myself,@554,SELECT_ACTION5) + SetPlayerSound(Myself,@555,SELECT_ACTION6) + SetPlayerSound(Myself,@556,SELECT_ACTION7) + SetPlayerSound(Myself,@557,SELECT_RARE1) + SetPlayerSound(Myself,@558,SELECT_RARE2) + SetPlayerSound(Myself,@559,CRITICAL_HIT) + SetPlayerSound(Myself,@560,CRITICAL_MISS) + SetPlayerSound(Myself,@561,TARGET_IMMUNE) + SetPlayerSound(Myself,@562,INVENTORY_FULL) + SetPlayerSound(Myself,@563,PICKED_POCKET) + SetPlayerSound(Myself,@564,HIDDEN_IN_SHADOWS) + SetPlayerSound(Myself,@565,SPELL_DISRUPTED) + SetPlayerSound(Myself,@566,SET_A_TRAP) + SetPlayerSound(Myself,@567,EXISTANCE5)~ EXIT + END + +IF ~~ P#KivanRefusesToTalk +SAY @62 += @63 +IF ~~ THEN EXIT +END + +IF ~~ KiRaPro1.15 +SAY @64 +IF ~~ THEN EXIT +END + +IF ~~ KiRaPro1.16 +SAY @65 +IF ~~ THEN EXIT +END + +IF ~~ KiRaPro1.17 +SAY @66 +IF ~~ THEN EXIT +END + +IF ~~ KiRaPro1.18 +SAY @67 +IF ~~ THEN EXIT +END + +IF ~~ KiRaPro1.14 +SAY @68 +IF ~~ THEN EXIT +END + +IF ~~ KiRaPro1.13 +SAY @69 +IF ~~ THEN EXIT +END + +IF ~~ KiRaPro1.12 +SAY @70 +IF ~~ THEN EXIT +END + +IF ~~ KiRaPro1.11 +SAY @71 +IF ~~ THEN EXIT +END + +IF ~~ KiRaPro1.10 +SAY @72 +IF ~~ THEN EXIT +END + +IF ~~ KiRaPro1.9 +SAY @73 +IF ~~ THEN EXIT +END + +IF ~~ KiRaPro1.1 +SAY @74 +IF ~~ THEN EXIT +END + +IF ~~ KiRaPro1.2 +SAY @75 +IF ~~ THEN EXIT +END + +IF ~~ KiRaPro1.3 +SAY @76 +IF ~~ THEN EXIT +END + +IF ~~ KiRaPro1.4 +SAY @77 +IF ~~ THEN EXIT +END + +IF ~~ KiRaPro1.5 +SAY @78 +IF ~~ THEN EXIT +END + +IF ~~ KiRaPro1.6 +SAY @79 +IF ~~ THEN EXIT +END + +IF ~~ KiRaPro1.7 +SAY @80 +IF ~~ THEN EXIT +END + +IF ~~ KiRaPro1.8 +SAY @81 +IF ~~ THEN EXIT +END + +IF ~~ P#BodhiAran +SAY @82 +++ @83 + P#BodhiAran1.1 +++ @84 + P#BodhiAran1.2 +++ @85 + P#BodhiAran1.3 +++ @86 + P#BodhiAran1.4 +END + +IF ~~ P#BodhiAran1.10 +SAY @87 += @88 +IF ~~ THEN EXIT +END + +IF ~~ P#BodhiAran1.9 +SAY @89 += @88 +IF ~~ THEN EXIT +END + +IF ~~ P#BodhiAran1.8 +SAY @90 += @88 +IF ~~ THEN EXIT +END + +IF ~~ P#BodhiAran1.7 +SAY @91 +++ @92 + P#BodhiAran1.8 ++ ~Gender(Player1,MALE)~ + @93 + P#BodhiAran1.9 ++ ~Gender(Player1,FEMALE)~ + @94 + P#BodhiAran1.10 +++ @95 + P#BodhiAran1.6 +END + +IF ~~ P#BodhiAran1.6 +SAY @96 +IF ~~ THEN EXIT +END + +IF ~~ P#BodhiAran1.5 +SAY @97 +IF ~~ THEN EXIT +END + +IF ~~ P#BodhiAran1.4 +SAY @98 += @99 +++ @100 + P#BodhiAran1.5 +++ @101 + P#BodhiAran1.6 +++ @102 + P#BodhiAran1.7 +END + +IF ~~ P#BodhiAran1.3 +SAY @103 += @104 +++ @100 + P#BodhiAran1.5 +++ @101 + P#BodhiAran1.6 +++ @102 + P#BodhiAran1.7 +END + +IF ~~ P#BodhiAran1.2 +SAY @105 +++ @100 + P#BodhiAran1.5 +++ @101 + P#BodhiAran1.6 +++ @102 + P#BodhiAran1.7 +END + + +IF ~~ P#BodhiAran1.1 +SAY @106 +++ @100 + P#BodhiAran1.5 +++ @101 + P#BodhiAran1.6 +++ @102 + P#BodhiAran1.7 +END + + +IF ~~ P#KiOldFr1 +SAY @107 +IF ~~ THEN EXIT +END + +IF ~~ P#KiOldFr2 +SAY @108 +IF ~~ THEN EXIT +END + +IF ~~ P#Promenade5 +SAY @109 +IF ~~ THEN EXIT +END + +IF ~~ P#Promenade1 +SAY @110 +IF ~~ THEN EXIT +END + +IF ~~ P#Promenade2 +SAY @111 +IF ~~ THEN EXIT +END + +IF ~~ P#Promenade4 +SAY @112 +IF ~~ THEN EXIT +END + +IF ~~ P#Promenade3 +SAY @113 +++ @114 + P#Promenade3.1 +++ @115 + P#Promenade3.1 +++ @116 + P#Promenade3.2 +END + +IF ~~ P#Promenade3.1 +SAY @117 +IF ~~ THEN EXIT +END + +IF ~~ P#Promenade3.2 +SAY @118 +IF ~~ THEN EXIT +END + +IF ~~ P#KISong1 +SAY @119 +++ @120 EXIT +++ @121 + P#KISong2 +++ @122 + P#KISong3 +++ @123 EXIT +END + +IF ~~ P#KISong2 +SAY @124 +++ @125 + KiSo4 +++ @126 + P#KISong6 +++ @127 + P#KISong7 +++ @128 + P#KISong8 +END + +IF ~~ P#KISong9 +SAY @129 +++ @130 + KiSo4 +++ @131 EXIT +++ @126 + P#KISong6 +++ @127 + P#KISong7 +++ @128 + P#KISong8 +END + +IF ~~ P#KISong4 +SAY @132 +++ @130 + KiSo4 +++ @131 EXIT +++ @133 + P#KISong9 +END + +IF ~~ P#KISong5 +SAY @134 +++ @130 + KiSo4 +++ @131 EXIT +++ @133 + P#KISong9 +END + + +IF ~~ THEN BEGIN KiSo1 +SAY @135 +IF ~~ THEN REPLY @136 GOTO P#KISong3 +IF ~~ THEN REPLY @137 GOTO P#KISong4 +IF ~~ THEN REPLY @138 GOTO P#KISong5 +END + +IF ~~ P#KISong3 +SAY @139 +IF ~~ THEN REPLY @140 GOTO KiSo1 +IF ~~ THEN REPLY @141 GOTO KiSo2 +IF ~~ THEN REPLY @142 GOTO KiSo3 +IF ~~ THEN REPLY @143 GOTO KiSo4 +END + +IF ~~ THEN BEGIN KiSo4 +SAY @144 +IF ~~THEN EXIT +END + +IF ~~ THEN BEGIN KiSo2 +SAY @145 +IF ~~THEN EXIT +END + +IF ~~ THEN BEGIN KiSo3 +SAY @146 +IF ~~THEN EXIT +END + +IF ~~ P#KISong6 +SAY @147 +++ @148 + P#KISong6.1 +++ @149 + KiSo3 +END + +IF ~~ P#KISong6.1 +SAY @150 +++ @151 + P#KISong6.2 +END + +IF ~~ P#KISong6.2 +SAY @152 +IF ~~ THEN EXIT +END + +IF ~~ P#KISong7 +SAY @153 +++ @154 EXIT +++ @155 EXIT +++ @156 + P#KISong7.1 +END + +IF ~~ P#KISong7.1 +SAY @157 += @158 +IF ~~ THEN EXIT +END + +IF ~~ P#KISong8 +SAY @159 +++ @160 + P#KISong8.1 +++ @149 + KiSo3 +END + +IF ~~ P#KISong8.1 +SAY @161 +IF ~~ THEN EXIT +END + +IF ~~ KivEld +SAY @162 += @163 += @164 += @165 +IF ~~ THEN DO ~SetGlobal("P#Eldreth","GLOBAL",2)~ EXIT +END + +IF ~~ P#KIDehe1 +SAY @166 += @167 += @168 +IF ~~ THEN DO ~SetGlobal("P#KivanCondolences","GLOBAL",1)~ EXIT +END + +IF ~~ P#KIAunt1 +SAY @169 += @170 += @171 += @172 += @173 += @174 += @175 += @176 += @177 += @178 +IF ~~ THEN DO ~SetGlobal("P#KivanCoA","GLOBAL",2)~ EXIT +END + +IF ~~ P#KIHow1 +SAY @179 +++ @180 DO ~SetGlobal("P#KivHow","GLOBAL",1)~ + P#KIHow1.1 +++ @181 DO ~SetGlobal("P#KivHow","GLOBAL",1)~ + P#KIHow1.2 +++ @182 DO ~SetGlobal("P#KivHow","GLOBAL",1)~ + P#KIHow1.3 +END + +IF ~~ P#KIHow1.1 +SAY @183 +++ @184 + P#KIHow1.4 +++ @185 + P#KIHow1.5 +++ @186 + P#KIHow1.6 ++ ~Gender(Player1,FEMALE)~ + @187 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + P#KIHow1.11 +END + +IF ~~ P#KIHow1.2 +SAY @188 +++ @189 + P#KIHow1.7 +++ @190 + P#KIHow1.8 +++ @191 + P#KIHow1.9 ++ ~Gender(Player1,FEMALE)~ + @192 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + P#KIHow1.11 +END + +IF ~~ P#KIHow1.3 +SAY @193 += @194 +++ @180 + P#KIHow1.1 +++ @181 + P#KIHow1.2 +END + +IF ~~ P#KIHow1.4 +SAY @195 +++ @189 + P#KIHow1.7 +++ @190 + P#KIHow1.8 +++ @191 + P#KIHow1.9 ++ ~Gender(Player1,FEMALE)~ + @192 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + P#KIHow1.11 +END + +IF ~~ P#KIHow1.5 +SAY @196 +++ @197 + P#KIHow1.4 +++ @198 + P#KIHow1.6 +++ @199 + P#KIHow1.10 ++ ~Gender(Player1,FEMALE)~ + @187 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + P#KIHow1.11 +END + +IF ~~ P#KIHow1.6 +SAY @200 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHow1.7 +SAY @201 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHow1.8 +SAY @202 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHow1.9 +SAY @203 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHow1.10 +SAY @204 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHow1.11 +SAY @205 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHair1 +SAY @206 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHair2 +SAY @207 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHair3 +SAY @208 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHair4 +SAY @209 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHair5 +SAY @210 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHair6 +SAY @211 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHair7 +SAY @212 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHair8 +SAY @213 +IF ~~ THEN EXIT +END + +IF ~~ P#KIKiss1 +SAY @214 +IF ~~ THEN EXIT +END + +IF ~~ P#KIKiss2 +SAY @215 +IF ~~ THEN EXIT +END + +IF ~~ P#KIKiss3 +SAY @216 +IF ~~ THEN EXIT +END + +IF ~~ P#KIKiss4 +SAY @217 +IF ~~ THEN EXIT +END + +IF ~~ P#KIKiss5 +SAY @218 +IF ~~ THEN EXIT +END + +IF ~~ P#KIKiss6 +SAY @219 +IF ~~ THEN EXIT +END + +IF ~~ P#KIKiss7 +SAY @220 +IF ~~ THEN EXIT +END + +IF ~~ P#KIKiss8 +SAY @221 +IF ~~ THEN EXIT +END + +IF ~~ P#KIShoul1 +SAY@222 +IF ~~ THEN EXIT +END + +IF ~~ P#KIShoul2 +SAY@223 +IF ~~ THEN EXIT +END + +IF ~~ P#KIShoul3 +SAY@224 +IF ~~ THEN EXIT +END + +IF ~~ P#KIShoul4 +SAY@225 +IF ~~ THEN EXIT +END + +IF ~~ P#KIShoul5 +SAY@226 +IF ~~ THEN EXIT +END + +IF ~~ P#KIShoul6 +SAY@227 +IF ~~ THEN EXIT +END + +IF ~~ P#KIShoul7 +SAY@228 +IF ~~ THEN EXIT +END + +IF ~~ P#KIShoul8 +SAY@229 +IF ~~ THEN EXIT +END + +IF ~~ P#KIClap1 +SAY@230 +IF ~~ THEN EXIT +END + +IF ~~ P#KIClap2 +SAY@231 +IF ~~ THEN EXIT +END + +IF ~~ P#KIClap3 +SAY@232 +IF ~~ THEN EXIT +END + +IF ~~ P#KIClap4 +SAY@233 +IF ~~ THEN EXIT +END + +IF ~~ P#KIClap5 +SAY@234 += @235 +IF ~~ THEN EXIT +END + +IF ~~ P#KIClap6 +SAY@236 +IF ~~ THEN EXIT +END + +IF ~~ P#KIClap7 +SAY@237 +IF ~~ THEN EXIT +END + +IF ~~ P#KIClap8 +SAY@238 +IF ~~ THEN EXIT +END + + +IF ~~ P#KIHand1 +SAY @239 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHand2 +SAY @240 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHand3 +SAY @241 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHand4 +SAY @242 +++ @243 + P#KIHand4.1 +++ @244 + P#KIHand4.2 +++ @245 + P#KIHand4.3 +END + +IF ~~ P#KIHand4.1 +SAY @246 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHand4.2 +SAY @247 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHand4.3 +SAY @248 += @249 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHand5 +SAY @250 +++ @251 EXIT +++ @252 + P#KIHand5.1 +++ @253 + P#KIHand5.1 +END + +IF ~~ P#KIHand5.1 +SAY @254 += @255 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHand6 +SAY @256 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHand7 +SAY @257 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHand8 +SAY @258 +IF ~~ THEN EXIT +END + +IF ~~ P#KIWalk1 +SAY @259 +IF ~~ THEN EXIT +END + +IF ~~ P#KIWalk2 +SAY @260 +IF ~~ THEN EXIT +END + +IF ~~ P#KIWalk3 +SAY @261 +IF ~~ THEN EXIT +END + +IF ~~ P#KIWalk4 +SAY @262 +IF ~~ THEN EXIT +END + +IF ~~ P#KIWalk5 +SAY @263 +IF ~~ THEN EXIT +END + +IF ~~ P#KIWalk6 +SAY @263 +IF ~~ THEN EXIT +END + +IF ~~ P#KIWalk7 +SAY @264 +IF ~~ THEN EXIT +END + +IF ~~ P#KIWalk8 +SAY @265 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHood1 +SAY @266 +++ @267 + P#KIHood1.1 +++ @268 EXIT +++ @269 + P#KIHood1.2 +END + +IF ~~ P#KIHood1.1 +SAY @270 += @521 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHood1.2 +SAY @271 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHood2 +SAY @272 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHood3 +SAY @273 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHood4 +SAY @274 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHood5 +SAY @275 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHood6 +SAY @276 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHood7 +SAY @277 += @278 += @279 +IF ~~ THEN EXIT +END + +IF ~~ P#KIHood8 +SAY @280 +IF ~~ THEN EXIT +END + +IF ~~ P#KIElf1 +SAY @281 +IF ~~ THEN EXIT +END + +IF ~~ P#KIElf2 +SAY @282 += @283 += @284 +IF ~~ THEN EXIT +END + +IF ~~ P#KIElf3 +SAY @285 +IF ~~ THEN EXIT +END + +END + +CHAIN P#KIVJ P#KIElf4 +@286 +== P#KIVJ IF ~InParty("aerie")~ THEN @287 +== P#KIVJ IF ~InParty("viconia")~ THEN @288 += @289 +EXIT + +APPEND P#KIVJ + +IF ~~ P#KIElf5 +SAY @290 +IF ~~ THEN EXIT +END + +IF ~~ P#KIElf6 +SAY @291 +IF ~~ THEN EXIT +END + +IF ~~ P#KIElf7 +SAY @292 +IF ~~ THEN EXIT +END + +IF ~~ P#KIElf8 +SAY @293 +IF ~~ THEN EXIT +END + +IF ~~ P#KIWho1 +SAY @294 +IF ~~ THEN EXIT +END + +IF ~~ P#KIWho2 +SAY @295 +IF ~~ THEN EXIT +END + +IF ~~ P#KIWho3 +SAY @296 +IF ~~ THEN EXIT +END + +IF ~~ P#KIWho4 +SAY @297 +IF ~~ THEN EXIT +END + +IF ~~ P#KIWho5 +SAY @298 += @299 +IF ~~ THEN EXIT +END + +IF ~~ P#KIWho6 +SAY @300 += @301 +IF ~~ THEN EXIT +END + +IF ~~ P#KIWho7 +SAY @302 += @303 += @304 += @305 += @306 +IF ~~ THEN EXIT +END + +IF ~~ P#KIWho8 +SAY @307 += @308 +++ @309 + P#KIWho9 +++ @310 + P#KIWho10 +++ @311 + P#KIWho11 +++ @312 + P#KIWho12 +++ @313 + P#KIWho13 +END + +IF ~~ P#KIWho9 +SAY @314 += @315 +IF ~~ THEN EXIT +END + +IF ~~ P#KIWho10 +SAY @316 +IF ~~ THEN EXIT +END + +IF ~~ P#KIWho11 +SAY @317 += @318 +IF ~~ THEN EXIT +END + +IF ~~ P#KIWho12 +SAY @317 += @319 +IF ~~ THEN EXIT +END + +IF ~~ P#KIWho13 +SAY @320 += @321 +IF ~~ THEN EXIT +END + +IF ~~ NotInMood +SAY @322 +IF ~~ THEN EXIT +END + +IF ~~ P#Bryn +SAY @323 +++ @324 EXIT +++ @325 + P#Bryn1 +++ @326 + P#Bryn2 +END + +IF ~~ P#Bryn1 +SAY @327 +IF ~~ THEN EXIT +END + +IF ~~ P#Bryn2 +SAY @328 +IF ~~ THEN EXIT +END + +IF ~~ P#CW +SAY @329 ++ ~Gender(Player1,MALE)~+ @330 + P#CW1M ++ ~Global("P#KivanMatch","GLOBAL",1)~+ @331 + P#CW1F +++ @332 + P#CW2 +++ @333 + P#CW3 +END + +IF ~~ P#CW1M +SAY @334 += @335 += @336 +IF ~~ THEN EXIT +END + +IF ~~ P#CW1F +SAY @337 += @335 += @336 +IF ~~ THEN EXIT +END + +IF ~~ P#CW2 +SAY @338 +IF ~~ THEN EXIT +END + +IF ~~ P#CW3 +SAY @339 +IF ~~ THEN EXIT +END + +IF ~~ P#CW4 +SAY @340 +++ @341 EXIT +++ @342 + P#CW5 +END + +IF ~~ P#CW5 +SAY @343 += @344 +IF ~~ THEN EXIT +END + + +IF ~~ P#UD +SAY @345 += @346 +IF ~~ THEN EXIT +END + +IF ~~ P#USTN5 +SAY @347 +++ @348 + P#USTN6 +++ @349 + P#USTN7 +++ @350 + P#USTN7 +++ @351 + P#USTN8 +END + +IF ~~ P#USTN6 +SAY @352 +IF ~~ THEN EXIT +END + +IF ~~ P#USTN7 +SAY @353 +IF ~~ THEN EXIT +END + +IF ~~ P#USTN8 +SAY @354 +IF ~~ THEN EXIT +END + + +IF ~~ P#USTN1 +SAY @355 +IF ~~ THEN EXIT +END + +IF ~~ P#USTN2 +SAY @356 +IF ~~ THEN EXIT +END + +IF ~~ P#USTN3 +SAY @357 +IF ~~ THEN EXIT +END + +IF ~~ P#USTN4 +SAY @358 +IF ~~ THEN EXIT +END + + +IF ~~ P#Behol +SAY @359 += @360 +++ @361 + P#Behol1 +++ @362 + P#Behol2 +++ @363 + P#Behol3 +END + +IF ~~ P#Behol1 +SAY @364 +IF ~~ THEN EXIT +END + +IF ~~ P#Behol2 +SAY @365 +IF ~~ THEN EXIT +END + +IF ~~ P#Behol3 +SAY @366 +IF ~~ THEN EXIT +END + +IF ~~ P#Kuo +SAY @367 += @368 += @369 += @370 +IF ~~ THEN EXIT +END + +IF ~~ P#Mindfl +SAY @371 +++ @372 EXIT +++ @373 + P#Mindfl1 +++ @374 EXIT +END + +IF ~~ P#Mindfl1 +SAY @375 += @376 +IF ~~ THEN EXIT +END + +IF ~~ P#Temud +SAY @377 += @378 += @379 +IF ~~ THEN EXIT +END + + +IF ~~ P#Sauh +SAY @380 +++ @381 EXIT +++ @382 + P#Sauh1 ++ ~!Race(Player1,ELF)~+ @383 + P#Sauh2 ++ ~Race(Player1,ELF)~+ @384 + P#Sauh3 ++ ~Race(Player1,ELF)~+ @385 + P#Sauh2 +END + +IF ~~ P#Sauh1 +SAY @386 += @387 +++ @388 EXIT +++ @389 + P#Sauh4 +END + +IF ~~ P#Sauh2 +SAY @390 += @391 +++ @388 EXIT +++ @389 + P#Sauh4 +END + +IF ~~ P#Sauh3 +SAY @392 += @393 += @391 +++ @388 EXIT +++ @389 + P#Sauh4 +END + +IF ~~ P#Sauh4 +SAY @394 += @395 +IF ~~ THEN EXIT +END + +IF ~~ P#Sul +SAY @396 +IF ~~ THEN EXIT +END + +IF ~~ P#Bridge +SAY @397 +++ @398 EXIT +++ @399 + P#Bridge1 +++ @400 + P#Bridge2 +END + +IF ~~ P#Bridge1 +SAY @401 +IF ~~ THEN EXIT +END +IF ~~ P#Bridge2 +SAY @402 +IF ~~ THEN EXIT +END + +IF ~~ P#GOVER +SAY @403 += @404 +IF ~~ THEN EXIT +END + + +IF ~~ P#Grave +SAY @405 +++ @406 + P#Grave1 +++ @407 + P#Grave2 +++ @408 + P#Grave3 ++ ~GlobalGT("Chapter","GLOBAL",%bg2_chapter_4%)~ + @409 + P#Grave4 +++ @410 + P#Grave5 +END + +IF ~~ P#Grave1 +SAY @411 +IF ~~ THEN EXIT +END + +IF ~~ P#Grave2 +SAY @412 += @413 += @414 += @415 +IF ~~ THEN EXIT +END + +IF ~~ P#Grave3 +SAY @416 +++ @417 + P#Grave6 +++ @418 + P#Grave7 +++ @419 + P#Grave7 +++ @420 + P#Grave8 +END + +IF ~~ P#Grave4 +SAY @421 += @422 += @423 +++ @424 EXIT +++ @425 + P#Grave9 +++ @426 EXIT +END + +IF ~~ P#Grave5 +SAY @427 +++ @428 EXIT +++ @429 + P#Grave10 +++ @430 + P#Grave11 +END + + +IF ~~ P#Grave6 +SAY @431 +IF ~~ THEN EXIT +END + +IF ~~ P#Grave7 +SAY @432 +IF ~~ THEN EXIT +END + +IF ~~ P#Grave8 +SAY @433 +IF ~~ THEN EXIT +END + +IF ~~ P#Grave9 +SAY @434 +IF ~ Gender(Player1,MALE)~THEN EXIT +IF ~ Global("P#KivanMatch","GLOBAL",1)~THEN GOTO P#Grave12 +END + +IF ~~ P#Grave10 +SAY @435 +IF ~~ THEN EXIT +END + +IF ~~ P#Grave11 +SAY @436 +IF ~~ THEN EXIT +END + +IF ~~ P#Grave12 +SAY @437 +IF ~~ THEN EXIT +END + +IF ~~ P#Temple +SAY @438 += @439 += @440 += @441 +IF ~~ THEN EXIT +END + + +IF ~~ P#Slums +SAY @442 +++ @443 ++ P#Slums1 +++ @444 + P#Slums2 +++ @445 + P#Slums3 +END + +IF ~~ P#Slums1 +SAY @446 ++ ~Race(Player1,ELF)~ + @447 EXIT ++~!Race(Player1,ELF)~ + @448 + P#Slums4 +++ @449 + P#Slums4 +++ @450 EXIT +END + +IF ~~ P#Slums2 +SAY @451 +IF ~~ THEN EXIT +END + +IF ~~ P#Slums3 +SAY @452 +IF ~~ THEN EXIT +END + +IF ~~ P#Slums4 +SAY @453 += @454 +IF ~~ THEN EXIT +END + +IF ~~ P#Grove +SAY @455 +IF ~~ THEN EXIT +END + +IF ~~ P#SHT +SAY @456 += @457 +IF ~~ THEN EXIT +END + +IF ~~ P#SHT1 +SAY @458 +IF ~~ THEN EXIT +END + +IF ~~ P#Umar +SAY @459 += @460 +IF ~~ THEN EXIT +END + +IF ~~ P#Umar1 +SAY @461 +IF ~~ THEN EXIT +END + +IF ~~ P#Wspear1 +SAY @462 +IF ~~ THEN EXIT +END + +IF ~~ P#Wspear2 +SAY @463 += @464 += @465 +++ @466 + P#Wspear3 +++ @467 + P#Wspear4 +++ @468 + P#Wspear5 +++ @469 DO ~IncrementGlobal("P#KivanOffence", "GLOBAL",1)~ EXIT +END + +IF ~~ P#Wspear3 +SAY @470 +++ @467 + P#Wspear4 +++ @468 + P#Wspear5 +++ @469 DO ~IncrementGlobal("P#KivanOffence", "GLOBAL",1)~ EXIT ++ ~Global("P#KivanMatch","GLOBAL",1) Global("P#KivanMatch","GLOBAL",1) +!Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) +GlobalLT("P#KivanOffence","GLOBAL",10)~+ @471 + P#Wspear6 +END + +IF ~~ P#Wspear4 +SAY @472 += @473 +IF ~~ THEN EXIT +END + +IF ~~ P#Wspear5 +SAY @474 += @475 +IF ~~ THEN EXIT +END + +IF ~~ P#Wspear6 +SAY @476 += @475 +IF ~~ THEN EXIT +END + +IF ~~ P#Trademeet1 +SAY @477 +++ @478 + P#Trademeet2 +++ @479 + P#Trademeet3 +END + +IF ~~ P#Trademeet2 +SAY @480 +IF ~~ THEN EXIT +END + +IF ~~ P#Trademeet3 +SAY @481 +IF ~~ THEN EXIT +END + + +IF ~~ NaliaTrolls +SAY@482 +++ @483 EXIT +++ @484 + P#Trolls1 +++ @485 + P#Trolls2 +END + +IF ~~ P#Trolls1 +SAY @486 +++ @485 + P#Trolls2 +++ @487 + P#Trolls3 +++ @488 + P#Trolls4 +++ @489 + P#Trolls5 +END + +IF ~~ P#Trolls2 +SAY @490 +++ @491 + P#Trolls3 +++ @488 + P#Trolls4 +++ @489 + P#Trolls5 +END + +IF ~~ P#Trolls3 +SAY @492 +IF ~~ THEN EXIT +END + +IF ~~ P#Trolls4 +SAY @493 +++ @487 + P#Trolls3 +++ @489 + P#Trolls5 +END + +IF ~~ P#Trolls5 +SAY @494 +IF ~~ THEN EXIT +END + +IF ~~ X#KiMaleEl1 +SAY @495 +IF ~~ THEN EXIT +END + +IF ~~ X#KiMaleEl2 +SAY @496 +IF ~~ THEN EXIT +END + +IF ~~ X#KiMaleEl3 +SAY @497 +IF ~~ THEN EXIT +END + +IF ~~ X#KiMaleEl4 +SAY @498 +IF ~~ THEN EXIT +END + +IF ~~ X#KiMaleEl5 +SAY @499 +IF ~~ THEN EXIT +END + +IF ~~ X#KiMaleEl6 +SAY @500 +IF ~~ THEN EXIT +END + +IF ~~ X#KiMaleEl7 +SAY @501 +IF ~~ THEN EXIT +END + +IF ~~ X#KiMaleEl9 +SAY @502 +IF ~~ THEN EXIT +END + +IF ~~ X#KiMaleEl10 +SAY @503 +IF ~~ THEN EXIT +END + + +IF ~~ X#KiHow1 +SAY @504 +IF ~~ THEN EXIT +END + +IF ~~ X#KiHow2 +SAY @505 +IF ~~ THEN EXIT +END + +IF ~~ X#KiHow3 +SAY @506 +IF ~~ THEN EXIT +END + +IF ~~ X#KiHow4 +SAY @507 +IF ~~ THEN EXIT +END + +IF ~~ X#KiHow5 +SAY @508 +IF ~~ THEN EXIT +END + +IF ~~ X#KiHow6 +SAY @509 +IF ~~ THEN EXIT +END + +IF ~~ X#KiHow7 +SAY @510 +IF ~~ THEN EXIT +END + +IF ~~ X#KiHow8 +SAY @511 +IF ~~ THEN EXIT +END + +IF ~~ X#KiHow9 +SAY @512 +IF ~~ THEN EXIT +END + +IF ~~ X#KiHow10 +SAY @513 +IF ~~ THEN EXIT +END + +IF ~~ KiFlirt1 +SAY @514 +IF ~~ THEN EXIT +END + +IF ~~ KiFlirt2 +SAY @515 +IF ~~ THEN EXIT +END + +IF ~~ KiFlirt3 +SAY @516 +IF ~~ THEN EXIT +END + +IF ~~ KiFlirt4 +SAY @517 +IF ~~ THEN EXIT +END + +IF ~~ KiFlirt5 +SAY @518 /*This appears to stop in mid-sentence. What did you want to go here?*/ +IF ~~ THEN DO ~DestroyItem("P#Dream") SetGlobal("P#DreamCatcher","GLOBAL",2)~ EXIT +END + +END + +CHAIN P#KIVJ X#KiMaleEl8 +@519 +== BVICONI @520 +EXIT + + + diff --git a/kivan/d/p#kiring.d b/kivan/d/p#kiring.d new file mode 100644 index 0000000..480135f --- /dev/null +++ b/kivan/d/p#kiring.d @@ -0,0 +1,375 @@ +//Global("P#KivanLoversQuest","GLOBAL",3) - were directed to Quataris +//Global("P#KivanLoversQuest","GLOBAL",4) - directed to Jisstevs, kept the ring +//Global("P#KivanLoversQuest","GLOBAL",5) - directed to Jisstevs, sold the ring +//Global("P#KivanLoversQuest","GLOBAL",6) - sold the ring w/o info, quest is over +//Global("P#KivanLoversQuest","GLOBAL",7) - talked to Chislav, quest is over + +APPEND P#KIVJ + +IF WEIGHT #990 ~ +Global("P#KivanLoversQuest","GLOBAL",2)~ KiRingQuest1 +SAY @0 += @1 +IF ~~ THEN UNSOLVED_JOURNAL @10001 +DO ~SetGlobal("P#KivanLoversQuest","GLOBAL",3)~ EXIT +END + +END + +EXTEND_BOTTOM HAQUAT 0 +IF ~InParty("P#kivan") !Dead("P#kivan") !StateCheck("P#kivan",STATE_SLEEPING) +Global("P#KivanLoversQuest","GLOBAL",3) PartyHasItem("MISC5R")~ THEN REPLY @3 GOTO RingDial +END + +ADD_STATE_TRIGGER HAQUAT 2 ~!Global("P#KivanLoversQuest","GLOBAL",3)~ + +APPEND HAQUAT + +IF ~NumTimesTalkedToGT(0) Global("P#KivanLoversQuest","GLOBAL",3)~ THEN BEGIN P#KivQuest + SAY @4 +IF ~InParty("P#kivan") !Dead("P#kivan") !StateCheck("P#kivan",STATE_SLEEPING) +Global("P#KivanLoversQuest","GLOBAL",3) PartyHasItem("MISC5R")~ THEN REPLY @5 GOTO RingDial +++ @6 EXIT +END + +IF ~~ RingDial +SAY @7 +++ @8 + P#KIRI3.1 ++ ~CheckStatGT(Player1,12,CHR)~+ @9 EXTERN P#KIVJ P#KIRI3.2 ++ ~!CheckStatGT(Player1,12,CHR)~+ @10 EXTERN P#KIVJ P#KIRI3.3 +++ @11 EXTERN P#KIVJ P#KIRI3.4 +END + +IF ~~ P#KIRI3.1 +SAY @12 ++ ~PartyGoldGT(25)~ + @13 DO ~TakePartyGold(20) SetGlobal("P#KivanLoversQuest","GLOBAL",4)~ + P#KIRI3.5 +++ @14 EXIT +END + +IF ~~ P#KIRI3.5 +SAY @15 //I broke up the sentences into their distinct phrases, since this gives the feeling that the merchant is speaking in bursts as the he recalls the info. +IF~~ THEN REPLY @16 UNSOLVED_JOURNAL @10004 EXIT +END + +IF ~~ P#KIRI3.6 +SAY @18 +++ @19 + P#KIRI3.12 ++ ~PartyGoldGT(25)~ + @20 DO ~TakePartyGold(20) SetGlobal("P#KivanLoversQuest","GLOBAL",4)~ + P#KIRI3.5 +++ @21 + P#KIRI3.13 +END + +IF ~~ P#KIRI3.7 +SAY @22 +++ @23 + P#KIRI3.14 ++ ~PartyGoldGT(25)~ + @24 + P#KIRI3.6 +END + +IF ~~ P#KIRI3.8 +SAY @25 +++ @26 + P#KIRI3.15 ++ ~PartyGoldGT(25)~ + @20 DO ~TakePartyGold(20) SetGlobal("P#KivanLoversQuest","GLOBAL",4)~ + P#KIRI3.5 +++ @27 + P#KIRI3.16 +END + +IF ~~ P#KIRI3.9 +SAY @28 +++ @23 + P#KIRI3.17 ++ ~PartyGoldGT(25)~ + @24 + P#KIRI3.8 +END + +IF ~~ P#KIRI3.10 +SAY @29 +++ @30 + P#KIRI3.18 ++ ~PartyGoldGT(25)~ + @20 DO ~TakePartyGold(20) SetGlobal("P#KivanLoversQuest","GLOBAL",4)~ + P#KIRI3.5 +++ @31 + P#KIRI3.19 +END + +IF ~~ P#KIRI3.11 +SAY @32 +++ @23 + P#KIRI3.20 ++ ~PartyGoldGT(25)~ + @24 + P#KIRI3.10 +END + +IF ~~ P#KIRI3.12 +SAY @33 +IF ~~ THEN DO ~SetGlobal("P#KivanLoversQuest","GLOBAL",6) GiveGoldForce(1000) TakePartyItem("MISC5R")~ EXIT +END + +IF ~~ P#KIRI3.14 +SAY @33 +IF ~~ THEN DO ~SetGlobal("P#KivanLoversQuest","GLOBAL",6) GiveGoldForce(1000) TakePartyItem("MISC5R")~ EXIT +END + +IF ~~ P#KIRI3.15 +SAY @33 +IF ~~ THEN DO ~SetGlobal("P#KivanLoversQuest","GLOBAL",6) GiveGoldForce(800) TakePartyItem("MISC5R")~ EXIT +END + +IF ~~ P#KIRI3.17 +SAY @33 +IF ~~ THEN DO ~SetGlobal("P#KivanLoversQuest","GLOBAL",6) GiveGoldForce(800) TakePartyItem("MISC5R")~ EXIT +END + +IF ~~ P#KIRI3.18 +SAY @33 +IF ~~ THEN DO ~SetGlobal("P#KivanLoversQuest","GLOBAL",6) GiveGoldForce(500) TakePartyItem("MISC5R")~ EXIT +END + +IF ~~ P#KIRI3.20 +SAY @33 +IF ~~ THEN DO ~SetGlobal("P#KivanLoversQuest","GLOBAL",6) GiveGoldForce(500) TakePartyItem("MISC5R")~ EXIT +END + +IF ~~ P#KIRI3.13 +SAY @34 += @15 +++ @16 DO ~SetGlobal("P#KivanLoversQuest","GLOBAL",5) GiveGoldForce(900) TakePartyItem("MISC5R")~ EXIT +END + +IF ~~ P#KIRI3.16 +SAY @34 += @15 +++ @16 DO ~SetGlobal("P#KivanLoversQuest","GLOBAL",5) GiveGoldForce(700) TakePartyItem("MISC5R")~ EXIT +END + +IF ~~ P#KIRI3.19 +SAY @34 += @15 +++ @16 DO ~SetGlobal("P#KivanLoversQuest","GLOBAL",5) GiveGoldForce(400) TakePartyItem("MISC5R")~ EXIT +END + +END + +APPEND P#KIVJ + +IF ~~ P#KIRI3.2 +SAY @35 +++ @36 EXTERN HAQUAT P#KIRI3.6 +++ @37 DO ~IncrementGlobal("P#KivanOffence", "GLOBAL",1)~ EXTERN HAQUAT P#KIRI3.7 +END + +IF ~~ P#KIRI3.3 +SAY @35 +++ @36 EXTERN HAQUAT P#KIRI3.8 +++ @37 DO ~IncrementGlobal("P#KivanOffence", "GLOBAL",1)~ EXTERN HAQUAT P#KIRI3.9 +END + +IF ~~ P#KIRI3.4 +SAY @35 +++ @38 EXTERN HAQUAT P#KIRI3.10 +++ @37 DO ~IncrementGlobal("P#KivanOffence", "GLOBAL",1)~ EXTERN HAQUAT P#KIRI3.11 +END + +END + +//Jysstevs + +EXTEND_BOTTOM SCLJYSS 1 4 ++ ~PartyHasItem("MISC5R") Global("P#SummonChislav","GLOBAL",0) GlobalGT("P#KivanLoversQuest","GLOBAL",3) GlobalLT("P#KivanLoversQuest","GLOBAL",6)~ + @39 + P#KIRI4.1 ++ ~!PartyHasItem("MISC5R") Global("P#SummonChislav","GLOBAL",0) GlobalGT("P#KivanLoversQuest","GLOBAL",3) GlobalLT("P#KivanLoversQuest","GLOBAL",6)~ + @40 + P#KIRI4.2 +END + +ADD_STATE_TRIGGER SCLJYSS 0 ~!Global("P#SummonChislav","GLOBAL",0) !Global("P#KivanLoversQuest","GLOBAL",4) !Global("P#KivanLoversQuest","GLOBAL",5)~ 3 13 14 + +APPEND SCLJYSS + +IF WEIGHT #0 ~NumTimesTalkedTo(0) +Global("SarlesSpawn","GLOBAL",0) +!Global("JanLissaPlot","GLOBAL",8) +!Global("JanLissaPlot","GLOBAL",9) +GlobalGT("P#KivanLoversQuest","GLOBAL",3) GlobalLT("P#KivanLoversQuest","GLOBAL",6) +Global("P#SummonChislav","GLOBAL",0)~ THEN BEGIN Lady1 + SAY @41 ++ ~PartyHasItem("MISC5R") Global("P#SummonChislav","GLOBAL",0) GlobalGT("P#KivanLoversQuest","GLOBAL",3) GlobalLT("P#KivanLoversQuest","GLOBAL",6)~ + @39 DO ~SetNumTimesTalkedTo(0)~ + P#KIRI4.1 ++ ~!PartyHasItem("MISC5R") Global("P#SummonChislav","GLOBAL",0) GlobalGT("P#KivanLoversQuest","GLOBAL",3) GlobalLT("P#KivanLoversQuest","GLOBAL",6)~ + @40 DO ~SetNumTimesTalkedTo(0)~ + P#KIRI4.2 +++ @42 DO ~SetNumTimesTalkedTo(0)~ EXIT +END + +IF WEIGHT #5 +~GlobalGT("SarlesSpawn","GLOBAL",0) +GlobalGT("P#KivanLoversQuest","GLOBAL",3) GlobalLT("P#KivanLoversQuest","GLOBAL",6) +Global("P#SummonChislav","GLOBAL",0)~ THEN BEGIN Lady2 + SAY @43 ++ ~PartyHasItem("MISC5R") Global("P#SummonChislav","GLOBAL",0) GlobalGT("P#KivanLoversQuest","GLOBAL",3) GlobalLT("P#KivanLoversQuest","GLOBAL",6)~ + @39 + P#KIRI4.1 ++ ~!PartyHasItem("MISC5R") Global("P#SummonChislav","GLOBAL",0) GlobalGT("P#KivanLoversQuest","GLOBAL",3) GlobalLT("P#KivanLoversQuest","GLOBAL",6)~ + @40 + P#KIRI4.2 +++ @42 EXIT +END + +IF WEIGHT #3 ~Global("SCLjyss","GLOBAL",1) +Global("SarlesSpawn","GLOBAL",0) +GlobalGT("P#KivanLoversQuest","GLOBAL",3) GlobalLT("P#KivanLoversQuest","GLOBAL",6) +Global("P#SummonChislav","GLOBAL",0)~ THEN BEGIN Lady3 + SAY @44 ++ ~PartyHasItem("MISC5R") Global("P#SummonChislav","GLOBAL",0) GlobalGT("P#KivanLoversQuest","GLOBAL",3) GlobalLT("P#KivanLoversQuest","GLOBAL",6)~ + @39 + P#KIRI4.1 ++ ~!PartyHasItem("MISC5R") Global("P#SummonChislav","GLOBAL",0) GlobalGT("P#KivanLoversQuest","GLOBAL",3) GlobalLT("P#KivanLoversQuest","GLOBAL",6)~ + @40 + P#KIRI4.2 +++ @42 EXIT +END + +IF WEIGHT #4 ~Global("SarlesPissed","GLOBAL",1) +GlobalGT("P#KivanLoversQuest","GLOBAL",3) GlobalLT("P#KivanLoversQuest","GLOBAL",6) +Global("P#SummonChislav","GLOBAL",0)~ THEN BEGIN Lady5 + SAY @45 ++ ~PartyHasItem("MISC5R") Global("P#SummonChislav","GLOBAL",0) GlobalGT("P#KivanLoversQuest","GLOBAL",3) GlobalLT("P#KivanLoversQuest","GLOBAL",6)~ + @39 + P#KIRI4.1 ++ ~!PartyHasItem("MISC5R") Global("P#SummonChislav","GLOBAL",0) GlobalGT("P#KivanLoversQuest","GLOBAL",3) GlobalLT("P#KivanLoversQuest","GLOBAL",6)~ + @40 + P#KIRI4.2 +++ @42 EXIT +END + +IF ~~ P#KIRI4.1 +SAY @46 +IF ~~ THEN DO ~SetGlobal("P#SummonChislav","GLOBAL",1)~ +EXIT +END + +IF ~~ P#KIRI4.2 +SAY @47 +IF ~~ THEN DO ~SetGlobal("P#SummonChislav","GLOBAL",1)~ EXIT +END + +END + +BEGIN P#CHISL +APPEND P#CHISL + +IF ~NumTimesTalkedTo(0)~ THEN BEGIN ChislavDialogue +SAY @48 +++ @49 + P#KIRI5.1 +++ @50 + P#KIRI5.2 +++ @51+ P#KIRI5.3 +++ @52 EXIT +END + +IF ~~ P#KIRI5.1 +SAY @53 +IF ~~ THEN GOTO P#KIRI5.4 +END + +IF ~~ P#KIRI5.2 +SAY @54 +IF ~~ THEN GOTO P#KIRI5.4 +END + +IF ~~ P#KIRI5.3 +SAY @55 +IF ~~ THEN GOTO P#KIRI5.4 +END + +IF ~~ P#KIRI5.4 +SAY @56 += @57 +++ @58 + P#KIRI5.5 +++ @59 + P#KIRI5.6 +++ @60 + P#KIRI5.7 +++ @61 + P#KIRI5.8 +END + +IF ~~ P#KIRI5.5 +SAY @62 += @63 += @64 ++ ~Global("P#KivanLoversQuest","GLOBAL",4) PartyHasItem("MISC5R")~+ @65 + P#KIRI5.9 ++ ~Global("P#KivanLoversQuest","GLOBAL",4) !PartyHasItem("MISC5R")~+ @66 + P#KIRI5.9A ++ ~Global("P#KivanLoversQuest","GLOBAL",5)~+ @67 + P#KIRI5.10 +END + +IF ~~ P#KIRI5.6 +SAY @68 += @64 ++ ~Global("P#KivanLoversQuest","GLOBAL",4) PartyHasItem("MISC5R")~+ @65 + P#KIRI5.9 ++ ~Global("P#KivanLoversQuest","GLOBAL",4) !PartyHasItem("MISC5R")~+ @66 + P#KIRI5.9A ++ ~Global("P#KivanLoversQuest","GLOBAL",5)~+ @67 + P#KIRI5.10 +END + +IF ~~ P#KIRI5.7 +SAY @69 += @64 ++ ~Global("P#KivanLoversQuest","GLOBAL",4) PartyHasItem("MISC5R")~+ @65 + P#KIRI5.9 ++ ~Global("P#KivanLoversQuest","GLOBAL",4) !PartyHasItem("MISC5R")~+ @66 + P#KIRI5.9A ++ ~Global("P#KivanLoversQuest","GLOBAL",5)~+ @67 + P#KIRI5.10 +END + +IF ~~ P#KIRI5.8 +SAY @70 += @64 ++ ~Global("P#KivanLoversQuest","GLOBAL",4) PartyHasItem("MISC5R")~+ @65 + P#KIRI5.9 ++ ~Global("P#KivanLoversQuest","GLOBAL",4) !PartyHasItem("MISC5R")~+ @66 + P#KIRI5.9A ++ ~Global("P#KivanLoversQuest","GLOBAL",5)~+ @67 + P#KIRI5.10 +END + +IF ~~ P#KIRI5.9 +SAY @71 +++ @72 + P#KIRI5.11 +++ @73 + P#KIRI5.12 +END + +IF ~~ P#KIRI5.9A +SAY @74 +++ @72 + P#KIRI5.11 +++ @73 + P#KIRI5.12 +END + +IF ~~ P#KIRI5.10 +SAY @75 +++ @76 + P#KIRI5.13 +++ @72 + P#KIRI5.11 +++ @73 + P#KIRI5.12 +END + +IF ~~ P#KIRI5.11 +SAY @77 +++ @78 + P#KIRI5.12 +END + +IF ~~ P#KIRI5.12 +SAY @79 +++ @80 + P#KIRI5.14 +END + +IF ~~ P#KIRI5.13 +SAY @81 += @82 += @83 +++ @84 + P#KIRI5.15 +++ @85 + P#KIRI5.16 +END + +IF ~~ P#KIRI5.14 +SAY @86 +++ @87 + P#KIRI5.17 +++ @88 + P#KIRI5.18 +END + +IF ~~ P#KIRI5.15 +SAY @89 += @90 +IF ~~ THEN DO ~SetGlobal("P#KivanLoversQuest","GLOBAL",7) TakePartyItem("MISC5R") GiveItemCreate("SW2H14",Player1,0,0,0) EscapeArea()~ EXIT +END + +IF ~~ P#KIRI5.16 +SAY @91 +=@92 +IF ~~ THEN DO ~SetGlobal("P#KivanLoversQuest","GLOBAL",7) TakePartyItem("MISC5R") GiveItemCreate("SW2H14",Player1,0,0,0) EscapeArea()~ EXIT +END + +IF ~~ P#KIRI5.17 +SAY @93 += @94 += @95 += @96 += @90 += @97 +IF ~~ THEN DO ~SetGlobal("P#KivanLoversQuest","GLOBAL",7) TakePartyItem("MISC5R") GiveGoldForce(1000) GiveItemCreate("SW2H14",Player1,0,0,0) EscapeArea()~ EXIT +END + +IF ~~ P#KIRI5.18 +SAY @96 += @90 += @98 +IF ~~ THEN DO ~SetGlobal("P#KivanLoversQuest","GLOBAL",7) TakePartyItem("MISC5R") GiveGoldForce(1000) GiveItemCreate("SW2H14",Player1,0,0,0) EscapeArea()~ EXIT +END + +END + + + + + diff --git a/kivan/d/p#kivan.d b/kivan/d/p#kivan.d new file mode 100644 index 0000000..7617b3b --- /dev/null +++ b/kivan/d/p#kivan.d @@ -0,0 +1,291 @@ +BEGIN P#DEHJ +BEGIN BP#DEH + +APPEND BP#DEH + +//Deheriana dies +IF WEIGHT #999 ~Global("P#DeherianaLives","GLOBAL",3)~ THEN BEGIN DEPCDeath +SAY @0 +++ @1 DO ~SetGlobal("P#DeherianaLives","GLOBAL",5) ActionOverride("P#DEHER", LeaveParty()) ActionOverride("P#DEHER",DestroySelf())~EXIT +END +END + +BEGIN P#KIVAN +APPEND P#KIVAN +IF ~NumTimesTalkedTo(0)~ THEN BEGIN P#MeetKivan +SAY @2 +IF ~~ THEN DO ~SetGlobal("X#TalkedToKivan","GLOBAL",1)~ EXTERN P#KIVAN KivanStartChain +END + +IF ~~ THEN BEGIN Refuse +SAY @3 +IF ~~ THEN REPLY @4 GOTO ComeAlong +IF ~~ THEN REPLY @5 GOTO PoliteRefuse +IF ~~ THEN REPLY @6 GOTO GetLost +END + +IF ~~ THEN BEGIN ComeAlong +SAY @7 +IF~~ THEN DO ~SetGlobal("P#KivanJoined","GLOBAL",1) +JoinParty()~ EXIT +END + +IF ~~ THEN BEGIN PCComplains +SAY @8 +IF ~Race(Player1,ELF)~ THEN REPLY @9 GOTO PoliteRefuse +IF ~~ THEN REPLY @10 GOTO ComeAlong +IF ~!Race(Player1,ELF)~ THEN REPLY @11 GOTO PoliteRefuse +IF ~~ THEN REPLY @6 GOTO GetLost +END + +IF ~~ THEN BEGIN PoliteRefuse +SAY @12 +IF ~~ THEN DO ~EscapeArea()~ EXIT +END + +IF ~~ THEN BEGIN GetLost +SAY @13 +IF ~~ THEN DO ~EscapeArea()~ EXIT +END +END + +BEGIN P#KIVP +APPEND P#KIVP + +IF ~Global("P#KivanJoined","GLOBAL",1)~ THEN BEGIN KickOut +SAY @14 +IF ~~ THEN REPLY @15 DO ~JoinParty()~ EXIT +IF ~InParty("P#DEHER") +!AreaCheck("AR0301") +!AreaCheck("AR0302") +!AreaCheck("AR0303") +!AreaCheck("AR0304") +!AreaCheck("AR0305") +!AreaCheck("AR0306") +!AreaCheck("AR0307") +!AreaCheck("AR0509") +!AreaCheck("AR0510") +!AreaCheck("AR0511") +!AreaCheck("AR1102") +!AreaCheck("AR1107") +!AreaCheck("AR0801") +!AreaCheck("AR0803") +!AreaCheck("AR1300") +!AreaCheck("AR1301") +!AreaCheck("AR1302") +!AreaCheck("AR1303") +!AreaCheck("AR0601") +!AreaCheck("AR0602") +!AreaCheck("AR0603") +!AreaCheck("AR0604") +!AreaCheck("AR0605") +!AreaCheck("AR0606") +!AreaCheck("AR3000") //Watcher's Keep// +!AreaCheck("AR3001") //Watcher’s Keep -- Altar level// +!AreaCheck("AR3003") //Watcher’s Keep -- Compass level // +!AreaCheck("AR3004") //Watcher’s Keep // +!AreaCheck("AR3005") //Watcher’s Keep -- tieflings// +!AreaCheck("AR3006") //Watcher’s Keep -- Succubus +!AreaCheck("AR3007") //Watcher’s Keep --Cambion +!AreaCheck("AR3008") //Watcher’s Keep -- Balor (Paladin Sword) +!AreaCheck("AR3009") //Watcher’s Keep --") //Wild Magic ? +!AreaCheck("AR3010") //Watcher’s Keep -- Tanar’ri -- Obelisk +!AreaCheck("AR3011") //Watcher’s Keep -- Bard’s Gloves, Manman’s Journal +!AreaCheck("AR3012") //Watcher’s Keep -- Tahazzar +!AreaCheck("AR3013") //Watcher’s Keep -- Ka’rashur +!AreaCheck("AR3014") //Watcher’s Keep --") //White Dragon Scales +!AreaCheck("AR3015") //Watcher’s Keep -- Aesgareth +!AreaCheck("AR3016") //Watcher’s Keep -- Chromatic Demon; Elementalist Level +!AreaCheck("AR3017") //Watcher’s Keep -- Carston and the machine +!AreaCheck("AR3018") //Watcher’s Keep -- Saladrex (Dragon) +!AreaCheck("AR3019") //Watcher’s Keep -- Helmite Level -- Last Seals +!AreaCheck("AR3020") //Watcher’s Keep -- Imprisoned One +!AreaCheck("AR3021") //Watcher’s Keep -- Ilithids +!AreaCheck("AR3022") //Watcher’s Keep -- Anti-Paladins +!AreaCheck("AR3023") //Watcher’s Keep -- "Adventure Level" (Mini Map!!!) +!AreaCheck("AR3024") //Watcher’s Keep -- Dragon -- Fear Challenge +!AreaCheck("AR3025") //Watcher’s Keep -- Orcs -- Ixil’s Nail +!AreaCheck("AR3026") //Watcher’s Keep -- Imp -- Game +!AreaCheck("AR3027") //Watcher’s Keep -- Crypt -- Demi-Lich +~ THEN REPLY @16 DO ~SetGlobal("P#KivanJoined","GLOBAL",0) LeaveParty() SetGlobal("DeherJoined","GLOBAL",0) ActionOverride("P#DEHER",LeaveParty()) ~ EXIT +IF ~!InParty("P#DEHER") +!AreaCheck("AR0301") +!AreaCheck("AR0302") +!AreaCheck("AR0303") +!AreaCheck("AR0304") +!AreaCheck("AR0305") +!AreaCheck("AR0306") +!AreaCheck("AR0307") +!AreaCheck("AR0509") +!AreaCheck("AR0510") +!AreaCheck("AR0511") +!AreaCheck("AR1102") +!AreaCheck("AR1107") +!AreaCheck("AR0801") +!AreaCheck("AR0803") +!AreaCheck("AR1300") +!AreaCheck("AR1301") +!AreaCheck("AR1302") +!AreaCheck("AR1303") +!AreaCheck("AR0601") +!AreaCheck("AR0602") +!AreaCheck("AR0603") +!AreaCheck("AR0604") +!AreaCheck("AR0605") +!AreaCheck("AR0606") +!AreaCheck("AR3000") //Watcher's Keep +!AreaCheck("AR3001") //Watcher’s Keep -- Altar level +!AreaCheck("AR3003") //Watcher’s Keep -- Compass level +!AreaCheck("AR3004") //Watcher’s Keep +!AreaCheck("AR3005") //Watcher’s Keep -- tieflings +!AreaCheck("AR3006") //Watcher’s Keep -- Succubus +!AreaCheck("AR3007") //Watcher’s Keep --Cambion +!AreaCheck("AR3008") //Watcher’s Keep -- Balor (Paladin Sword) +!AreaCheck("AR3009") //Watcher’s Keep --") //Wild Magic ? +!AreaCheck("AR3010") //Watcher’s Keep -- Tanar’ri -- Obelisk +!AreaCheck("AR3011") //Watcher’s Keep -- Bard’s Gloves, Manman’s Journal +!AreaCheck("AR3012") //Watcher’s Keep -- Tahazzar +!AreaCheck("AR3013") //Watcher’s Keep -- Ka’rashur +!AreaCheck("AR3014") //Watcher’s Keep --") //White Dragon Scales +!AreaCheck("AR3015") //Watcher’s Keep -- Aesgareth +!AreaCheck("AR3016") //Watcher’s Keep -- Chromatic Demon; Elementalist Level +!AreaCheck("AR3017") //Watcher’s Keep -- Carston and the machine +!AreaCheck("AR3018") //Watcher’s Keep -- Saladrex (Dragon) +!AreaCheck("AR3019") //Watcher’s Keep -- Helmite Level -- Last Seals +!AreaCheck("AR3020") //Watcher’s Keep -- Imprisoned One +!AreaCheck("AR3021") //Watcher’s Keep -- Ilithids +!AreaCheck("AR3022") //Watcher’s Keep -- Anti-Paladins +!AreaCheck("AR3023") //Watcher’s Keep -- "Adventure Level" (Mini Map!!!) +!AreaCheck("AR3024") //Watcher’s Keep -- Dragon -- Fear Challenge +!AreaCheck("AR3025") //Watcher’s Keep -- Orcs -- Ixil’s Nail +!AreaCheck("AR3026") //Watcher’s Keep -- Imp -- Game +!AreaCheck("AR3027") //Watcher’s Keep -- Crypt -- Demi-Lich +~ THEN REPLY @16 DO ~SetGlobal("P#KivanJoined","GLOBAL",0) LeaveParty()~ EXIT +IF ~!InParty("P#DEHER")~ THEN REPLY @17 GOTO PoliteRefuse +IF ~InParty("P#DEHER")~ THEN REPLY @17 GOTO PoliteRefuseD +IF ~OR(2) Global("P#DeherianaLives","GLOBAL",0) Global("P#DeherianaDead","GLOBAL",1) +!AreaCheck("AR0601") +!AreaCheck("AR0602") +!AreaCheck("AR0603") +!AreaCheck("AR0410") +!AreaCheck("AR0411") +!AreaCheck("AR0412") +!AreaCheck("AR0413") +!AreaCheck("AR0414") +!AreaCheck("AR1512") +!AreaCheck("AR1513") +!AreaCheck("AR1514") +!AreaCheck("AR1515") +!AreaCheck("AR1516") +!AreaCheck("AR1501") +!AreaCheck("AR1502") +!AreaCheck("AR1503") +!AreaCheck("AR1504") +!AreaCheck("AR1505") +!AreaCheck("AR1506") +!AreaCheck("AR1507") +!AreaCheck("AR1508") +!AreaCheck("AR1509") +!AreaCheck("AR1510") +!AreaCheck("AR1511") +!AreaCheck("AR2100") +!AreaCheck("AR2101") +!AreaCheck("AR2102") +!AreaCheck("AR2200") +!AreaCheck("AR2202") +!AreaCheck("AR2203") +!AreaCheck("AR2204") +!AreaCheck("AR2205") +!AreaCheck("AR2206") +!AreaCheck("AR2207") +!AreaCheck("AR2208") +!AreaCheck("AR2209") +!AreaCheck("AR2210") +!AreaCheck("AR2300") +!AreaCheck("AR2400") +!AreaCheck("AR2401") +!AreaCheck("AR2402") +!AreaCheck("AR2900") +!AreaCheck("AR2901") +!AreaCheck("AR2902") +!AreaCheck("AR2903") +!AreaCheck("AR2904") +!AreaCheck("AR2905") +!AreaCheck("AR2906")~ THEN REPLY @18 DO ~SetGlobal("P#KivanJoined","GLOBAL",0) ~ + KivanWindSpear +END + +IF ~~ KivanWindSpear +SAY @19 += @20 +IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",1) +EscapeAreaMove("AR1200",894,3209,0) ~ EXIT +END + +IF ~~ THEN BEGIN PoliteRefuse +SAY @12 +IF ~~ THEN DO ~ LeaveParty() EscapeArea()~ EXIT +END + +IF ~~ THEN BEGIN PoliteRefuse1 +SAY @12 +IF ~~ THEN DO ~ LeaveParty() EscapeArea()~ EXIT +END + +IF ~NumTimesTalkedToGT(0)~ THEN BEGIN ReturnDialogue +SAY @21 +IF ~!InParty("P#DEHER")~ THEN REPLY @22 DO ~SetGlobal("P#KivanJoined","GLOBAL",1) +JoinParty()~ EXIT +IF ~InParty("P#DEHER")~ THEN REPLY @23 DO ~SetGlobal("P#KivanJoined","GLOBAL",1) +JoinParty() ActionOverride("P#DEHER",JoinParty())~ EXIT +IF ~~ THEN REPLY @24 GOTO RefusedAgain +IF ~!Global("P#DeherianaLives","GLOBAL",2) !Global("P#DeherianaLives","GLOBAL",6)~ THEN REPLY @17 GOTO PoliteRefuse1 +IF ~OR(2) Global("P#DeherianaLives","GLOBAL",2) Global("P#DeherianaLives","GLOBAL",6)~ THEN REPLY @17 GOTO PoliteRefuse1D +END + +IF ~~ THEN BEGIN RefusedAgain +SAY @25 +IF ~~ THEN EXIT +END +END + +CHAIN IF ~~ THEN P#KIVP PoliteRefuseD +@26 +== P#KIVP @27 +END +IF ~~ THEN DO ~ActionOverride("P#DEHER",LeaveParty()) ActionOverride("P#DEHER", EscapeArea()) LeaveParty() EscapeArea()~ EXIT + + +CHAIN IF ~~ THEN P#KIVP PoliteRefuse1D +@26 +== P#KIVP @27 +END +IF ~~ THEN DO ~ActionOverride("P#DEHER",LeaveParty()) ActionOverride("P#DEHER", EscapeArea()) LeaveParty() EscapeArea()~ EXIT + + +BEGIN P#KIVJ +APPEND P#KIVJ + +END + +CHAIN P#KIVAN KivanStartChain +@28 +== MINSCJ IF ~InParty("minsc") !Dead("minsc") !StateCheck("minsc",STATE_SLEEPING)~ THEN @29 +== JAHEIRAJ IF ~InParty("jaheira") !Dead("jaheira") +!StateCheck("jaheira",STATE_SLEEPING)~ THEN @30 +== P#KIVAN IF ~InParty("jaheira") !Dead("jaheira") +!StateCheck("jaheira",STATE_SLEEPING)~ THEN @31 +== JAHEIRAJ IF ~InParty("jaheira") !Dead("jaheira") +!StateCheck("jaheira",STATE_SLEEPING)~ THEN @32 +== P#KIVAN IF ~InParty("jaheira") !Dead("jaheira") +!StateCheck("jaheira",STATE_SLEEPING)~ THEN @33 +== JAHEIRAJ IF ~InParty("jaheira") !Dead("jaheira") +!StateCheck("jaheira",STATE_SLEEPING)~ THEN @34 +END +IF ~~ THEN REPLY @35 GOTO Refuse +IF ~~ THEN REPLY @36 GOTO ComeAlong +IF ~Race(Player1,ELF)~ THEN REPLY @37 GOTO ComeAlong +IF ~~ THEN REPLY @38 GOTO PCComplains +IF ~~ THEN REPLY @39 GOTO ComeAlong +IF ~Race(Player1,ELF)~ THEN REPLY @40 GOTO PoliteRefuse +IF ~!Race(Player1,ELF)~ THEN REPLY @11 GOTO PoliteRefuse + diff --git a/kivan/d/p#kivj.d b/kivan/d/p#kivj.d new file mode 100644 index 0000000..00c484b --- /dev/null +++ b/kivan/d/p#kivj.d @@ -0,0 +1,2624 @@ +//Added in May 2008 + +//Set Global after PC tells Anomen she loves him in Saerk's house: BANOMEN 560 + +ADD_TRANS_ACTION BANOMEN BEGIN 560 END BEGIN +END +~SetGlobal("P#KivanAnomenLovedSaerk","GLOBAL",1)~ + +//proofread additionally in Jan 2006// + +//Kivan Tree of Life + +APPEND P#KIVJ + +IF ~~ THEN BEGIN ToLKiv1 +SAY @0 COPY_TRANS PLAYER1 33 +END + +IF ~~ THEN BEGIN ToLKiv2 +SAY @1 COPY_TRANS PLAYER1 33 +END + +IF ~~ THEN BEGIN ToLKiv3 +SAY @2 COPY_TRANS PLAYER1 33 +END + +IF ~~ THEN BEGIN ToLKiv4 +SAY @3 += @4 += @5 +++ @6 + KILTA10.1 +++ @7 + KILTA10.2 +++ @8 + KILTA10.3 +++ @9 + KILTA10.4 +END + +IF ~~ KILTA10.1 +SAY @10 +++ @11 + KILTA10.5 +++ @12 + KILTA10.6 +++ @7 + KILTA10.2 +++ @8 + KILTA10.3 +END + +IF ~~ KILTA10.2 +SAY @13 +COPY_TRANS PLAYER1 33 +END + +IF ~~ KILTA10.3 +SAY @14 +++ @15 + KILTA10.6 +++ @16 + KILTA10.2 +END + +IF ~~ KILTA10.4 +SAY @17 +++ @18 EXTERN P#KIVJ ToLKiv1 +++ @19 EXTERN P#KIVJ ToLKiv2 +++ @20 EXTERN P#KIVJ ToLKiv3 +END + +IF ~~ KILTA10.5 +SAY @21 +++ @22 + KILTA10.7 +++ @23+ KILTA10.8 +++ @24 + KILTA10.2 +END + +IF ~~ KILTA10.6 +SAY @25 +++ @18 EXTERN P#KIVJ ToLKiv1 +++ @19 EXTERN P#KIVJ ToLKiv2 +++ @20 EXTERN P#KIVJ ToLKiv3 +END + +IF ~~ KILTA10.7 +SAY @26 +++ @27+ KILTA10.8 +++ @28+ KILTA10.8 +++ @29+ KILTA10.8 +++ @24 + KILTA10.2 +END + +IF ~~ KILTA10.8 +SAY @30 += @31 += @32 +COPY_TRANS PLAYER1 33 +END + +END + +//Tree of Life, where Kivan is not adored beyond all measure + +INTERJECT PLAYER1 33 P#TreeofLifeForKivan +== PLAYER1 IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") +OR(3) GlobalLT("P#KivanLove","GLOBAL",10) +Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",0)~ THEN @33 +END +++ @18 EXTERN P#KIVJ ToLKiv1 +++ @34 EXTERN P#KIVJ ToLKiv2 +++ @20 EXTERN P#KIVJ ToLKiv3 + +//Tree of Life where we love Kivan to distraction + +INTERJECT PLAYER1 33 P#TreeofLifeForKivan +== PLAYER1 IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") +GlobalGT("P#KivanLove","GLOBAL",9) +!Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",1) +~ THEN @35 +END +++ @36 EXTERN P#KIVJ ToLKiv4 + +//Kivan's Viconia scene// + +INTERJECT VICONI 0 P#KivanViconia +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @37 +END +++ @38 EXTERN P#KIVJ KiVicRes1 +++ @39 EXTERN P#KIVJ KiVicRes2 +++ @40 EXTERN P#KIVJ KiVicRes3 +++ @41 EXTERN P#KIVJ KiVicRes4 +++ @42 EXTERN P#KIVJ KiVicRes5 +++ @43 EXTERN P#KIVJ KiVicRes5 + +//Interjections + +//Suldanessellar + +I_C_T HELLJON 7 P#KivanHellJon +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @44 +END + +I_C_T HELLJON 8 P#KivanHellJon +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @44 +END + +I_C_T HELLJON 9 P#KivanHellJon +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @44 +END + +I_C_T HELLJON 10 P#KivanHellJon +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @44 +END + +I_C_T SUAVATAR 6 P#KivanAvatarWonder3 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @45 +END + +I_C_T SUAVATAR 0 P#KivanAvatarWonder2 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @46 +END + +I_C_T2 SUDEMIN 42 P#KivanAvatarWonder1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @47 +END + +//Trademeet + +EXTEND_BOTTOM TRGYP02 2 +IF ~!InPartySlot(LastTalkedToBy,0) + Name("P#KIVAN",LastTalkedToBy)~ THEN GOTO P#KivanFortune +END + +APPEND TRGYP02 +IF ~~ THEN BEGIN P#KivanFortune +SAY @48 +IF ~~ THEN EXTERN P#KIVJ P#KivanFortune1 +END +END + +APPEND P#KIVJ + IF ~~ THEN BEGIN P#KivanFortune1 + SAY @49 + IF ~~ THEN EXIT + END +END + +I_C_T2 TRGYP02 12 P#KivanGypsyCharname +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @50 +END + +I_C_T2 TRGYP02 8 P#KivanGypsyCharname +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @50 +END + +I_C_T2 CERND 6 P#KivanRangerComment +== CERND IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @51 +END + +//Temple District + +I_C_T2 RIFTM01 24 P#KivanRift +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @52 +== RIFTM01 IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @53 +END + +I_C_T2 HAERDA 109 P#KivanHDCharmed +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @54 +END + +//Bridge District + +I_C_T2 PBHUNT01 5 P#KivanNobleFools +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @55 +== PBHUNT01 IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @56 +END + +ADD_TRANS_ACTION BOUNHA BEGIN 5 END BEGIN +END +~SetGlobal("P#RaelisArrested","GLOBAL",1)~ + +ADD_TRANS_ACTION BOUNHA BEGIN 6 END BEGIN +END +~SetGlobal("P#RaelisArrested","GLOBAL",1)~ + +APPEND P#KIVJ + +IF WEIGHT #990 +~Global("P#KivanDrowReversal","GLOBAL",1)~ THEN BEGIN KivanNoDrow +SAY @659 +IF ~~ THEN DO ~SetGlobal("P#KivanDrowReversal","GLOBAL",2)~ EXIT +END + +IF WEIGHT #990 +~Global("P#KivanSulLiberated","GLOBAL",1)~ THEN BEGIN KivanSulLiberated +SAY @57 +IF ~~ THEN DO ~SetGlobal("P#KivanSulLiberated","GLOBAL",2)~ EXIT +END + + +IF WEIGHT #990 +~Global("P#KivanKilledDragon","GLOBAL",1)~ THEN BEGIN KivanFirkraag +SAY @58 +++ @59 DO ~SetGlobal("P#KivanKilledDragon","GLOBAL",2)~ + KivanDragon1.1 +++ @60 DO ~SetGlobal("P#KivanKilledDragon","GLOBAL",2)~ + KivanDragon1.2 +++ @61 DO ~SetGlobal("P#KivanKilledDragon","GLOBAL",2)~ + KivanDragon1.3 +END + +IF ~~ KivanDragon1.1 +SAY @62 +IF ~~ THEN EXIT +END + +IF ~~ KivanDragon1.2 +SAY @63 +IF ~~ THEN EXIT +END + +IF ~~ KivanDragon1.3 +SAY @64 +IF ~~ THEN EXIT +END + +IF WEIGHT #990 +~Global("P#RaelisArrested","GLOBAL",2)~ THEN BEGIN KivanRaelis +SAY @65 +++ @66 DO ~SetGlobal("P#RaelisArrested","GLOBAL",3)~ + KiRaelis1.1 +++ @67 DO ~SetGlobal("P#RaelisArrested","GLOBAL",3)~ + KiRaelis1.2 +++ @68 DO ~SetGlobal("P#RaelisArrested","GLOBAL",3)~ + KiRaelis1.3 +++ @69 DO ~SetGlobal("P#RaelisArrested","GLOBAL",3)~ + KiRaelis1.4 +END + +IF ~~ KiRaelis1.5 +SAY @70 +IF ~~ THEN EXIT +END + +IF ~~ KiRaelis1.4 +SAY @71 +++ @72 + KiRaelis1.5 +++ @73 + KiRaelis1.5 +++ @74 + KiRaelis1.3 +END + +IF ~~ KiRaelis1.3 +SAY @75 +IF ~~ THEN EXIT +END + +IF ~~ KiRaelis1.2 +SAY @76 +++ @72 + KiRaelis1.5 +++ @77 + KiRaelis1.5 +++ @74 + KiRaelis1.3 +END + +IF ~~ KiRaelis1.1 +SAY @78 +++ @79 + KiRaelis1.5 +++ @72 + KiRaelis1.5 +++ @80 + KiRaelis1.5 +++ @74 + KiRaelis1.3 +END + +END + +I_C_T2 INSPECT 29 P#KivanLeuitenant +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @81 +END + +INTERJECT TANWIZ1 1 P#KivanVellin +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @82 +END +++ @83 EXTERN P#KIVJ P#KiTanner1.1 +++ @84 EXTERN P#KIVJ P#KiTanner1.2 +++ @85 EXTERN P#KIVJ P#KiTanner1.3 + +INTERJECT TANWIZ1 2 P#KivanVellin +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @82 +END +++ @83 EXTERN P#KIVJ P#KiTanner1.1 +++ @86 EXTERN P#KIVJ P#KiTanner1.2 +++ @85 EXTERN P#KIVJ P#KiTanner1.3 + +INTERJECT TANWIZ1 3 P#KivanVellin +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @82 +END +++ @83 EXTERN P#KIVJ P#KiTanner1.1 +++ @86 EXTERN P#KIVJ P#KiTanner1.2 +++ @85 EXTERN P#KIVJ P#KiTanner1.3 + +INTERJECT TANWIZ1 4 P#KivanVellin +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @82 +END +++ @83 EXTERN P#KIVJ P#KiTanner1.1 +++ @86 EXTERN P#KIVJ P#KiTanner1.2 +++ @85 EXTERN P#KIVJ P#KiTanner1.3 + +APPEND P#KIVJ + +IF ~~ P#KiTanner1.1 +SAY @87 +IF ~~ THEN DO ~ChangeEnemyAlly("P#Kivan",ALLY) +ActionOverride("tanwiz1",Enemy()) +~ UNSOLVED_JOURNAL @88 EXIT +END + +IF ~~ P#KiTanner1.2 +SAY @89 +IF ~~ THEN DO ~ChangeEnemyAlly("P#Kivan",ALLY) +ActionOverride("tanwiz1",Enemy()) +~ UNSOLVED_JOURNAL @88 EXIT +END + +IF ~~ P#KiTanner1.3 +SAY @90 +IF ~~ THEN DO ~ChangeEnemyAlly("P#Kivan",ALLY) +ActionOverride("tanwiz1",Enemy()) +~ UNSOLVED_JOURNAL @88 EXIT +END + +END + + +I_C_T2 AMSI 6 P#KivanAmsin +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @91 +END + +I_C_T2 AMSI 7 P#KivanAmsin +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @91 +END + +I_C_T2 ELGEA 6 P#KivanElgea +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @92 +DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ +END + +I_C_T2 ELGEA 7 P#KivanElgea +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @92 +DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ +END + +I_C_T2 ELGEA 4 P#KivanElgea1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @93 +END + +//Exit from Underdark + +ADD_TRANS_ACTION DRELLE BEGIN 8 END BEGIN +END +~SetGlobal("P#KivanElleDream","GLOBAL",1)~ + +I_C_T2 C6ELHAN2 8 P#KivanElhan +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") Race(Player1,ELF)~ THEN @94 +== C6ELHAN2 IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") Race(Player1,ELF)~ THEN @95 +END + +I_C_T2 C6ELHAN2 8 P#KivanElhan +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") !Race(Player1,ELF)~ THEN @96 +== C6ELHAN2 IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") Race(Player1,ELF)~ THEN @97 +END + +//Ust-Natha and Underdark + +INTERJECT DADROW21 4 P#KivanDrowNight +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN") Gender(Player1,FEMALE) Global("P#KivanRomanceActive","GLOBAL",1) !Global("P#KivanRomanceInactive","GLOBAL",1) ~ THEN @98 +END +++ @99 EXTERN P#KIVJ P#KiDroNi1.1 +++ @100 EXTERN P#KIVJ P#KiDroNi1.2 +++ @101 EXTERN P#KIVJ P#KiDroNi1.3 +++ @102 EXTERN P#KIVJ P#KiDroNi1.4 + +APPEND P#KIVJ + +IF ~~ P#KiDroNi1.1 +SAY @103 +COPY_TRANS DADROW21 4 +END + +END + +CHAIN P#KIVJ P#KiDroNi1.4 +@104 += @105 +== DADROW21 @106 +COPY_TRANS DADROW21 3 + +CHAIN P#KIVJ P#KiDroNi1.3 +@107 +== DADROW21 @106 +COPY_TRANS DADROW21 3 + + +CHAIN P#KIVJ P#KiDroNi1.2 +@108 +== DADROW21 @109 +COPY_TRANS DADROW21 4 + + +I_C_T2 DAABOL 28 P#KivanAboleth +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @110 +END + + +INTERJECT UDSILVER 34 P#KivanAdalon4 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @111 +END +++ @112 EXTERN P#KIVJ P#KiDra1.1 +++ @113 EXTERN P#KIVJ P#KiDra1.2 +++ @114 EXTERN P#KIVJ P#KiDra1.3 ++ ~Gender(Player1,FEMALE)~ + @115 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ EXTERN P#KIVJ P#KiDra1.4 + +APPEND P#KIVJ + +IF ~~ P#KiDra1.1 +SAY @116 +COPY_TRANS UDSILVER 34 +END + +IF ~~ P#KiDra1.2 +SAY @117 += @118 +COPY_TRANS UDSILVER 34 +END + +IF ~~ P#KiDra1.3 +SAY @119 +COPY_TRANS UDSILVER 34 +END + +IF ~~ P#KiDra1.4 +SAY @120 += @121 +COPY_TRANS UDSILVER 34 +END + +END + +I_C_T2 UDSILVER 15 P#KivanAdalon2 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @122 +END + +I_C_T2 UDSILVER 12 P#KivanAdalon1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @123 +END + +ADD_TRANS_ACTION DADROW3 BEGIN 0 END BEGIN +END +~RealSetGlobalTimer("P#KivanSpeakUstNatha","GLOBAL",10)~ + +ADD_TRANS_ACTION UDSOLA01 BEGIN 0 END BEGIN +END +~RealSetGlobalTimer("P#KivanSpeakUstNatha","GLOBAL",10)~ + +//Brynnlaw & Spellhold + +INTERJECT YOSHIMOX 2 P#KivanYoshimoBetrayal +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @124 +END +++ @125 EXTERN YOSHIMOX YoTamoko2.1 +++ @126 EXTERN YOSHIMOX YoTamoko2.2 +++ @127 EXTERN YOSHIMOX YoTamoko2.3 + +APPEND YOSHIMOX + +IF ~~ YoTamoko2.1 +SAY @128 +COPY_TRANS YOSHIMOX 2 +END + +IF ~~ YoTamoko2.2 +SAY @129 +COPY_TRANS YOSHIMOX 2 +END + +IF ~~ YoTamoko2.3 +SAY @130 +COPY_TRANS YOSHIMOX 2 +END + +END + +INTERJECT YOSHIMOX 13 P#KivanYoshimoBetrayal +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @124 +END +++ @125 EXTERN YOSHIMOX YoTamoko1.1 +++ @126 EXTERN YOSHIMOX YoTamoko1.2 +++ @127 EXTERN YOSHIMOX YoTamoko1.3 + +APPEND YOSHIMOX + +IF ~~ YoTamoko1.1 +SAY @128 +COPY_TRANS YOSHIMOX 13 +END + +IF ~~ YoTamoko1.2 +SAY @129 +COPY_TRANS YOSHIMOX 13 +END + +IF ~~ YoTamoko1.3 +SAY @130 +COPY_TRANS YOSHIMOX 13 +END + +END + +I_C_T2 PPSAEM2 20 P#KivanSaemonAfter1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @131 +END + +I_C_T2 PPIRENI2 39 P#KivanNotOver +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @132 +END + +I_C_T ELEARB10 2 P#KivanAparition1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @133 +END + +I_C_T2 PPNALJ 6 P#KivanNaljier +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @134 +END + +I_C_T2 PPDRADEE 3 P#Dradeel1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @135 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") Global("P#KivanImoenMad1","GLOBAL",1)~ THEN @136 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN")~ THEN @137 +END + +//Imoen dismissed// + +INTERJECT IMOEN2 24 P#KivanImoenDismissed +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @138 +END +++ @139 DO ~GiveGoldForce(-1000)~ EXTERN IMOEN2 ImMon1.1 +++ @140 EXTERN P#KIVJ ImMon1.2 +++ @141 EXTERN P#KIVJ ImMon1.3 + +APPEND P#KIVJ + +IF ~~ ImMon1.3 +SAY @142 +COPY_TRANS IMOEN2 24 +END + +IF ~~ ImMon1.2 +SAY @143 +COPY_TRANS IMOEN2 24 +END + +END + +APPEND IMOEN2 + +IF ~~ ImMon1.1 +SAY @144 +COPY_TRANS IMOEN2 24 +END + +END + +INTERJECT PPIMOEN 2 P#KivanImoenMad1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @145 +END +++ @146 EXTERN P#KIVJ P#KiIMSp1.1 +++ @147 EXTERN P#KIVJ P#KiIMSp1.2 +++ @148 EXTERN P#KIVJ P#KiIMSp1.3 +++ @149 EXTERN P#KIVJ P#KiIMSp1.4 +++ @150 EXTERN P#KIVJ P#KiIMSp1.5 +++ @151 EXTERN P#KIVJ P#KiIMSp1.5 + +APPEND P#KIVJ + +IF ~~ P#KiIMSp1.5 +SAY @152 +COPY_TRANS PPIMOEN 2 +END + +IF ~~ P#KiIMSp1.4 +SAY @153 +COPY_TRANS PPIMOEN 2 +END + +IF ~~ P#KiIMSp1.3 +SAY @154 +COPY_TRANS PPIMOEN 2 +END + +IF ~~ P#KiIMSp1.2 +SAY @155 +COPY_TRANS PPIMOEN 2 +END + +IF ~~ P#KiIMSp1.1 +SAY @156 +COPY_TRANS PPIMOEN 2 +END + +IF ~Global("P#KivanSeesAphril","GLOBAL",1)~ THEN BEGIN P#KivanSeesAphril +SAY @663 +IF ~~ THEN DO ~SetGlobal("P#KivanSeesAphril","GLOBAL",2)~ EXIT +END + +END + +I_C_T2 PPDUEL2 2 P#KivanMinscBrynnlaw1 +== MINSCJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") InParty("minsc") !Dead("minsc") +!StateCheck("minsc",STATE_SLEEPING)~ THEN @157 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") InParty("minsc") !Dead("minsc") +!StateCheck("minsc",STATE_SLEEPING)~ THEN @158 +== MINSCJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") InParty("minsc") !Dead("minsc") +!StateCheck("minsc",STATE_SLEEPING)~ THEN @159 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") InParty("minsc") !Dead("minsc") +!StateCheck("minsc",STATE_SLEEPING)~ THEN @160 +== MINSCJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") InParty("minsc") !Dead("minsc") +!StateCheck("minsc",STATE_SLEEPING)~ THEN @161 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") InParty("minsc") !Dead("minsc") +!StateCheck("minsc",STATE_SLEEPING)~ THEN @162 +END + +I_C_T PPSAEM 58 P#KivanSaemonAranArrival1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @163 +END + +I_C_T HAERDAJ 105 P#KivanSaemonBodhiArrival1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @164 +END + +I_C_T2 PPSAEM 14 P#KivanSaemonBodhiArrival2 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @165 +END + +I_C_T2 PPSAEM 19 P#KivanSaemonBodhiArrival3 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @166 +END + +I_C_T2 PPSAEM 32 P#KivanSaemonBodhiArrival4 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") +OR(3) !InParty("haerdalis") Dead("haerdalis") +!StateCheck("haerdalis",STATE_SLEEPING) ~ THEN @167 +END + +//Graveyard + +I_C_T2 C6DRIZZ2 2 P#KivanDrizztHelped +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @168 +END + +I_C_T2 BODHIAMB 5 P#KivanBodhiAbduction +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @169 +END + +I_C_T C6BODHI 20 P#KivanBodhiLastMeeting +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @170 +== C6BODHI IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @171 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @172 +== C6BODHI IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @173 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @174 +== C6BODHI IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @175 +END + +I_C_T2 SPPAIN 18 P#KivanPaiNA1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @176 +END + +I_C_T2 SPPAIN 25 P#KivanPaiNA2 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @176 +END + +I_C_T2 ARENTHIS 16 P#KivanArenthis +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @177 +== ANOMENJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") +InParty("anomen") !Dead("anomen") +!StateCheck("anomen",STATE_SLEEPING) !Alignment("Anomen",CHAOTIC_NEUTRAL) +~ THEN @178 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") +InParty("anomen") !Dead("anomen") +!StateCheck("anomen",STATE_SLEEPING) !Alignment("Anomen",CHAOTIC_NEUTRAL) +~ THEN @179 +END + +I_C_T2 WELLYN 8 P#KivanWellyn1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN")~ THEN @180 +== MINSCJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") +InParty("minsc") !Dead("minsc") +!StateCheck("minsc",STATE_SLEEPING) ~ THEN @181 +END + +I_C_T2 BODHI 77 P#KivanBodhiOffer7 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @182 +END + +I_C_T2 BODHI 50 P#KivanBodhiOffer6 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @183 +DO ~IncrementGlobal("P#KivanOffence","GLOBAL",2)~ +END + +I_C_T2 BODHI 49 P#KivanBodhiOffer5 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @184 +END + +I_C_T2 BODHI 45 P#KivanBodhiOffer4 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @185 +END + +I_C_T2 BODHI 114 P#KivanBodhiOffer3 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN")~ THEN @186 +END + +I_C_T2 BODHI 18 P#KivanBodhiOffer2 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN")~ THEN @187 +END + +I_C_T2 BODHI 21 P#KivanBodhiOffer1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN")~ THEN @188 +END + +I_C_T2 BODHI 6 P#KivanBodhiOffer +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") Global("P#TalkedAboutBodhiAran","GLOBAL",1)~ THEN @189 +END + +I_C_T2 BODHI 6 P#KivanBodhiOffer +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") !Global("P#TalkedAboutBodhiAran","GLOBAL",1)~ THEN @190 +END + +//Shadow Temple + +I_C_T2 RIGEN01 20 P#KivanIgen +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN")~ THEN @191 +== JAHEIRAJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") +InParty("jaheira") !Dead("jaheira") +!StateCheck("jaheira",STATE_SLEEPING) +~ THEN @192 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") +InParty("jaheira") !Dead("jaheira") +!StateCheck("jaheira",STATE_SLEEPING) +~ THEN @193 +END + +I_C_T2 RNGWLF03 0 P#KivanAnath +== HAERDAJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") +InParty("haerdalis") !Dead("haerdalis") +!StateCheck("haerdalis",STATE_SLEEPING)~ THEN @194 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") +InParty("haerdalis") !Dead("haerdalis") +!StateCheck("haerdalis",STATE_SLEEPING)~ THEN @195 +END + +I_C_T2 SHAAVA01 3 P#KivanTest +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN")~ THEN @196 +END + +APPEND P#KIVJ + +IF WEIGHT #990 +~Global("P#KivanAmuana","GLOBAL",1)~ THEN BEGIN P#KivanAmuana +SAY @197 ++ ~Alignment(Player1,MASK_GOOD)~ + @198 DO ~SetGlobal("P#KivanAmuana","GLOBAL",2)~ + P#KiShDra1 +++ @199 DO ~SetGlobal("P#KivanAmuana","GLOBAL",2)~ + P#KiShDra1 +++ @200 DO ~SetGlobal("P#KivanAmuana","GLOBAL",2)~ + P#KiShDra3 +++ @201 DO ~SetGlobal("P#KivanAmuana","GLOBAL",2)~ + P#KiShDra2 +++ @202 DO ~SetGlobal("P#KivanAmuana","GLOBAL",2)~ + P#KiShDra4 +++ @203 DO ~SetGlobal("P#KivanAmuana","GLOBAL",2)~ + P#KiShDra1 +END + +IF ~~ P#KiShDra1 +SAY @204 +IF ~~ THEN EXIT +END + +IF ~~ P#KiShDra2 +SAY @205 +IF ~~ THEN EXIT +END + +IF ~~ P#KiShDra3 +SAY @206 +IF ~~ THEN EXIT +END + +IF ~~ P#KiShDra4 +SAY @207 +IF ~~ THEN EXIT +END + +END + + +//Imnesvale + +//Madulf + +INTERJECT UHOGRE01 0 P#KivanMadulf1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @208 +END +++ @209 EXTERN P#KIVJ KIOGR1.1 +++ @210 EXTERN P#KIVJ KIOGR1.2 +++ @211 EXTERN P#KIVJ KIOGR1.3 +++ @212 EXTERN P#KIVJ KIOGR1.4 + +APPEND P#KIVJ + +IF ~~ KIOGR1.1 +SAY @213 +COPY_TRANS UHOGRE01 0 +END + +IF ~~ KIOGR1.2 +SAY @214 += @215 +COPY_TRANS UHOGRE01 0 +END + +IF ~~ KIOGR1.3 +SAY @216 += @215 +COPY_TRANS UHOGRE01 0 +END + +IF ~~ KIOGR1.4 +SAY @217 += @215 +COPY_TRANS UHOGRE01 0 +END + +END + +I_C_T2 UHOGRE01 10 P#KivanMadulf2 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") Global("P#KivanMadulf1","GLOBAL",1) ~ THEN @218 += @219 += @220 +== CERNDJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") +InParty("cernd") !Dead("cernd") +!StateCheck("cernd",STATE_SLEEPING)~ THEN @221 +END + +I_C_T VALYGAR 5 P#KivanValIntro +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") +!Global("RangerProtector","GLOBAL",1)~ THEN @222 +END + +I_C_T VALYGAR 5 P#KivanValIntro +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") +Global("RangerProtector","GLOBAL",1)~ THEN @223 +END + +I_C_T2 UHMAY01 60 P#KivanMayor2 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN")~ THEN @224 +== UHMAY01 @225 +== P#KIVJ @226 +== UHMAY01 @227 +END + +I_C_T2 UHMAY01 34 P#KivanRangerStronghold +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") Global("P#RangerWantsHold","GLOBAL",1)~ THEN @228 +END + +I_C_T2 UHMAY01 34 P#KivanRangerStronghold +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") !Global("P#RangerWantsHold","GLOBAL",1)~ THEN @229 +END + +I_C_T UHMAY01 19 P#KivanMayor1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @230 +END + +I_C_T JUGDAR01 4 P#KivanDaar1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN")~ THEN @231 +END + +//In merella's cabin// + +APPEND P#KIVJ + +IF WEIGHT #990 +~Global("P#KivanCabin","GLOBAL",1)~ THEN BEGIN P#KivanCabin +SAY @232 +IF ~~ THEN DO ~SetGlobal("P#KivanCabin","GLOBAL",2)~ EXIT +END + +END + +//De'Arnise Keep + +ADD_TRANS_ACTION DALESON BEGIN 10 23 45 END BEGIN +END +~SetGlobal("P#KivanFlailOA","GLOBAL",1)~ + +//Dog's Stew// + +CHAIN +IF WEIGHT #990 +~Global("P#KivanDogStew","GLOBAL",1)~ THEN P#KIVJ KIAerieDogStew +@233 +DO ~SetGlobal("P#KivanDogStew","GLOBAL",2)~ +== BAERIE @234 +== P#KIVJ @235 +== BAERIE @236 +== P#KIVJ @237 +== BAERIE @238 +EXIT + +APPEND P#KIVJ + +//Bow of Elven Court// + +IF WEIGHT #990 +~Global("P#KivanCoolBow","GLOBAL",1)~ THEN BEGIN P#KivanCoolBow +SAY @239 +IF ~~ THEN DO ~SetGlobal("P#KivanCoolBow","GLOBAL",2)~ EXIT +END + +IF WEIGHT #990 +~Global("P#KivanFlailOA","GLOBAL",2)~ THEN BEGIN P#KivanFlailOA +SAY @240 +IF ~PartyHasItem("BLUN14I")~ THEN DO ~SetGlobal("P#KivanFlailOA","GLOBAL",3)~ GOTO P#KivanFlailOAAcid +IF ~PartyHasItem("BLUN14H")~ THEN DO ~SetGlobal("P#KivanFlailOA","GLOBAL",3)~ GOTO P#KivanFlailOAFire +IF ~PartyHasItem("BLUN14G")~ THEN DO ~SetGlobal("P#KivanFlailOA","GLOBAL",3)~ GOTO P#KivanFlailOACold +END + +IF ~~ P#KivanFlailOAAcid +SAY @241 +IF ~~ THEN EXIT +END + +IF ~~ P#KivanFlailOAFire +SAY @242 +IF ~~ THEN EXIT +END + +IF ~~ P#KivanFlailOACold +SAY @243 +IF ~~ THEN EXIT +END + +END + + +INTERJECT DALESON 9 P#KivanDaleson1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @244 +END +++ @245 DO ~SetGlobal("P#KivanDaleson1","GLOBAL",1)~ EXTERN P#KIVJ KiDaleson1.1 +++ @246 DO ~SetGlobal("P#KivanDaleson1","GLOBAL",1)~ EXTERN P#KIVJ KiDaleson1.2 +++ @247 DO ~SetGlobal("P#KivanDaleson1","GLOBAL",1)~ EXTERN P#KIVJ KiDaleson1.3 +++ @248 DO ~SetGlobal("P#KivanDaleson1","GLOBAL",1)~ EXTERN P#KIVJ KiDaleson1.4 + +INTERJECT DALESON 12 P#KivanDaleson1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @244 +END +++ @245 DO ~SetGlobal("P#KivanDaleson1","GLOBAL",1)~ EXTERN P#KIVJ KiDaleson2.1 +++ @246 DO ~SetGlobal("P#KivanDaleson1","GLOBAL",1)~ EXTERN P#KIVJ KiDaleson2.2 +++ @247 DO ~SetGlobal("P#KivanDaleson1","GLOBAL",1)~ EXTERN P#KIVJ KiDaleson2.3 +++ @248 DO ~SetGlobal("P#KivanDaleson1","GLOBAL",1)~ EXTERN P#KIVJ KiDaleson2.4 + +INTERJECT DALESON 24 P#KivanDaleson1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @244 +END +++ @245 DO ~SetGlobal("P#KivanDaleson1","GLOBAL",1)~ EXTERN P#KIVJ KiDaleson3.1 +++ @246 DO ~SetGlobal("P#KivanDaleson1","GLOBAL",1)~ EXTERN P#KIVJ KiDaleson3.2 +++ @247 DO ~SetGlobal("P#KivanDaleson1","GLOBAL",1)~ EXTERN P#KIVJ KiDaleson3.3 +++ @248 DO ~SetGlobal("P#KivanDaleson1","GLOBAL",1)~ EXTERN P#KIVJ KiDaleson3.4 + +APPEND P#KIVJ + +IF ~~ KiDaleson1.1 +SAY @249 +COPY_TRANS DALESON 9 +END + +IF ~~ KiDaleson1.2 +SAY @250 +COPY_TRANS DALESON 9 +END + +IF ~~ KiDaleson1.3 +SAY @251 +COPY_TRANS DALESON 9 +END + +IF ~~ KiDaleson1.4 +SAY @252 +COPY_TRANS DALESON 9 +END + +IF ~~ KiDaleson2.1 +SAY @249 +COPY_TRANS DALESON 12 +END + +IF ~~ KiDaleson2.2 +SAY @250 +COPY_TRANS DALESON 12 +END + +IF ~~ KiDaleson2.3 +SAY @253 +COPY_TRANS DALESON 12 +END + +IF ~~ KiDaleson2.4 +SAY @252 +COPY_TRANS DALESON 12 +END + +IF ~~ KiDaleson3.1 +SAY @249 +COPY_TRANS DALESON 24 +END + +IF ~~ KiDaleson3.2 +SAY @250 +COPY_TRANS DALESON 24 +END + +IF ~~ KiDaleson3.3 +SAY @253 +COPY_TRANS DALESON 24 +END + +IF ~~ KiDaleson3.4 +SAY @252 +COPY_TRANS DALESON 24 +END + +END + +//AR0300 == Docks// + +I_C_T EDWIN 34 P#KivanRenalJob2 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @254 +== EDWIN IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @255 +END + +I_C_T2 RENAL 23 P#KivanRenalJob1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @256 +END + +I_C_T2 RENAL 44 P#KivanRenalJob1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @256 +END + +ADD_TRANS_ACTION LASSAL BEGIN 4 END BEGIN END ~SetGlobal("P#LassalCurse","GLOBAL",1)~ + +APPEND P#KIVJ + +IF WEIGHT #990 +~Global("P#KivanLassal","GLOBAL",1)~ THEN BEGIN KivanLassalDeath +SAY @257 +++ @258 DO ~SetGlobal("P#KivanLassal","GLOBAL",2)~ + KiLassalDead1.1 ++ ~Gender(Player1,FEMALE)~ + @259 DO ~SetGlobal("P#KivanLassal","GLOBAL",2)~ + KiLassalDead1.2 +++ @260 DO ~SetGlobal("P#KivanLassal","GLOBAL",2)~ + KiLassalDead1.3 +++ @261 DO ~SetGlobal("P#KivanLassal","GLOBAL",2)~ + KiLassalDead1.1 +++ @262 DO ~SetGlobal("P#KivanLassal","GLOBAL",2)~ + KiLassalDead1.4 +END + +IF ~~ KiLassalDead1.1 +SAY @263 +IF ~~ THEN EXIT +END + +IF ~~ KiLassalDead1.3 +SAY @264 +IF ~~ THEN EXIT +END + +IF ~~ KiLassalDead1.4 +SAY @265 +IF ~~ THEN GOTO KiLassalDead1.3 +END + +IF ~~ KiLassalDead1.5 +SAY @266 +IF ~~ THEN EXIT +END + +IF ~~ KiLassalDead1.6 +SAY @267 +IF ~~ THEN EXIT +END + +IF ~~ KiLassalDead1.7 +SAY @268 +IF ~~ THEN EXIT +END + +IF ~~ KiLassalDead1.2 +SAY @269 +++ @270 + KiLassalDead1.6 +++ @271 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KiLassalDead1.7 +++ @272 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~+ KiLassalDead1.5 +END + +END + +I_C_T2 ARAN 14 P#KivanAranJob3 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @273 +END + +I_C_T2 ARAN 20 P#KivanAranJob2 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @274 +END + +I_C_T ARAN 4 P#KivanAranJob1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") Global("P#KivanAranTorture","GLOBAL",1)~ THEN @275 +== ARAN IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") Global("P#KivanAranTorture","GLOBAL",1)~ THEN @276 +END + +INTERJECT ARNMAN07 2 P#KivanAranTorture +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @277 +END +++ @278 EXTERN P#KIVJ P#KiArTo1.1 +++ @279 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1)~ EXTERN P#KIVJ P#KiArTo1.2 +++ @280 EXTERN P#KIVJ P#KiArTo1.3 +++ @281 EXTERN P#KIVJ P#KiArTo1.4 ++ ~Gender(Player1,FEMALE)~ + @282 EXTERN P#KIVJ P#KiArTo1.5 + +APPEND P#KIVJ + +IF ~~ P#KiArTo1.5 +SAY @283 +COPY_TRANS ARNMAN07 2 +END + +IF ~~ P#KiArTo1.4 +SAY @284 +COPY_TRANS ARNMAN07 2 +END + +IF ~~ P#KiArTo1.3 +SAY @285 +COPY_TRANS ARNMAN07 2 +END + +IF ~~ P#KiArTo1.2 +SAY @286 +COPY_TRANS ARNMAN07 2 +END + +IF ~~ P#KiArTo1.1 +SAY @287 +COPY_TRANS ARNMAN07 2 +END + +END + +I_C_T2 JAHEIRAJ 364 P#KivanJaheiraMitsu +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") +InParty("jaheira") !Dead("jaheira") +!StateCheck("jaheira",STATE_SLEEPING) + ~ THEN @288 +== JAHEIRAJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") +InParty("jaheira") !Dead("jaheira") +!StateCheck("jaheira",STATE_SLEEPING) +~ THEN @289 +END + +I_C_T2 ARNMAN05 6 P#KivanArchon +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @290 +END + + +I_C_T ARNWAR08 3 P#KivanTizzane +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @291 +== ARNWAR08 IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @292 +END + +////Everything above is proofread additonally in Jan 2006// + +////Everything below is proofread additonally in Jan 2006// + +I_C_T2 ANOMENJ 199 P#KivanBooterAnomen +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @293 +== ANOMENJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @294 +END + +I_C_T2 BOOTER 3 P#KivanBooter2 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @295 +END + +I_C_T2 BOOTER02 0 P#KivanBooter1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @296 +END + +I_C_T2 MAEVAR 42 P#KivanMaeVarKill +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") ~ THEN @658 +END + +APPEND CELVAN + +IF WEIGHT #0 +~See("P#KIVAN") +InParty("P#KIVAN") +InMyArea("P#KIVAN") +RandomNum(2,1) +Global("P#KivanCelvan","AR0300",0) +~ THEN BEGIN P#KivanCelvanusLimerick + SAY @297 + IF ~~ THEN DO ~SetGlobal("P#KivanCelvan","AR0300",1)~ EXTERN ~P#KIVJ~ P#KivanCelvanusLimerick1 +END + +END + +APPEND P#KIVJ + +IF ~~ THEN BEGIN P#KivanCelvanusLimerick1 + SAY @298 + IF ~~ THEN EXTERN ~CELVAN~ 1 +END + +END + +INTERJECT HERVO 12 P#KivanHervo1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN") Global("P#KivanTolger1","GLOBAL",1)~ THEN @299 +END +++ @300 EXTERN P#KIVJ KiHervo1.1 +++ @301 EXTERN P#KIVJ KiHervo1.2 +++ @302 EXTERN P#KIVJ KiHervo1.3 +++ @303 EXTERN P#KIVJ KiHervo1.4 +++ @304 EXTERN P#KIVJ KiHervo1.5 +++ @305 EXTERN P#KIVJ KiHervo1.6 ++ ~GlobalLT("Chapter","GLOBAL",%bg2_chapter_3%)~+ @306 EXTERN P#KIVJ KiHervo1.7 + + + +APPEND P#KIVJ + +IF ~~ KiHervo1.1 +SAY @307 +COPY_TRANS HERVO 12 +END + +IF ~~ KiHervo1.2 +SAY @308 +COPY_TRANS HERVO 12 +END + +IF ~~ KiHervo1.3 +SAY @309 +COPY_TRANS HERVO 12 +END + +IF ~~ KiHervo1.4 +SAY @310 +COPY_TRANS HERVO 12 +END + +IF ~~ KiHervo1.5 +SAY @311 +COPY_TRANS HERVO 12 +END + +IF ~~ KiHervo1.6 +SAY @312 +COPY_TRANS HERVO 12 +END + +IF ~~ KiHervo1.7 +SAY @313 +COPY_TRANS HERVO 12 +END + +END + +I_C_T2 DCLERIC 0 P#KivanCyricPriest1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN")~ THEN @314 +END + +I_C_T2 DCLERIC 4 P#KivanCyricPriest2 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") !Alignment(Player1,MASK_EVIL) OR(3) !InParty("aerie") +Dead("aerie") +StateCheck("aerie",STATE_SLEEPING)~ THEN @315 +END + +//lyros is actually Xzar// + +I_C_T LYROS 16 P#KivanXzar2 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN")~ THEN @316 +END + +I_C_T LYROS 11 P#KivanXzar1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") Global("P#KivanCyricPriest1","GLOBAL",1)~ THEN @317 +END + +I_C_T2 RYLOCK 19 P#KivanRylock1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN")~ THEN @318 +END + +//AR1000 - Governement// + +I_C_T2 TOLGER 8 P#KivanTolger1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") OR(2) Alignment(Player1,LAWFUL_GOOD) Alignment(Player1,LAWFUL_NEUTRAL)~ THEN @319 +END + +I_C_T2 DELON 6 P#KivanDelon1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN")~ THEN @320 +END + +//Viconia's fun// + +I_C_T2 VICONI 2 P#KivanViconiaJoin +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN")~ THEN @321 +END + +I_C_T2 VICONI 23 P#KivanViconiaJoinAerie +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN") Global("P#KivanViconiaJoin","GLOBAL",1)~ THEN @322 +END + +APPEND P#KIVJ + +IF ~~ KiVicRes1 +SAY @323 +COPY_TRANS VICONI 0 +END + +IF ~~ KiVicRes2 +SAY @324 +COPY_TRANS VICONI 0 +END + +IF ~~ KiVicRes3 +SAY @325 += @326 +COPY_TRANS VICONI 0 +END + +IF ~~ KiVicRes4 +SAY @327 +COPY_TRANS VICONI 0 +END + +IF ~~ KiVicRes5 +SAY @328 +COPY_TRANS VICONI 0 +END + +IF ~~ KivanKillViconia +SAY @329 +IF ~~ THEN DO ~DialogueInterrupt(FALSE) +SetGlobal("ViconiaDeath","AR1000",1) +TriggerActivation("ViconiaStake",FALSE) +ActionOverride("P#Kivan",JumpToPoint([1884.1079])) +ActionOverride("P#Kivan",EquipMostDamagingMelee()) +ActionOverride("P#Kivan",Attack("viconia") +Wait(1) +ActionOverride("Viconia",Kill(Myself))~ EXIT +END +END + +EXTEND_BOTTOM VICONI 11 +IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN EXTERN P#KIVJ KivanKillViconia +END + + +//AR0700 == Wakeen's Promenade// + +I_C_T2 BOY1 1 P#KivanGiran +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN")~ THEN @330 +END + +I_C_T2 TOUR1 5 P#KivanHarrold +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN")~ THEN @331 += @332 +END + +I_C_T2 CIRCG1 2 P#KivanCircusGuard1 +== P#KIVJ IF ~InParty("P#kivan") !Dead("P#kivan") +InMyArea("P#KIVAN")~ THEN @333 +END + +I_C_T2 BOY1 4 P#KivanGiran3 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @334 +END + +I_C_T2 CIRCG1 3 P#KivanCircusGuard2 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @335 +END + +I_C_T2 TRAINER1 4 X#KivanFearghus +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @336 +== TRAINER1 IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @337 +END + +I_C_T2 GENIE1 7 P#KivanCircusGenie1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @338 +== GENIE1 IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @339 +END + +I_C_T2 AERIE 29 P#KivanAerie1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @340 +END + +I_C_T2 AERIE 1 P#KivanAerie3 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @341 +== AERIE IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @342 +END + +I_C_T2 KSLAVE01 0 P#KivanSlave +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN") InParty("aerie") !Dead("aerie")~ THEN @343 +== AERIEJ IF ~InParty("P#kivan") InMyArea("P#KIVAN") InParty("aerie") !Dead("aerie")~ THEN @344 +END + +I_C_T2 KALAH 2 P#KivanKalah1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @345 +END + +I_C_T2 KALAH 4 P#KivanKalah2 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @345 +END + +I_C_T2 KALAH2 6 P#KivanKalah3 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @346 +END + +I_C_T QUAYLE 0 P#KivanQuayle1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @347 +== QUAYLE IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @348 +END + +I_C_T QUAYLE 10 P#KivanQuayle2 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @347 +== QUAYLE IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @348 +END + +I_C_T2 AERIEJ 3 P#KivanAerieQuayleDead +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @349 +END + +//Slums and Planar Sphere + +I_C_T2 VALYGARJ 113 P#KivanValygarJoins1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @662 +END + +I_C_T2 VALYGARJ 114 P#KivanValygarJoins1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @662 +END + +I_C_T2 OBSSOL01 10 P#KivanReyna +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @660 +END + +I_C_T2 TOLGER2 0 P#KivanTolgeriasBetrayed +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @661 +END + +I_C_T2 GAELAN 3 P#KivanGaelan2 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @350 +END + +I_C_T2 GAELAN 4 P#KivanGaelan3 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @351 +END + +I_C_T2 GAELAN 13 P#KivanGaelan4 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @352 +END + +I_C_T2 GAELAN 25 P#KivanGaelan5 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @353 +END + +I_C_T2 ANOMEN 0 P#KivanAnomen0 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @354 +== ANOMEN IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @355 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @356 +== ANOMEN IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @357 + = @358 +END + +I_C_T2 ANOMEN 12 P#KivanAnomen1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @359 +== ANOMEN IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @355 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @356 +== ANOMEN IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @357 + = @358 +END + +I_C_T2 NALIA 2 P#KivanNalia1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @360 +END + +EXTEND_BOTTOM KORGANA 2 +IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN EXTERN P#KIVJ KivanKorganChain1 +END + +CHAIN P#KIVJ KivanKorganChain1 +@361 +== KORGANA IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @362 +DO ~SetGlobal("NoStory","GLOBAL",1)~ +EXIT + +I_C_T2 FIRKRA01 4 P#KivanFirkra +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @363 +== BANOMEN IF ~ InParty("anomen") InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @364 +== FIRKRA01 IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @365 +END + +I_C_T2 AERIEJ 24 P#KivanSalvanAerie1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @366 +== SALVANAS IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @367 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @368 +== SALVANAS IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @369 +DO ~SetGlobal("P#SalvanusMistake","GLOBAL",1)~ +END + +ADD_TRANS_ACTION SALVANAS BEGIN 20 END BEGIN +END +~SetGlobal("P#NoticedSalvanas","GLOBAL",1)~ + +ADD_TRANS_ACTION SALVANAS BEGIN 25 END BEGIN +END +~SetGlobal("P#NoticedSalvanas1","GLOBAL",1)~ + +APPEND P#KIVJ + +IF WEIGHT #990 +~Global("P#NoticedSalvanas","GLOBAL",2)~ THEN BEGIN P#KivanSalvanusReaction +SAY @370 ++ ~Global("P#KivanSalvanAerie1","GLOBAL",1)~ + @371 DO ~SetGlobal("P#NoticedSalvanas","GLOBAL",3) SetGlobal("P#NoticedSalvanas1","GLOBAL",1)~ + P#KiSaScene1.1 +++ @372 DO ~SetGlobal("P#NoticedSalvanas","GLOBAL",3) SetGlobal("P#NoticedSalvanas1","GLOBAL",1)~ + P#KiSaScene1.2 +++ @373 DO ~SetGlobal("P#NoticedSalvanas","GLOBAL",3) SetGlobal("P#NoticedSalvanas1","GLOBAL",1)~ EXIT +++ @374 DO ~SetGlobal("P#NoticedSalvanas","GLOBAL",3) SetGlobal("P#NoticedSalvanas1","GLOBAL",1)~ EXTERN SALVANAS P#KiSaScene1.3 ++ ~!Dead("coran")~ + @375 DO ~SetGlobal("P#NoticedSalvanas","GLOBAL",3) SetGlobal("P#NoticedSalvanas1","GLOBAL",1)~ + P#KiSaScene1.4 +END + +IF ~~ P#KiSaScene1.4 +SAY @376 +IF ~~ THEN EXIT +END + +IF ~~ P#KiSaScene1.1 +SAY @377 +++ @378 + P#KiSaScene1.1.1 +++ @379 + P#KiSaScene1.2 +++ @380 + P#KiSaScene1.1.1 +++ @381 + P#KiSaScene1.1.3 +++ @382 + P#KiSaScene1.1.4 +++ @383 DO ~SetGlobal("P#NoticedSalvanas","GLOBAL",2)~ EXIT +END + +IF ~~ P#KiSaScene1.1.4 +SAY @384 +IF ~~ THEN EXIT +END + +IF ~~ P#KiSaScene1.1.3 +SAY @385 +IF ~~ THEN EXIT +END + +IF ~~ P#KiSaScene1.2 +SAY @386 +IF ~~ THEN EXIT +END + +IF ~~ P#KiSaScene1.1.1 +SAY @387 +IF ~~ THEN EXIT +END + +END + +CHAIN SALVANAS P#KiSaScene1.3 +@388 +== P#KIVJ @389 +END SALVANAS 24 + +APPEND SALVANAS +IF WEIGHT #-1 ~Global("P#SalvanusMistake","GLOBAL",0) !InPartySlot(LastTalkedToBy,0) +Name("p#kivan",LastTalkedToBy)~ THEN BEGIN P#SalvKivan +SAY @390 +IF ~~ THEN DO ~SetGlobal("P#SalvanusMistake","GLOBAL",1)~ EXTERN P#KIVJ KivanSalvanasChain1 +END +END + +CHAIN P#KIVJ KivanSalvanasChain1 +@391 +== SALVANAS IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @392 += @393 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @394 +EXIT + +I_C_T2 BEAST 1 P#KivanBeastmaster +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @395 +END + +I_C_T2 BEAST 5 P#KivanBeastmaster +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @395 +END + +I_C_T2 BEAST 6 P#KivanBeastmaster +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @395 +END + +EXTEND_BOTTOM BEAST 2 +IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN EXTERN P#KIVJ KivanBeastChain1 +END + +CHAIN P#KIVJ KivanBeastChain1 +@396 +== BEAST @397 += @398 += @399 +END + IF ~~ THEN DO ~OpenDoor("DOOR19") +OpenDoor("DOOR20") +OpenDoor("DOOR21") +OpenDoor("DOOR22") +OpenDoor("DOOR23") +OpenDoor("DOOR24") +ActionOverride("Tabitha",Enemy()) +Enemy() +~ EXIT + +EXTEND_BOTTOM BEAST 4 +IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN EXTERN P#KIVJ KivanBeastChain1 +END + +EXTEND_BOTTOM BEAST 7 +IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN EXTERN P#KIVJ KivanBeastChain1 +END + +I_C_T ESCORT1 0 P#KivanEscort1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @400 +== KORGANJ IF ~InParty("korgan") InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @401 +END + +I_C_T ESCORT1 4 P#KivanEscort2 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @402 +END + +I_C_T ESCORT1 6 P#KivanEscort3 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @403 +END + +I_C_T ESCORT2 0 P#KivanEscort1 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @400 +== KORGANJ IF ~InParty("korgan") InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @401 +END + +I_C_T ESCORT2 3 P#KivanEscort2 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @404 +END + +I_C_T ESCORT2 5 P#KivanEscort3 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @403 +END + +I_C_T ESCORT3 0 P#KivanEscort1 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @400 +== KORGANJ IF ~InParty("korgan") InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @401 +END + +I_C_T ESCORT3 3 P#KivanEscort2 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @405 +END + +I_C_T ESCORT3 5 P#KivanEscort3 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @403 +END + + +I_C_T2 HENDAK 4 P#KivanHendak1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @406 +END + +I_C_T2 HENDAK 5 P#KivanHendak2 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @407 +END + +I_C_T2 HENDAK 7 P#KivanHendak3 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @408 +END + +I_C_T2 HENDAK 12 P#KivanHendak4 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @409 +END + +I_C_T2 HENDAK 14 P#KivanHendak5 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @410 +END + +I_C_T2 HENDAK 17 P#KivanHendak6 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @411 +END + +I_C_T2 HENDAK 18 P#KivanHendak7 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @412 +END + +I_C_T2 HIST1 10 P#KivanHist1 +== P#KIVJ IF ~Global("P#EnteredAR0411","GLOBAL",0) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @413 +== HIST1 IF ~Global("P#EnteredAR0411","GLOBAL",0) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @414 +== P#KIVJ IF ~Global("P#EnteredAR0411","GLOBAL",0) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @415 +== HIST1 IF ~Global("P#EnteredAR0411","GLOBAL",0) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @416 +END + +I_C_T2 LLYNIS 2 P#KivanLlynus1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @417 +END + +//Area AR0404 (The riddle of the sewers) - not PR'd + +//Sewers + +I_C_T SEWERM1 1 P#KivanQuallo1 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @418 +END + +I_C_T SEWERM1 2 P#KivanQuallo2 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @419 +END + +I_C_T SEWERM1 4 P#KivanQuallo3 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @420 +END + +INTERJECT SEWERM1 8 P#KivanQuallo4 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @421 +END ++~Gender(Player1,MALE)~+ @422 EXTERN P#KIVJ KiToad1 ++~Gender(Player1, FEMALE)~+ @423 EXTERN P#KIVJ KiToad2 +++ @424 EXTERN P#KIVJ KiToad3 +++ @425 EXTERN P#KIVJ KiToad4 + + +APPEND P#KIVJ + +IF ~~ KiToad1 +SAY @426 +COPY_TRANS SEWERM1 8 +END + + +IF ~~ KiToad2 +SAY @427 +COPY_TRANS SEWERM1 8 +END + +IF ~~ KiToad3 +SAY @428 COPY_TRANS SEWERM1 8 +END + +IF ~~ KiToad4 +SAY @429 COPY_TRANS SEWERM1 8 +END + +IF WEIGHT #990 ~ +Global("P#RiddleSewer","GLOBAL",1)~ KivsnSewerRiddle +SAY @430 += @431 +IF ~~ THEN DO ~SetGlobal("P#RiddleSewer","GLOBAL",2)~ EXIT +END + +IF WEIGHT #990 ~ +Global("P#HandSewer","GLOBAL",1)~ KiHandSewer +SAY @432 +++ @433 DO ~SetGlobal("P#HandSewer","GLOBAL",2)~ EXIT +++ @434 DO ~SetGlobal("P#HandSewer","GLOBAL",2)~ EXIT +++ @435 DO ~SetGlobal("P#HandSewer","GLOBAL",2)~ EXIT +++ @436 DO ~SetGlobal("P#HandSewer","GLOBAL",2)~ EXIT +++ @437 DO ~SetGlobal("P#HandSewer","GLOBAL",2)~ EXIT +END + +IF WEIGHT #990 ~ +Global("P#LoverRing","GLOBAL",1)~ KiRingLovers +SAY @438 += @439 +++ @440 +DO ~SetGlobal("P#LoverRing","GLOBAL",2) +AddExperienceParty(5000) ActionOverride(Player1,DestroyItem("MISC5R")) +ActionOverride(Player2,DestroyItem("MISC5R")) +ActionOverride(Player3,DestroyItem("MISC5R")) +ActionOverride(Player4,DestroyItem("MISC5R")) +ActionOverride(Player5,DestroyItem("MISC5R")) +ActionOverride(Player6,DestroyItem("MISC5R"))~ EXIT +++ @441 DO ~SetGlobal("P#LoverRing","GLOBAL",2)~ EXIT +++ @442 DO ~SetGlobal("P#LoverRing","GLOBAL",2)~ EXIT +++ @443 + KivanLovers2 +END + +IF ~~ KivanLovers2 +SAY @444 +IF ~~ THEN DO ~SetGlobal("P#LoverRing","GLOBAL",2) SetGlobal("P#KivanLoversQuest","GLOBAL",1)~ EXIT +END + +IF ~Global("P#LoverRing","GLOBAL",3)~ KiRingLoversRebuff +SAY @445 +++ @446 DO ~ SetGlobal("P#LoverRing","GLOBAL",4)~ EXIT +++ @447 DO ~ SetGlobal("P#LoverRing","GLOBAL",4)~ + KivanLovers3 +END + +IF ~~ KivanLovers3 +SAY @448 +IF ~~ THEN EXIT +END + +END + +I_C_T2 SEWERM1 22 P#KivanQuallo5 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @449 +END + +I_C_T2 SEWERM1 23 P#KivanQuallo6 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @450 +END + +I_C_T2 SWSHAMAN 4 P#KivanKoSham1 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @451 +END + +I_C_T2 SWSHAMAN 5 P#KivanKoSham2 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @452 +END + +I_C_T2 SWSHAMAN 7 P#KivanKoSham2 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @452 +END + +I_C_T2 SWSHAMAN 8 P#KivanKoSham2 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @452 +END + +I_C_T2 SEWSW 2 P#KivanPool1 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN") !InParty("O#Xan")~ THEN @453 +END + +I_C_T2 SEWSW 6 P#KivanPool2 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @454 +END + +//Slaver's Stockade - AR0405 non-pr'd + +I_C_T BOY3 0 P#KivanSlaveChild1 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @455 +END + +I_C_T GIRL2 1 P#KivanSlaveChildMoney +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN") PartyGoldGT(99) ~ THEN @456 += @457 += @458 +END + +I_C_T HAEGAN 0 P#KivanHaegan +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @459 +END + +I_C_T SLAVERM 0 P#KivanSlaverM +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @460 +== SLAVERM IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @461 +END + +I_C_T2 HENDAK 31 P#KivanHendak +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @462 +== HENDAK IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @463 +END + +//AR0020 - City Gates - not PR'd + +I_C_T2 AESOLD 10 P#KivanBlackLotus +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @464 += @465 +END + +I_C_T MESSEN 2 P#KivanFlydian1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN") Global("Chapter","GLOBAL",%bg2_chapter_2%)~ THEN @466 +END + +I_C_T MESSEN 15 P#KivanFlydian2 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN") Global("Chapter","GLOBAL",%bg2_chapter_2%)~ THEN @467 +== JAHEIRAJ IF ~ InParty("jaheira") InParty("P#kivan") InMyArea("P#KIVAN") Global("Chapter","GLOBAL",%bg2_chapter_2%)~ THEN @468 +END + +I_C_T2 CROTHF01 13 P#KivanAulava1 +== P#KIVJ IF ~RandomNum(2,1) InParty("P#kivan") InMyArea("P#KIVAN")~ +THEN @469 += @470 +END + + +//Lilarcor + +I_C_T2 SW2H14 3 P#KivanLilarcor2 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @471 +END + +EXTEND_BOTTOM SW2H14 4 +IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN DO ~CreateCreatureObject("P#LILCO","P#kivan",0,0,0)~ EXTERN P#KIVJ KivanPouting +END + +CHAIN P#KIVJ KivanPouting +@472 +== SW2H14 @473 +DO ~ActionOverride("p#lilarcor",DestroySelf())~ +EXIT + +I_C_T2 SW2H14 5 P#KivanLilarcor4 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @474 +END + +I_C_T2 SW2H14 9 P#KivanLilarcor5 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @475 +END + + +APPEND P#KIVJ + +IF WEIGHT #990 +~Global("P#KivanLilEquiped","GLOBAL",1)~ Lil0 +SAY @476 +IF ~~ THEN DO ~SetGlobal("P#KivanLilEquiped","GLOBAL",4)~ EXTERN SW2H14 KivanNo +END + +IF WEIGHT #990 +~Global("P#KivanLilEquiped","GLOBAL",3)~ Lil1 +SAY @477 +IF ~~ THEN DO ~SetGlobal("P#KivanLilEquiped","GLOBAL",4)~ EXTERN SW2H14 KivanPat +END + +IF WEIGHT #990 ~Global("P#KivanLilEquiped","GLOBAL",5)~ Lil2 +SAY @478 +IF ~~ THEN DO ~SetGlobal("P#KivanLilEquiped","GLOBAL",6)~ EXTERN SW2H14 KivanOgres +END + +IF WEIGHT #990 +~Global("P#KivanLilEquiped","GLOBAL",7)~ Lil3 +SAY @479 +++ @480 DO ~ SetGlobal("P#KivanLilEquiped","GLOBAL",8) ~ + KivanPutDown +++ @481 DO ~ SetGlobal("P#KivanLilEquiped","GLOBAL",8) ~ + KivanExcuse +++ @482 DO ~ SetGlobal("P#KivanLilEquiped","GLOBAL",8) ~ + KivanLate +++ @483 DO ~ SetGlobal("P#KivanLilEquiped","GLOBAL",8) ~ + KivanImportant +END + +END + +CHAIN SW2H14 KivanNo +@484 +DO ~ActionOverride("p#lilarcor",DestroySelf())~ +EXIT + +CHAIN SW2H14 KivanPat +@485 +== P#KIVJ @486 +== SW2H14 @487 +== P#KIVJ @488 +== SW2H14 @489 +DO ~ActionOverride("p#lilarcor",DestroySelf())~ +EXIT + +CHAIN SW2H14 KivanOgres +@490 +== P#KIVJ @491 +== SW2H14 @492 +== P#KIVJ @493 +== SW2H14 @494 +DO ~ActionOverride("p#lilarcor",DestroySelf())~ +EXIT + +CHAIN P#KIVJ KivanPutDown +@495 +== SW2H14 @496 +== P#KIVJ @497 +== SW2H14 @498 DO ~ActionOverride("p#lilarcor",DestroySelf())~ +EXIT + +CHAIN P#KIVJ KivanExcuse +@495 +== SW2H14 @499 +== P#KIVJ @500 +== SW2H14 @501 +DO ~ActionOverride("p#lilarcor",DestroySelf())~ +EXIT + +CHAIN P#KIVJ KivanLate +@495 +== SW2H14 @502 +DO ~ ActionOverride("p#lilarcor",DestroySelf())~ +EXIT + + +CHAIN P#KIVJ KivanImportant +@495 +== SW2H14 @503 +DO ~ ActionOverride("p#lilarcor",DestroySelf())~ +EXIT + +// Acorns + +APPEND P#KIVJ + +IF WEIGHT #990 +~Global("P#KivanAcorns","GLOBAL",1)~ KivanDryads +SAY @504 +++ @505 DO ~SetGlobal("P#KivanAcorns","GLOBAL",2)~ EXIT ++ ~Gender(Player1,MALE)~ + @506 DO ~ SetGlobal("P#KivanAcorns","GLOBAL",2)~ + KivanDryads1 ++ ~Gender(Player1, FEMALE)~ + @506 DO ~ SetGlobal("P#KivanAcorns","GLOBAL",2)~ + KivanDryads2 +++ @507 DO ~SetGlobal("P#KivanAcorns","GLOBAL",2)~ EXIT +END + +IF ~~ KivanDryads1 +SAY @508 +++ @509 + KivanDryads3 +++ @510 + KivanDryads4 +++ @511 + KivanDryads5 +END + +IF ~~ KivanDryads2 +SAY @508 +++ @512 + KivanDryads3 +++ @513 + KivanDryads6 +++ @511 + KivanDryads5 +END + +IF ~~ KivanDryads3 +SAY @514 +++ @515 EXIT +++ @516 + KivanDryads5 +++ @517 EXIT +END + +IF ~~ KivanDryads4 +SAY @518 += @519 +++ @520 EXIT +++ @521 + KivanDryads3 ++~CheckStatGT(Player1,9,INT)~+ @522 + KivanDryads7 +END + +IF ~~ KivanDryads5 +SAY @523 +IF ~~ EXIT +END + +IF ~~ KivanDryads6 +SAY @524 +++ @525 DO ~IncrementGlobal("P#KivanLove","GLOBAL",-1)~ EXIT +++ @526 + KivanDryads8 +++ @527 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ + KivanDryads9 +++ @528 + KivanDryads10 +END + +IF ~~ KivanDryads7 +SAY @529 += @530 += @531 +++ @515 EXIT +++ @516 + KivanDryads5 +++ @517 EXIT +END + +IF ~~ KivanDryads8 +SAY @518 += @519 +++ @520 EXIT +++ @521 + KivanDryads3 ++~CheckStatGT(Player1,9,INT)~+ @522 + KivanDryads7 +END + +IF ~~ KivanDryads9 +SAY @532 +++ @533 EXIT +++ @534 EXIT +++ @535 + KivanDryads5 +END + +IF ~~ KivanDryads10 +SAY @536 +++ @533 EXIT +++ @537 EXIT +++ @535 + KivanDryads5 +END + +END + +//In PLAYER1.DLG proofed Mar05 + +I_C_T PLAYER1 0 P#KivanPlayer1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @538 +END + +I_C_T PLAYER1 5 P#KivanPlayer2 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @539 +END + +I_C_T PLAYER1 7 P#KivanPlayer3 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @540 +END + +I_C_T PLAYER1 10 P#KivanPlayer4 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @541 +END + +I_C_T2 PLAYER1 12 P#KivanPlayer5 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @542 +END + +I_C_T2 PLAYER1 14 P#KivanPlayer5 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @542 +END + +I_C_T PLAYER1 15 P#KivanPlayer6 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @543 +END + +I_C_T PLAYER1 16 P#KivanPlayer7 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @544 +END + +I_C_T PLAYER1 19 P#KivanPlayer8 +== P#KIVJ IF ~RandomNum(4,1) InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @545 +END + +I_C_T PLAYER1 25 P#KivanPlayer9 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN") Global("P#DeherianaLives","GLOBAL",1) ~ THEN @546 += @547 += @548 +END + +I_C_T PLAYER1 25 P#KivanPlayer9 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN") Global("P#DeherianaDead","GLOBAL",1) OR(3) GlobalLT("P#KivanLove","GLOBAL",10) +Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",0)~ THEN @549 +END + +I_C_T PLAYER1 25 P#KivanPlayer9 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN") OR(2) Global("P#DeherianaDead","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",0) +OR(3) GlobalLT("P#KivanLove","GLOBAL",10) +Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",0)~ THEN @549 +END + +I_C_T PLAYER1 25 P#KivanPlayer9Love +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN") +OR(2) Global("P#DeherianaDead","GLOBAL",0) Global("P#DeherianaLives","GLOBAL",0) +GlobalGT("P#KivanLove","GLOBAL",9) +!Global("P#KivanRomanceInactive","GLOBAL",1) +~ THEN @550 += @551 +DO ~SetGlobal("P#KivanRomanceComplete","GLOBAL",1)~ +END + +I_C_T PLAYER1 25 P#KivanPlayer9 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN") GlobalGT("P#DeherianaLives","GLOBAL",1) InParty("P#DEHER")~ +THEN @552 +== P#DEHJ @553 +== P#KIVJ @554 +== P#DEHJ @555 +== P#KIVJ @556 +== P#DEHJ @557 +== P#KIVJ @558 +END + +I_C_T PLAYER1 25 P#KivanPlayer9 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN") GlobalGT("P#DeherianaLives","GLOBAL",1) !InParty("P#DEHER")~ +THEN @546 += @548 +END + +//In other NPC talks + +I_C_T2 BJAHEIR 95 P#KIVJahB1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @559 +END + +I_C_T2 BJAHEIR 5 P#KIVJahB2 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @560 +== BJAHEIR IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @561 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @562 +== BAERIE IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @563 +END + +I_C_T2 BJAHEIR 8 P#KIVJahB3 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @564 +END + +I_C_T2 BJAHEIR 14 P#KIVJahB4 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @565 +END + +I_C_T2 BJAHEIR 24 P#KIVJahB5 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @566 +END + +I_C_T2 BJAHEIR 59 P#KIVJaheirB6 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @567 +== BJAHEIR IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @568 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @569 +== BJAHEIR IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @570 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @571 += @572 +END + +I_C_T2 BJAHEIR 61 P#KIVJaheirB7 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @573 +== BVALYGA IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @574 +== BJAHEIR IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @575 +END + +I_C_T2 BAERIE 55 P#KivanAerieB1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @576 +== BJAHEIR IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @577 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @578 +== BAERIE IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @579 +== BJAHEIR IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @580 +== BAERIE IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @581 +== BJAHEIR IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @582 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @583 +== BJAHEIR IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @584 +END + +I_C_T2 BMINSC 1 P#KivanMinB1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @585 +END + +I_C_T2 BMINSC 34 P#KivanMinB2 +== BMINSC IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @586 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @587 +== BMINSC IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @588 += @589 +== BAERIE IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @590 +== BMINSC IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @591 += @592 +END + +I_C_T2 BMINSC 51 P#KivanMinB3 +== BMINSC IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @593 +END + +I_C_T2 BKELDOR 15 P#KivanKeldorB1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN") Global("P#DeherianaLives","GLOBAL",0) ~ THEN @594 +== BMINSC IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @595 +END + +I_C_T2 BCERND 16 P#KivanCerndB1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @596 +END + +I_C_T2 BCERND 19 P#KivanCerndB2 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @597 +END + +I_C_T2 BCERND 26 P#KivanCerndB3 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @598 +END + +I_C_T2 BCERND 72 P#KivanCerndB4 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @599 +== BCERND IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @600 +END + +I_C_T2 BKELDOR 17 P#KivanKeldorB2 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN") Global("P#DeherianaLives","GLOBAL",0) ~ THEN @601 +== BMINSC IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @602 +END + +I_C_T2 BKELDOR 68 P#KivanKeldorB4 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @603 +END + +I_C_T2 BKELDOR 124 P#KivanKeldorB5 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @604 +END + +I_C_T YOSHJ 38 P#KivanYoshiSlave +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @605 +== YOSHJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @606 +END + +I_C_T YOSHJ 133 P#KivanYoshiRenal +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @607 +END + +I_C_T BANOMEN 89 P#KivanAnomenLT1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @608 +END + +I_C_T BANOMEN 101 P#KivanAnomenLT1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @609 +== BANOMEN IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @610 +END + +I_C_T BANOMEN 110 P#KivanAnomenLT2 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN") Global("P#KivanAnomenLT1","GLOBAL",1)~ THEN @611 +END + +I_C_T BANOMEN 160 P#KivanAnomenLT5 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @612 +== BANOMEN IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @613 +END + +I_C_T2 BANOMEN 7 P#KivanAnomenCNAerie +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @614 +END + +I_C_T BANOMEN 47 P#KivanAnomenVicon +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @615 +END + +I_C_T2 ANOMENJ 25 P#KivanAnomen25 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @616 +END + +I_C_T ANOMENJ 52 P#KivanAnomen52 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @617 +END + +I_C_T2 ANOMENJ 71 P#KivanAnomen71 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @618 +END + +I_C_T2 ANOMENJ 129 P#KivanAnomen129 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @619 +END + +I_C_T2 ANOMENJ 135 P#KivanAnomen135 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @620 +END + +I_C_T2 ANOMENJ 176 P#KivanAnomen176 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @621 +== BANOMEN IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @622 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @623 +END + +I_C_T2 BANOMEN 338 P#KivanAnomen338 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @624 +END + +//Anomen' test check + +ADD_TRANS_ACTION BANOMEN BEGIN 563 END BEGIN END +~SetGlobal("P#AnomenSaerk","GLOBAL",1)~ + +I_C_T BMAZZY 2 P#KivanAnomenMazzy1 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @625 +== BANOMEN IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @626 += @627 +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @628 +== BMAZZY IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @629 +END + +//Windspear + +//We get the Dryad's Braid + +APPEND P#KIVJ + +IF WEIGHT #990 +~Global("P#FirkraagChallenge","GLOBAL",1)~ THEN BEGIN KivanChallenge +SAY @630 +++ @631 DO ~IncrementGlobal("P#KivanOffence","GLOBAL",1) SetGlobal("P#FirkraagChallenge","GLOBAL",2)~ + KiChallenge0.1 +++ @632 DO ~SetGlobal("P#FirkraagChallenge","GLOBAL",2)~ + KiChallenge0 +++ @633 DO ~SetGlobal("P#FirkraagChallenge","GLOBAL",2)~ + KiChallenge0.2 +END + +IF ~~ KiChallenge0.1 +SAY @634 +IF ~~ THEN EXIT +END + +IF ~~ KiChallenge0.2 +SAY @635 += @636 +++ @637 + KiChallenge1.1 +++ @638 + KiChallenge1.2 +++ @639 + KiChallenge1.3 +++ @640 + KiChallenge1.4 +END + +IF ~~ KiChallenge0 +SAY @641 += @636 +++ @637 + KiChallenge1.1 +++ @638 + KiChallenge1.2 +++ @639 + KiChallenge1.3 +++ @640 + KiChallenge1.4 +END + +IF ~~ KiChallenge1.4 +SAY @642 +IF ~~ THEN EXIT +END + +IF ~~ KiChallenge1.3 +SAY @643 +IF ~~ THEN EXIT +END + +IF ~~ KiChallenge1.2 +SAY @644 +IF ~~ THEN EXIT +END + +IF ~~ KiChallenge1.1 +SAY @645 +IF ~~ THEN EXIT +END + +END + +I_C_T IDRYAD1 13 P#DryadBraidMale +== IDRYAD1 IF ~Gender(Player1,MALE) InParty("P#kivan") InMyArea("P#KIVAN") ~ THEN @646 +DO ~GiveItemCreate("P#KISTR",Player1,0,0,0)~ +END + +I_C_T IDRYAD1 13 P#DryadBraidFemale +== IDRYAD1 IF ~Gender(Player1,FEMALE) InParty("P#kivan") InMyArea("P#KIVAN") ~ THEN @647 +DO ~GiveItemCreate("P#KISTR",Player1,0,0,0)~ +END + +I_C_T TAZOK 3 P#Again +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @648 +== TAZOK IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @649 +END + +//After Grove was poisoned Kivan turns enemy like all good guys + +I_C_T2 CEFALD04 4 P#DruidEvil +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @650 +DO ~ActionOverride("P#KIVAN",LeaveParty()) ActionOverride("P#KIVAN",Enemy())~ +END + +//Captain Arat gave us arrows + +I_C_T2 KPCAPT01 11 P#KivanArat +== P#KIVJ IF ~InParty("P#kivan") InMyArea("P#KIVAN")~ THEN @651 +END + + +APPEND ~BELMIN~ + +IF ~See("p#kivan") +InParty("P#kivan") +InMyArea("P#KIVAN") +RandomNum(2,1) +Global("P#BelminKivan","AR0700",0)~ THEN BEGIN P#BelmKiv + SAY @652 + IF ~~ THEN DO ~SetGlobal("P#BelminKivan","AR0700",1)~ EXTERN ~P#KIVJ~ KivBelm1 +END + +IF ~~ THEN BEGIN KivBelm2 + SAY @653 + IF ~~ THEN EXTERN ~P#KIVJ~ KivBelm3 +END + +IF ~~ THEN BEGIN KivBelm4 + SAY @654 + IF ~~ THEN EXTERN ~P#KIVJ~ KivBelm5 +END +END + +APPEND ~P#KIVJ~ + +IF ~~ KivBelm1 +SAY @655 +IF ~~ THEN EXTERN BELMIN KivBelm2 +END + +IF ~~ KivBelm3 +SAY @656 +IF ~~ THEN EXTERN BELMIN KivBelm4 +END + +IF ~~ KivBelm5 +SAY @657 +IF ~~ THEN EXIT +END +END + + diff --git a/kivan/d/p#kivsoa.d b/kivan/d/p#kivsoa.d new file mode 100644 index 0000000..cd7bef5 --- /dev/null +++ b/kivan/d/p#kivsoa.d @@ -0,0 +1,1843 @@ +//Banters + +BEGIN BP#KIV + +//All Scripted Banter + +//Aerie: after you have taken a helmet from sniferblin// + +CHAIN +IF WEIGHT #900 ~ +Global("P#KIAerieUD","GLOBAL",1)~ THEN AERIEJ KIAerieUD1 +@0 +DO ~SetGlobal("P#KIAerieUD","GLOBAL",2)~ +== BP#KIV @1 +== BAERIE @2 +== BP#KIV @3 +== BAERIE @4 +== BP#KIV @5 +== BAERIE @6 +== BP#KIV @7 +== BAERIE @8 +== BP#KIV @9 +== BAERIE @10 +== BP#KIV @11 +EXIT + +//Edwin - Dream Scripts + +CHAIN +IF WEIGHT #999 ~ +Global("P#KIPED1","LOCALS",1)~ THEN EDWINJ P#ED1 +@12 +DO ~SetGlobal("P#KIPED1","LOCALS",2) RealSetGlobalTimer("P#KivanRestTimer","GLOBAL",1800)~ +== P#KIVJ @13 +== EDWINJ @14 +== P#KIVJ @15 +== EDWINJ @16 +== P#KIVJ @17 +== EDWINJ @18 +== P#KIVJ @19 +== EDWINJ @20 DO ~RestParty()~ +EXIT + +CHAIN +IF WEIGHT #999 ~ +Global("P#KIPED1","LOCALS",3)~ THEN EDWINJ P#ED2 +@21 +DO ~SetGlobal("P#KIPED1","LOCALS",4) RealSetGlobalTimer("P#KivanRestTimer","GLOBAL",1800)~ +== P#KIVJ @22 +== EDWINJ @23 +== P#KIVJ @24 +== EDWINJ @25 +== P#KIVJ @26 +== EDWINJ @27 +== P#KIVJ @28 +== EDWINJ @29 DO ~RestParty()~ +EXIT + +CHAIN +IF WEIGHT #999 ~ +Global("P#KIPED1","LOCALS",5)~ THEN EDWINJ P#ED3 +@30 +DO ~SetGlobal("P#KIPED1","LOCALS",6) RealSetGlobalTimer("P#KivanRestTimer","GLOBAL",1800)~ +== P#KIVJ @31 +== EDWINJ @32 +== P#KIVJ @33 +== EDWINJ @34 DO ~RestParty()~ +EXIT + +//At the sight of the guardian golems in Nalia's castle + +CHAIN +IF WEIGHT #999 ~ +Global("P#EdwinGolem","GLOBAL",1)~ THEN EDWINJ P#ED4 +@35 +DO ~SetGlobal("P#EdwinGolem","GLOBAL",2)~ +== BP#KIV @36 +== BEDWIN @37 +== BEDWIN IF ~!InParty("minsc")~ THEN @38 +== BEDWIN @39 +== BP#KIV @40 +== BEDWIN @41 +== BP#KIV @42 +== BEDWIN @43 += @44 +== BP#KIV @45 +== BEDWIN @46 +EXIT + +//Jaheira, after SD warning + +CHAIN +IF WEIGHT #990 ~ +Global("P#JaheiraSD","GLOBAL",1)~ THEN P#KIVJ KIJA7 +@47 +DO ~SetGlobal("P#JaheiraSD","GLOBAL",2)~ +== BJAHEIR @48 +== BP#KIV @49 +== BJAHEIR @50 +== BP#KIV @51 +== BJAHEIR @52 +== BP#KIV @53 +== BJAHEIR @54 +== BP#KIV @55 += @56 +== BJAHEIR @57 +EXIT + +///Mazzy - Dream Script + +CHAIN +IF WEIGHT #999 ~CombatCounter(0) !See([ENEMY])InParty("MAZZY") +See("MAZZY") +!StateCheck("MAZZY",STATE_SLEEPING) +OR(2) +Global("P#DeherianaDead","GLOBAL",0) +Global("P#DeherianaLives","GLOBAL",5) +Global("P#MazzyTost","GLOBAL",1)~ THEN P#KIVJ P#MazzyTost +@58 +DO ~SetGlobal("P#MazzyTost","GLOBAL",2) RealSetGlobalTimer("P#KivanRestTimer","GLOBAL",1800)~ +== BMAZZY @59 +== BP#KIV @60 +== BMAZZY @61 +== BP#KIV @62 +== BMAZZY @63 +== BP#KIV @64 +== BMAZZY @65 +== BP#KIV @66 +== BJAHEIR IF ~InParty("JAHEIRA")~ THEN @67 +END +++ @68 DO ~RestParty()~ EXIT +++ @69 EXTERN BP#KIV MazzyTost1 +++ @70 EXTERN BP#KIV MazzyTost2 +++ @71 DO ~RestParty()~ EXIT + +APPEND BP#KIV + +IF ~~ MazzyTost1 +SAY @72 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ MazzyTost2 +SAY @73 +IF ~~ THEN DO ~RestParty()~ EXIT +END +END + +//Nalia's + +CHAIN +IF WEIGHT #999 ~ +Global("P#KINA2","LOCALS",1) +InParty("Nalia") +See("Nalia") +!StateCheck("Nalia",STATE_SLEEPING)~ THEN P#KIVJ P#KINA2 +@74 +DO ~SetGlobal("P#KINA2","LOCALS",2) RealSetGlobalTimer("P#KivanRestTimer","GLOBAL",1800)~ +== BNALIA @75 +== BP#KIV @76 +== BNALIA @77 += @78 +== BP#KIV @79 +== BNALIA @80 +DO ~RestParty()~ +EXIT + +CHAIN +IF WEIGHT #999 ~ +Global("P#NaliaTorgalDies","GLOBAL",1) +Global("P#KINA1","LOCALS",0) +InParty("Nalia") +See("Nalia") +!StateCheck("Nalia",STATE_SLEEPING)~ THEN BP#KIV P#KINA1 +@81 +DO ~SetGlobal("P#KINA1","LOCALS",1) SetGlobal("P#NaliaTorgalDies","GLOBAL",2)~ +== BNALIA @82 += @83 +== BP#KIV @84 +== BNALIA @85 +== BP#KIV @86 +EXIT + +//Korgan + +CHAIN +IF WEIGHT #999 ~ +Global("P#KorganCellar","GLOBAL",1)~ THEN KORGANJ P#KIKO2 +@87 +DO ~SetGlobal("P#KorganCellar","GLOBAL",2)~ +== BNALIA IF ~InParty("Nalia")~ THEN @88 +== BP#KIV @89 +== BKORGAN @90 +== BP#KIV @91 +== BKORGAN @92 +== BP#KIV @93 +== BKORGAN @94 +== BP#KIV @95 +== BNALIA IF ~InParty("Nalia")~ THEN @96 += @97 +== BP#KIV IF ~InParty("Nalia")~ THEN @98 +== BNALIA IF ~InParty("Nalia")~ THEN @99 +== BKORGAN IF ~InParty("Nalia")~ THEN @100 +EXIT + +CHAIN +IF WEIGHT #999 ~ +Global("P#KorganTor","GLOBAL",1)~ THEN KORGANJ P#KIKO3 +@101 +DO ~SetGlobal("P#KorganTor","GLOBAL",2)~ +== BP#KIV @102 +== BKORGAN @103 +== BP#KIV @104 +== BKORGAN @105 +== BP#KIV @106 +== BKORGAN @107 +EXIT + +CHAIN +IF WEIGHT #999 ~ +Global("P#KIKO4","GLOBAL",1)~ THEN KORGANJ P#KIKO4 +@108 +DO ~SetGlobal("P#KIKO4","GLOBAL",2) RealSetGlobalTimer("P#KivanRestTimer","GLOBAL",1800)~ +== BP#KIV @109 +== BKORGAN @110 +== BP#KIV @111 +== BKORGAN @112 +== BP#KIV @113 +== BKORGAN @114 +END +++ @115 DO ~ActionOverride("P#KIVAN", LeaveParty()) ActionOverride("korgan", LeaveParty()) ActionOverride("P#KIVAN", EscapeArea()~ EXIT +++ @116 EXTERN BKORGAN P#KIKO5 +++ @117 DO ~ActionOverride("P#KIVAN", LeaveParty()) ActionOverride("P#KIVAN", EscapeArea()~ EXIT +++ @118 DO ~RestParty()~ EXIT + + +APPEND BKORGAN + +IF ~~ P#KIKO5 +SAY @119 +IF ~~ THEN DO ~ActionOverride("korgan", LeaveParty()) ActionOverride("korgan", Enemy())~ +EXIT +END +END + +/////////////////////////////////////////////// +/////Non-Scripted Banter/////////////////////// +/////////////////////////////////////////////// + +//////////////////////////////////////////////Aerie + +CHAIN +IF WEIGHT #1000 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIAE1","LOCALS",0)~ THEN BAERIE KIAE1 +@120 +DO ~SetGlobal("P#KIAE1","LOCALS",1)~ +== BAERIE IF ~Race(Player1,ELF)~ THEN @121 +== BP#KIV @122 +== BAERIE @123 +== BP#KIV @124 +== BAERIE IF ~!Race(Player1,ELF)~ THEN @125 +== BAERIE IF ~Race(Player1,ELF)~ THEN @126 +== BP#KIV IF ~!Race(Player1,ELF)~ THEN @127 +== BP#KIV IF ~Race(Player1,ELF)~ THEN @128 +== BAERIE IF ~Race(Player1,ELF) Gender(Player1, MALE)~ THEN @129 +== BP#KIV IF ~Race(Player1,ELF) Gender(Player1, MALE)~ THEN @130 +EXIT + +CHAIN +IF WEIGHT #1001 ~ +!InParty("P#DEHER") +CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIAENM1","LOCALS",0)~ THEN BAERIE KIAENM1 +@131 +DO ~SetGlobal("P#KIAENM1","LOCALS",1)~ +== BP#KIV @132 +== BAERIE @133 +== BP#KIV @134 +== BAERIE @135 +== BP#KIV @136 +== BAERIE @137 +== BP#KIV @138 +EXIT + + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIAE3","LOCALS",0)~ THEN BAERIE KIAE3 +@139 +DO ~SetGlobal("P#KIAE3","LOCALS",1)~ +== BP#KIV @140 +== BAERIE @141 +== BP#KIV @142 +== BAERIE @143 +== BP#KIV IF ~!Dead("tazok")~ THEN @144 +== BP#KIV IF ~Dead("tazok")~ THEN @145 +== BAERIE @146 +EXIT + +CHAIN +IF WEIGHT #1003 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) Global("P#DeherianaLives","GLOBAL",0) +Global("P#KIAE4","LOCALS",0)~ THEN BAERIE KIAE4 +@147 +DO ~SetGlobal("P#KIAE4","LOCALS",1)~ +== BP#KIV @148 +== BAERIE @149 +== BP#KIV @150 +== BAERIE @151 +== BP#KIV @152 /*Do you want these to both be plural, or does Kivan have a sister somewhere to whom he is referring?*/ +== BAERIE @153 +== BP#KIV @154 +EXIT + +CHAIN +IF WEIGHT #1004 ~CombatCounter(0) !See([ENEMY])InParty("AERIE") +See("AERIE") +!StateCheck("AERIE",STATE_SLEEPING) +Global("P#KIAE5","LOCALS",0)~ THEN BP#KIV KIAE5 +@155 +DO ~SetGlobal("P#KIAE5","LOCALS",1)~ +== BAERIE @156 +== BP#KIV @157 +== BAERIE @158 +== BP#KIV @159 +== BAERIE @160 +== BP#KIV @161 +== BAERIE @162 +== BP#KIV @163 +== BAERIE @164 +== BP#KIV @165 +== BAERIE @166 +EXIT + +CHAIN +IF WEIGHT #1005 ~CombatCounter(0) !See([ENEMY])InParty("AERIE") +See("AERIE") +!StateCheck("AERIE",STATE_SLEEPING) +Global("P#KIAE8","LOCALS",0)~ THEN BP#KIV KIAE5 +@167 +DO ~SetGlobal("P#KIAE8","LOCALS",1)~ +== BAERIE @168 +== BP#KIV @169 +== BAERIE @170 +== BP#KIV @171 +== BAERIE @172 +== BP#KIV @173 +EXIT + +CHAIN +IF WEIGHT #1006 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) Global("P#DeherianaDead","GLOBAL",1) +Global("P#KIAENM2","LOCALS",0)~ THEN BAERIE KIAENM2 +@174 +DO ~SetGlobal("P#KIAENM2","LOCALS",1)~ +== BP#KIV @175 += @176 +== BAERIE @177 +== BP#KIV @178 +== BAERIE @179 +== BP#KIV @180 +== BAERIE @181 +EXIT + +CHAIN +IF WEIGHT #1006 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",2) InParty("P#DEHER") +Global("P#KIAE6","GLOBAL",0)~ THEN BAERIE KIAE6 +@182 +DO ~SetGlobal("P#KIAE6","GLOBAL",1)~ +== BP#KIV @183 +== BAERIE @184 +== BP#KIV @148 +== BAERIE @185 +== BP#KIV @186 +== BAERIE @187 +== BP#KIV @188 +== BAERIE @189 +== BP#KIV @190 +EXIT + +CHAIN +IF WEIGHT #1007 ~CombatCounter(0) !See([ENEMY])InParty("AERIE") +See("AERIE") +!StateCheck("AERIE",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",2) InParty("X#DEHER") +Global("P#KIAE6","GLOBAL",1) +Global("P#KIAE7","LOCALS",0)~ THEN BP#KIV KIAE5 +@191 +DO ~SetGlobal("P#KIAE7","LOCALS",1)~ +== BAERIE @192 +== BP#KIV @193 +== BAERIE @194 +== BP#KIV @195 +EXIT + + + + +////////////////////////////////////////////////////////Anomen + + +//Anomen + +CHAIN +IF WEIGHT #1000 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Alignment("ANOMEN", LAWFUL_NEUTRAL) +Global("P#KIAN1.1","LOCALS",0)~ THEN BANOMEN KIAN1.1 +@196 +DO ~SetGlobal("P#KIAN1.1","LOCALS",1)~ +== BP#KIV @197 +== BANOMEN @198 +== BP#KIV @199 +== BANOMEN @200 +== BP#KIV @201 +== BANOMEN @202 +== BP#KIV @203 +== BANOMEN @204 += @205 += @206 +== BP#KIV @207 +== BANOMEN @208 +== BP#KIV @209 +== BANOMEN @210 +== BP#KIV @211 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Alignment("ANOMEN", LAWFUL_NEUTRAL) +Global("P#KIANNM1","LOCALS",0)~ THEN BANOMEN KIANNM1 +@212 +DO ~SetGlobal("P#KIANNM1","LOCALS",1)~ +== BP#KIV @213 +== BANOMEN @214 +== BP#KIV @215 +== BANOMEN @216 +== BP#KIV @217 +== BANOMEN @218 +== BP#KIV @219 +== BANOMEN @220 +EXIT + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Alignment("ANOMEN", LAWFUL_NEUTRAL) +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +Global("AnomenRomanceActive","GLOBAL",1) +Global("P#KIAN1.2","LOCALS",0)~ THEN BANOMEN KIAN1.2 +@221 +DO ~SetGlobal("P#KIAN1.2","LOCALS",1)~ +== BP#KIV @222 +END +IF ~Race(Player1,ELF) ~ THEN EXTERN BANOMEN AnomenKivEarly1 +IF ~!Race(Player1,ELF)~ THEN EXTERN BANOMEN AnomenKivEarly2 + +APPEND BANOMEN + +IF ~~ AnomenKivEarly1 +SAY @223 +++ @224 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ EXTERN BP#KIV KIAN1.2.1 +++ @225 + KIAN1.2.2 +++ @226 + KIAN1.2.3 +++ @227 + KIAN1.2.4 +END + +IF ~~ AnomenKivEarly2 +SAY @228 +++ @224 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ EXTERN BP#KIV KIAN1.2.1 +++ @225 + KIAN1.2.2 +++ @226 + KIAN1.2.3 +++ @227 + KIAN1.2.4 +END +END + +CHAIN3 BANOMEN KIAN1.2.2 +@229 +== BP#KIV @230 +EXIT + +CHAIN3 BANOMEN KIAN1.2.3 +@231 +== BP#KIV @232 +END +++ @233 EXTERN BP#KIV KIAN1.2.5 +++ @234 DO ~IncrementGlobal("P#KivanLove","GLOBAL", -1)~ EXTERN BP#KIV KIAN1.2.6 +++ @235 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ EXTERN BP#KIV KIAN1.2.7 + +CHAIN3 BANOMEN KIAN1.2.4 +@236 +== BP#KIV @237 +END +++ @238 EXTERN BP#KIV KIAN1.2.5 +++ @239 DO ~IncrementGlobal("P#KivanLove","GLOBAL", -1)~ EXTERN BP#KIV KIAN1.2.8 +++ @240 DO ~IncrementGlobal("P#KivanLove","GLOBAL",1)~ EXTERN BP#KIV KIAN1.2.7 + +APPEND BP#KIV + +IF ~~ KIAN1.2.1 +SAY @241 +IF ~~ THEN EXIT +END + +IF ~~ KIAN1.2.5 +SAY @242 +IF ~~ THEN EXIT +END + +IF ~~ KIAN1.2.6 +SAY @243 +IF ~~ THEN EXIT +END + +IF ~~ KIAN1.2.7 +SAY @244 +IF ~~ THEN EXIT +END + +IF ~~ KIAN1.2.8 +SAY @245 +IF ~~ THEN EXIT +END +END + +CHAIN +IF WEIGHT #1003 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Alignment("ANOMEN", LAWFUL_GOOD) +Global("AnomenIsKnight","GLOBAL",1) +Global("P#KIAN2.1","LOCALS",0)~ THEN BANOMEN KIAN2.1 +@246 +DO ~SetGlobal("P#KIAN2.1","LOCALS",1)~ +== BP#KIV @247 +== BANOMEN @248 +== BP#KIV @249 +== BANOMEN @250 +== BP#KIV @251 +== BANOMEN @252 +== BP#KIV @253 +EXIT + +APPEND ANOMENJ + +IF WEIGHT #-2 +~Global("P#AnomenKivanConflict","LOCALS",1)~ THEN BEGIN AmonenConflictKivan +SAY @254 +++ @255 DO ~SetGlobal("P#AnomenKivanConflict","LOCALS",2)~ + ANKICO1.1 +++ @256 DO ~SetGlobal("P#AnomenKivanConflict","LOCALS",2)~ + ANKICO1.2 +++ @257 DO ~SetGlobal("P#AnomenKivanConflict","LOCALS",2)~ + ANKICO1.2 +++ @258 DO ~SetGlobal("P#AnomenKivanConflict","LOCALS",2)~ + ANKICO1.3 +END + +IF ~~ ANKICO1.1 +SAY @259 +IF ~~ THEN DO ~SetGlobal("P#KivanRomanceInactive", "GLOBAL",1) SetGlobal("P#KivanLove","GLOBAL",-100)~ +EXIT +END + +IF ~~ ANKICO1.3 +SAY @260 +IF ~~ THEN DO ~SetGlobal("P#KivanRomanceInactive","GLOBAL",1) SetGlobal("P#KivanLove","GLOBAL",-100)~ +EXIT +END + +IF ~~ ANKICO1.2 +SAY @261 +++ @262 + ANKICO1.4 +++ @263 + ANKICO1.5 +++ @264 + ANKICO1.6 +++ @842 + ANKICO1.7 +END + +IF ~~ ANKICO1.4 +SAY @265 +IF ~~ THEN DO ~SetGlobal("AnomenRomanceActive","GLOBAL",3) SetGlobal("P#KivanRomanceInactive","GLOBAL",0) SetGlobal("P#KivanLove","GLOBAL",0)~ +EXIT +END + +IF ~~ ANKICO1.5 +SAY @266 += @267 +IF ~~ THEN DO ~SetGlobal("AnomenRomanceActive","GLOBAL",3) SetGlobal("P#KivanRomanceInactive","GLOBAL",0) SetGlobal("P#KivanLove","GLOBAL",0)~ +EXIT +END + +IF ~~ ANKICO1.6 +SAY @268 +IF ~~ THEN DO ~SetGlobal("AnomenRomanceActive","GLOBAL",3) SetGlobal("P#KivanRomanceInactive","GLOBAL",0) SetGlobal("P#KivanLove","GLOBAL",0)~ +EXIT +END + +IF ~~ ANKICO1.7 +SAY @268 +IF ~~ THEN DO ~SetGlobal("AnomenRomanceActive","GLOBAL",3) SetGlobal("P#KivanRomanceInactive","GLOBAL",0) SetGlobal("P#KivanLove","GLOBAL",10)~ +EXIT +END + +END + + +CHAIN +IF WEIGHT #1004 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Alignment("ANOMEN", CHAOTIC_NEUTRAL) +Global("DomainPaladinBattle","GLOBAL",1) +Global("AmomenIsNotKnight","GLOBAL",1) +Global("P#KIAN3.1","LOCALS",0)~ THEN BANOMEN KIAN3.1 +@269 +DO ~SetGlobal("P#KIAN3.1","LOCALS",1)~ +== BP#KIV @270 +== BANOMEN @271 +== BP#KIV @272 +== BANOMEN @273 +== BP#KIV @274 +== BANOMEN @275 +== BP#KIV @276 +== BANOMEN @277 +EXIT + + + +CHAIN +IF WEIGHT #1005 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Alignment("ANOMEN", LAWFUL_GOOD) +Global("AnomenIsKnight","GLOBAL",1) +Global("P#KIANNM2","LOCALS",0)~ THEN BANOMEN KIANNM2 +@278 +DO ~SetGlobal("P#KIANNM2","LOCALS",1)~ +== BP#KIV @279 +== BANOMEN @280 +== BP#KIV @281 +== BANOMEN @282 +== BP#KIV @283 +== BANOMEN @284 +== BP#KIV @285 +== BANOMEN @286 +EXIT + +//////////////////////////////////////////////////////////Cernd + + + +CHAIN +IF WEIGHT #1000 ~CombatCounter(0) !See([ENEMY])InParty("CERND") +See("CERND") +!StateCheck("CERND",STATE_SLEEPING) +Global("P#KICE1","LOCALS",0)~ THEN BP#KIV KICE1 +@287 +DO ~SetGlobal("P#KICE1","LOCALS",1)~ +== BCERND @288 +== BP#KIV @289 +== BCERND @290 +== BP#KIV @291 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("CERND") +See("CERND") +!StateCheck("CERND",STATE_SLEEPING) +Global("P#KICE8","LOCALS",0)~ THEN BP#KIV KICE8 +@292 +DO ~SetGlobal("P#KICE8","LOCALS",1)~ +== BP#KIV @293 +== BCERND @294 += @295 += @296 += @297 +== BP#KIV @298 +== BCERND @299 +EXIT + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Dead("cefald01") +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +Global("P#KICE2","LOCALS",0)~ THEN BCERND KICE2 +@300 +DO ~SetGlobal("P#KICE2","LOCALS",1)~ +== BP#KIV @301 +== BCERND @302 +== BP#KIV @303 +== BCERND @304 +== BP#KIV @305 +== BCERND @306 +EXIT + +CHAIN +IF WEIGHT #1003 ~CombatCounter(0) !See([ENEMY])InParty("CERND") +See("CERND") +!StateCheck("CERND",STATE_SLEEPING) +Global("CerndNanny","GLOBAL",1) +Global("P#KICE4","LOCALS",0)~ THEN BP#KIV KICE4 +@307 +DO ~SetGlobal("P#KICE4","LOCALS",1)~ +== BCERND @308 +== BP#KIV @309 +== BCERND @310 +EXIT + +CHAIN +IF WEIGHT #1004 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +Global("P#KICE6","LOCALS",0)~ THEN BCERND KICE6 +@311 +DO ~SetGlobal("P#KICE6","LOCALS",1)~ +== BP#KIV @312 +== BCERND @313 +== BP#KIV @314 +== BCERND @315 +== BP#KIV @316 +EXIT + + +CHAIN +IF WEIGHT #1005 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +AreaType(FOREST) +Global("P#KICE9","LOCALS",0)~ THEN BCERND KICE9 +@317 +DO ~SetGlobal("P#KICE9","LOCALS",1)~ +== BP#KIV @318 +== BHAERDA IF ~InParty("haerdalis")~ THEN @319 +== BCERND @320 +== BP#KIV @321 +== BCERND @322 +== BP#KIV @323 +== BCERND @324 +== BP#KIV @325 +== BCERND @326 +== BP#KIV @327 +EXIT + +CHAIN +IF WEIGHT #1006 ~CombatCounter(0) !See([ENEMY])InParty("CERND") +See("CERND") +!StateCheck("CERND",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",2) +Global("P#KICE7","LOCALS",0)~ THEN BP#KIV KICE7 +@328 +DO ~SetGlobal("P#KICE7","LOCALS",1)~ +== BCERND @329 +== BP#KIV @330 +== BCERND @331 +== BP#KIV @332 +== BCERND @333 +EXIT + +//Deheriana - In Deheriana's File + +//////////////////////////////////Edwin////////////////// + +//Edwin + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIED1","LOCALS",0)~ THEN BEDWIN KIED1 +@334 +DO ~SetGlobal("P#KIED1","LOCALS",1)~ +== BP#KIV @335 +== BEDWIN @336 += @337 +== BP#KIV @338 +== BEDWIN @339 += @340 +EXIT + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIED2","LOCALS",0)~ THEN BEDWIN KIED2 +@341 +DO ~SetGlobal("P#KIED2","LOCALS",1)~ +== BP#KIV @342 +== BEDWIN @343 +== BP#KIV @344 +== BEDWIN @345 +== BP#KIV @346 +EXIT + +///////////////////////Haer-Dalis/////////////// + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("HAERDALIS") +See("HAERDALIS") +!StateCheck("HAERDALIS",STATE_SLEEPING) +Global("P#KIHA1","LOCALS",0)~ THEN BP#KIV KIHA1 +@347 +DO ~SetGlobal("P#KIHA1","LOCALS",1)~ +== BHAERDA @348 +== BP#KIV @349 +== BHAERDA @350 +== BP#KIV @351 +== BHAERDA @352 +EXIT + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY]) InParty("P#KIVAN") +See("P#KIVAN") +AreaType(FOREST) +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIHA6","GLOBAL",0)~ THEN BHAERDA KIHA6 +@353 +DO ~SetGlobal("P#KIHA6","GLOBAL",1)~ +== BP#KIV @354 +== BHAERDA @355 +== BP#KIV @356 +== BHAERDA @357 +== BP#KIV @358 +== BHAERDA @359 +== BP#KIV @148 +== BHAERDA @360 +== BP#KIV @361 +== BHAERDA @362 +== BP#KIV @363 +== BHAERDA @364 +== BP#KIV @365 +== BHAERDA @366 +EXIT + +CHAIN +IF WEIGHT #1003 ~CombatCounter(0) !See([ENEMY]) InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +AreaType(CITY) +Global("P#KIHA7","GLOBAL",0)~ THEN BHAERDA KIHA7 +@367 +DO ~SetGlobal("P#KIHA7","GLOBAL",1)~ +== BP#KIV @368 +== BHAERDA @369 +== BP#KIV @370 +== BHAERDA @371 +== BP#KIV @372 +== BHAERDA @373 +== BP#KIV @374 +== BHAERDA @375 +== BP#KIV @376 +== BHAERDA @377 +== BP#KIV @378 +== BHAERDA @379 +== BP#KIV @380 +== BHAERDA @381 +== BP#KIV @382 +== BHAERDA @383 +== BP#KIV @384 +== BHAERDA @385 +EXIT + +CHAIN +IF WEIGHT #1004 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +Global("P#KIHA4","LOCALS",0)~ THEN BHAERDA KIHA4 +@386 +DO ~SetGlobal("P#KIHA4","LOCALS",1)~ +== BP#KIV @387 +== BHAERDA @388 +== BP#KIV @389 +== BHAERDA @390 += @391 +== BP#KIV @392 +== BHAERDA @393 +== BP#KIV @394 +EXIT + +CHAIN +IF WEIGHT #1005 ~CombatCounter(0) !See([ENEMY])InParty("HAERDALIS") +See("HAERDALIS") +!StateCheck("HAERDALIS",STATE_SLEEPING) +GlobalGT("PlanarPrison","GLOBAL",0) +Global("P#KIHA5","LOCALS",0)~ THEN BP#KIV KIHA5 +@395 +DO ~SetGlobal("P#KIHA5","LOCALS",1)~ +== BHAERDA @396 +== BP#KIV @397 +== BHAERDA @398 += @399 + == BP#KIV @400 +== BHAERDA @401 += @402 +== BP#KIV @403 +== BHAERDA @404 +== BP#KIV @405 +== BHAERDA @406 += @407 += @408 +== BP#KIV @409 +== BHAERDA @410 +== BP#KIV @411 +== BHAERDA @412 +== BP#KIV @413 +== BHAERDA @414 +== BP#KIV @415 +== BHAERDA @416 +== BP#KIV @417 +== BHAERDA @418 +== BP#KIV @419 +== BHAERDA @420 +EXIT + +///Imoen + +//Imoen + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("IMOEN2") +See("IMOEN2") +!StateCheck("IMOEN2",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +Global("P#KIIM1","LOCALS",0)~ THEN BP#KIV KIIM1 +@421 +DO ~SetGlobal("P#KIIM1","LOCALS",1)~ +== IMOEN2J @422 +== BP#KIV @423 +== IMOEN2J @424 +== BP#KIV @425 +== IMOEN2J @426 +== BP#KIV @427 +== IMOEN2J @428 +EXIT + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY])InParty("IMOEN2") +See("IMOEN2") +!StateCheck("IMOEN2",STATE_SLEEPING) +Global("P#KIIM2","LOCALS",0)~ THEN BP#KIV KIIM2 +@429 +DO ~SetGlobal("P#KIIM2","LOCALS",1)~ +== IMOEN2J @430 +== BP#KIV @431 +== IMOEN2J @432 +== BP#KIV @433 +== IMOEN2J @434 +== BP#KIV @435 +== IMOEN2J @436 +== BP#KIV @437 +== IMOEN2J @438 +EXIT + +CHAIN +IF WEIGHT #1003 ~CombatCounter(0) !See([ENEMY]) +InParty("IMOEN2") +See("IMOEN2") +!StateCheck("IMOEN2",STATE_SLEEPING) +Global("P#KIIM5","LOCALS",0)~ THEN BP#KIV KIIM5 +@439 +DO ~SetGlobal("P#KIIM5","LOCALS",1)~ +== IMOEN2J @440 +== BP#KIV @441 +== IMOEN2J @442 +== BP#KIV @443 +== IMOEN2J @444 +== BP#KIV @445 +== IMOEN2J @446 +== BP#KIV @447 +== IMOEN2J @448 +== BP#KIV @449 +== IMOEN2J @450 +== BP#KIV @378 +== IMOEN2J IF ~InParty("Jaheira")~ THEN @451 +== IMOEN2J IF ~!InParty("Jaheira")~ THEN @452 +== BP#KIV @453 +== IMOEN2J @454 +EXIT + +CHAIN +IF WEIGHT #1004 ~CombatCounter(0) !See([ENEMY])InParty("IMOEN2") +See("IMOEN2") +!StateCheck("IMOEN2",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",3) +Global("P#KIIM3","LOCALS",0)~ THEN BP#KIV KIIM3 +@455 +DO ~SetGlobal("P#KIIM3","LOCALS",1)~ +== IMOEN2J @456 += @457 +== BP#KIV @458 +== IMOEN2J @459 +== BP#KIV @460 +== IMOEN2J @461 +== BP#KIV @462 +== IMOEN2J @463 +== BP#KIV @464 +== IMOEN2J @465 +== BP#KIV @466 +EXIT + +/// Jaheira + +//Jaheira + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +GlobalLT("Chapter","GLOBAL",%bg2_chapter_3%) +Global("P#KIJA1","LOCALS",0)~ THEN BJAHEIR KIJA1 +@467 +DO ~SetGlobal("P#KIJA1","LOCALS",1)~ +== BP#KIV @468 +== BJAHEIR @469 +== BP#KIV @470 +== BJAHEIR @471 +== BP#KIV @472 +== BJAHEIR @473 +== BP#KIV @474 +EXIT + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("JaheiraNotHarper","GLOBAL",1) +Global("P#KIJA2","LOCALS",0)~ THEN BJAHEIR KIJA2 +@475 +DO ~SetGlobal("P#KIJA2","LOCALS",1)~ +== BP#KIV @476 +== BJAHEIR @477 +== BP#KIV @478 +== BJAHEIR @479 +== BP#KIV @480 +EXIT + +CHAIN +IF WEIGHT #1003 ~CombatCounter(0) !See([ENEMY])InParty("JAHEIRA") +See("JAHEIRA") +!StateCheck("JAHEIRA",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +Global("P#KIJA3","LOCALS",0)~ THEN BP#KIV KIJA3 +@481 +DO ~SetGlobal("P#KIJA3","LOCALS",1)~ +== BJAHEIR @482 +== BP#KIV @483 +== BJAHEIR @484 +== BP#KIV @485 +== BJAHEIR @486 +EXIT + +CHAIN +IF WEIGHT #1004 ~CombatCounter(0) !See([ENEMY])InParty("JAHEIRA") +See("JAHEIRA") +!StateCheck("JAHEIRA",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +Global("P#KIJA4","LOCALS",0)~ THEN BP#KIV KIJA4 +@487 +DO ~SetGlobal("P#KIJA4","LOCALS",1)~ +== BJAHEIR @488 +== BP#KIV @489 +== BJAHEIR @490 +== BP#KIV @491 +== BJAHEIR @492 +EXIT + +CHAIN +IF WEIGHT #1000 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",2) +InParty("P#DEHER") +Global("P#KIJA5","LOCALS",0)~ THEN BJAHEIR KIJA5 +@493 +DO ~SetGlobal("P#KIJA5","LOCALS",1)~ +== BP#KIV @494 +== BJAHEIR @495 += @496 += @497 +== BP#KIV @498 +== BJAHEIR @499 +== BP#KIV @500 +== BJAHEIR @501 += @502 +== BP#DEH @503 +== BJAHEIR @504 +EXIT + +CHAIN +IF WEIGHT #1006 ~CombatCounter(0) !See([ENEMY]) +InParty("JAHEIRA") +See("JAHEIRA") +!StateCheck("Jaheira",STATE_SLEEPING) +GlobalLT("Chapter","GLOBAL",%bg2_chapter_5%) +AreaType(OUTDOOR) +Global("P#KIJA6","LOCALS",0)~ THEN BP#KIV KIJA6 +@505 +DO ~SetGlobal("P#KIJA6","LOCALS",1)~ +== BJAHEIR @506 +== BP#KIV @507 +== BJAHEIR @508 +== BP#KIV @509 +== BJAHEIR @510 +== BP#KIV @511 +== BJAHEIR IF ~Global("WorkingForBodhi","GLOBAL",1)~ THEN @512 +== BJAHEIR IF ~Global("WorkingForAran","GLOBAL",1)~ THEN @513 +== BJAHEIR @514 +== BP#KIV @515 +== BJAHEIR @516 +EXIT + +// After char's transformation to Slayer + +CHAIN +IF WEIGHT #1007 ~CombatCounter(0) !See([ENEMY]) +InParty("JAHEIRA") +See("JAHEIRA") +!StateCheck("Jaheira",STATE_SLEEPING) +OR(4) +Global("P#KivanPlayer1","GLOBAL",1) +Global("P#KivanPlayer1","GLOBAL",2) +Global("P#KivanPlayer1","GLOBAL",3) +Global("P#KivanPlayer1","GLOBAL",4) +Global("P#KIJA8","LOCALS",0)~ THEN BP#KIV KIJA8 +@517 +DO ~SetGlobal("P#KIJA8","LOCALS",1)~ +== BJAHEIR @518 +== BP#KIV @519 +== BJAHEIR @520 +EXIT + +//turned into drow - + +CHAIN +IF WEIGHT #1000 ~CombatCounter(0) !See([ENEMY]) +InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("PlayerLooksLikeDrow","GLOBAL",1) +OR(11) +AreaCheck("AR2200") +AreaCheck("AR2201")// Temple in Ust Natha +AreaCheck("AR2202")// Inn in Ust Natha 1st Floor +AreaCheck("AR2203")// Inn in Ust Natha; 2nd Floor +AreaCheck("AR2204")// House in Ust Natha +AreaCheck("AR2205")// House in Ust Natha +AreaCheck("AR2206")// Qilue's House in Ust Natha +AreaCheck("AR2207")// Deirex's Tower in Ust Natha +AreaCheck("AR2208")// Jarlaxle's House wherever +AreaCheck("AR2209")// Jae'llat's House +AreaCheck("AR2210")//Deirex's Cave +Global("P#KIJA9","LOCALS",0)~ THEN BJAHEIR KIJA9 +@521 +DO ~SetGlobal("P#KIJA9","LOCALS",1)~ +== BP#KIV @522 +== BJAHEIR @523 +== BP#KIV @524 +== BJAHEIR @525 +== BP#KIV @526 +== BVICONI IF ~InParty("viconia")~ THEN @527 +== BJAHEIR IF ~InParty("viconia")~ THEN @528 +== BJAHEIR @529 +== BP#KIV @530 +== BJAHEIR @531 +== BP#KIV @532 +== BJAHEIR @533 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +Global("P#KIJAN1","LOCALS",0)~ THEN BJAN KIJAN1 +@534 +DO ~SetGlobal("P#KIJAN1","LOCALS",1)~ +== BP#KIV @535 +== BJAN @536 +== BP#KIV @537 +== BJAN @538 += @539 +== BP#KIV @540 +== BJAN @541 +== BP#KIV @542 +== BJAN @543 +== BP#KIV @544 +== BJAN @545 +== BP#KIV @546 +EXIT + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIJAN5","LOCALS",0)~ THEN BJAN KIJAN5 +@547 +DO ~SetGlobal("P#KIJAN5","LOCALS",1)~ +== BP#KIV @548 +== BJAN @549 +== BP#KIV @550 +== BJAN @551 +== BP#KIV @552 +== BJAN @553 +EXIT + +CHAIN +IF WEIGHT #1003 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIJAN6","LOCALS",0)~ THEN BJAN KIJAN6 +@554 +DO ~SetGlobal("P#KIJAN6","LOCALS",1)~ +== BP#KIV @555 +== BJAN @556 +== BP#KIV @557 +== BJAN @558 +== BP#KIV @559 +== BJAN @560 += @561 +== BP#KIV @562 +== BJAN @563 +== BP#KIV @564 +== BJAN @565 +== BP#KIV @566 +== BJAN @567 +EXIT + +CHAIN +IF WEIGHT #1004 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +OR(3) +Global("JanLissaPlot","GLOBAL",10) +Global("JanLissaPlot","GLOBAL",11) +Global("JanLissaPlot","GLOBAL",14) +Global("P#KIJAN3","LOCALS",0)~ THEN BJAN KIJAN3 +@568 +DO ~SetGlobal("P#KIJAN3","LOCALS",1)~ +== BP#KIV @569 +== BJAN @570 +== BP#KIV @571 +== BJAN @572 +== BP#KIV @573 +== BJAN @574 +EXIT + +CHAIN +IF WEIGHT #1005 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +Global("P#KIJAN4","LOCALS",0)~ THEN BJAN KIJAN4 +@575 +DO ~SetGlobal("P#KIJAN4","LOCALS",1)~ +== BP#KIV @576 +== BJAN @577 +== BP#KIV @578 +== BJAN @579 +== BP#KIV @580 +== BJAN @581 +== BP#KIV @582 +== BJAN @583 +EXIT + +///Keldorn + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("LadyMaria","GLOBAL",0) +Global("P#KIKE1","LOCALS",0)~ THEN BKELDOR KIKE1 +@584 +DO ~SetGlobal("P#KIKE1","LOCALS",1)~ +== BP#KIV @585 +== BKELDOR @500 +== BP#KIV @586 +== BKELDOR @587 +== BP#KIV @588 +== BKELDOR @589 +EXIT + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +Global("P#KIKE3","LOCALS",0)~ THEN BKELDOR KIKE3 +@590 +DO ~SetGlobal("P#KIKE3","LOCALS",1)~ +== BP#KIV @591 +== BKELDOR @592 +== BP#KIV @593 +== BKELDOR @594 +== BP#KIV @595 +== BKELDOR @596 +== BP#KIV @597 +== BKELDOR @598 +EXIT + +CHAIN +IF WEIGHT #1003 ~CombatCounter(0) !See([ENEMY])InParty("KELDORN") +See("KELDORN") +!StateCheck("KELDORN",STATE_SLEEPING) +OR(3) +Global("LadyMaria","GLOBAL",1) +Global("KeldornLeave","GLOBAL",2) +Global("WilliamDead","GLOBAL",1) +Global("P#KIKE4","LOCALS",0)~ THEN BP#KIV KIKE4 +@599 +DO ~SetGlobal("P#KIKE4","LOCALS",1)~ +== BKELDOR @600 +== BP#KIV @601 +== BKELDOR @602 +== BP#KIV @603 +== BKELDOR @604 +== BP#KIV @605 +== BKELDOR @606 +== BP#KIV @607 +EXIT + +CHAIN +IF WEIGHT #1004 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIKE6","LOCALS",0)~ THEN BKELDOR KIKE6 +@608 +DO ~SetGlobal("P#KIKE6","LOCALS",1)~ +== BP#KIV @609 +== BKELDOR @610 +== BP#KIV @611 +== BKELDOR @327 +== BP#KIV @612 +== BKELDOR @613 +== BP#KIV @614 +== BKELDOR @615 +== BP#KIV @616 +== BKELDOR @617 +EXIT + +CHAIN +IF WEIGHT #1005 ~CombatCounter(0) !See([ENEMY])InParty("KELDORN") +See("KELDORN") +!StateCheck("KELDORN",STATE_SLEEPING) +Global("LadyMaria","GLOBAL",0) +Global("P#KIKE5","LOCALS",0)~ THEN BP#KIV KIKE5 +@618 +DO ~SetGlobal("P#KIKE5","LOCALS",1)~ +== BKELDOR @619 +== BP#KIV @620 +== BKELDOR @621 +== BP#KIV @622 +== BKELDOR @623 += @624 += @625 +== BP#KIV @626 +== BKELDOR @627 += @628 +== BP#KIV @629 +== BKELDOR @630 +EXIT + +///Mazzy + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIMA1","LOCALS",0)~ THEN BMAZZY KIMA1 +@631 +DO ~SetGlobal("P#KIMA1","LOCALS",1)~ +== BP#KIV @632 +== BMAZZY @633 +== BP#KIV @634 +== BMAZZY @635 +== BP#KIV @636 +== BMAZZY @637 +EXIT + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIMA4","LOCALS",0)~ THEN BMAZZY KIMA4 +@638 +DO ~SetGlobal("P#KIMA4","LOCALS",1)~ +== BP#KIV @639 +== BMAZZY @640 +== BP#KIV @641 +== BMAZZY @642 +== BP#KIV @643 +== BMAZZY @644 +== BP#KIV @645 +EXIT + +CHAIN +IF WEIGHT #1003 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +InParty("valygar") +!Dead("valygar") +Global("P#KIMA5","LOCALS",0)~ THEN BMAZZY KIMA5 +@646 += @647 +DO ~SetGlobal("P#KIMA5","LOCALS",1)~ +== BP#KIV @648 +== BMAZZY @649 +== BP#KIV @650 +== BMAZZY @651 +== BP#KIV @652 +== BMAZZY @653 +== BP#KIV @654 +== BMAZZY @655 +EXIT + +CHAIN +IF WEIGHT #1004 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIMA2","LOCALS",0)~ THEN BMAZZY KIMA2 +@656 +DO ~SetGlobal("P#KIMA2","LOCALS",1)~ +== BP#KIV @657 +== BMAZZY @658 +== BP#KIV @659 +== BMAZZY @660 +== BP#KIV @661 +== BMAZZY @662 +== BP#KIV @663 +== BMAZZY @664 += @665 += @666 += @667 += @668 +== BP#KIV @669 +== BMAZZY @670 +== BP#KIV @671 +== BMAZZY @672 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIMI1","LOCALS",0)~ THEN BMINSC KIMI1 +@673 +DO ~SetGlobal("P#KIMI1","LOCALS",1)~ +== BP#KIV @674 +== BMINSC @675 +== BP#KIV @676 +== BMINSC @677 +== BP#KIV @678 +== BMINSC @679 +== BP#KIV @680 +== BMINSC @681 += @682 +EXIT + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +!StateCheck("P#KIVAN",STATE_SLEEPING) +GlobalLT("Chapter","GLOBAL",%bg2_chapter_4%) +Global("P#KIMI2","LOCALS",0)~ THEN BMINSC KIMI2 +@683 +DO ~SetGlobal("P#KIMI2","LOCALS",1)~ +== BP#KIV @684 +== BMINSC @685 +== BP#KIV @686 +== BMINSC @687 +== BP#KIV @688 +== BMINSC @689 +== BP#KIV @690 +== BMINSC @691 +== BP#KIV @692 +EXIT + +CHAIN +IF WEIGHT #1003 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIMI3","LOCALS",0)~ THEN BMINSC KIMI3 +@693 +DO ~SetGlobal("P#KIMI3","LOCALS",1)~ +== BP#KIV @694 +== BMINSC @695 +== BP#KIV @696 += @697 +== BMINSC @698 +== BP#KIV @699 +== BMINSC @700 +EXIT + + +CHAIN +IF WEIGHT #1004 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIMI4","LOCALS",0)~ THEN BMINSC KIMI4 +@701 +DO ~SetGlobal("P#KIMI4","LOCALS",1)~ +== BP#KIV @702 +== BMINSC @703 +== BP#KIV @704 +== BMINSC @705 +EXIT + +//////////////Nalia + +CHAIN +IF WEIGHT #1002 ~ +InParty("P#KIVAN") +See("P#KIVAN") +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KINA3","LOCALS",0)~ THEN BNALIA P#KINA3 +@706 +DO ~SetGlobal("P#KINA3","LOCALS",1)~ +== BP#KIV @707 +== BNALIA @708 += @709 += @710 += @711 += @712 +== BP#KIV @713 +== BNALIA @714 +== BP#KIV @715 += @716 +== BNALIA @717 +== BP#KIV @718 += @719 += @720 +== BNALIA @721 +== BP#KIV @722 += @723 += @724 +EXIT + +CHAIN +IF WEIGHT #1002 ~ +InParty("P#KIVAN") +See("P#KIVAN") +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KINA4","LOCALS",0)~ THEN BNALIA P#KINA4 +@725 +DO ~SetGlobal("P#KINA4","LOCALS",1)~ +== BP#KIV @726 +== BNALIA @727 +== BP#KIV @728 +== BNALIA @729 +== BP#KIV @730 +== BNALIA @731 += @732 +== BP#KIV @733 +== BNALIA @734 +== BP#KIV @735 +== BNALIA @736 +== BP#KIV @737 +== BNALIA @738 +EXIT + +//////////////////////////Valygar + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("VALYGAR") +See("VALYGAR") +!StateCheck("VALYGAR",STATE_SLEEPING) +Global("P#KIVA1","LOCALS",0)~ THEN BP#KIV KIVA1 +@739 +DO ~SetGlobal("P#KIVA1","LOCALS",1)~ +== BVALYGA @740 +== BP#KIV @741 +== BVALYGA @742 +== BP#KIV @743 +== BVALYGA @744 +EXIT + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIVA2","LOCALS",0)~ THEN BVALYGA KIVA2 +@745 +DO ~SetGlobal("P#KIVA2","LOCALS",1)~ +== BP#KIV @746 +== BVALYGA @747 +== BP#KIV @748 +== BVALYGA @749 += @750 +EXIT + +CHAIN +IF WEIGHT #1003 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIVA3","LOCALS",0)~ THEN BVALYGA KIVA3 +@751 +DO ~SetGlobal("P#KIVA3","LOCALS",1)~ +== BP#KIV @752 +== BVALYGA @753 +== BP#KIV @754 +== BVALYGA @755 +== BP#KIV @756 +== BVALYGA @757 +== BP#KIV @758 +== BVALYGA @759 +EXIT + +CHAIN +IF WEIGHT #1004 ~CombatCounter(0) !See([ENEMY])InParty("VALYGAR") +See("VALYGAR") +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +!StateCheck("VALYGAR",STATE_SLEEPING) +Global("P#KIVA4","LOCALS",0)~ THEN BP#KIV KIVA4 +@760 +DO ~SetGlobal("P#KIVA4","LOCALS",1)~ +== BVALYGA @761 +== BP#KIV @762 +== BVALYGA @763 += @764 +== BP#KIV @765 +== BVALYGA @766 +== BP#KIV @767 +EXIT + +CHAIN +IF WEIGHT #1000 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIVINM1","LOCALS",0)~ THEN BVICONI KIVINM1 +@768 +DO ~SetGlobal("P#KIVINM1","LOCALS",1)~ +== BP#KIV @769 +== BVICONI @770 +== BP#KIV @771 +== BVICONI @772 +== BP#KIV @773 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIVI1","LOCALS",0)~ THEN BVICONI KIVI1 +@774 +DO ~SetGlobal("P#KIVI1","LOCALS",1)~ +== BP#KIV @775 +== BVICONI @776 +== BP#KIV @777 +== BVICONI @778 +== BP#KIV @779 +== BVICONI @780 +== BP#KIV @781 +== BVICONI @782 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIVI2","LOCALS",0)~ THEN BVICONI KIVI2 +@783 +DO ~SetGlobal("P#KIVI2","LOCALS",1)~ +== BP#KIV @784 +== BVICONI @785 +EXIT + +CHAIN +IF WEIGHT #1002 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +HPPercentLT("P#KIVAN",50) +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIVI3","LOCALS",0)~ THEN BVICONI KIVI3 +@786 +DO ~SetGlobal("P#KIVI3","LOCALS",1)~ +== BP#KIV @787 +== BVICONI @788 += @789 +EXIT + +CHAIN +IF WEIGHT #1003 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +HPPercentLT("P#KIVAN",50) +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIVI4","LOCALS",0)~ THEN BVICONI KIVI4 +@790 +DO ~SetGlobal("P#KIVI4","LOCALS",1)~ +== BP#KIV @791 +== BVICONI @792 +== BP#KIV @793 +== BVICONI @794 +== BP#KIV @795 +== BVICONI @796 +EXIT + +CHAIN +IF WEIGHT #1004 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIVI5","LOCALS",0)~ THEN BVICONI KIVI5 +@797 +DO ~SetGlobal("P#KIVI5","LOCALS",1)~ +== BP#KIV @798 +== BVICONI @799 +== BP#KIV @800 +== BVICONI @801 +== BP#KIV @802 +== BVICONI @803 +== BP#KIV @804 +EXIT + + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIYO1","LOCALS",0)~ THEN BYOSHIM KIYO1 +@805 +DO ~SetGlobal("P#KIYO1","LOCALS",1)~ +== BP#KIV @806 +== BYOSHIM @807 +== BP#KIV @808 +== BYOSHIM @809 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIYO2","LOCALS",0)~ THEN BYOSHIM KIYO2 +@810 +DO ~SetGlobal("P#KIYO2","LOCALS",1)~ +== BP#KIV @811 +== BYOSHIM @812 +== BP#KIV @813 +== BYOSHIM @814 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIYO3","LOCALS",0)~ THEN BYOSHIM KIYO3 +@815 +DO ~SetGlobal("P#KIYO3","LOCALS",1)~ +== BP#KIV @816 +== BYOSHIM @817 +== BP#KIV @818 +== BYOSHIM @819 +== BP#KIV @820 +== BYOSHIM @821 +== BP#KIV @822 +== BYOSHIM @823 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIYO4","LOCALS",0)~ THEN BYOSHIM KIYO4 +@824 +DO ~SetGlobal("P#KIYO4","LOCALS",1)~ +== BP#KIV @825 +== BYOSHIM @826 +== BP#KIV @827 +== BYOSHIM @828 + == BP#KIV @829 +== BYOSHIM @830 +EXIT + +CHAIN +IF WEIGHT #1001 ~CombatCounter(0) !See([ENEMY])InParty("P#KIVAN") +See("P#KIVAN") +Global("P#DeherianaLives","GLOBAL",0) +Global("P#DeherianaDead","GLOBAL",0) +!StateCheck("P#KIVAN",STATE_SLEEPING) +Global("P#KIKO1","LOCALS",0)~ THEN BKORGAN P#KIKO1 +@831 +DO ~SetGlobal("P#KIKO1","LOCALS",1)~ +== BP#KIV @832 +== BKORGAN @833 +== BP#KIV @834 +== BKORGAN @835 +== BP#KIV @836 +== BKORGAN @837 +== BP#KIV @838 +== BKORGAN @839 +== BP#KIV @840 +== BKORGAN @841 +EXIT + + + + diff --git a/kivan/d/p#pid25.d b/kivan/d/p#pid25.d new file mode 100644 index 0000000..e7aa0b4 --- /dev/null +++ b/kivan/d/p#pid25.d @@ -0,0 +1,1986 @@ +APPEND P#KI25J + +IF WEIGHT #1000 +~IsGabber(Player1) Global("P#DisableKivanFlirts","GLOBAL",0) OR(2)Global("P#KivanRomanceInactive","GLOBAL",1) Global("P#KivanRomanceActive","GLOBAL",0)~ P#KiFlirtToB +SAY @0 + ++ ~RandomNum(4,1) InParty("P#DEHER")~ + @1 + KiFlirt1 ++ ~RandomNum(4,2) InParty("P#DEHER")~ + @1 + KiFlirt2 ++ ~RandomNum(4,3) InParty("P#DEHER")~ + @1 + KiFlirt3 ++ ~RandomNum(4,4) InParty("P#DEHER")~ + @1 + KiFlirt4 + ++ ~RandomNum(4,1) !InParty("P#DEHER")~ + @1 + KiFlirt5 ++ ~RandomNum(4,2) !InParty("P#DEHER")~ + @1 + KiFlirt2 ++ ~RandomNum(4,3) !InParty("P#DEHER")~ + @1 + KiFlirt3 ++ ~RandomNum(4,4) !InParty("P#DEHER")~ + @1 + KiFlirt4 + ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") GlobalLT("X#AskedKivanDoing","GLOBAL",11) HPPercentGT(Player1,50) RandomNum(2,1)~ + @2 DO ~IncrementGlobal("X#AskedKivanDoing","GLOBAL",1)~ + X#KiHow1 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") GlobalLT("X#AskedKivanDoing","GLOBAL",11) HPPercentGT(Player1,50) RandomNum(2,2)~ + @2 DO ~IncrementGlobal("X#AskedKivanDoing","GLOBAL",1)~ + X#KiHow2 + ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !HPPercentGT(Player1,50)~ + @2 + X#KiHow3 + ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") Global("X#AskedKivanDoing","GLOBAL",11) HPPercentGT(Player1,50)~ + @2 DO ~IncrementGlobal("X#AskedKivanDoing","GLOBAL",1)~ + X#KiHow4 + ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") GlobalGT("X#AskedKivanDoing","GLOBAL",11) HPPercentGT(Player1,50) RandomNum(6,1)~ + @2 DO ~IncrementGlobal("X#AskedKivanDoing","GLOBAL",1)~ + X#KiHow5 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") GlobalGT("X#AskedKivanDoing","GLOBAL",11) HPPercentGT(Player1,50) RandomNum(6,1)~ + @2 DO ~IncrementGlobal("X#AskedKivanDoing","GLOBAL",1)~ + X#KiHow6 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") GlobalGT("X#AskedKivanDoing","GLOBAL",11) HPPercentGT(Player1,50) RandomNum(6,1)~ + @2 DO ~IncrementGlobal("X#AskedKivanDoing","GLOBAL",1)~ + X#KiHow7 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") GlobalGT("X#AskedKivanDoing","GLOBAL",11) HPPercentGT(Player1,50) RandomNum(6,1)~ + @2 DO ~IncrementGlobal("X#AskedKivanDoing","GLOBAL",1)~ + X#KiHow8 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") GlobalGT("X#AskedKivanDoing","GLOBAL",11) HPPercentGT(Player1,50) RandomNum(6,1)~ + @2 DO ~IncrementGlobal("X#AskedKivanDoing","GLOBAL",1)~ + X#KiHow9 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") GlobalGT("X#AskedKivanDoing","GLOBAL",11) HPPercentGT(Player1,50) RandomNum(6,1)~ + @2 DO ~IncrementGlobal("X#AskedKivanDoing","GLOBAL",1)~ + X#KiHow10 + ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(8,1)~ + @3 + X#KiMaleEl1 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(8,2)~ + @3 + X#KiMaleEl2 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(8,3)~ + @3 + X#KiMaleEl3 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(8,4)~ + @3 + X#KiMaleEl4 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(8,5)~ + @3 + X#KiMaleEl5 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(8,6)~ + @3 + X#KiMaleEl6 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(8,7)~ + @3 + X#KiMaleEl7 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(8,8)~ + @3 + X#KiMaleEl8 + ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(7,1)~ + @3 + X#KiMaleEl1 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(7,2)~ + @3 + X#KiMaleEl2 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(7,3)~ + @3 + X#KiMaleEl3 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(7,4)~ + @3 + X#KiMaleEl4 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(7,5)~ + @3 + X#KiMaleEl5 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(7,6)~ + @3 + X#KiMaleEl6 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,MALE) !Race(Player1,ELF) RandomNum(7,7)~ + @3 + X#KiMaleEl7 + ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(10,1)~ + @3 + X#KiMaleEl1 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(10,2)~ + @3 + X#KiMaleEl2 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(10,3)~ + @3 + X#KiMaleEl3 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(10,4)~ + @3 + X#KiMaleEl4 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(10,5)~ + @3 + X#KiMaleEl5 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(10,6)~ + @3 + X#KiMaleEl6 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(10,7)~ + @3 + X#KiMaleEl7 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(10,8)~ + @3 + X#KiMaleEl8 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(10,9)~ + @3 + X#KiMaleEl9 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(10,10)~ + @3 + X#KiMaleEl10 + + ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(9,1)~ + @3 + X#KiMaleEl1 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(9,2)~ + @3 + X#KiMaleEl2 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(9,3)~ + @3 + X#KiMaleEl3 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(9,4)~ + @3 + X#KiMaleEl4 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(9,5)~ + @3 + X#KiMaleEl5 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(9,6)~ + @3 + X#KiMaleEl6 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(9,7)~ + @3 + X#KiMaleEl7 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(9,8)~ + @3 + X#KiMaleEl9 ++ ~OR(2) !Global("P#DeherianaDead","GLOBAL",1) RealGlobalTimerExpired("P#KivanFlirtTimer","GLOBAL") !InParty("viconia") Gender(Player1,FEMALE) !Race(Player1,ELF) RandomNum(9,9)~ + @3 + X#KiMaleEl10 + +++ @520 + KiVoice +END + +IF ~~ KiVoice +SAY @521 +IF ~~ THEN DO ~SetName(@522) + SetPlayerSound(Myself,@523,INITIAL_MEETING) + SetPlayerSound(Myself,@524,MORALE) + SetPlayerSound(Myself,@525,HAPPY) + SetPlayerSound(Myself,@526,UNHAPPY_ANNOYED) + SetPlayerSound(Myself,@527,UNHAPPY_SERIOUS) + SetPlayerSound(Myself,@528,UNHAPPY_BREAKING_POINT) + SetPlayerSound(Myself,@529,LEADER) + SetPlayerSound(Myself,@530,TIRED) + SetPlayerSound(Myself,@531,BORED) + SetPlayerSound(Myself,@532,BATTLE_CRY1) + SetPlayerSound(Myself,@533,BATTLE_CRY2) + SetPlayerSound(Myself,@534,BATTLE_CRY3) + SetPlayerSound(Myself,@535,BATTLE_CRY4) + SetPlayerSound(Myself,@536,DAMAGE) + SetPlayerSound(Myself,@537,DYING) + SetPlayerSound(Myself,@538,HURT) + SetPlayerSound(Myself,@539,AREA_FOREST) + SetPlayerSound(Myself,@540,AREA_CITY) + SetPlayerSound(Myself,@541,AREA_DUNGEON) + SetPlayerSound(Myself,@542,AREA_DAY) + SetPlayerSound(Myself,@543,AREA_NIGHT) + SetPlayerSound(Myself,@544,SELECT_COMMON1) + SetPlayerSound(Myself,@545,SELECT_COMMON2) + SetPlayerSound(Myself,@546,SELECT_COMMON3) + SetPlayerSound(Myself,@547,SELECT_COMMON4) + SetPlayerSound(Myself,@548,SELECT_COMMON5) + SetPlayerSound(Myself,@549,SELECT_COMMON6) + SetPlayerSound(Myself,@550,SELECT_ACTION1) + SetPlayerSound(Myself,@551,SELECT_ACTION2) + SetPlayerSound(Myself,@552,SELECT_ACTION3) + SetPlayerSound(Myself,@553,SELECT_ACTION4) + SetPlayerSound(Myself,@554,SELECT_ACTION5) + SetPlayerSound(Myself,@555,SELECT_ACTION6) + SetPlayerSound(Myself,@556,SELECT_ACTION7) + SetPlayerSound(Myself,@557,SELECT_RARE1) + SetPlayerSound(Myself,@558,SELECT_RARE2) + SetPlayerSound(Myself,@559,CRITICAL_HIT) + SetPlayerSound(Myself,@560,CRITICAL_MISS) + SetPlayerSound(Myself,@561,TARGET_IMMUNE) + SetPlayerSound(Myself,@562,INVENTORY_FULL) + SetPlayerSound(Myself,@563,PICKED_POCKET) + SetPlayerSound(Myself,@564,HIDDEN_IN_SHADOWS) + SetPlayerSound(Myself,@565,SPELL_DISRUPTED) + SetPlayerSound(Myself,@566,SET_A_TRAP) + SetPlayerSound(Myself,@567,EXISTANCE5)~ EXIT + END + +IF ~~ X#KiMaleEl1 +SAY @4 +IF ~~ THEN EXIT +END + +IF ~~ X#KiMaleEl2 +SAY @5 +IF ~~ THEN EXIT +END + +IF ~~ X#KiMaleEl3 +SAY @6 +IF ~~ THEN EXIT +END + +IF ~~ X#KiMaleEl4 +SAY @7 +IF ~~ THEN EXIT +END + +IF ~~ X#KiMaleEl5 +SAY @8 +IF ~~ THEN EXIT +END + +IF ~~ X#KiMaleEl6 +SAY @9 +IF ~~ THEN EXIT +END + +IF ~~ X#KiMaleEl7 +SAY @10 +IF ~~ THEN EXIT +END + +IF ~~ X#KiMaleEl9 +SAY @11 +IF ~~ THEN EXIT +END + +IF ~~ X#KiMaleEl10 +SAY @12 +IF ~~ THEN EXIT +END + + +IF ~~ X#KiHow1 +SAY @13 +IF ~~ THEN EXIT +END + +IF ~~ X#KiHow2 +SAY @14 +IF ~~ THEN EXIT +END + +IF ~~ X#KiHow3 +SAY @15 +IF ~~ THEN EXIT +END + +IF ~~ X#KiHow4 +SAY @16 +IF ~~ THEN EXIT +END + +IF ~~ X#KiHow5 +SAY @17 +IF ~~ THEN EXIT +END + +IF ~~ X#KiHow6 +SAY @18 +IF ~~ THEN EXIT +END + +IF ~~ X#KiHow7 +SAY @19 +IF ~~ THEN EXIT +END + +IF ~~ X#KiHow8 +SAY @20 +IF ~~ THEN EXIT +END + +IF ~~ X#KiHow9 +SAY @21 +IF ~~ THEN EXIT +END + +IF ~~ X#KiHow10 +SAY @22 +IF ~~ THEN EXIT +END + + +IF ~~ KiFlirt1 +SAY @23 +IF ~~ THEN EXIT +END + +IF ~~ KiFlirt2 +SAY @24 +IF ~~ THEN EXIT +END + +IF ~~ KiFlirt3 +SAY @25 +IF ~~ THEN EXIT +END + +IF ~~ KiFlirt4 +SAY @26 +IF ~~ THEN EXIT +END + +IF ~~ KiFlirt5 +SAY @27 +IF ~~ THEN EXIT +END + + +IF WEIGHT #1000 +~IsGabber(Player1) Global("P#DisableKivanFlirts","GLOBAL",0) !Global("P#KivanRomanceInactive","GLOBAL",1) Global("P#KivanRomanceActive","GLOBAL",2) GlobalLT("P#KivanOffence","GLOBAL",10) GlobalGT("P#KiLOTOBTalk","GLOBAL",2)~ P#KiFlirt25 +SAY @28 + ++ ~HPPercentLT("P#Kivan",50) RandomNum(6,1)~ + @29 + KiHurt1.1 ++ ~HPPercentLT("P#Kivan",50) RandomNum(6,2)~ + @29 + KiHurt1.2 ++ ~HPPercentLT("P#Kivan",50) RandomNum(6,3)~ + @29 + KiHurt1.3 ++ ~HPPercentLT("P#Kivan",50) RandomNum(6,4)~ + @29 + KiHurt1.4 ++ ~HPPercentLT("P#Kivan",50) RandomNum(6,5)~ + @29 + KiHurt1.5 ++ ~HPPercentLT("P#Kivan",50) RandomNum(6,6)~ + @29 + KiHurt1.6 + ++ ~RandomNum(8,1)~ + @30 + P#KiKISM1.1 ++ ~RandomNum(8,2)~ + @30 + P#KiKISM1.2 ++ ~RandomNum(8,3)~ + @30 + P#KiKISM1.3 ++ ~RandomNum(8,4)~ + @30 + P#KiKISM1.4 ++ ~RandomNum(8,5)~ + @30 + P#KiKISM1.5 ++ ~RandomNum(8,6)~ + @30 + P#KiKISM1.6 ++ ~RandomNum(8,7)~ + @30 + P#KiKISM1.7 ++ ~RandomNum(8,8)~ + @30 + P#KiKISM1.8 + +++ @31 + P#KiKIAP0 + ++ ~RandomNum(8,1)~ + @32 + P#KiKILA1.1 ++ ~RandomNum(8,2)~ + @32 + P#KiKILA1.2 ++ ~RandomNum(8,3)~ + @32 + P#KiKILA1.3 ++ ~RandomNum(8,4)~ + @32 + P#KiKILA1.4 ++ ~RandomNum(8,5)~ + @32 + P#KiKILA1.5 ++ ~RandomNum(8,6)~ + @32 + P#KiKILA1.6 ++ ~RandomNum(8,7)~ + @32 + P#KiKILA1.7 ++ ~RandomNum(8,8)~ + @32 + P#KiKILA1.8 + ++ ~RandomNum(8,1)~ + @33 + P#KiCHES1.1 ++ ~RandomNum(8,2)~ + @33 + P#KiCHES1.2 ++ ~RandomNum(8,3)~ + @33 + P#KiCHES1.3 ++ ~RandomNum(8,4)~ + @33 + P#KiCHES1.4 ++ ~RandomNum(8,5)~ + @33 + P#KiCHES1.5 ++ ~RandomNum(8,6)~ + @33 + P#KiCHES1.6 ++ ~RandomNum(8,7)~ + @33 + P#KiCHES1.7 ++ ~RandomNum(8,8)~ + @33 + P#KiCHES1.8 + ++ ~RandomNum(4,1)~ + @34 + P#KiPALM1.1 ++ ~RandomNum(4,2)~ + @34 + P#KiPALM1.2 ++ ~RandomNum(4,3)~ + @34 + P#KiPALM1.3 ++ ~RandomNum(4,4)~ + @34 + P#KiPALM1.4 + ++ ~RandomNum(8,1)~ + @35 + P#KiHAWA1.1 ++ ~RandomNum(8,2)~ + @35 + P#KiHAWA1.2 ++ ~RandomNum(8,3)~ + @35 + P#KiHAWA1.3 ++ ~RandomNum(8,4)~ + @35 + P#KiHAWA1.4 ++ ~RandomNum(8,5)~ + @35 + P#KiHAWA1.5 ++ ~RandomNum(8,6)~ + @35 + P#KiHAWA1.6 ++ ~RandomNum(8,7)~ + @35 + P#KiHAWA1.7 ++ ~RandomNum(8,8)~ + @35 + P#KiHAWA1.8 + +++ @36+ P#KiHAIR1 + ++ ~RandomNum(8,1)~ + @37 + P#KiEYES1.1 ++ ~RandomNum(8,2)~ + @37 + P#KiEYES1.2 ++ ~RandomNum(8,3)~ + @37 + P#KiEYES1.3 ++ ~RandomNum(8,4)~ + @37 + P#KiEYES1.4 ++ ~RandomNum(8,5)~ + @37 + P#KiEYES1.5 ++ ~RandomNum(8,6)~ + @37 + P#KiEYES1.6 ++ ~RandomNum(8,7)~ + @37 + P#KiEYES1.7 ++ ~RandomNum(8,8)~ + @37 + P#KiEYES1.8 + +++ @38 + P#KiTIRE0 + +++ @39 + P#HUGI0 + +++ @40 + P#ELVI0 + +++ @41 + P#EARS0 + +++ @42 + P#FACE0 + ++ ~RandomNum(4,1)~+ @43 + P#GOWN1 ++ ~RandomNum(4,2)~+ @43 + P#GOWN2 ++ ~RandomNum(4,3)~+ @43 + P#GOWN3 ++ ~RandomNum(4,4)~+ @43 + P#GOWN4 + +++ @44 DO ~SetGlobal("P#DisableKivanFlirts","GLOBAL",1)~ EXIT ++ ~!Global("P#KivanRomanceInactive","GLOBAL",1) +Global("P#KivanRomanceActive","GLOBAL",2)~ + @45 + P#Sorry + +++ @520 + KiVoice + +END + +//Sorry and No Flirts// + +IF ~~ P#Sorry +SAY @46 +IF ~~ THEN DO ~SetGlobal("P#KivanRomanceInactive","GLOBAL",1) IncrementGlobal("P#KivanOffence","GLOBAL",7)~ EXIT +END + +//Flit Replies + +//tease// + +IF ~~ P#GOWN1 +SAY @47 +++ @48 + P#GOWN1.1 +++ @49 + P#GOWN1.2 +++ @50 + P#GOWN1.3 +END + +IF ~~ P#GOWN1.1 +SAY @51 +IF ~~ THEN EXIT +END + +IF ~~ P#GOWN1.2 +SAY @52 +IF ~~ THEN EXIT +END + +IF ~~ P#GOWN1.3 +SAY @53 +IF ~~ THEN EXIT +END + +IF ~~ P#GOWN2 +SAY @54 ++~!InParty("J#Kelsey")~ + @55 + P#GOWN2.1A ++~InParty("J#Kelsey")~ + @55 + P#GOWN2.1B +++ @56 + P#GOWN2.2 +++ @57 + P#GOWN2.3 +END + +IF ~~ P#GOWN2.1A +SAY @58 +IF ~~ THEN EXIT +END + +IF ~~ P#GOWN2.1B +SAY @59 +IF ~~ THEN EXIT +END + +IF ~~ P#GOWN2.2 +SAY @60 +IF ~~ THEN EXIT +END + +IF ~~ P#GOWN2.3 +SAY @61 +IF ~~ THEN EXIT +END + +IF ~~ P#GOWN3 +SAY @62 +++ @63 + P#GOWN3.1 +++ @64 + P#GOWN3.2 +++ @65 + P#GOWN3.3 +END + +IF ~~ P#GOWN3.1 +SAY @66 +IF ~~ THEN EXIT +END + +IF ~~ P#GOWN3.2 +SAY @67 +IF ~~ THEN EXIT +END + +IF ~~ P#GOWN3.3 +SAY @68 +IF ~~ THEN EXIT +END + +IF ~~ P#GOWN4 +SAY @69 +++ @70 + P#GOWN4.1 +++ @71 + P#GOWN4.2 +++ @72 + P#GOWN4.2 +++ @73 + P#GOWN4.3 +END + +IF ~~ P#GOWN4.1 +SAY @74 +IF ~~ THEN EXIT +END + +IF ~~ P#GOWN4.2 +SAY @75 +IF ~~ THEN EXIT +END + +IF ~~ P#GOWN4.3 +SAY @76 += @77 +IF ~~ THEN EXIT +END + +//face// + +IF ~~ P#FACE0 +SAY @78 ++ ~RandomNum(4,1)~ + @79 + P#FACE1.1 ++ ~RandomNum(4,2)~ + @80 + P#FACE1.2 ++ ~RandomNum(4,3)~ + @80 + P#FACE1.3 ++ ~RandomNum(4,4)~ + @80 + P#FACE1.4 ++ ~RandomNum(4,1)~ + @81 + P#FACE2.1 ++ ~RandomNum(4,2)~ + @81 + P#FACE2.2 ++ ~RandomNum(4,3)~ + @81 + P#FACE2.3 ++ ~RandomNum(4,4)~ + @81 + P#FACE2.4 ++ ~RandomNum(4,1)~ + @82 + P#FACE3.1 ++ ~RandomNum(4,2)~ + @82 + P#FACE3.2 ++ ~RandomNum(4,3)~ + @82 + P#FACE3.3 ++ ~RandomNum(4,4)~ + @82 + P#FACE3.4 ++ ~TimeOfDay(DAY)~ + @83 + P#FACE4 ++ ~TimeOfDay(NIGHT)~ + @84 + P#FACE5 +END + +IF ~~ P#FACE5 +SAY @85 +IF ~~ THEN EXIT +END + +IF ~~ P#FACE4 +SAY @86 +IF ~~ THEN EXIT +END + +IF ~~ P#FACE1.1 +SAY @87 +IF ~~ THEN EXIT +END + +IF ~~ P#FACE1.2 +SAY @88 +IF ~~ THEN EXIT +END + +IF ~~ P#FACE1.3 +SAY @89 +IF ~~ THEN EXIT +END + +IF ~~ P#FACE1.4 +SAY @90 +IF ~~ THEN EXIT +END + +IF ~~ P#FACE2.1 +SAY @91 +IF ~~ THEN EXIT +END + +IF ~~ P#FACE2.2 +SAY @92 +IF ~~ THEN EXIT +END + +IF ~~ P#FACE2.3 +SAY @93 +IF ~~ THEN EXIT +END + +IF ~~ P#FACE2.4 +SAY @94 +IF ~~ THEN EXIT +END + +IF ~~ P#FACE3.1 +SAY @95 +IF ~~ THEN EXIT +END + +IF ~~ P#FACE3.2 +SAY @96 +IF ~~ THEN EXIT +END + +IF ~~ P#FACE3.3 +SAY @97 +IF ~~ THEN EXIT +END + +IF ~~ P#FACE3.4 +SAY @98 +++ @99 + P#FACE3.4.1 +++ @100 + P#FACE3.4.2 +++ @101 + P#FACE3.4.3 +END + +IF ~~ P#FACE3.4.1 +SAY@102 += @103 +IF ~~ THEN EXIT +END + +IF ~~ P#FACE3.4.2 +SAY@104 += @105 += @106 +IF ~~ THEN EXIT +END + +IF ~~ P#FACE3.4.3 +SAY @107 +IF ~~ THEN EXIT +END + +//ear// + +IF ~~ P#EARS0 +SAY @108 ++ ~RandomNum(4,1)~ + @109 + P#EARS1.1 ++ ~RandomNum(4,2)~ + @109 + P#EARS1.2 ++ ~RandomNum(4,3)~ + @109 + P#EARS1.3 ++ ~RandomNum(4,4)~ + @109 + P#EARS1.4 ++ ~RandomNum(4,1)~ + @110 + P#EARS2.1 ++ ~RandomNum(4,2)~ + @110 + P#EARS2.2 ++ ~RandomNum(4,3)~ + @110 + P#EARS2.3 ++ ~RandomNum(4,4)~ + @110 + P#EARS2.4 ++ ~RandomNum(4,1) !Race(Player1, ELF)~ + @111 + P#EARS3.1 ++ ~RandomNum(4,2) !Race(Player1, ELF)~ + @111 + P#EARS3.2 ++ ~RandomNum(4,3) !Race(Player1, ELF)~ + @111 + P#EARS3.3 ++ ~RandomNum(4,4) !Race(Player1, ELF)~ + @111 + P#EARS3.4 ++ ~RandomNum(4,1) Race(Player1, ELF)~ + @112 + P#EARS3.1 ++ ~RandomNum(4,2) Race(Player1, ELF)~ + @112 + P#EARS4.2 ++ ~RandomNum(4,3) Race(Player1, ELF)~ + @112 + P#EARS4.3 ++ ~RandomNum(4,4) Race(Player1, ELF)~ + @112 + P#EARS3.4 +++ @113 EXIT +END + +IF ~~ P#EARS1.1 +SAY @114 +IF ~~ THEN EXIT +END + +IF ~~ P#EARS1.2 +SAY @115 +IF ~~ THEN EXIT +END + +IF ~~ P#EARS1.3 +SAY @116 +IF ~~ THEN EXIT +END + +IF ~~ P#EARS1.4 +SAY @117 +IF ~~ THEN EXIT +END + +IF ~~ P#EARS2.1 +SAY @118 +IF ~~ THEN EXIT +END + +IF ~~ P#EARS2.2 +SAY @119 +IF ~~ THEN EXIT +END + +IF ~~ P#EARS2.3 +SAY @120 +IF ~~ THEN EXIT +END + +IF ~~ P#EARS2.4 +SAY @121 +IF ~~ THEN EXIT +END + +IF ~~ P#EARS3.1 +SAY @122 +IF ~~ THEN EXIT +END + +IF ~~ P#EARS3.2 +SAY @123 +IF ~~ THEN EXIT +END + +IF ~~ P#EARS3.3 +SAY @124 +IF ~~ THEN EXIT +END + +IF ~~ P#EARS3.4 +SAY @125 +IF ~~ THEN EXIT +END + +IF ~~ P#EARS4.2 +SAY @126 +IF ~~ THEN EXIT +END + +IF ~~ P#EARS4.3 +SAY @127 +IF ~~ THEN EXIT +END + +//HUG// + +IF ~~ P#HUGI0 +SAY @128 ++ ~RandomNum(4,1)~ + @129 + P#HUGI1.1 ++ ~RandomNum(4,2)~ + @129 + P#HUGI1.2 ++ ~RandomNum(4,3)~ + @129 + P#HUGI1.3 ++ ~RandomNum(4,4)~ + @129 + P#HUGI1.4 ++ ~RandomNum(4,1)~ + @130 + P#HUGI2.1 ++ ~RandomNum(4,2)~ + @130 + P#HUGI2.2 ++ ~RandomNum(4,3)~ + @130 + P#HUGI2.3 ++ ~RandomNum(4,4)~ + @130 + P#HUGI2.4 ++ ~RandomNum(4,1)~ + @131 + P#HUGI3.1 ++ ~RandomNum(4,2)~ + @131 + P#HUGI3.2 ++ ~RandomNum(4,3)~ + @131 + P#HUGI3.3 ++ ~RandomNum(4,4)~ + @131 + P#HUGI3.4 ++ ~RandomNum(4,1)~ + @132 + P#HUGI4.1 ++ ~RandomNum(4,2)~ + @132 + P#HUGI4.2 ++ ~RandomNum(4,3)~ + @132 + P#HUGI4.3 ++ ~RandomNum(4,4)~ + @132 + P#HUGI4.3 ++ ~RandomNum(4,1)~ + @133 + P#HUGI5.1 ++ ~RandomNum(4,2)~ + @133 + P#HUGI5.2 ++ ~RandomNum(4,3)~ + @133 + P#HUGI5.3 ++ ~RandomNum(4,4)~ + @133 + P#HUGI5.4 +END + +IF ~~ P#HUGI5.4 +SAY @134 +IF ~~ THEN EXIT +END + +IF ~~ P#HUGI5.3 +SAY @135 +IF ~~ THEN EXIT +END + +IF ~~ P#HUGI5.2 +SAY @136 +IF ~~ THEN EXIT +END + +IF ~~ P#HUGI5.1 +SAY @137 +IF ~~ THEN EXIT +END + +IF ~~ P#HUGI4.3 +SAY @138 +IF ~~ THEN EXIT +END + +IF ~~ P#HUGI4.2 +SAY @139 +IF ~~ THEN EXIT +END + +IF ~~ P#HUGI4.1 +SAY @140 +IF ~~ THEN EXIT +END + +IF ~~ P#HUGI3.4 +SAY @141 +IF ~~ THEN EXIT +END + +IF ~~ P#HUGI3.3 +SAY @142 +IF ~~ THEN EXIT +END + +IF ~~ P#HUGI3.2 +SAY @143 +IF ~~ THEN EXIT +END + +IF ~~ P#HUGI3.1 +SAY @144 +IF ~~ THEN EXIT +END + +IF ~~ P#HUGI2.4 +SAY @145 +IF ~~ THEN EXIT +END + +IF ~~ P#HUGI2.3 +SAY @146 +IF ~~ THEN EXIT +END + +IF ~~ P#HUGI2.2 +SAY @147 +IF ~~ THEN EXIT +END + +IF ~~ P#HUGI2.1 +SAY @148 += @149 +++ @150 + P#HUGI2.1.1 +++ @151 + P#HUGI2.1.2 +++ @152 + P#HUGI2.1.3 +++ @153 + P#HUGI2.1.2 +END + +IF ~~ P#HUGI2.1.1 +SAY @154 +IF ~~ THEN EXIT +END + +IF ~~ P#HUGI2.1.2 +SAY @155 +IF ~~ THEN EXIT +END + +IF ~~ P#HUGI2.1.3 +SAY @156 +IF ~~ THEN EXIT +END + + +IF ~~ P#HUGI1.1 +SAY @157 +IF ~~ THEN EXIT +END + +IF ~~ P#HUGI1.2 +SAY @158 +IF ~~ THEN EXIT +END + +IF ~~ P#HUGI1.3 +SAY @159 +IF ~~ THEN EXIT +END + +IF ~~ P#HUGI1.4 +SAY @160 +IF ~~ THEN EXIT +END + +//Crash course in Elvish// + +IF ~~ P#ELVI0 +SAY @161 ++ ~RandomNum(8,1)~ + @162 + P#ELVI1.1 ++ ~RandomNum(8,2)~ + @162 + P#ELVI1.2 ++ ~RandomNum(8,3)~ + @162 + P#ELVI1.3 ++ ~RandomNum(8,4)~ + @162 + P#ELVI1.4 ++ ~RandomNum(8,5)~ + @162 + P#ELVI1.5 ++ ~RandomNum(8,6)~ + @162 + P#ELVI1.6 ++ ~RandomNum(8,7)~ + @162 + P#ELVI1.7 ++ ~RandomNum(8,8)~ + @162 + P#ELVI1.8 +++ @163 + P#ELVI2 +++ @164 + P#ELVI3 +END + +IF ~~ P#ELVI3 +SAY @165 +IF ~~ THEN EXIT +END + +IF ~~ P#ELVI1.1 +SAY @166 += @167 +IF ~~ THEN EXIT +END + +IF ~~ P#ELVI1.2 +SAY @168 += @169 +IF ~~ THEN EXIT +END + +IF ~~ P#ELVI1.3 +SAY @170 += @171 += @172 +IF ~~ THEN EXIT +END + +IF ~~ P#ELVI1.4 +SAY @173 += @174 +IF ~~ THEN EXIT +END + +IF ~~ P#ELVI1.5 +SAY @175 += @176 +IF ~~ THEN EXIT +END + +IF ~~ P#ELVI1.6 +SAY @177 +IF ~~ THEN EXIT +END + +IF ~~ P#ELVI1.7 +SAY @178 += @179 +IF ~~ THEN EXIT +END + +IF ~~ P#ELVI1.8 +SAY @180 +IF ~~ THEN EXIT +END + +IF ~~ P#ELVI2 +SAY @181 +++ @182 + P#ELVI2.1 ++ ~RandomNum(7,1)~ + @183 + P#ELVI3.1 ++ ~RandomNum(7,2)~ + @183 + P#ELVI3.2 ++ ~RandomNum(7,3)~ + @183 + P#ELVI3.3 ++ ~RandomNum(7,4)~ + @183 + P#ELVI3.4 ++ ~RandomNum(7,5)~ + @183 + P#ELVI3.5 ++ ~RandomNum(7,6)~ + @183 + P#ELVI3.6 ++ ~RandomNum(7,7)~ + @183 + P#ELVI3.7 +++ @164 + P#ELVI3 +END + +IF ~~ P#ELVI2.1 +SAY @184 +++ @185 + P#ELVI2.2 +++ @186 + P#ELVI2.3 +++ @187 + P#ELVI2.4 +++ @188 + P#ELVI2.5 +++ @189 + P#ELVI2.6 +END + +IF ~~ P#ELVI2.5 +SAY @190 +IF ~~ THEN DO ~RestParty()~ EXIT +END + +IF ~~ P#ELVI2.4 +SAY @191 += @192 +IF ~~ THEN EXIT +END + +IF ~~ P#ELVI2.3.1 +SAY @92 +IF ~~ THEN EXIT +END + +IF ~~ P#ELVI2.3 +SAY @193 +++ @194 + P#ELVI2.3.1 +++ @195 EXIT +++ @196 + P#ELVI2.1 +END + +IF ~~ P#ELVI2.2 +SAY @197 +++ @198 + P#ELVI2.2.1 +++ @199 + P#ELVI2.2.2 +++ @200 + P#ELVI2.2.3 +++ @196 + P#ELVI2.1 +END + +IF ~~ P#ELVI2.2.1 +SAY @201 += @202 +IF ~~ THEN EXIT +END + +IF ~~ P#ELVI2.2.2 +SAY @203 +IF ~~ THEN EXIT +END + +IF ~~ P#ELVI2.2.3 +SAY @204 +IF ~~ THEN EXIT +END + +IF ~~ P#ELVI3.1 +SAY @205 +IF ~~ THEN EXIT +END + +IF ~~ P#ELVI2.6 +SAY @206 += @207 +IF ~~ THEN EXIT +END + +IF ~~ P#ELVI3.2 +SAY @208 +IF ~~ THEN EXIT +END + +IF ~~ P#ELVI3.3 +SAY @209 +IF ~~ THEN EXIT +END + +IF ~~ P#ELVI3.4 +SAY @210 +IF ~~ THEN EXIT +END + +IF ~~ P#ELVI3.5 +SAY @211 +IF ~~ THEN EXIT +END + +IF ~~ P#ELVI3.6 +SAY @212 +IF ~~ THEN EXIT +END + +IF ~~ P#ELVI3.7 +SAY @212 +IF ~~ THEN EXIT +END + +//Tired// + +IF ~~ P#KiTIRE0 +SAY @213 ++ ~RandomNum(4,1)~ + @214 + P#KiTIRE1.1 ++ ~RandomNum(4,2)~ + @214 + P#KiTIRE1.2 ++ ~RandomNum(4,3)~ + @214 + P#KiTIRE1.3 ++ ~RandomNum(4,4)~ + @214 + P#KiTIRE1.4 ++ ~RandomNum(4,1)~ + @215 + P#KiTIRE2.1 ++ ~RandomNum(4,2)~ + @215 + P#KiTIRE2.2 ++ ~RandomNum(4,3)~ + @215 + P#KiTIRE2.3 ++ ~RandomNum(4,4)~ + @215 + P#KiTIRE2.4 ++ ~RandomNum(4,1)~ + @216 + P#KiTIRE3.1 ++ ~RandomNum(4,2)~ + @216 + P#KiTIRE3.2 ++ ~RandomNum(4,3)~ + @216 + P#KiTIRE3.3 ++ ~RandomNum(4,4)~ + @216 + P#KiTIRE3.4 ++ ~RandomNum(4,1)~ + @217 + P#KiTIRE4.1 ++ ~RandomNum(4,2)~ + @217 + P#KiTIRE4.2 ++ ~RandomNum(4,3)~ + @217 + P#KiTIRE4.3 ++ ~RandomNum(4,4)~ + @217 + P#KiTIRE4.4 ++ ~RandomNum(4,1)~ + @218 + P#KiTIRE5.1 ++ ~RandomNum(4,2)~ + @218 + P#KiTIRE5.2 ++ ~RandomNum(4,3)~ + @218 + P#KiTIRE5.3 ++ ~RandomNum(4,4)~ + @218 + P#KiTIRE5.4 +END + +IF ~~ P#KiTIRE5.4 +SAY @219 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE5.3 +SAY @220 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE5.2 +SAY @221 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE5.1 +SAY @222 +++ @223 EXIT +++ @224 + P#KiTIRE5.1.1 +++ @225 + P#KiTIRE5.1.2 +++ @226 + P#KiTIRE5.1.3 +END + +IF ~~ P#KiTIRE5.1.3 +SAY @227 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE5.1.2 +SAY @228 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE5.1.1 +SAY @229 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE4.4 +SAY @230 += @231 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE4.3 +SAY @232 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE4.2 +SAY @233 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE4.1 +SAY @234 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE3.4 +SAY @235 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE3.3 +SAY @236 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE3.2 +SAY @237 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE3.1 +SAY @238 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE2.4 +SAY @239 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE2.3 +SAY @240 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE2.2 +SAY @241 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE2.1 +SAY @242 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE1.1 +SAY @243 +++ @244 + P#KiTIRE1.1.1 +++ @245 + P#KiTIRE1.1.2 +++ @246 + P#KiTIRE1.1.3 +++ @247 + P#KiTIRE1.1.4 +END + +IF ~~ P#KiTIRE1.1.1 +SAY @248 += @249 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE1.1.2 +SAY @250 +++ @251 + P#KiTIRE1.1.2.1 +++ @252 + P#KiTIRE1.1.2.2 +++ @253 + P#KiTIRE1.1.2.3 +++ @254 + P#KiTIRE1.1.2.2 +END + +IF ~~ P#KiTIRE1.1.2.1 +SAY @255 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE1.1.2.2 +SAY @256 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE1.1.2.3 +SAY @257 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE1.1.3 +SAY @258 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE1.1.4 +SAY @259 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE1.2 +SAY @260 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE1.3 +SAY @261 +IF ~~ THEN EXIT +END + +IF ~~ P#KiTIRE1.4 +SAY @262 +IF ~~ THEN EXIT +END + +//Eyes + +IF ~~ P#KiEYES1.1 +SAY @263 +IF ~~ THEN EXIT +END + +IF ~~ P#KiEYES1.2 +SAY @264 +IF ~~ THEN EXIT +END + +IF ~~ P#KiEYES1.3 +SAY @265 +IF ~~ THEN EXIT +END + +IF ~~ P#KiEYES1.4 +SAY @266 +IF ~~ THEN EXIT +END + +IF ~~ P#KiEYES1.5 +SAY @267 +IF ~~ THEN EXIT +END + +IF ~~ P#KiEYES1.6 +SAY @268 +IF ~~ THEN EXIT +END + +IF ~~ P#KiEYES1.7 +SAY @269 +IF ~~ THEN EXIT +END + +IF ~~ P#KiEYES1.8 +SAY @270 +IF ~~ THEN EXIT +END + +//His Hair// + +IF ~~ P#KiHAIR1.1 +SAY @271 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR1.3 +SAY @272 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR1.4 +SAY @273 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR1.2 +SAY @274 +++ @275+P#KiHAIR1.2.1 +++ @276+P#KiHAIR1.2.2 +++ @277+P#KiHAIR1.2.3 +++ @278+P#KiHAIR1.2.4 +END + +IF ~~ P#KiHAIR1.2.1 +SAY @279 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR1.2.2 +SAY @280 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR1.2.3 +SAY @281 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR1.2.4 +SAY @282 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR2.4 +SAY @283 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR2.3 +SAY @284 += @285 += @286 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR2.2 +SAY @287 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR2.1 +SAY @288 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR3.4 +SAY @289 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR3.3 +SAY @290 += @291 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR3.2 +SAY @292 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR3.1 +SAY @293 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR4.4 +SAY @294 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR4.3 +SAY @295 += @296 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR4.2 +SAY @297 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR4.1 +SAY @298 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR5.1 +SAY @299 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR5.2 +SAY @300 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR5.3 +SAY @301 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR5.4 +SAY @302 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAIR6 +SAY @303 += @304 +IF ~~ THEN EXIT +END + + +IF ~~ P#KiHAIR1 +SAY @305 ++ ~RandomNum(4,1)~+ @306 + P#KiHAIR1.1 ++ ~RandomNum(4,2)~+ @306 + P#KiHAIR1.2 ++ ~RandomNum(4,3)~+ @306 + P#KiHAIR1.3 ++ ~RandomNum(4,4)~+ @306 + P#KiHAIR1.4 ++ ~RandomNum(4,1)~+ @307 + P#KiHAIR2.1 ++ ~RandomNum(4,2)~+ @307 + P#KiHAIR2.2 ++ ~RandomNum(4,3)~+ @307 + P#KiHAIR2.3 ++ ~RandomNum(4,4)~+ @307 + P#KiHAIR2.4 ++ ~RandomNum(4,1)~+ @308 + P#KiHAIR3.1 ++ ~RandomNum(4,2)~+ @308 + P#KiHAIR3.2 ++ ~RandomNum(4,3)~+ @308 + P#KiHAIR3.3 ++ ~RandomNum(4,4)~+ @308 + P#KiHAIR3.4 ++ ~RandomNum(4,1)~+ @309 + P#KiHAIR4.1 ++ ~RandomNum(4,2)~+ @309 + P#KiHAIR4.2 ++ ~RandomNum(4,3)~+ @309 + P#KiHAIR4.3 ++ ~RandomNum(4,4)~+ @309 + P#KiHAIR4.4 ++ ~RandomNum(4,1)~+ @310 + P#KiHAIR5.1 ++ ~RandomNum(4,2)~+ @310 + P#KiHAIR5.2 ++ ~RandomNum(4,3)~+ @310 + P#KiHAIR5.3 ++ ~RandomNum(4,4)~+ @310 + P#KiHAIR5.4 +++ @311 + P#KiHAIR6 +END + +//Hair Wave// + +IF ~~ P#KiHAWA1.1 +SAY @312 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAWA1.2 +SAY @313 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAWA1.3 +SAY @314 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAWA1.4 +SAY @315 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAWA1.5 +SAY @316 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAWA1.6 +SAY @317 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAWA1.7 +SAY @318 +IF ~~ THEN EXIT +END + +IF ~~ P#KiHAWA1.8 +SAY @319 +IF ~~ THEN EXIT +END + +//Palm// + +IF ~~ P#KiPALM1.4 +SAY @320 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.7.4 +SAY @321 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.7.3 +SAY @322 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.7.2 +SAY @323 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.7.1 +SAY @324 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.6.4 +SAY @325 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.6.3 +SAY @326 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.6.2 +SAY @327 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.6.1 +SAY @328 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.5.18 +SAY @329 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.5.17 +SAY @330 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.5.16 +SAY @331 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.5.15 +SAY @332 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.5.14 +SAY @333 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.5.13 +SAY @334 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.5.12 +SAY @335 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.5.11 +SAY @336 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.5.10 +SAY @337 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.5.9 +SAY @338 += @339 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.5.8 +SAY @340 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.5.7 +SAY @341 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.5.6 +SAY @342 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.5.5 +SAY @343 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.5.4 +SAY @344 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.5.3 +SAY @345 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.5.2 +SAY @346 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.5.1 +SAY @347 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.5 +SAY @348 ++~RandomNum(3,1)~+ @349 + P#KiPALM3.5.1 ++~RandomNum(3,2)~+ @349 + P#KiPALM3.5.2 ++~RandomNum(3,3)~+ @349 + P#KiPALM3.5.3 ++~RandomNum(3,1)~+ @350 + P#KiPALM3.5.4 ++~RandomNum(3,2)~+ @350 + P#KiPALM3.5.5 ++~RandomNum(3,3)~+ @350 + P#KiPALM3.5.6 ++~RandomNum(3,1)~+ @351 + P#KiPALM3.5.7 ++~RandomNum(3,2)~+ @351 + P#KiPALM3.5.8 ++~RandomNum(3,3)~+ @351 + P#KiPALM3.5.9 ++~RandomNum(3,1)~+ @352 + P#KiPALM3.5.10 ++~RandomNum(3,2)~+ @352 + P#KiPALM3.5.11 ++~RandomNum(3,3)~+ @352 + P#KiPALM3.5.12 ++~RandomNum(3,1)~+ @353 + P#KiPALM3.5.13 ++~RandomNum(3,2)~+ @353 + P#KiPALM3.5.14 ++~RandomNum(3,3)~+ @353 + P#KiPALM3.5.15 ++~RandomNum(3,1)~+ @354 + P#KiPALM3.5.16 ++~RandomNum(3,2)~+ @354 + P#KiPALM3.5.17 ++~RandomNum(3,3)~+ @354 + P#KiPALM3.5.18 +END + +IF ~~ P#KiPALM3.4 +SAY @355 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.3 +SAY @356 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.2 +SAY @357 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM3.1 +SAY @358 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM2.4 +SAY @359 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM2.3 +SAY @360 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM2.2 +SAY @361 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM2.1 +SAY @362 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM1.3.3 +SAY @363 ++ ~RandomNum(4,1)~+ @364 + P#KiPALM2.1 ++ ~RandomNum(4,2)~+ @364 + P#KiPALM2.2 ++ ~RandomNum(4,3)~+ @364 + P#KiPALM2.3 ++ ~RandomNum(4,4)~+ @364 + P#KiPALM2.4 ++ ~RandomNum(4,1)~+ @365 + P#KiPALM3.1 ++ ~RandomNum(4,2)~+ @365 + P#KiPALM3.2 ++ ~RandomNum(4,3)~+ @365 + P#KiPALM3.3 ++ ~RandomNum(4,4)~+ @365 + P#KiPALM3.4 +++ @366 + P#KiPALM3.5 ++ ~RandomNum(4,1)~ + @367 + P#KiPALM3.6.1 ++ ~RandomNum(4,2)~ + @367 + P#KiPALM3.6.2 ++ ~RandomNum(4,3)~ + @367 + P#KiPALM3.6.3 ++ ~RandomNum(4,4)~ + @367 + P#KiPALM3.6.4 ++ ~ RandomNum(4,1)~ + @368 + P#KiPALM3.7.1 ++ ~ RandomNum(4,2)~ + @368 + P#KiPALM3.7.2 ++ ~ RandomNum(4,3)~ + @368 + P#KiPALM3.7.3 ++ ~ RandomNum(4,4)~ + @368 + P#KiPALM3.7.4 +END + +IF ~~ P#KiPALM1.3 +SAY @369 +++ @370 + P#KiPALM1.3.1 +++ @371 + P#KiPALM1.3.2 +++ @372 + P#KiPALM1.3.3 +END + +IF ~~ P#KiPALM1.3.2 +SAY @373 +++ @372 + P#KiPALM1.3.3 +++ @374+ P#KiPALM1.3.2A +++ @375 + P#KiPALM1.3.1 +END + +IF ~~ P#KiPALM1.3.2A +SAY @376 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM1.3.1 +SAY @377 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM1.2 +SAY @378 +IF ~~ THEN EXIT +END + +IF ~~ P#KiPALM1.1 +SAY @379 +IF ~~ THEN EXIT +END + +//Solace// + +IF ~~ P#KiCHES1.8 +SAY @380 +IF ~~ THEN EXIT +END + +IF ~~ P#KiCHES1.7 +SAY @381 +IF ~~ THEN EXIT +END + +IF ~~ P#KiCHES1.6 +SAY @382 +IF ~~ THEN EXIT +END + +IF ~~ P#KiCHES1.5 +SAY @383 +IF ~~ THEN EXIT +END + +IF ~~ P#KiCHES1.4 +SAY @384 +IF ~~ THEN EXIT +END + +IF ~~ P#KiCHES1.3 +SAY @385 +IF ~~ THEN EXIT +END + +IF ~~ P#KiCHES1.1 +SAY @386 +IF ~~ THEN EXIT +END + +IF ~~ P#KiCHES1.2 +SAY @387 +++ @388 + P#KiCHES1.2.1 +++ @389 + P#KiCHES1.2.2 +++ @390 + P#KiCHES1.2.3 +END + +IF ~~ P#KiCHES1.2.3 +SAY @391 +IF ~~ THEN EXIT +END + +IF ~~ P#KiCHES1.2.2 +SAY @392 +IF ~~ THEN EXIT +END + +IF ~~ P#KiCHES1.2.1 +SAY @393 +IF ~~ THEN EXIT +END + +//Big Kiss// + +IF ~~ P#KiKILA1.1 +SAY @394 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKILA1.2 +SAY @395 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKILA1.3 +SAY @396 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKILA1.4 +SAY @397 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKILA1.5 +SAY @398 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKILA1.6 +SAY @399 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKILA1.7 +SAY @400 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKILA1.8 +SAY @401 +IF ~~ THEN EXIT +END + +//Apple// + +IF ~~ P#KiKIAP0 +SAY @402 +++ @403 EXIT +++ @404 EXIT ++~RandomNum(6,1)~ + @405 + P#KiKIAP1 ++~RandomNum(6,2)~ + @405 + P#KiKIAP2 ++~RandomNum(6,3)~ + @405 + P#KiKIAP3 ++~RandomNum(6,4)~ + @405 + P#KiKIAP4 ++~RandomNum(6,5)~ + @405 + P#KiKIAP5 ++~RandomNum(6,6)~ + @405 + P#KiKIAP6 +END + +IF ~~ P#KiKIAP1 +SAY @406 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKIAP2 +SAY @407 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKIAP3 +SAY @408 +++ @409 + P#KiKIAP3.1 +++ @410 + P#KiKIAP3.2 +++ @411 + P#KiKIAP3.3 +END + +IF ~~ P#KiKIAP3.3 +SAY @412 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKIAP3.2 +SAY @413 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKIAP3.1 +SAY @414 +++ @415 + P#KiKIAP3.1.1 +++ @416 + P#KiKIAP3.1.2 +++ @417 + P#KiKIAP4.2.3 +END + +IF ~~ P#KiKIAP3.1.1 +SAY @92 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKIAP3.1.2 +SAY @418 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKIAP4 +SAY @419 +++ @420 + P#KiKIAP4.1 +++ @421 + P#KiKIAP4.2 +++ @422 + P#KiKIAP4.3 +END + +IF ~~ P#KiKIAP4.1 +SAY @423 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKIAP4.2 +SAY @424 += @425 +++ @426 + P#KiKIAP4.2.1 +++ @427 + P#KiKIAP4.2.2 +++ @417 + P#KiKIAP4.2.3 +END + +IF ~~ P#KiKIAP4.2.1 +SAY @428 += @429 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKIAP4.2.2 +SAY @430 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKIAP4.2.3 +SAY @431 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKIAP4.3 +SAY @432 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKIAP5 +SAY @433 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKIAP6 +SAY @434 +IF ~~ THEN EXIT +END + +//Small Kiss// + +IF ~~ P#KiKISM1.1 +SAY @435 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKISM1.2 +SAY @436 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKISM1.3 +SAY @437 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKISM1.4 +SAY @438 += @439 +++ @440 + P#KiKISM1.4.1 +++ @441 + P#KiKISM1.4.2 +++ @442 + P#KiKISM1.4.3 +++ @443 + P#KiKISM1.4.4 +END + +IF ~~ P#KiKISM1.4.1 +SAY @444 +IF ~~ THEN GOTO P#KiKISM1.4.0 +END + +IF ~~ P#KiKISM1.4.2 +SAY @445 += @446 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKISM1.4.3 +SAY @447 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKISM1.4.4 +SAY @448 +IF ~~ THEN GOTO P#KiKISM1.4.0 +END + +IF ~~ P#KiKISM1.4.0 +SAY @449 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKISM1.5 +SAY @450 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKISM1.6 +SAY @451 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKISM1.7 +SAY @452 +IF ~~ THEN EXIT +END + +IF ~~ P#KiKISM1.8 +SAY @453 +IF ~~ THEN EXIT +END + +//Hurt// + +IF ~~ KiHurt1.1 +SAY @454 +IF ~~ THEN EXIT +END + +IF ~~ KiHurt1.2 +SAY @455 +IF ~~ THEN EXIT +END + +IF ~~ KiHurt1.3 +SAY @456 +IF ~~ THEN EXIT +END + +IF ~~ KiHurt1.5 +SAY @457 +IF ~~ THEN EXIT +END + +IF ~~ KiHurt1.6 +SAY @458 +IF ~~ THEN EXIT +END + +IF ~~ KiHurt1.4 +SAY @459 +++ @460 + KiHurt1.4.1 +++ @461 + KiHurt1.4.2 +++ @462 + KiHurt1.4.3 +END + +IF ~~ KiHurt1.4.3 +SAY @463 +IF ~~ THEN EXIT +END + +IF ~~ KiHurt1.4.2 +SAY @464 +IF ~~ THEN EXIT +END + +IF ~~ KiHurt1.4.1 +SAY @465 +IF ~~ THEN EXIT +END + +END + +CHAIN P#KI25J X#KiMaleEl8 +@466 +== BVICONI @467 +EXIT diff --git a/kivan/d/p#pide25.d b/kivan/d/p#pide25.d new file mode 100644 index 0000000..34b4d2f --- /dev/null +++ b/kivan/d/p#pide25.d @@ -0,0 +1,468 @@ +APPEND P#DE25J + +IF WEIGHT #1000 +~IsGabber(Player1)~ P#DePIDToB +SAY @93 + ++ ~RandomNum(8,1)~ + @94 + DePID1.1 ++ ~RandomNum(8,2)~ + @94 + DePID1.2 ++ ~RandomNum(8,3)~ + @94 + DePID1.3 ++ ~RandomNum(8,4)~ + @94 + DePID1.4 ++ ~RandomNum(8,5)~ + @94 + DePID1.5 ++ ~RandomNum(8,6)~ + @94 + DePID1.6 ++ ~RandomNum(8,7)~ + @94 + DePID1.7 ++ ~RandomNum(8,8)~ + @94 + DePID1.8 + ++ ~RandomNum(8,1)~ + @95 + DePID2.1 ++ ~RandomNum(8,2)~ + @95 + DePID2.2 ++ ~RandomNum(8,3)~ + @95 + DePID2.3 ++ ~RandomNum(8,4)~ + @95 + DePID2.4 ++ ~RandomNum(8,5)~ + @95 + DePID2.5 ++ ~RandomNum(8,6)~ + @95 + DePID2.6 ++ ~RandomNum(8,7)~ + @95 + DePID2.7 ++ ~RandomNum(8,8)~ + @95 + DePID2.8 + +++ @96 + DePID3 + ++ ~RandomNum(8,1)~ + @97 + DePID4.1 ++ ~RandomNum(8,2)~ + @97 + DePID4.2 ++ ~RandomNum(8,3)~ + @97 + DePID4.3 ++ ~RandomNum(8,4)~ + @97 + DePID4.4 ++ ~RandomNum(8,5)~ + @97 + DePID4.5 ++ ~RandomNum(8,6)~ + @97 + DePID4.6 ++ ~RandomNum(8,7)~ + @97 + DePID4.7 ++ ~RandomNum(8,8)~ + @97 + DePID4.8 + ++ ~RandomNum(8,1)~ + @98 + DePID5.1 ++ ~RandomNum(8,2)~ + @98 + DePID5.2 ++ ~RandomNum(8,3)~ + @98 + DePID5.3 ++ ~RandomNum(8,4)~ + @98 + DePID5.4 ++ ~RandomNum(8,5)~ + @98 + DePID5.5 ++ ~RandomNum(8,6)~ + @98 + DePID5.6 ++ ~RandomNum(8,7)~ + @98 + DePID5.7 ++ ~RandomNum(8,8)~ + @98 + DePID5.8 + +++ @99 + DePID6 + ++ ~RandomNum(8,1)~ + @100 + DePID7.1 ++ ~RandomNum(8,2)~ + @100 + DePID7.2 ++ ~RandomNum(8,3)~ + @100 + DePID7.3 ++ ~RandomNum(8,4)~ + @100 + DePID7.4 ++ ~RandomNum(8,5)~ + @100 + DePID7.5 ++ ~RandomNum(8,6)~ + @100 + DePID7.6 ++ ~RandomNum(8,7)~ + @100 + DePID7.7 ++ ~RandomNum(8,8)~ + @100 + DePID7.8 + +++ @101 + DeVoice + +++ @102 EXIT +END + +//Reset Voice + +IF ~~ DeVoice +SAY @103 +IF ~~ THEN DO ~SetName(@47) + SetPlayerSound(Myself,@48,INITIAL_MEETING) + SetPlayerSound(Myself,@49,MORALE) + SetPlayerSound(Myself,@50,HAPPY) + SetPlayerSound(Myself,@51,UNHAPPY_ANNOYED) + SetPlayerSound(Myself,@52,UNHAPPY_SERIOUS) + SetPlayerSound(Myself,@53,UNHAPPY_BREAKING_POINT) + SetPlayerSound(Myself,@54,LEADER) + SetPlayerSound(Myself,@55,TIRED) + SetPlayerSound(Myself,@56,BORED) + SetPlayerSound(Myself,@57,BATTLE_CRY1) + SetPlayerSound(Myself,@58,BATTLE_CRY2) + SetPlayerSound(Myself,@59,BATTLE_CRY3) + SetPlayerSound(Myself,@60,BATTLE_CRY4) + SetPlayerSound(Myself,@61,DAMAGE) + SetPlayerSound(Myself,@62,DYING) + SetPlayerSound(Myself,@63,HURT) + SetPlayerSound(Myself,@64,AREA_FOREST) + SetPlayerSound(Myself,@65,AREA_CITY) + SetPlayerSound(Myself,@66,AREA_DUNGEON) + SetPlayerSound(Myself,@67,AREA_DAY) + SetPlayerSound(Myself,@68,AREA_NIGHT) + SetPlayerSound(Myself,@69,SELECT_COMMON1) + SetPlayerSound(Myself,@70,SELECT_COMMON2) + SetPlayerSound(Myself,@71,SELECT_COMMON3) + SetPlayerSound(Myself,@72,SELECT_COMMON4) + SetPlayerSound(Myself,@73,SELECT_COMMON5) + SetPlayerSound(Myself,@74,SELECT_COMMON6) + SetPlayerSound(Myself,@75,SELECT_ACTION1) + SetPlayerSound(Myself,@76,SELECT_ACTION2) + SetPlayerSound(Myself,@77,SELECT_ACTION3) + SetPlayerSound(Myself,@78,SELECT_ACTION4) + SetPlayerSound(Myself,@79,SELECT_ACTION5) + SetPlayerSound(Myself,@80,SELECT_ACTION6) + SetPlayerSound(Myself,@81,SELECT_ACTION7) + SetPlayerSound(Myself,@82,SELECT_RARE1) + SetPlayerSound(Myself,@83,SELECT_RARE2) + SetPlayerSound(Myself,@84,CRITICAL_HIT) + SetPlayerSound(Myself,@85,CRITICAL_MISS) + SetPlayerSound(Myself,@86,TARGET_IMMUNE) + SetPlayerSound(Myself,@87,INVENTORY_FULL) + SetPlayerSound(Myself,@88,PICKED_POCKET) + SetPlayerSound(Myself,@89,HIDDEN_IN_SHADOWS) + SetPlayerSound(Myself,@90,SPELL_DISRUPTED) + SetPlayerSound(Myself,@91,SET_A_TRAP) + SetPlayerSound(Myself,@92,EXISTANCE5)~ EXIT +END + +//Time of Joy + +IF ~~ DePID7.8 +SAY @104 +IF ~~ THEN EXIT +END + +IF ~~ DePID7.7 +SAY @105 +IF ~~ THEN EXIT +END + +IF ~~ DePID7.6 +SAY @106 +IF ~~ THEN EXIT +END + +IF ~~ DePID7.5.6 +SAY @107 +IF ~~ THEN GOTO DePID7.5.3 +END + +IF ~~ DePID7.5.5 +SAY @108 +IF ~~ THEN GOTO DePID7.5.3 +END + +IF ~~ DePID7.5.4 +SAY @109 +IF ~~ THEN GOTO DePID7.5.3 +END + +IF ~~ DePID7.5.3 +SAY @110 +IF ~~ THEN EXIT +END + +IF ~~ DePID7.5.2 +SAY @111 +IF ~~ THEN EXIT +END + +IF ~~ DePID7.5.1 +SAY @112 +IF ~~ THEN EXIT +END + +IF ~~ DePID7.5 +SAY @113 +++ @114 + DePID7.5.1 +++ @115 + DePID7.5.2 ++ ~!InParty("Nalia") !InParty("Valygar") !InParty("Aerie")~ + @116 + DePID7.5.3 ++ ~InParty("Valygar") !InParty("Aerie") !InParty("Nalia")~ + @116 + DePID7.5.4 ++ ~InParty("Nalia") !InParty("Aerie")~ + @116 + DePID7.5.5 ++ ~InParty("Aerie")~ + @116 + DePID7.5.6 +END + +IF ~~ DePID7.4 +SAY @117 +IF ~~ THEN EXIT +END + +IF ~~ DePID7.3 +SAY @118 +IF ~~ THEN EXIT +END + +IF ~~ DePID7.2 +SAY @119 +IF ~~ THEN EXIT +END + +IF ~~ DePID7.1 +SAY @120 +IF ~~ THEN EXIT +END + +//Love Kivan + +IF ~~ DePID6 +SAY @121 +++ @122 + DePID6.1 +++ @123 + DePID6.2 +++ @124 EXIT +END + +IF ~~ DePID6.8 +SAY @125 +IF ~~ THEN EXIT +END + +IF ~~ DePID6.7 +SAY @126 +IF ~~ THEN EXIT +END + +IF ~~ DePID6.5 +SAY @127 +++ @128 + DePID6.4 +++ @129 + DePID6.4 +++ @124 EXIT +END + +IF ~~ DePID6.4 +SAY @130 += @131 +IF ~~ THEN EXIT +END + +IF ~~ DePID6.3 +SAY @132 +++ @133 + DePID6.8 +++ @134 + DePID6.4 ++ ~Gender(Player1,MALE)~ + @135 + DePID6.5 ++ ~Gender(Player1,FEMALE)~ + @136 + DePID6.5 +++ @137 + DePID6.7 +END + +IF ~~ DePID6.2 +SAY @138 +++ @139 + DePID6.3 +++ @140 + DePID6.3 +++ @141 + DePID6.4 ++ ~Gender(Player1,MALE)~ + @135 + DePID6.5 ++ ~Gender(Player1,FEMALE)~ + @136 + DePID6.5 +++ @137 + DePID6.7 +END + +IF ~~ DePID6.1 +SAY @142 +++ @139 + DePID6.3 +++ @140 + DePID6.3 +++ @141 + DePID6.4 ++ ~Gender(Player1,MALE)~ + @135 + DePID6.5 ++ ~Gender(Player1,FEMALE)~ + @136 + DePID6.5 +++ @137 + DePID6.7 +END + + +//Regrets + +IF ~~ DePID5.8 +SAY @143 +IF ~~ THEN EXIT +END + +IF ~~ DePID5.7 +SAY @144 +IF ~~ THEN EXIT +END + +IF ~~ DePID5.6 +SAY @145 +IF ~~ THEN EXIT +END + +IF ~~ DePID5.5 +SAY @146 += @147 +IF ~~ THEN EXIT +END + +IF ~~ DePID5.4 +SAY @148 +IF ~~ THEN EXIT +END + +IF ~~ DePID5.3 +SAY @149 +IF ~~ THEN EXIT +END + +IF ~~ DePID5.2 +SAY @150 +IF ~~ THEN EXIT +END + +IF ~~ DePID5.1 +SAY @151 +IF ~~ THEN EXIT +END + + +//Hair + +IF ~~ DePID4.8 +SAY @152 +IF ~~ THEN EXIT +END + +IF ~~ DePID4.7 +SAY @153 +IF ~~ THEN EXIT +END + +IF ~~ DePID4.6 +SAY @154 +IF ~~ THEN EXIT +END + +IF ~~ DePID4.5 +SAY @155 +IF ~~ THEN EXIT +END + +IF ~~ DePID4.4 +SAY @156 +IF ~~ THEN EXIT +END + +IF ~~ DePID4.3 +SAY @157 +IF ~~ THEN EXIT +END + +IF ~~ DePID4.2 +SAY @158 +IF ~~ THEN EXIT +END + +IF ~~ DePID4.1 +SAY @159 +IF ~~ THEN EXIT +END + +//Death + +IF ~~ DePID3 +SAY @160 +++ @161 + DePID3.1 +++ @162 + DePID3.2 +++ @163 + DePID3.3 +++ @164 + DePID3.4 +END + + +IF ~~ DePID3.5 +SAY @165 += @166 +IF ~~ THEN EXIT +END + +IF ~~ DePID3.4 +SAY @167 += @168 +++ @169 EXIT +++ @170 + DePID3.5 +END + +IF ~~ DePID3.3 +SAY @171 += @168 +++ @169 EXIT +++ @170 + DePID3.5 +END + +IF ~~ DePID3.2 +SAY @172 += @173 +++ @169 EXIT +++ @170 + DePID3.5 +END + +IF ~~ DePID3.1 +SAY @174 += @175 +++ @169 EXIT +++ @170 + DePID3.5 +END + +//Arvanaith + +IF ~~ DePID2.8 +SAY @176 +IF ~~ THEN EXIT +END + +IF ~~ DePID2.7 +SAY @177 +IF ~~ THEN EXIT +END + +IF ~~ DePID2.6 +SAY @178 +IF ~~ THEN EXIT +END + +IF ~~ DePID2.5 +SAY @179 +IF ~~ THEN EXIT +END + +IF ~~ DePID2.4 +SAY @180 +IF ~~ THEN EXIT +END + +IF ~~ DePID2.3 +SAY @181 +IF ~~ THEN EXIT +END + +IF ~~ DePID2.2 +SAY @182 +IF ~~ THEN EXIT +END + +IF ~~ DePID2.1 +SAY @183 +IF ~~ THEN EXIT +END + +//Smile + +IF ~~ DePID1.8 +SAY @184 +IF ~~ THEN EXIT +END + +IF ~~ DePID1.7 +SAY @185 +IF ~~ THEN EXIT +END + +IF ~~ DePID1.6 +SAY @186 +IF ~~ THEN EXIT +END + +IF ~~ DePID1.5 +SAY @187 +IF ~~ THEN EXIT +END + +IF ~~ DePID1.4 +SAY @188 +IF ~~ THEN EXIT +END + +IF ~~ DePID1.3 +SAY @189 +IF ~~ THEN EXIT +END + +IF ~~ DePID1.2 +SAY @190 +IF ~~ THEN EXIT +END + +IF ~~ DePID1.1 +SAY @191 +IF ~~ THEN EXIT +END + +END + diff --git a/kivan/desktop.ini b/kivan/desktop.ini new file mode 100644 index 0000000..42c874e --- /dev/null +++ b/kivan/desktop.ini @@ -0,0 +1,8 @@ +[.ShellClassInfo] +IconFile=style\g3.ico +IconIndex=0 +IconResource=style\g3.ico,0 +[ViewState] +Mode= +Vid= +FolderType=Generic diff --git a/kivan/epilogue/pdehezz.2da b/kivan/epilogue/pdehezz.2da new file mode 100644 index 0000000..0943f7c --- /dev/null +++ b/kivan/epilogue/pdehezz.2da @@ -0,0 +1,30 @@ +2DA V1.0 +*DEHERL + 0 1 +SWITCH DEFAULT DEFAULT +DEFAULT 71020 99999 +DWARF 0 0 +ELF 0 0 +HALFELF 0 0 +HALFLING 0 0 +GNOME 0 0 +HUMAN 0 0 +HALFORC 0 0 +MAGE 0 0 +FIGHTER 0 0 +CLERIC 0 0 +THIEF 0 0 +BARD 0 0 +PALADIN 0 0 +FIGHTER_MAGE 0 0 +FIGHTER_CLERIC 0 0 +FIGHTER_THIEF 0 0 +FIGHTER_MAGE_THIEF 0 0 +DRUID 0 0 +RANGER 0 0 +MAGE_THIEF 0 0 +CLERIC_MAGE 0 0 +CLERIC_THIEF 0 0 +FIGHTER_DRUID 0 0 +FIGHTER_MAGE_CLERIC 0 0 +CLERIC_RANGER 0 0 diff --git a/kivan/epilogue/pkivazz.2da b/kivan/epilogue/pkivazz.2da new file mode 100644 index 0000000..d341185 --- /dev/null +++ b/kivan/epilogue/pkivazz.2da @@ -0,0 +1,30 @@ +2DA V1.0 +*P#KI1L + 0 1 +SWITCH DEFAULT DEFAULT +DEFAULT 71020 99999 +DWARF 0 0 +ELF 0 0 +HALFELF 0 0 +HALFLING 0 0 +GNOME 0 0 +HUMAN 0 0 +HALFORC 0 0 +MAGE 0 0 +FIGHTER 0 0 +CLERIC 0 0 +THIEF 0 0 +BARD 0 0 +PALADIN 0 0 +FIGHTER_MAGE 0 0 +FIGHTER_CLERIC 0 0 +FIGHTER_THIEF 0 0 +FIGHTER_MAGE_THIEF 0 0 +DRUID 0 0 +RANGER 0 0 +MAGE_THIEF 0 0 +CLERIC_MAGE 0 0 +CLERIC_THIEF 0 0 +FIGHTER_DRUID 0 0 +FIGHTER_MAGE_CLERIC 0 0 +CLERIC_RANGER 0 0 diff --git a/kivan/itm/p#arow.itm b/kivan/itm/p#arow.itm new file mode 100644 index 0000000..50f60c3 Binary files /dev/null and b/kivan/itm/p#arow.itm differ diff --git a/kivan/itm/p#bow.itm b/kivan/itm/p#bow.itm new file mode 100644 index 0000000..f144082 Binary files /dev/null and b/kivan/itm/p#bow.itm differ diff --git a/kivan/itm/p#bow01.itm b/kivan/itm/p#bow01.itm new file mode 100644 index 0000000..a5856dc Binary files /dev/null and b/kivan/itm/p#bow01.itm differ diff --git a/kivan/itm/p#bow02.itm b/kivan/itm/p#bow02.itm new file mode 100644 index 0000000..a1364c4 Binary files /dev/null and b/kivan/itm/p#bow02.itm differ diff --git a/kivan/itm/p#hawk.itm b/kivan/itm/p#hawk.itm new file mode 100644 index 0000000..92fcb1c Binary files /dev/null and b/kivan/itm/p#hawk.itm differ diff --git a/kivan/itm/p#hood.itm b/kivan/itm/p#hood.itm new file mode 100644 index 0000000..208fdc2 Binary files /dev/null and b/kivan/itm/p#hood.itm differ diff --git a/kivan/itm/p#ihtia.itm b/kivan/itm/p#ihtia.itm new file mode 100644 index 0000000..116c91d Binary files /dev/null and b/kivan/itm/p#ihtia.itm differ diff --git a/kivan/itm/p#kispea.itm b/kivan/itm/p#kispea.itm new file mode 100644 index 0000000..3f37bee Binary files /dev/null and b/kivan/itm/p#kispea.itm differ diff --git a/kivan/itm/p#tahe.itm b/kivan/itm/p#tahe.itm new file mode 100644 index 0000000..05588c2 Binary files /dev/null and b/kivan/itm/p#tahe.itm differ diff --git a/kivan/itm/p#ul11.itm b/kivan/itm/p#ul11.itm new file mode 100644 index 0000000..22351bf Binary files /dev/null and b/kivan/itm/p#ul11.itm differ diff --git a/kivan/itm/p#wreath.itm b/kivan/itm/p#wreath.itm new file mode 100644 index 0000000..42756c1 Binary files /dev/null and b/kivan/itm/p#wreath.itm differ diff --git a/kivan/itm/x#kispea.itm b/kivan/itm/x#kispea.itm new file mode 100644 index 0000000..750f839 Binary files /dev/null and b/kivan/itm/x#kispea.itm differ diff --git a/kivan/readme-kivan-new.html b/kivan/readme-kivan-new.html new file mode 100644 index 0000000..68b0b39 --- /dev/null +++ b/kivan/readme-kivan-new.html @@ -0,0 +1,323 @@ + + + +
+
+ Version 16 - Check for the most recent version
+ Languages: English
+ Platforms: Windows, Mac OS X, and Linux
+
This is a WeiDU mod which adds a joinable NPC from BG1, Kivan, and under certain circumstances, his elven wife, Deheriana, to the cast of BG2 actors.
+This mod is designed to work with the original Baldur's Gate II: Shadows of Amn, with or without the Throne of Bhaal expansion pack, or Baldur's Gate II: Enhanced Edition. The mod should be compatible with other WeiDU mods.
+Windows
+ Kivan and Deheriana Companions for BG2 is packaged and installed with WeiDU and is distributed as a self-extracting archive. To install, simply double-click the archive and follow the instructions on screen.
Alternatively the files can be extracted from the archive using WinRAR. If properly extracted, you should have a kivan folder and setup-kivan.exe in your game folder. To install, simply double-click setup-kivan.exe and follow the instructions on screen
+Please run setup-kivan.exe in your game folder to reinstall, uninstall or otherwise change components.
+ Mac OS X
+ If the mod was previously installed, uninstall it before extracting the new version. Kivan and Deheriana Companions for BG2 is packaged and installed with WeiDU. To install, simply extract the contents of the mod into your game folder. If properly extracted, you should have a kivan folder, setup-kivan, and setup-kivan.command in your game folder. To install, simply double-click setup-kivan.command and follow the instructions on screen.
Linux
+ Download the latest version of WeiDU for Linux from weidu.org and extract (at least) the WeiDU, weinstall and tolower executables in a $PATH directory (E.G. /usr/bin). Following that, open a terminal, cd to your game installation directory, run `tolower' and answer Y to both queries.
You can avoid running the second option (linux.ini) if you've already ran it once in the same directory. To save time, the archive is already tolowered, so there's no need to run the first option (lowercasing file names) either if you've extracted only this mod since the last time you lower cased file name. If you're unsure, running tolower and choosing both options is the safe bet.
+This mod contains audio that requires oggdec on Linux. oggdec is typically installed in most distributions and, if not, is usually part of the vorbis-tools package.
+After that, run 'weinstall kivan from your game installation directory to install or uninstall the mod.
+ ++
Please note that versions prior to v15 will have to be completely uninstalled prior to installing v15 or later.
+Kivan and Deheriana Companions for BG2
+ This is the main component of the mod; see the next section for more information. Content for the Throne of Bhaal part of the game will be installed automatically for games with the ToB expansion installed.
Alternative Deheriana Class
+ Deheriana is, by default, a Fighter/Mage/Cleric. This component will allow you to change her class to a Wild Mage, Enchanter, or Invoker. If you wish to keep her as a F/M/C, then simply skip this component.
Herd's Alternative Kivan Portrait
+ This component will provide an alternate portrait for Kivan. Shown below is the defaut portrait on the left and Herd's alternate on the right.
+
This is a WeiDU mod which + adds a joinable NPC from BG, + Kivan, and under certain circumstances, his elven wife, Deheriana, to the cast + of BG2 actors.
+The mod assumes that Kivan was in the group at the end of BG. The Archer will be looking for you in the Promenade District of Athkatla, having tracked you down this far from Baldur's Gate after you abduction. Once in the party, Kivan will interact with both the PC and the NPCs. If the PC is female, choosing certain dialogue options will hint at her interest in Kivan as a romanceable character. In this case, Deheriana's arc of the story would not occur, and a few flirtatious talks will appear after visiting Spellhold.
+If the PC is male or not interested in capturing Kivan's heart, Deheriana's story arc will develop in the end of the game. To see the story in full, please do not miss the talks with Aphril, Demin and Ellesime (in the end of the game). A happy ending for Deheriana's story will occur if Aerie or Cernd are in the party, or if the PC is one of the healing classes (Ranger, Druid, Cleric or Paladin)
+Kivan and Deheriana NPCs have both SoA and ToB content, such as dialogues with the PC and the NPCs, interjections into the game events, additional encounters, and Player-Initiated Dialogues.
+Deheriana
+Deheriana is a “hidden” NPC in this mod. Basically she can be summoned in Suldanessellar, while talking to Demin. Depending on the options you selected on install, Deheriana will be a Cleric-Mage-Fighter, an Enchanter, a Diviner or a Wild Mage. Her content will not be affected by her class selection.
+Deheriana is intended as a ToB NPC, with only a short story-arc occurring in SoA. At present, Cernd, Aerie and Kivan will “bombard” Deheriana with chats when she joins the party, and she will talk once to the PC during a 30 minutes interval upon her joining. The outcome of those talks will decide + her fate.
+She will either die in 30 minutes or during the congratulatory speech from Ellesime (whichever comes first), or she will be “restored”, an event which manifests itself in the increase of some of her stats and an XP bonus that adjusts to the party level to make Deheriana roughly equal in XP to + the PC.
+Deheriana | +Initial Stats | +"Restored" Stats | +
---|---|---|
Strength | +9 | +9 | +
Dexterity | +12 | +15 | +
Constitution | +9 | +14 | +
Intelligence | +15 | +17 | +
Wisdom | +17 | +17 | +
Charisma | +14 | +14 | +
After this transformation, both Kivan and Deheriana will follow the PC to ToB and function as ToB NPCs, bantering and interjecting throughout the game.
+Kivan’s Romance Guide
+‘A thought spoken out loud is a lie.’
+It was not easy to write. The parchment tried to roll up all the time. Her knees were way too pointy to write on. The inkwell did not stand straight on the ground. The buzzing mosquitoes targeted her eyes, and nose, and ears. The light of the fire was dying down.
+These are excuses.
+What mattered, what prevented her from writing, was the lack of words.
+***
+And so I did write this romance for Baldur’s Gate, against, I must say, the better judgment. This walk-through is intended to give you a few tips and all the information I can think of to make the playing experience with Kivan’s Romance less frustrating. The romance is hard to maintain, and what seems logical to me could be out of the left field to you. It’s normal. We all have a different vision, and contradicting a player’s individual vision is a risk one takes when he or she starts to develop custom content for the existing characters. First and foremost, this mod is a work of fan-fiction. It is my version of the events, and if you think differently, this by no means supersedes your opinion. Nevertheless, understandably, I have heavily invested my own ideas and understanding of the character in this romance.
+Character Profile
+Kivan is an Elven Archer, with these statistics: +
Kivan | +Initial Stats | +
---|---|
Strength | +18/12 | +
Dexterity | +17 | +
Constitution | +14 | +
Intelligence | +10 | +
Wisdom | +14 | +
Charisma | +8 | +
After the events of BG, Kivan departed for his native elven forest, Shilmista, but hearing that Charname is missing, he tried to track his friend and ally down. That’s how he ends up in the Promenade in Athkatla, relieved and excited to see Charname relatively unharmed.
+Kivan is a tired, suffering man, who is held to the Prime Material Plane first by his desire to avenge Deheriana - his love, and then by the loyalty he feels toward Charname. Both his deep and true love for Deheriana and friendship with Charname are corner stones of the character development, and can be neither ignored, nor taken out. It was my intent to show a man who is ready to be your friend till the end of his time if necessary, but who loves another woman and hopes to be reunited with her as soon as his day job is done. He is an older person, but his views are not rigid - he is to a degree affected by the chaotic streak in his nature and the primeval yearning for justice. He is a man who makes mistakes and will, if not checked, follow his desires to the wrong choices in difficult situations. His advice during the game won’t be always right either. He will sometimes change his mind, or apologize if he spoke in favor of something that turned out badly.
+In vein with the above, do not expect a perfect romance, where the boy meets fair Charname and falls for her on the spot, courts her and does not ever want to part, ever and forever, and fights every man who looks her way to the death.
+It’s a romance built on both tragedy and friendship, which, if not pursued with determination and almost despair, will be a friendship.
+Tragedy
+For Kivan to even think of another woman, Deheriana has to be utterly destroyed. Among the elves of Faerun, death is not the same thing as what we know of. Death for an elf is a departure to the world of Arvanaith, where an elf gets all of his wishes fulfilled and lives happily ever after. However, if death was too violent and occurred too far from the elven lands, the elf is destroyed completely. That’s what will happen to Deheriana, but Kivan would not know that unless he was told by an authority he’d believe. I use the seer, Aphril, in Spellhold to break the news. Hence, it is paramount to let Kivan talk to her if you’d like to romance him.
+Deheriana’s death is not enough, though.
+Friendship
+I wrote the romance for a Charname who knows very well that she loves Kivan, and who will be a strong enough person to acknowledge this unreturned love. To acknowledge and to throw it on the scale when needed. Yes, the romance is from the ‘therapeutical’ family, but it is not a one way street. You will see Kivan worry and fuss over Charname’s trials as much as Charname fusses over his. That’s what friends do.
+Romance Conditions
+You need to be a female, with reputation above 11, and Deheriana must die (see the discussion on P#KivanLove below). I initially had racial restrictions, but if there is a romance least preoccupied with how Charname looks, as compared to what is in her heart, that’s Kivan’s. As a result, I couldn’t see how I could deny having feelings for Kivan to a dwarven or a half-orc woman.
+Romantic Phases
+There are three easily distinguished phases in Kivan’s romance: SoA prior to talking to Aphril, SoA after talking to Aphril and ToB.
+SoA prior to talking to Aphril is the stage where you define your relationship with Kivan. You can remain friends, and experience the mod that way - he has plenty of friendship content, and you can even resurrect Deheriana. If you do want to kindle the flames, so to speak, you do need to take it further.
+P#KivanLove
+is an index that tracks if Kivan is aware of your affection. This variable needs to be above 2 for Deheriana to die and open the romantic path, and above 9 for the relation to be strong enough to prevent Kivan’s departure in the end of SoA and for the romance to be carried over into ToB.
+It is relatively easy to accumulate the P#KivanLove: try to select the ultimate caring responses, or responses that describe Charname’s feelings as romantic. Not having other romantic interests (or breaking up the relationships before they become committed) is also important.
+SoA after talking to Aphril is the stage in which a fragile and tender relationship forms. It culminates with the Tree of Life talk (which becomes an important emotional point) and Kivan’s short dialogue in the Nine Hells.
+The ToB part is all about Kivan establishing himself as Charname’s lover, and - if desired - the love of her life.
+Other Romances
+As noted above, Kivan in SoA is sensitive to other romances being run by the Player. If another romance is interrupted before it became committed, this will not influence Kivan’s Romance adversely. Please note that there is cumulative effect to having a few non-committed romances to run in parallel with Kivan’s. The important variables checks are when talking to Aphril and at the Tree of Life.
+Allowing any other romance to become committed will most probably preclude + Kivan’s.
+First, a big thanks to the wonderful community at The Gibberlings Three. Thanks to the still active and vibrant Infinity Engine modding community. Thank you icelus, TheWizard and Michel/Shodan for mirroring the G3 mods.
+Thanks to the folks at G3 who contributed ideas for the various components. Personal thanks to Bren, Meira and Mystress Elysa for suggestions, comments, critique and general poking to get this project started.
+Thanks to Celissa, Insolent Worm, Catseye, Kulyok, RavenBlack, Zanari, Princeps, BigRob, ycvflute, Ilmater, Disari, Meira, Bookwyrme, Tameon the Dragoon, Bons, Icelus, Noctalys, Winterine, and Sillara of Tamari for proof-reading; to Bren, Catseyes and Dove for taking their chances with the very early alpha releases and reporting glitches and for being patient with the squirrels.… To Idobek for help with scripting and coding the soundpack.
+Special thanks to Ana Christina for sustained, positive, and immensely helpful proofreading of translations files and documents.
+Additional texts were contributed to this mod by Hendryk (Korgan), NiGHTMARE (banters with NPCs), Mystress Elysa (squirrel dialogue).
+Deheriana's Voice: Threadspinner and Krista Edlen (Koshiba)
Malenti's Voice: Tamu Ali
Musical Themes used in the mod come from Planescape Torment and “Karelia” by “Amorphis”.
+Neiros' Portrait: Ilmatar
+ Alternative Kivan's Portrait: Herd and Rabain
The following Resources were used to produce this mod:
+Elvish Language used in the mod is a convention developed by the Grey Company fan group for Role-playing purposes. Further information and credits can be found at www.grey-company.org. Information on hair-braiding comes from Mary Bertke’s excellent website, http://www.dreamweaverbraiding.com/braid_examples.htm.
+
+ Tools Used in Creation
+ IESDP maintained by igi and Avenger
+ Near Infinity by Jon Olav Hauglid, FredSRichardson and devSin
+ WeiDU by Wes Weimer, the bigg, and Wisp
+
This mod was authored by Dominique Sotto . Please contact her on the Gibberlings Three forums for more information on her current projects.
+Kivan and Deheriana Companions for BG2 ( Kivan of Shilmista ) is not developed, supported, or endorsed by BioWare™ or Interplay/BlackIsle. This mod was created to be freely enjoyed by all Baldur's Gate II players. However, it should not be sold, published, compiled or redistributed in any form without the consent of the author. Kivan and Deheriana Companions for BG2 and Kivan of Shilmista © 2001 - 2014, Dominique Sotto.
+Version 16 (jastey) - August 26, 2018
+Version 15 (CamDawg) - October 9, 2014
+Version 14 (Kaeloree)
+Version 13
+Version 12
+Version 11
+Version 10
+Version 9
+Version 8.1
+Version 8
+Version 7
+Version 6
+Version 5 (BETA)
+Version 4 (BETA)
+Version 3 (BETA)
+Version 2 (BETA)
+Version 1 (BETA)
+