mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 16:30:00 +00:00
Rewrote the scepter completion countdown to be a bit simpler.
This commit is contained in:
parent
4ee863d547
commit
b3eee0cb4b
@ -346,15 +346,17 @@
|
||||
speaker=Thursagan
|
||||
message= _ "This forge will work perfectly. Give me a few days here, and I can reforge the Sceptre of Fire to fulfill its purpose."
|
||||
[/message]
|
||||
[set_variable]
|
||||
name=turnsleft
|
||||
value=10
|
||||
[/set_variable]
|
||||
|
||||
[modify_turns]
|
||||
add=9
|
||||
[/modify_turns]
|
||||
|
||||
[objectives]
|
||||
side=1
|
||||
[objective]
|
||||
description= _ "Survive for 9 turns"
|
||||
description= _ "Survive until turns run out"
|
||||
condition=win
|
||||
show_turn_counter=yes
|
||||
[/objective]
|
||||
[objective]
|
||||
description= _ "Death of Rugnur"
|
||||
@ -371,6 +373,7 @@
|
||||
|
||||
note={NO_GOLD_CARRYOVER_NOTE}
|
||||
[/objectives]
|
||||
|
||||
[store_unit]
|
||||
[filter]
|
||||
id=Thursagan
|
||||
@ -401,91 +404,70 @@
|
||||
result=defeat
|
||||
[/endlevel]
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
name=new turn
|
||||
first_time_only=no
|
||||
[set_variable]
|
||||
name=turnsleft
|
||||
add=-1
|
||||
[/set_variable]
|
||||
[if]
|
||||
[variable]
|
||||
name=turnsleft
|
||||
numerical_equals=0
|
||||
[/variable]
|
||||
[then]
|
||||
[unstore_unit]
|
||||
variable=thur
|
||||
find_vacant=yes
|
||||
[/unstore_unit]
|
||||
name=time over
|
||||
|
||||
[object]
|
||||
id=sceptre of fire
|
||||
silent=yes
|
||||
duration=forever
|
||||
[unstore_unit]
|
||||
variable=thur
|
||||
find_vacant=yes
|
||||
[/unstore_unit]
|
||||
|
||||
[filter]
|
||||
id=Thursagan
|
||||
[/filter]
|
||||
[object]
|
||||
id=sceptre of fire
|
||||
silent=yes
|
||||
duration=forever
|
||||
|
||||
[effect]
|
||||
apply_to=new_attack
|
||||
[filter]
|
||||
id=Thursagan
|
||||
[/filter]
|
||||
|
||||
[effect]
|
||||
apply_to=new_attack
|
||||
name=sceptre of fire
|
||||
description= _ "sceptre of fire"
|
||||
icon=attacks/fireball.png
|
||||
type=fire
|
||||
range=ranged
|
||||
[specials]
|
||||
{WEAPON_SPECIAL_MAGICAL}
|
||||
[/specials]
|
||||
damage=14
|
||||
number=4
|
||||
[/effect]
|
||||
|
||||
[effect]
|
||||
apply_to=new_animation
|
||||
|
||||
[attack_anim]
|
||||
[filter_attack]
|
||||
name=sceptre of fire
|
||||
description= _ "sceptre of fire"
|
||||
icon=attacks/fireball.png
|
||||
type=fire
|
||||
range=ranged
|
||||
[specials]
|
||||
{WEAPON_SPECIAL_MAGICAL}
|
||||
[/specials]
|
||||
damage=14
|
||||
number=4
|
||||
[/effect]
|
||||
[/filter_attack]
|
||||
|
||||
[effect]
|
||||
apply_to=new_animation
|
||||
{MISSILE_FRAME_FIREBALL}
|
||||
|
||||
[attack_anim]
|
||||
[filter_attack]
|
||||
name=sceptre of fire
|
||||
[/filter_attack]
|
||||
[frame]
|
||||
begin=-200
|
||||
end=0
|
||||
sound=fire.wav
|
||||
[/frame]
|
||||
[/attack_anim]
|
||||
[/effect]
|
||||
[/object]
|
||||
[message]
|
||||
speaker=Thursagan
|
||||
message= _ "I have completed my work. Now it is truly the Sceptre of Fire, a powerful magical artifact."
|
||||
[/message]
|
||||
[message]
|
||||
speaker=Rugnur
|
||||
message= _ "Good. Now, let's get out of this cave, before the elves, dwarves or bats kill us!"
|
||||
[/message]
|
||||
|
||||
{MISSILE_FRAME_FIREBALL}
|
||||
|
||||
[frame]
|
||||
begin=-200
|
||||
end=0
|
||||
sound=fire.wav
|
||||
[/frame]
|
||||
[/attack_anim]
|
||||
[/effect]
|
||||
[/object]
|
||||
[message]
|
||||
speaker=Thursagan
|
||||
message= _ "I have completed my work. Now it is truly the Sceptre of Fire, a powerful magical artifact."
|
||||
[/message]
|
||||
[message]
|
||||
speaker=Rugnur
|
||||
message= _ "Good. Now, let's get out of this cave, before the elves, dwarves or bats kill us!"
|
||||
[/message]
|
||||
[clear_variable]
|
||||
name=turnsleft
|
||||
[/clear_variable]
|
||||
[endlevel]
|
||||
result=victory
|
||||
bonus=no
|
||||
{NEW_GOLD_CARRYOVER 0}
|
||||
[/endlevel]
|
||||
[/then]
|
||||
[else]
|
||||
[message]
|
||||
speaker=narrator
|
||||
caption= _ "Thursagan"
|
||||
image=portraits/thursagan.png
|
||||
message= _ "In $turnsleft more turns I will have completed the Sceptre of Fire."
|
||||
[/message]
|
||||
[/else]
|
||||
[/if]
|
||||
[endlevel]
|
||||
result=victory
|
||||
bonus=no
|
||||
{NEW_GOLD_CARRYOVER 0}
|
||||
[/endlevel]
|
||||
[/event]
|
||||
[/event]
|
||||
[/scenario]
|
||||
|
Loading…
x
Reference in New Issue
Block a user