1.3 only - httt gryphon bugfix

This commit is contained in:
Scott Klempner 2006-07-16 19:36:26 +00:00
parent db08d49343
commit 4b64b29aaa

View file

@ -256,8 +256,15 @@
[then]
[message]
description=Konrad
message= _ "It is a shame we could not get those gryphon eggs. Still... (looks back at the mountain) I am glad we did not slaughter any gryphons. They are magnificent animals."
message= _ "It is a shame we could not get those gryphon eggs. I am glad we did not slaughter any gryphons. They are magnificent animals (looks back at the mountain). Still..."
[/message]
[message]
description=Konrad
message= _ "Woah!!"
[/message]
#
# Wake up all the sleeping gryphons
#
[store_unit]
variable=gryphon_store
[filter]
@ -265,25 +272,57 @@
[/filter]
[/store_unit]
{FOREACH gryphon_store i}
{VARIABLE gryphon_store.type Gryphon}
{VARIABLE gryphon_store[$i].type Gryphon}
[unstore_unit]
variable=gryphon_store[$i]
[/unstore_unit]
{NEXT i}
{UNIT (Gryphon) (Graik) ( _ "Graik") 3 12 18}
{UNIT (Gryphon) (Griok) ( _ "Griok") 3 16 16}
{UNIT (Gryphon) (Griak) ( _ "Griak") 3 10 14}
[message]
speaker=narrator
image="wesnoth-icon.png"
message= _ "Indeed, gryphons were now circling the mountain's peak. Several glared in Konrad's direction, their eagle eyes fixed on him at an incredible distance."
[/message]
{CLEAR_VARIABLE gryphon_store}
#
# Figure out where Konrad is standing
#
[store_unit]
variable=konrad_store
[filter]
description=Konrad
[/filter]
[/store_unit]
[if]
[variable]
name=konrad_store.x
greater_than=13
[/variable]
[then]
{VARIABLE destination_x 24}
[/then]
[else]
{VARIABLE destination_x 1}
[/else]
[/if]
[if]
[variable]
name=konrad_store.y
greater_than=16
[/variable]
[then]
{VARIABLE destination_y 39}
[/then]
[else]
{VARIABLE destination_y 1}
[/else]
[/if]
#
# Put some more gryphons up there and view the mountain
#
{UNIT (Gryphon) (Graik) ( _ "Graik") 3 13 14}
{UNIT (Gryphon) (Griak) ( _ "Griak") 3 13 18}
[scroll_to]
x,y=13,16
[/scroll_to]
[message]
description=Konrad
message= _ "Woah!!"
speaker=narrator
image="wesnoth-icon.png"
message= _ "Indeed, the majestic beasts were now circling the mountain's peak. Several glared in Konrad's direction, their eagle eyes fixed on him at an incredible distance."
[/message]
[sound]
name=eagle.wav
@ -295,20 +334,39 @@
[/filter]
[/store_unit]
{FOREACH gryphon_store i}
{VARIABLE_OP temp_x format $gryphon_store[$i].x}
{VARIABLE_OP temp_y format $gryphon_store[$i].y}
{VARIABLE_OP range_x format ("$temp_x|, $destination_x")}
{VARIABLE_OP range_y format ("$temp_y|, $destination_y")}
[kill]
x=gryphon_store[$i].x
y=gryphon_store[$i].y
x=$temp_x
y=$temp_y
[/kill]
[move_unit_fake]
type=Gryphon
x=gryphon_store[$i].x,24
y=gryphon_store[$i].y,1
x=$range_x
y=$range_y
[/move_unit_fake]
{NEXT i}
{CLEAR_VARIABLE konrad_store}
{CLEAR_VARIABLE gryphon_store}
{CLEAR_VARIABLE temp_x}
{CLEAR_VARIABLE temp_y}
{CLEAR_VARIABLE range_x}
{CLEAR_VARIABLE range_y}
{CLEAR_VARIABLE destination_x}
{CLEAR_VARIABLE destination_y}
[message]
description=Delfador
message= _ "Amazing. Come now, the show is over."
message= _ "Amazing! I have never before heard of such behavior in gryphons."
[/message]
[message]
description=Konrad
message= _ "What does it mean?"
[/message]
[message]
description=Delfador
message= _ "I do not know. Come now, the show is over."
[/message]
[/then]
[else]