mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 12:55:50 +00:00
Simplify fishy dialog logic when first meeting humans.
This commit is contained in:
parent
909eb9bd42
commit
0d91b54512
@ -541,11 +541,6 @@
|
||||
value=1
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=type_of_sealife
|
||||
value=0
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=humans_killed
|
||||
value=0
|
||||
@ -1278,83 +1273,67 @@
|
||||
message= _ "Shut up and keep running, or we’ll be fish-bait for sure!"
|
||||
[/message]
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=unit.id
|
||||
not_equals=$ally_name
|
||||
[/variable]
|
||||
[switch]
|
||||
variable=unit.race
|
||||
[case]
|
||||
value=troll
|
||||
[message]
|
||||
speaker=Othgar
|
||||
message= _ "Hey look! It’s a troll!"
|
||||
[/message]
|
||||
[message]
|
||||
speaker=Durth
|
||||
message= _ "Huh? A troll?"
|
||||
[/message]
|
||||
[message]
|
||||
speaker=Bellerin
|
||||
message= _ "Yeah, just like my old grandmam used to tell us: dark green skin, beady red eyes, hulking brutes with brains as small as a barnacle. They lurk deep in the earth and hate everything that lives above ground. This must be an invasion! The trolls must have started the flood!"
|
||||
[/message]
|
||||
|
||||
[then]
|
||||
[set_variable]
|
||||
name=type_of_sealife
|
||||
value=1
|
||||
name=sealife_response
|
||||
value= _ "Fish bait? Barnacles? Who are these humans and what were they talking about?"
|
||||
[/set_variable]
|
||||
|
||||
[/case]
|
||||
[case]
|
||||
value=dwarf
|
||||
[message]
|
||||
speaker=Othgar
|
||||
message= _ "Hey look! It’s a dwarf!"
|
||||
[/message]
|
||||
[message]
|
||||
speaker=Durth
|
||||
message= _ "Huh? A dwarf?"
|
||||
[/message]
|
||||
[message]
|
||||
speaker=Bellerin
|
||||
message= _ "Yeah, just like my old grandmam used to tell us: short and stocky, long beards, filthy bastards who are as sneaky as a cuttlefish. They lurk underground and only come up to steal whatever valuables they can get their hands on. This must part of their plot. The dwarves must have started the flood!"
|
||||
[/message]
|
||||
[set_variable]
|
||||
name=sealife_response
|
||||
value= _ "Fish bait? Cuttlefish? Who are these humans and what were they talking about?"
|
||||
[/set_variable]
|
||||
[/case]
|
||||
[else]
|
||||
[message]
|
||||
speaker=Othgar
|
||||
message= _ "Hey look! Those must be elves!"
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker=Durth
|
||||
message= _ "Huh? Elves?"
|
||||
[/message]
|
||||
|
||||
[message]
|
||||
speaker=Bellerin
|
||||
message= _ "Yeah, just like my old grandmam used to tell us: pointy ears, pale hair, those shifty eyes, hearts as hard as a hermit crab’s shell. It must be an invasion! They must have started the flood!"
|
||||
[/message]
|
||||
[/then]
|
||||
|
||||
[else]
|
||||
[if]
|
||||
[variable]
|
||||
name=ally_race
|
||||
equals=troll
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
[set_variable]
|
||||
name=type_of_sealife
|
||||
value=2
|
||||
[/set_variable]
|
||||
|
||||
[message]
|
||||
speaker=Othgar
|
||||
message= _ "Hey look! It’s a troll!"
|
||||
[/message]
|
||||
[message]
|
||||
speaker=Durth
|
||||
message= _ "Huh? A troll?"
|
||||
[/message]
|
||||
[message]
|
||||
speaker=Bellerin
|
||||
message= _ "Yeah, just like my old grandmam used to tell us: dark green skin, beady red eyes, hulking brutes with brains as small as a barnacle. They lurk deep in the earth and hate everything that lives above ground. This must be an invasion! The trolls must have started the flood!"
|
||||
[/message]
|
||||
[/then]
|
||||
|
||||
[else]
|
||||
[set_variable]
|
||||
name=type_of_sealife
|
||||
value=3
|
||||
[/set_variable]
|
||||
|
||||
[message]
|
||||
speaker=Othgar
|
||||
message= _ "Hey look! It’s a dwarf!"
|
||||
[/message]
|
||||
[message]
|
||||
speaker=Durth
|
||||
message= _ "Huh? A dwarf?"
|
||||
[/message]
|
||||
[message]
|
||||
speaker=Bellerin
|
||||
message= _ "Yeah, just like my old grandmam used to tell us: short and stocky, long beards, filthy bastards who are as sneaky as a cuttlefish. They lurk underground and only come up to steal whatever valuables they can get their hands on. This must part of their plot. The dwarves must have started the flood!"
|
||||
[/message]
|
||||
[/else]
|
||||
[/if]
|
||||
[set_variable]
|
||||
name=sealife_response
|
||||
value= _ "Fish bait? Hermit Crabs? Who are these humans and what were they talking about?"
|
||||
[/set_variable]
|
||||
[/else]
|
||||
[/if]
|
||||
[/switch]
|
||||
|
||||
[message]
|
||||
speaker=Othgar
|
||||
@ -1416,40 +1395,11 @@
|
||||
[/else]
|
||||
[/if]
|
||||
|
||||
[switch]
|
||||
variable=type_of_sealife
|
||||
|
||||
# case 1: humans saw an elf first and mentioned hermit crabs
|
||||
[case]
|
||||
value=1
|
||||
|
||||
[message]
|
||||
speaker=$speaking_unit.id
|
||||
message= _ "Fish bait? Hermit Crabs? Who are these humans and what were they talking about?"
|
||||
[/message]
|
||||
[/case]
|
||||
|
||||
# case 2: humans saw troll ally first and mentioned barnacles
|
||||
[case]
|
||||
value=2
|
||||
|
||||
[message]
|
||||
speaker=$speaking_unit.id
|
||||
message= _ "Fish bait? Barnacles? Who are these humans and what were they talking about?"
|
||||
[/message]
|
||||
[/case]
|
||||
|
||||
# case 3: humans saw dwarf ally first and mentioned cuttlefish
|
||||
[case]
|
||||
value=3
|
||||
|
||||
[message]
|
||||
speaker=$speaking_unit.id
|
||||
message= _ "Fish bait? Cuttlefish? Who are these humans and what were they talking about?"
|
||||
[/message]
|
||||
[/case]
|
||||
[/switch]
|
||||
{CLEAR_VARIABLE speaking_unit}
|
||||
[message]
|
||||
speaker=$speaking_unit.id
|
||||
message=$sealife_response
|
||||
[/message]
|
||||
{CLEAR_VARIABLE speaking_unit,sealife_response}
|
||||
|
||||
[message]
|
||||
speaker=Zhul
|
||||
@ -5454,7 +5404,6 @@
|
||||
animate=no
|
||||
[/kill]
|
||||
|
||||
{CLEAR_VARIABLE type_of_sealife}
|
||||
{CLEAR_VARIABLE humans_killed}
|
||||
{CLEAR_VARIABLE broke_circle}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user