HttT S19a Improve Flaming Sword
It does not do anything for a Paladin, so removed him from the allowed users. Added a hint when a unit moves within two hex. Added a remark when finding it so it does not just ask what to do with it, and made that question less generic.
This commit is contained in:
parent
ac3db7f036
commit
c8ca26c833
1 changed files with 41 additions and 4 deletions
|
@ -47,6 +47,36 @@
|
|||
#
|
||||
|
||||
#define OBJ_SWORD_FIRE X Y ID
|
||||
|
||||
# Give a hint the first time a unit stops in a hex near the sword.
|
||||
# There is a village right there, so that's probably when it will occur,
|
||||
# but anywhere nearby will do.
|
||||
|
||||
[event]
|
||||
name=moveto
|
||||
[filter]
|
||||
side=1
|
||||
[/filter]
|
||||
[filter_condition]
|
||||
[have_location]
|
||||
x,y=$x1,$y1
|
||||
[and]
|
||||
x,y={X},{Y}
|
||||
radius=2
|
||||
[/and]
|
||||
[not]
|
||||
x,y={X},{Y}
|
||||
[/not]
|
||||
[/have_location]
|
||||
[/filter_condition]
|
||||
|
||||
[message]
|
||||
speaker=narrator
|
||||
image="wesnoth-icon.png"
|
||||
message="Nearby is a clearing with a huge tree standing alone in the center."
|
||||
[/message]
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
name=moveto
|
||||
|
||||
|
@ -56,6 +86,11 @@
|
|||
y={Y}
|
||||
[/filter]
|
||||
|
||||
[message]
|
||||
speaker=narrator
|
||||
image="wesnoth-icon.png"
|
||||
message= _ "A large tree stands alone in a clearing. Driven into the trunk is a huge sword with flames dancing along its blade. Stangely, while the trunk near the sword is blackened and scorched, the tree seems otherwise unaffected by the flames."
|
||||
[/message]
|
||||
{PLACE_IMAGE items/flame-sword.png ({X}) ({Y})}
|
||||
{VARIABLE sword_taken 0}
|
||||
[event]
|
||||
|
@ -80,7 +115,7 @@
|
|||
[message]
|
||||
speaker=narrator
|
||||
image="wesnoth-icon.png"
|
||||
message= _ "Do you want this unit to pick up the sword?"
|
||||
message= _ "Should $unit.name| attempt to pick up the sword?"
|
||||
[option]
|
||||
label= _ "Yes"
|
||||
[command]
|
||||
|
@ -93,7 +128,7 @@
|
|||
description= _ "This massive blade was created centuries ago by long-forgotten elvish forgemasters, who imbued the bluish steel with an inner magical fire. Tongues of flame dance on the surface, giving the metal a flawless mirrored finish."
|
||||
cannot_use_message= _ "Only the leader of an army can wield this sword!"
|
||||
[filter]
|
||||
type=Fighter,Commander,Lord,Princess,Battle Princess,Elvish Captain,Elvish Hero,Elvish Marshal,Elvish Champion,Paladin,Elvish Lord,Elvish High Lord
|
||||
type=Fighter,Commander,Lord,Princess,Battle Princess,Elvish Captain,Elvish Hero,Elvish Marshal,Elvish Champion,Elvish Lord,Elvish High Lord
|
||||
x,y={X},{Y}
|
||||
[/filter]
|
||||
[then]
|
||||
|
@ -101,9 +136,11 @@
|
|||
x,y={X},{Y}
|
||||
[/remove_item]
|
||||
[message]
|
||||
speaker=narrator
|
||||
speaker=$unit.id|
|
||||
image="wesnoth-icon.png"
|
||||
message= _ "As you place your hand around the glittering leather hilt, the sword roars to life! Strangely, you feel no heat once you pick it up, yet the grass at your feet bursts into flame as you test the heft of this mighty weapon."
|
||||
caption=""
|
||||
male_message= _ "As $unit.name| places his hand around the glittering leather hilt, the sword roars to life! Strangely, he feels no heat once he picks it up, yet the grass at his feet bursts into flame as he tests the heft of this mighty weapon."
|
||||
female_message= _ "As $unit.name| places her hand around the glittering leather hilt, the sword roars to life! Strangely, she feels no heat once she picks it up, yet the grass at her feet bursts into flame as she tests the heft of this mighty weapon."
|
||||
[/message]
|
||||
{VARIABLE sword_taken 1}
|
||||
[/then]
|
||||
|
|
Loading…
Add table
Reference in a new issue