mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-12 23:31:19 +00:00
DW: Assorted speaker and dialogue tweaks
Most changes according to reports and fixes posted by Wesbane on the forums, but I've tweaked most of his code and added a few things. Most notable change is that I'm not accounting for the player's possible undead units, because I intend to remove the Undead Bat.
This commit is contained in:
parent
954fe05eed
commit
7b0ebf6c5b
@ -457,29 +457,12 @@ _f, _f, _f, _f, _f, _f, _f
|
|||||||
[/unit]
|
[/unit]
|
||||||
|
|
||||||
[if]
|
[if]
|
||||||
[variable]
|
[have_unit]
|
||||||
name=$second_unit.id
|
x,y=$x2,$y2
|
||||||
not_equals=Gwabbo
|
id=Gwabbo
|
||||||
[/variable]
|
[/have_unit]
|
||||||
|
|
||||||
[then]
|
[then]
|
||||||
[message]
|
|
||||||
speaker=second_unit
|
|
||||||
message= _ "Look! There is a massive bat back here."
|
|
||||||
[/message]
|
|
||||||
[message]
|
|
||||||
speaker=Gwabbo
|
|
||||||
message= _ "Be courageous, and attack it anyway!"
|
|
||||||
[/message]
|
|
||||||
[message]
|
|
||||||
speaker=second_unit
|
|
||||||
message= _ "But it isn’t attacking <i>me</i>. Do you think, with its master gone, it might desire a new one?"
|
|
||||||
[/message]
|
|
||||||
[message]
|
|
||||||
speaker=Kai Krellis
|
|
||||||
message= _ "If it does not attack, we shall not kill it. Let us see if it follows us."
|
|
||||||
[/message]
|
|
||||||
[/then]
|
|
||||||
[else]
|
|
||||||
[message]
|
[message]
|
||||||
speaker=Kai Krellis
|
speaker=Kai Krellis
|
||||||
message= _ "That is a mighty bat!"
|
message= _ "That is a mighty bat!"
|
||||||
@ -496,6 +479,53 @@ _f, _f, _f, _f, _f, _f, _f
|
|||||||
speaker=Kai Krellis
|
speaker=Kai Krellis
|
||||||
message= _ "If it does not attack, do not kill it. Let us see if it follows us."
|
message= _ "If it does not attack, do not kill it. Let us see if it follows us."
|
||||||
[/message]
|
[/message]
|
||||||
|
[/then]
|
||||||
|
|
||||||
|
[else]
|
||||||
|
[if]
|
||||||
|
[have_unit]
|
||||||
|
x,y=$x2,$y2
|
||||||
|
race=bats
|
||||||
|
[/have_unit]
|
||||||
|
|
||||||
|
[then]
|
||||||
|
[message]
|
||||||
|
speaker=Kai Krellis
|
||||||
|
message= _ "That is a mighty bat!"
|
||||||
|
[/message]
|
||||||
|
[message]
|
||||||
|
speaker=second_unit
|
||||||
|
message= _ "Neep, neep!"
|
||||||
|
[/message]
|
||||||
|
[message]
|
||||||
|
speaker=Cylanna
|
||||||
|
message= _ "Hold a moment! Do you think, with its master gone, it might desire a new one?"
|
||||||
|
[/message]
|
||||||
|
[message]
|
||||||
|
speaker=Kai Krellis
|
||||||
|
message= _ "If it does not attack, do not kill it. Let us see if it follows us."
|
||||||
|
[/message]
|
||||||
|
[/then]
|
||||||
|
|
||||||
|
[else]
|
||||||
|
[message]
|
||||||
|
speaker=second_unit
|
||||||
|
message= _ "Look! There is a massive bat back here."
|
||||||
|
[/message]
|
||||||
|
[message]
|
||||||
|
speaker=Gwabbo
|
||||||
|
message= _ "Be courageous, and attack it anyway!"
|
||||||
|
[/message]
|
||||||
|
[message]
|
||||||
|
speaker=second_unit
|
||||||
|
message= _ "But it isn’t attacking <i>me</i>. Do you think, with its master gone, it might desire a new one?"
|
||||||
|
[/message]
|
||||||
|
[message]
|
||||||
|
speaker=Kai Krellis
|
||||||
|
message= _ "If it does not attack, we shall not kill it. Let us see if it follows us."
|
||||||
|
[/message]
|
||||||
|
[/else]
|
||||||
|
[/if]
|
||||||
[/else]
|
[/else]
|
||||||
[/if]
|
[/if]
|
||||||
|
|
||||||
@ -554,38 +584,12 @@ _f, _f, _f, _f, _f, _f, _f
|
|||||||
[/unit]
|
[/unit]
|
||||||
|
|
||||||
[if]
|
[if]
|
||||||
[variable]
|
[have_unit]
|
||||||
name=$second_unit.id
|
x,y=$x2,$y2
|
||||||
not_equals=Kai Krellis
|
id=Kai Krellis
|
||||||
[/variable]
|
[/have_unit]
|
||||||
|
|
||||||
[then]
|
[then]
|
||||||
[message]
|
|
||||||
speaker=second_unit
|
|
||||||
message= _ "And look! There is a bat cowering in the corner here."
|
|
||||||
[/message]
|
|
||||||
[message]
|
|
||||||
speaker=Kai Krellis
|
|
||||||
message= _ "Well, kill it, and let’s keep moving."
|
|
||||||
[/message]
|
|
||||||
[message]
|
|
||||||
speaker=second_unit
|
|
||||||
message= _ "But look, it’s licking my hand."
|
|
||||||
[/message]
|
|
||||||
[message]
|
|
||||||
speaker=Friendly Bat
|
|
||||||
#po: This should just be "translated" to whatever noise a bat makes in your language.
|
|
||||||
message= _ "Neep?"
|
|
||||||
[/message]
|
|
||||||
[message]
|
|
||||||
speaker=second_unit
|
|
||||||
message= _ "It’s kind of cute."
|
|
||||||
[/message]
|
|
||||||
[message]
|
|
||||||
speaker=Kai Krellis
|
|
||||||
message= _ "Very well then. I suppose we have our own bat."
|
|
||||||
[/message]
|
|
||||||
[/then]
|
|
||||||
[else]
|
|
||||||
[message]
|
[message]
|
||||||
speaker=second_unit
|
speaker=second_unit
|
||||||
message= _ "Look! There is a bat cowering in the corner here."
|
message= _ "Look! There is a bat cowering in the corner here."
|
||||||
@ -606,6 +610,70 @@ _f, _f, _f, _f, _f, _f, _f
|
|||||||
speaker=Cylanna
|
speaker=Cylanna
|
||||||
message= _ "Apparently you have your own bat."
|
message= _ "Apparently you have your own bat."
|
||||||
[/message]
|
[/message]
|
||||||
|
[/then]
|
||||||
|
|
||||||
|
[else]
|
||||||
|
[if]
|
||||||
|
[have_unit]
|
||||||
|
x,y=$x2,$y2
|
||||||
|
race=bats
|
||||||
|
[/have_unit]
|
||||||
|
|
||||||
|
[then]
|
||||||
|
[message]
|
||||||
|
speaker=second_unit
|
||||||
|
message= _ "Neep, neep!"
|
||||||
|
[/message]
|
||||||
|
[message]
|
||||||
|
speaker=Kai Krellis
|
||||||
|
message= _ "Look! There is a bat."
|
||||||
|
[/message]
|
||||||
|
[message]
|
||||||
|
speaker=Cylanna
|
||||||
|
message= _ "Aren’t you going to kill it? We need to keep moving."
|
||||||
|
[/message]
|
||||||
|
[message]
|
||||||
|
speaker=Kai Krellis
|
||||||
|
message= _ "It’s kind of cute."
|
||||||
|
[/message]
|
||||||
|
[message]
|
||||||
|
speaker=Friendly Bat
|
||||||
|
message= _ "Neep?"
|
||||||
|
[/message]
|
||||||
|
[message]
|
||||||
|
speaker=Cylanna
|
||||||
|
message= _ "Apparently you have your own bat."
|
||||||
|
[/message]
|
||||||
|
[/then]
|
||||||
|
|
||||||
|
[else]
|
||||||
|
[message]
|
||||||
|
speaker=second_unit
|
||||||
|
message= _ "And look! There is a bat cowering in the corner here."
|
||||||
|
[/message]
|
||||||
|
[message]
|
||||||
|
speaker=Kai Krellis
|
||||||
|
message= _ "Well, kill it, and let’s keep moving."
|
||||||
|
[/message]
|
||||||
|
[message]
|
||||||
|
speaker=second_unit
|
||||||
|
message= _ "But look, it’s licking my hand."
|
||||||
|
[/message]
|
||||||
|
[message]
|
||||||
|
speaker=Friendly Bat
|
||||||
|
#po: This should just be "translated" to whatever noise a bat makes in your language.
|
||||||
|
message= _ "Neep?"
|
||||||
|
[/message]
|
||||||
|
[message]
|
||||||
|
speaker=second_unit
|
||||||
|
message= _ "It’s kind of cute."
|
||||||
|
[/message]
|
||||||
|
[message]
|
||||||
|
speaker=Kai Krellis
|
||||||
|
message= _ "Very well then. I suppose we have our own bat."
|
||||||
|
[/message]
|
||||||
|
[/else]
|
||||||
|
[/if]
|
||||||
[/else]
|
[/else]
|
||||||
[/if]
|
[/if]
|
||||||
|
|
||||||
@ -658,10 +726,31 @@ _f, _f, _f, _f, _f, _f, _f
|
|||||||
{IS_LOYAL}
|
{IS_LOYAL}
|
||||||
[/unit]
|
[/unit]
|
||||||
|
|
||||||
[message]
|
[if]
|
||||||
speaker=second_unit
|
[have_unit]
|
||||||
message= _ "Look! There is a bat in the corner here. It is moving, but it looks half dead."
|
x,y=$x2,$y2
|
||||||
[/message]
|
race=bats
|
||||||
|
[/have_unit]
|
||||||
|
|
||||||
|
[then]
|
||||||
|
[message]
|
||||||
|
speaker=second_unit
|
||||||
|
message= _ "Neep, neep!"
|
||||||
|
[/message]
|
||||||
|
[message]
|
||||||
|
speaker=Kai Krellis
|
||||||
|
message= _ "Look! There is a bat. It is moving, but it looks half dead."
|
||||||
|
[/message]
|
||||||
|
[/then]
|
||||||
|
|
||||||
|
[else]
|
||||||
|
[message]
|
||||||
|
speaker=second_unit
|
||||||
|
message= _ "Look! There is a bat in the corner here. It is moving, but it looks half dead."
|
||||||
|
[/message]
|
||||||
|
[/else]
|
||||||
|
[/if]
|
||||||
|
|
||||||
[if]
|
[if]
|
||||||
[have_unit]
|
[have_unit]
|
||||||
id=Gwabbo
|
id=Gwabbo
|
||||||
@ -694,10 +783,30 @@ _f, _f, _f, _f, _f, _f, _f
|
|||||||
x,y=$x1,$y1
|
x,y=$x1,$y1
|
||||||
image=misc/blank-hex.png~BLIT(items/chest-open.png~CROP(0,0,68,54),4,18)
|
image=misc/blank-hex.png~BLIT(items/chest-open.png~CROP(0,0,68,54),4,18)
|
||||||
[/item]
|
[/item]
|
||||||
[message]
|
|
||||||
speaker=second_unit
|
[if]
|
||||||
message= _ "He had a chest in his tent, too. It is filled with gold!"
|
[have_unit]
|
||||||
[/message]
|
x,y=$x2,$y2
|
||||||
|
race=bats
|
||||||
|
[/have_unit]
|
||||||
|
[then]
|
||||||
|
[message]
|
||||||
|
speaker=second_unit
|
||||||
|
message= _ "Neep, neep!"
|
||||||
|
[/message]
|
||||||
|
[message]
|
||||||
|
speaker=Kai Krellis
|
||||||
|
message= _ "He had a chest in his tent, too. It is filled with gold!"
|
||||||
|
[/message]
|
||||||
|
[/then]
|
||||||
|
[else]
|
||||||
|
[message]
|
||||||
|
speaker=second_unit
|
||||||
|
message= _ "He had a chest in his tent, too. It is filled with gold!"
|
||||||
|
[/message]
|
||||||
|
[/else]
|
||||||
|
[/if]
|
||||||
|
|
||||||
[sound]
|
[sound]
|
||||||
name=gold.ogg
|
name=gold.ogg
|
||||||
[/sound]
|
[/sound]
|
||||||
|
@ -239,12 +239,12 @@
|
|||||||
[if]
|
[if]
|
||||||
[variable]
|
[variable]
|
||||||
name=get_trident
|
name=get_trident
|
||||||
not_equal=done
|
not_equals=done
|
||||||
[/variable]
|
[/variable]
|
||||||
|
|
||||||
[then]
|
[then]
|
||||||
[message]
|
[message]
|
||||||
speaker=$unit.id
|
speaker=unit
|
||||||
message= _ "Neep, neep!"
|
message= _ "Neep, neep!"
|
||||||
[/message]
|
[/message]
|
||||||
|
|
||||||
@ -283,7 +283,7 @@
|
|||||||
[/filter]
|
[/filter]
|
||||||
|
|
||||||
[message]
|
[message]
|
||||||
speaker=$unit.id
|
speaker=unit
|
||||||
message= _ "There is something sticking out of the mud here. Ah! I got it."
|
message= _ "There is something sticking out of the mud here. Ah! I got it."
|
||||||
[/message]
|
[/message]
|
||||||
|
|
||||||
@ -301,7 +301,7 @@
|
|||||||
[/message]
|
[/message]
|
||||||
|
|
||||||
[message]
|
[message]
|
||||||
speaker=$unit.id
|
speaker=unit
|
||||||
[option]
|
[option]
|
||||||
label= _ "That sounds great! I’ll take it."
|
label= _ "That sounds great! I’ll take it."
|
||||||
[command]
|
[command]
|
||||||
@ -348,7 +348,7 @@
|
|||||||
[/variable]
|
[/variable]
|
||||||
[then]
|
[then]
|
||||||
[message]
|
[message]
|
||||||
speaker=$unit.id
|
speaker=unit
|
||||||
[option]
|
[option]
|
||||||
label= _ "Let me have that trident. I want to control lightning!"
|
label= _ "Let me have that trident. I want to control lightning!"
|
||||||
[command]
|
[command]
|
||||||
|
@ -580,7 +580,7 @@
|
|||||||
[/variable]
|
[/variable]
|
||||||
[then]
|
[then]
|
||||||
[message]
|
[message]
|
||||||
speaker=$unit.id
|
speaker=unit
|
||||||
message= _ "Neep!"
|
message= _ "Neep!"
|
||||||
[/message]
|
[/message]
|
||||||
[message]
|
[message]
|
||||||
@ -703,7 +703,7 @@
|
|||||||
[/variable]
|
[/variable]
|
||||||
[then]
|
[then]
|
||||||
[message]
|
[message]
|
||||||
speaker=$unit.id
|
speaker=unit
|
||||||
message= _ "Neep?"
|
message= _ "Neep?"
|
||||||
[/message]
|
[/message]
|
||||||
[message]
|
[message]
|
||||||
|
@ -702,10 +702,32 @@
|
|||||||
y=$y1
|
y=$y1
|
||||||
image=items/chest.png
|
image=items/chest.png
|
||||||
[/item]
|
[/item]
|
||||||
[message]
|
|
||||||
speaker=second_unit
|
[if]
|
||||||
message= _ "It seems that orc was rich! He has a chest here with over 100 pieces of gold!"
|
[have_unit]
|
||||||
[/message]
|
x,y=$x2,$y2
|
||||||
|
race=bats
|
||||||
|
[/have_unit]
|
||||||
|
|
||||||
|
[then]
|
||||||
|
[message]
|
||||||
|
speaker=second_unit
|
||||||
|
message= _ "Neep, neep!"
|
||||||
|
[/message]
|
||||||
|
|
||||||
|
[message]
|
||||||
|
speaker=Kai Krellis
|
||||||
|
message= _ "It seems that orc was rich! He has a chest here with over 100 pieces of gold!"
|
||||||
|
[/message]
|
||||||
|
[/then]
|
||||||
|
[else]
|
||||||
|
[message]
|
||||||
|
speaker=second_unit
|
||||||
|
message= _ "It seems that orc was rich! He has a chest here with over 100 pieces of gold!"
|
||||||
|
[/message]
|
||||||
|
[/else]
|
||||||
|
[/if]
|
||||||
|
|
||||||
[sound]
|
[sound]
|
||||||
name=gold.ogg
|
name=gold.ogg
|
||||||
[/sound]
|
[/sound]
|
||||||
|
@ -391,10 +391,10 @@
|
|||||||
[/unit]
|
[/unit]
|
||||||
|
|
||||||
[if]
|
[if]
|
||||||
[variable]
|
[have_unit]
|
||||||
name=unit.id
|
x,y=$x1,$y1
|
||||||
equals=Keshan
|
id=Keshan,Inky
|
||||||
[/variable]
|
[/have_unit]
|
||||||
[then]
|
[then]
|
||||||
[message]
|
[message]
|
||||||
speaker=Keshan
|
speaker=Keshan
|
||||||
@ -417,7 +417,7 @@
|
|||||||
[/variable]
|
[/variable]
|
||||||
[then]
|
[then]
|
||||||
[message]
|
[message]
|
||||||
speaker=$unit.id
|
speaker=unit
|
||||||
message= _ "Neep, neep, neep!"
|
message= _ "Neep, neep, neep!"
|
||||||
[/message]
|
[/message]
|
||||||
[/then]
|
[/then]
|
||||||
|
@ -578,10 +578,10 @@
|
|||||||
[/delay]
|
[/delay]
|
||||||
|
|
||||||
[if]
|
[if]
|
||||||
[variable]
|
[have_unit]
|
||||||
name=second_unit.id
|
x,y=$x2,$y2
|
||||||
equals=Kai Krellis
|
type_tree=Merman Child King,Cuttle Fish,Vampire Bat
|
||||||
[/variable]
|
[/have_unit]
|
||||||
[then]
|
[then]
|
||||||
{VARIABLE staff_tip_off Cylanna}
|
{VARIABLE staff_tip_off Cylanna}
|
||||||
[/then]
|
[/then]
|
||||||
@ -590,10 +590,24 @@
|
|||||||
[/else]
|
[/else]
|
||||||
[/if]
|
[/if]
|
||||||
|
|
||||||
[message]
|
[if]
|
||||||
speaker=second_unit
|
[have_unit]
|
||||||
message= _ "Now we have the sword!"
|
x,y=$x2,$y2
|
||||||
[/message]
|
type_tree=Cuttle Fish,Vampire Bat
|
||||||
|
[/have_unit]
|
||||||
|
[then]
|
||||||
|
[message]
|
||||||
|
speaker=Kai Krellis
|
||||||
|
message= _ "Now we have the sword!"
|
||||||
|
[/message]
|
||||||
|
[/then]
|
||||||
|
[else]
|
||||||
|
[message]
|
||||||
|
speaker=second_unit
|
||||||
|
message= _ "Now we have the sword!"
|
||||||
|
[/message]
|
||||||
|
[/else]
|
||||||
|
[/if]
|
||||||
|
|
||||||
[message]
|
[message]
|
||||||
speaker=Caladon
|
speaker=Caladon
|
||||||
@ -913,9 +927,7 @@
|
|||||||
|
|
||||||
[event]
|
[event]
|
||||||
name=moveto
|
name=moveto
|
||||||
first_time_only=yes
|
|
||||||
|
|
||||||
[allow_undo][/allow_undo]
|
|
||||||
[filter]
|
[filter]
|
||||||
x=$sword_x
|
x=$sword_x
|
||||||
y=$sword_y
|
y=$sword_y
|
||||||
@ -927,6 +939,26 @@
|
|||||||
speaker=unit
|
speaker=unit
|
||||||
message= _ "I am not going with you. One of your people should take the sword."
|
message= _ "I am not going with you. One of your people should take the sword."
|
||||||
[/message]
|
[/message]
|
||||||
|
|
||||||
|
[allow_undo][/allow_undo]
|
||||||
|
[/event]
|
||||||
|
|
||||||
|
[event]
|
||||||
|
name=moveto
|
||||||
|
|
||||||
|
[filter]
|
||||||
|
x=$sword_x
|
||||||
|
y=$sword_y
|
||||||
|
side=1
|
||||||
|
race=monster,bats
|
||||||
|
[/filter]
|
||||||
|
|
||||||
|
[message]
|
||||||
|
speaker=Kai Krellis
|
||||||
|
message= _ "This is not food. And it is definitely not a toy. Leave it."
|
||||||
|
[/message]
|
||||||
|
|
||||||
|
[allow_undo][/allow_undo]
|
||||||
[/event]
|
[/event]
|
||||||
|
|
||||||
# The first_time_only moveto causes the sword's attacks to be
|
# The first_time_only moveto causes the sword's attacks to be
|
||||||
@ -946,7 +978,7 @@
|
|||||||
y=$sword_y
|
y=$sword_y
|
||||||
side=1
|
side=1
|
||||||
[not]
|
[not]
|
||||||
race=human
|
race=human,bats,monster
|
||||||
[/not]
|
[/not]
|
||||||
[/filter]
|
[/filter]
|
||||||
|
|
||||||
|
@ -782,6 +782,46 @@
|
|||||||
[/endlevel]
|
[/endlevel]
|
||||||
[/event]
|
[/event]
|
||||||
|
|
||||||
|
[event]
|
||||||
|
name=moveto
|
||||||
|
|
||||||
|
[filter]
|
||||||
|
x=14
|
||||||
|
y=11
|
||||||
|
side=1
|
||||||
|
id=Inky
|
||||||
|
[/filter]
|
||||||
|
|
||||||
|
[message]
|
||||||
|
speaker=Kai Krellis
|
||||||
|
message= _ "Inky has found something. Someone should check it out."
|
||||||
|
[/message]
|
||||||
|
|
||||||
|
[allow_undo][/allow_undo]
|
||||||
|
[/event]
|
||||||
|
|
||||||
|
[event]
|
||||||
|
name=moveto
|
||||||
|
|
||||||
|
[filter]
|
||||||
|
x=14
|
||||||
|
y=11
|
||||||
|
side=1
|
||||||
|
race=bats
|
||||||
|
[/filter]
|
||||||
|
|
||||||
|
[message]
|
||||||
|
speaker=unit
|
||||||
|
message= _ "Neep, neep!"
|
||||||
|
[/message]
|
||||||
|
[message]
|
||||||
|
speaker=Kai Krellis
|
||||||
|
message= _ "Something must be there! Good bat! Someone should find out what it is."
|
||||||
|
[/message]
|
||||||
|
|
||||||
|
[allow_undo][/allow_undo]
|
||||||
|
[/event]
|
||||||
|
|
||||||
# The first_time_only moveto event causes a necklace *image* to
|
# The first_time_only moveto event causes a necklace *image* to
|
||||||
# show up on the hex, and causes the necklace to be explained. The
|
# show up on the hex, and causes the necklace to be explained. The
|
||||||
# moved unit gets the option to take it.
|
# moved unit gets the option to take it.
|
||||||
@ -803,10 +843,13 @@
|
|||||||
x=14
|
x=14
|
||||||
y=11
|
y=11
|
||||||
side=1
|
side=1
|
||||||
|
[not]
|
||||||
|
race=bats,monster
|
||||||
|
[/not]
|
||||||
[/filter]
|
[/filter]
|
||||||
|
|
||||||
[message]
|
[message]
|
||||||
speaker=$unit.id
|
speaker=unit
|
||||||
message= _ "This man was wearing a necklace with a pendant on it. I’m sure the shape means something."
|
message= _ "This man was wearing a necklace with a pendant on it. I’m sure the shape means something."
|
||||||
[/message]
|
[/message]
|
||||||
|
|
||||||
@ -824,7 +867,7 @@
|
|||||||
[/message]
|
[/message]
|
||||||
|
|
||||||
[message]
|
[message]
|
||||||
speaker=$unit.id
|
speaker=unit
|
||||||
[option]
|
[option]
|
||||||
label= _ "That sounds great! I’ll take it."
|
label= _ "That sounds great! I’ll take it."
|
||||||
[command]
|
[command]
|
||||||
@ -870,7 +913,7 @@
|
|||||||
[/variable]
|
[/variable]
|
||||||
[then]
|
[then]
|
||||||
[message]
|
[message]
|
||||||
speaker=$unit.id
|
speaker=unit
|
||||||
[option]
|
[option]
|
||||||
label= _ "I would like my life force protected."
|
label= _ "I would like my life force protected."
|
||||||
[command]
|
[command]
|
||||||
|
@ -174,10 +174,10 @@
|
|||||||
[/filter]
|
[/filter]
|
||||||
|
|
||||||
[if]
|
[if]
|
||||||
[variable]
|
[have_unit]
|
||||||
name=unit.id
|
x,y=$x1,$y1
|
||||||
contains=Bat
|
race=bats
|
||||||
[/variable]
|
[/have_unit]
|
||||||
[then]
|
[then]
|
||||||
[if]
|
[if]
|
||||||
[variable]
|
[variable]
|
||||||
@ -223,48 +223,71 @@
|
|||||||
|
|
||||||
[else]
|
[else]
|
||||||
[if]
|
[if]
|
||||||
[variable]
|
[have_unit]
|
||||||
name=seen_ring_description
|
x,y=$x1,$y1
|
||||||
not_equals=yes
|
race=monster
|
||||||
[/variable]
|
[/have_unit]
|
||||||
[then]
|
[then]
|
||||||
[message]
|
[if]
|
||||||
speaker=unit
|
[variable]
|
||||||
message= _ "I’ll try on the ring."
|
name=seen_ring_description
|
||||||
[/message]
|
not_equals=yes
|
||||||
|
[/variable]
|
||||||
[message]
|
[then]
|
||||||
speaker=unit
|
[message]
|
||||||
message= _ "I feel different, and all my weapons are lighter!"
|
speaker=Kai Krellis
|
||||||
[/message]
|
message= _ "Leave it."
|
||||||
|
[/message]
|
||||||
[message]
|
[/then]
|
||||||
speaker=narrator
|
[/if]
|
||||||
message= _ "The ring of power increases the damage of all its owner’s attacks by one, and adds three hitpoints."
|
|
||||||
image=wesnoth-icon.png
|
|
||||||
[/message]
|
|
||||||
[set_variable]
|
|
||||||
name=seen_ring_description
|
|
||||||
value=yes
|
|
||||||
[/set_variable]
|
|
||||||
[/then]
|
[/then]
|
||||||
[/if]
|
|
||||||
|
|
||||||
[message]
|
[else]
|
||||||
speaker=unit
|
[if]
|
||||||
[option]
|
[variable]
|
||||||
label= _ "I’ll take this ring, and you can rely on my strength."
|
name=seen_ring_description
|
||||||
[command]
|
not_equals=yes
|
||||||
[set_variable]
|
[/variable]
|
||||||
name=get_ring
|
[then]
|
||||||
value=yes
|
[message]
|
||||||
[/set_variable]
|
speaker=unit
|
||||||
[/command]
|
message= _ "I’ll try on the ring."
|
||||||
[/option]
|
[/message]
|
||||||
[option]
|
|
||||||
label= _ "This thing makes me dizzy. Someone else can have it."
|
[message]
|
||||||
[/option]
|
speaker=unit
|
||||||
[/message]
|
message= _ "I feel different, and all my weapons are lighter!"
|
||||||
|
[/message]
|
||||||
|
|
||||||
|
[message]
|
||||||
|
speaker=narrator
|
||||||
|
message= _ "The ring of power increases the damage of all its owner’s attacks by one, and adds three hitpoints."
|
||||||
|
image=wesnoth-icon.png
|
||||||
|
[/message]
|
||||||
|
[set_variable]
|
||||||
|
name=seen_ring_description
|
||||||
|
value=yes
|
||||||
|
[/set_variable]
|
||||||
|
[/then]
|
||||||
|
[/if]
|
||||||
|
|
||||||
|
[message]
|
||||||
|
speaker=unit
|
||||||
|
[option]
|
||||||
|
label= _ "I’ll take this ring, and you can rely on my strength."
|
||||||
|
[command]
|
||||||
|
[set_variable]
|
||||||
|
name=get_ring
|
||||||
|
value=yes
|
||||||
|
[/set_variable]
|
||||||
|
[/command]
|
||||||
|
[/option]
|
||||||
|
[option]
|
||||||
|
label= _ "This thing makes me dizzy. Someone else can have it."
|
||||||
|
[/option]
|
||||||
|
[/message]
|
||||||
|
[/else]
|
||||||
|
[/if]
|
||||||
[/else]
|
[/else]
|
||||||
[/if]
|
[/if]
|
||||||
|
|
||||||
@ -390,10 +413,24 @@
|
|||||||
# Gives you half a second to see the ring before the message (possibly) covers it up.
|
# Gives you half a second to see the ring before the message (possibly) covers it up.
|
||||||
[/delay]
|
[/delay]
|
||||||
|
|
||||||
[message]
|
[if]
|
||||||
speaker=$second_unit.id
|
[have_unit]
|
||||||
message= _ "The human wizard was wearing a ring! Maybe it is magic. Someone should try it on to see what it does."
|
x,y=$x2,$y2
|
||||||
[/message]
|
race=monster,bats
|
||||||
|
[/have_unit]
|
||||||
|
[then]
|
||||||
|
[message]
|
||||||
|
speaker=Kai Krellis
|
||||||
|
message= _ "The human wizard was wearing a ring! Maybe it is magic. Someone should try it on to see what it does."
|
||||||
|
[/message]
|
||||||
|
[/then]
|
||||||
|
[else]
|
||||||
|
[message]
|
||||||
|
speaker=second_unit
|
||||||
|
message= _ "The human wizard was wearing a ring! Maybe it is magic. Someone should try it on to see what it does."
|
||||||
|
[/message]
|
||||||
|
[/else]
|
||||||
|
[/if]
|
||||||
[/then]
|
[/then]
|
||||||
[/if]
|
[/if]
|
||||||
#enddef
|
#enddef
|
||||||
|
Loading…
x
Reference in New Issue
Block a user