Fix story logic broken in aad6ce6

This commit is contained in:
Gunter Labes 2023-09-08 20:50:13 +02:00 committed by GitHub
parent e7252b212e
commit 7b23df83ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,12 +62,11 @@
{STORY_PART_HAMEL (_ "Aye. Well I ken it, Tallin.")}
[if]
[variable]
name=eryssa_hostile
equals=yes
[/variable]
[then]
[switch]
variable=eryssa_hostile
[case]
value=yes
{STORY_PART_ERYSSA (_ "See, you wretched human! At least now you will appreciate the generosity of the elves.")}
{STORY_PART_ARTHIAN (_ "Shut up, you little snot! If it wasnt for you we wouldnt have lost our gold in the first place!")}
@ -83,30 +82,26 @@
{STORY_PART_ARTHIAN (_ "Begone and good riddance, brat!")}
{STORY_PART_TALLIN (_ "Back to the issue of the stolen gold, were you able to pursue the trolls?")}
[/then]
[elseif]
[variable]
name=eryssa_hostile
equals=no
[/variable]
[then]
{STORY_PART_TALLIN (_ "Were you able to pursue them?")}
[/then]
[else]
# Eryssa dead
[/case]
[case]
value=no
{STORY_PART_TALLIN (_ "This isnt looking good. Not only do we fail to get the Princess but now we lost all of our gold! Seriously Hamel, I dont know if were gonna make it.")}
{STORY_PART_TALLIN (_ "Were you able to pursue them?")}
[/case]
[else]
# Eryssa dead
{STORY_PART_HAMEL (_ "Dont give in to despair, Tallin. At least you prevented the orcs from getting the ransom money.")}
{STORY_PART_TALLIN (_ "This isnt looking good. Not only do we fail to get the Princess but now we lost all of our gold! Seriously Hamel, I dont know if were gonna make it.")}
{STORY_PART_TALLIN (_ "Yeah, they ran off with all the rest of our gold instead.")}
{STORY_PART_HAMEL (_ "Dont give in to despair, Tallin. At least you prevented the orcs from getting the ransom money.")}
{STORY_PART_HAMEL (_ "Snap out of it Tallin! We are not in control of fate. We will do all we can to the best of our ability and leave the results to the gods.")}
{STORY_PART_TALLIN (_ "Yeah, they ran off with all the rest of our gold instead.")}
{STORY_PART_TALLIN (_ "Youre right, Hamel, sorry. Were you able to pursue the trolls?")}
[/else]
[/elseif]
[/if]
{STORY_PART_HAMEL (_ "Snap out of it Tallin! We are not in control of fate. We will do all we can to the best of our ability and leave the results to the gods.")}
{STORY_PART_TALLIN (_ "Youre right, Hamel, sorry. Were you able to pursue the trolls?")}
[/else]
[/switch]
{STORY_PART_HAMEL (_ "Och, we tried, Tallin, but with the orcs still pressing our southern defenses and trolls trying to break through everywhere, we simply ha not the power.")}