# Swamp fever, normal playthrough (original game and Advanced, any language)
# - Wat the fisher (NPC 12, map 272): Talk adds DAUGHTER (14), DAUGHTER adds ANTIDOTE (12) -> TalkToFatherAnthony active.
# - Father Anthony (NPC 2): at game start his map character on map 258 is still hidden, so his Talk chain only prints
#   text 2 and the conversation stays open. ANTIDOTE (12) -> text 4, creates the spring key (256), sets variable 26.
# - EMPTY FLASK (218): normally bought in the alchemist tower (map 281, shop at 13,9 = merchant 5, 11 flasks), which
#   cannot be scripted (no buy command). Real chest alternative used here: chest 205 in Kire's residence (map 337,
#   chest at 21,63 / 22,63 / 21,64 / 22,64, open, also contains a pick-axe). Other sources: chest 231 (map 353, 6,65),
#   chest 224 (map 364, 3,11, locked).
# - SWAMPLILY (255): treasure 47 at 7,7 on world map 110 (flag NoSave, so it can be picked again). The other lily
#   (chest 127) is in the secret Thalion office (map 257) and is not used.
# - WATER OF LIFE (254): use the empty flask on the spring of life (world map 126, chain 3 at 18..23,34..35 and 14 more
#   tiles): the flask is removed, text 3 and treasure 48 (water of life, NoSave) is shown. The door (key 256) is skipped.
# - Giving the lily (while owning the water) or the water (while owning the lily) to Anthony creates the ANTIDOTE (253).
# - Using the antidote at Sally's bed (map 272, chain 2 at 13,10 14,10 13,11 13,12 13,13 14,13) sets variable 34.
# - Sally (NPC 13) Talk: ring 271, variable 36. Wat Talk after variable 34: wind pearl 135, variable 35.
waitidle 20000
dismissall
quest SwampFever_TalkToFatherAnthony Inactive
# --- Wat
talk 12
talkwait
say 14
talkwait
quest SwampFever_TalkToFatherAnthony Active
quest SwampFever_ObtainSwampLilly Inactive
leave
talkwait
waitidle 5000
# --- Father Anthony
talk 2
talkwait
say 12
talkwait
takeitems
leave
talkwait
waitidle 5000
var 26 1
count 256 1
quest SwampFever_TalkToFatherAnthony Completed
quest SwampFever_ObtainSwampLilly Active
quest SwampFever_ObtainEmptyBottle Active
quest SwampFever_ObtainWaterOfLife Active
quest SwampFever_ReturnToAnthony Inactive
quest SwampFever_HealSally Inactive
# --- the empty flask (chest 205, Kire's residence)
goto 337 21 63
trigger 21 63 Eye
talkwait
takeloot
closewindow
talkwait
waitidle 5000
count 218 1
quest SwampFever_ObtainEmptyBottle Completed
quest SwampFever_ObtainSwampLilly Active
quest SwampFever_ObtainWaterOfLife Active
# --- the swamp lily (the treasure opens when arriving on it)
goto 110 7 7
talkwait
takeloot
closewindow
talkwait
waitidle 5000
count 255 1
quest SwampFever_ObtainSwampLilly Completed
quest SwampFever_ReturnToAnthony Inactive
# --- fill the flask at the spring of life (stand on a tile of chain 3)
goto 126 20 34
useitem 218
talkwait
takeloot
closewindow
talkwait
waitidle 5000
count 218 0
count 254 1
quest SwampFever_ObtainWaterOfLife Completed
quest SwampFever_ObtainEmptyBottle Completed
quest SwampFever_ReturnToAnthony Active
# --- Anthony brews the antidote
talk 2
talkwait
showitem 255
talkwait
quest SwampFever_ReturnToAnthony Active
giveitem 255
talkwait 20000
takeitems
leave
talkwait
waitidle 5000
count 255 0
count 254 0
count 253 1
quest SwampFever_ReturnToAnthony Completed
quest SwampFever_HealSally Active
quest SwampFever_TalkToSally Inactive
quest SwampFever_TalkToWat Inactive
reloadquests
quest SwampFever_ObtainSwampLilly Completed
quest SwampFever_ObtainEmptyBottle Completed
quest SwampFever_ObtainWaterOfLife Completed
quest SwampFever_ReturnToAnthony Completed
quest SwampFever_HealSally Active
# --- heal Sally
goto 272 13 12
useitem 253
talkwait
dismissall
var 34 1
count 253 0
quest SwampFever_HealSally Completed
quest SwampFever_TalkToSally Active
quest SwampFever_TalkToWat Active
# --- Sally thanks you with a ring
talk 13
talkwait
takeitems
leave
talkwait
waitidle 5000
var 36 1
count 271 1
quest SwampFever_TalkToSally Completed
quest SwampFever_TalkToWat Active
# --- Wat gives a wind pearl
talk 12
talkwait
takeitems
leave
talkwait
waitidle 5000
var 35 1
quest SwampFever_TalkToWat Completed
# --- persistence: none of the quest items is owned any more
reloadquests
log after reload
quests
quest SwampFever_TalkToFatherAnthony Completed
quest SwampFever_ObtainSwampLilly Completed
quest SwampFever_ObtainEmptyBottle Completed
quest SwampFever_ObtainWaterOfLife Completed
quest SwampFever_ReturnToAnthony Completed
quest SwampFever_HealSally Completed
quest SwampFever_TalkToSally Completed
quest SwampFever_TalkToWat Completed
exit
