Removing items when legitimate unit picks it up.

This commit is contained in:
Cédric Duval 2004-07-18 21:31:32 +00:00
parent cedf18a295
commit 0389827945

View file

@ -332,16 +332,21 @@ What would you like to wish for?"
y={Y}
[/filter]
[object]
[filter]
x={X}
y={Y}
[/filter]
id={ID}
name=Healing
image=misc/item-healingpotion.png
duration=level
description="A feeling of well-being overwhelms the drinker."
cannot_use_message="You are not worthy of healing."
[filter]
x={X}
y={Y}
[/filter]
[then]
[removeitem]
x,y={X},{Y}
[/removeitem]
[/then]
[effect]
apply_to=hitpoints
increase=10%
@ -365,20 +370,25 @@ What would you like to wish for?"
y={Y}
[/filter]
[object]
[filter]
x={X}
y={Y}
[/filter]
id={ID}
name=Poison
image=items/potion-yellow.png
duration=level
description="Poison is seeping through the veins of this unit at this very moment."
cannot_use_message=NONE
[effect]
apply_to=status
add=poisoned
[/effect]
[filter]
x={X}
y={Y}
[/filter]
[then]
[removeitem]
x,y={X},{Y}
[/removeitem]
[/then]
[effect]
apply_to=status
add=poisoned
[/effect]
[/object]
[/event]
#enddef
@ -398,16 +408,21 @@ What would you like to wish for?"
y={Y}
[/filter]
[object]
[filter]
x={X}
y={Y}
[/filter]
id={ID}
name=Holy Water
image=misc/item-holywater.png
duration=level
description="This water will make melee weapons holy."
cannot_use_message="I am not suited to the use of this item! Let another take it."
[filter]
x={X}
y={Y}
[/filter]
[then]
[removeitem]
x,y={X},{Y}
[/removeitem]
[/then]
[effect]
apply_to=attack
range=short
@ -432,26 +447,31 @@ What would you like to wish for?"
y={Y}
[/filter]
[object]
[filter]
x={X}
y={Y}
[/filter]
id={ID}
name=Strong
image=items/potion-red.png
duration=level
description="Strength is given to the drinker."
cannot_use_message=NONE
[effect]
apply_to=attack
range=short
increase_damage=1
[/effect]
[effect]
apply_to=hitpoints
increase_total=2
heal_full=yes
[/effect]
[filter]
x={X}
y={Y}
[/filter]
[then]
[removeitem]
x,y={X},{Y}
[/removeitem]
[/then]
[effect]
apply_to=attack
range=short
increase_damage=1
[/effect]
[effect]
apply_to=hitpoints
increase_total=2
heal_full=yes
[/effect]
[/object]
[/event]
#enddef
@ -471,16 +491,21 @@ What would you like to wish for?"
y={Y}
[/filter]
[object]
[filter]
x={X}
y={Y}
[/filter]
id={ID}
name=Decay
image=items/potion-blue.png
duration=level
description="This poor unit drank something really bad."
cannot_use_message=NONE
[filter]
x={X}
y={Y}
[/filter]
[then]
[removeitem]
x,y={X},{Y}
[/removeitem]
[/then]
[effect]
apply_to=hitpoints
increase=-10%
@ -504,16 +529,21 @@ What would you like to wish for?"
y={Y}
[/filter]
[object]
[filter]
x={X}
y={Y}
[/filter]
id={ID}
name=Ring of Regeneration
image=items/ring1.png
duration=forever
description="This ring will heal the bearer a little each turn."
cannot_use_message=NONE
[filter]
x={X}
y={Y}
[/filter]
[then]
[removeitem]
x,y={X},{Y}
[/removeitem]
[/then]
[effect]
apply_to=attack
range=short
@ -543,16 +573,21 @@ What would you like to wish for?"
y={Y}
[/filter]
[object]
[filter]
x={X}
y={Y}
[/filter]
id={ID}
name=Ring of Slowness
image=items/ring2.png
duration=forever
description="The bearer of this ring is slowed."
cannot_use_message=NONE
[filter]
x={X}
y={Y}
[/filter]
[then]
[removeitem]
x,y={X},{Y}
[/removeitem]
[/then]
[effect]
apply_to=status
add=slowed
@ -576,16 +611,21 @@ What would you like to wish for?"
y={Y}
[/filter]
[object]
[filter]
x={X}
y={Y}
[/filter]
id={ID}
name=Staff of Swiftness
image=misc/item-staff.png
duration=forever
description="This staff will grant the bearer swift movement."
cannot_use_message="Only magical beings can wield such an object."
[filter]
x={X}
y={Y}
[/filter]
[then]
[removeitem]
x,y={X},{Y}
[/removeitem]
[/then]
[effect]
apply_to=movement
increase=2
@ -673,6 +713,11 @@ What would you like to wish for?"
description=Konrad
x,y={X},{Y}
[/filter]
[then]
[removeitem]
x,y={X},{Y}
[/removeitem]
[/then]
[effect]
apply_to=new_attack
name=flaming sword
@ -706,56 +751,37 @@ What would you like to wish for?"
y={Y}
[/filter]
[object]
id={ID}
name=Sceptre of Fire
image=misc/item-sceptreoffire.png
duration=forever
description="This ancient Sceptre was forged by the Dwarves. A symbol of the kingship of Wesnoth, the Sceptre has the power to shoot fireballs at enemies of the bearer!"
cannot_use_message="This is the Sceptre of Fire. Only a true successor to the throne can possibly dare to take this!"
[filter]
type=Princess,Commander,Lord
x,y={X},{Y}
[/filter]
id={ID}
name=Sceptre of Fire
image=misc/item-sceptreoffire.png
duration=forever
description="This ancient Sceptre was forged by the Dwarves. A symbol of the kingship of Wesnoth, the Sceptre has the power to shoot fireballs at enemies of the bearer!"
cannot_use_message="This is the Sceptre of Fire. Only a true successor to the throne can possibly dare to take this!"
[then]
[removeitem]
x,y={X},{Y}
[/removeitem]
[/then]
[effect]
apply_to=new_attack
name=sceptre of fire
type=fire
range=long
special=magical
damage=16
number=4
[sound]
time=-200
sound=fire.wav
[/sound]
[missile_frame]
begin=-100
end=0
image=projectiles/fireball.png
image_diagonal=projectiles/fireball.png
[/missile_frame]
[/effect]