Added test for [modify_unit].
This commit is contained in:
parent
522898d80a
commit
7039dbb924
1 changed files with 25 additions and 7 deletions
|
@ -424,13 +424,31 @@ wesnoth.message(string.format("Button %d pressed. Item %d selected.",
|
|||
gold=-1900
|
||||
[/args]
|
||||
[/lua]
|
||||
[lua]
|
||||
code=<<
|
||||
local u = wesnoth.get_unit(14, 6)
|
||||
wesnoth.add_modification(u, "object", { { "effect",
|
||||
{ apply_to = "image_mod", add = "PAL(FFDC02,EA9752,C4793A,C35029,6B2C29,A34C29,D5561F,343424,353624,BF5746 > BCBCBC,7D7D7D,5E5E5E,434343,232323,3B3B3B,494949,232323,232323,484848)" } } })
|
||||
>>
|
||||
[/lua]
|
||||
[modify_unit]
|
||||
[filter]
|
||||
x,y=14,6
|
||||
[/filter]
|
||||
[object]
|
||||
[effect]
|
||||
apply_to=image_mod
|
||||
add="PAL(FFDC02,EA9752,C4793A,C35029,6B2C29,A34C29,D5561F,343424,353624,BF5746 > BCBCBC,7D7D7D,5E5E5E,434343,232323,3B3B3B,494949,232323,232323,484848)"
|
||||
[/effect]
|
||||
[/object]
|
||||
[attack]
|
||||
[/attack]
|
||||
[attack]
|
||||
name=lightning
|
||||
description= _"lightning"
|
||||
icon=attacks/lightning.png
|
||||
type=fire
|
||||
range=ranged
|
||||
[specials]
|
||||
{WEAPON_SPECIAL_MAGICAL}
|
||||
[/specials]
|
||||
damage=14
|
||||
number=4
|
||||
[/attack]
|
||||
[/modify_unit]
|
||||
[music]
|
||||
name="traveling_minstrels.ogg"
|
||||
ms_before=12000
|
||||
|
|
Loading…
Add table
Reference in a new issue