Changed the effects of stun to use [object]...
...instead of variable modifications, made it color-shift the unit yellow, changed the floating text color to yellow and made the stunned units' ZoC restoration actually work.
This commit is contained in:
parent
02f9e597d3
commit
7f64cec7ed
1 changed files with 60 additions and 18 deletions
|
@ -180,23 +180,41 @@
|
|||
|
||||
[if]
|
||||
[variable]
|
||||
name=second_unit.stun
|
||||
not_equals=yes
|
||||
name=second_unit.variables.stunned
|
||||
boolean_equals=no
|
||||
[/variable]
|
||||
[then]
|
||||
{VARIABLE second_unit.zoc no}
|
||||
{VARIABLE second_unit.stun yes}
|
||||
{VARIABLE second_unit.ellipse "misc/ellipse-nozoc"}
|
||||
|
||||
[unstore_unit]
|
||||
variable=second_unit
|
||||
[/unstore_unit]
|
||||
{VARIABLE second_unit.variables.stunned yes}
|
||||
|
||||
[unstore_unit]
|
||||
variable=second_unit
|
||||
find_vacant=no
|
||||
text=_ "stunned"
|
||||
red,green,blue=150,120,250
|
||||
red,green,blue=196,196,128
|
||||
[/unstore_unit]
|
||||
|
||||
[object]
|
||||
silent=yes
|
||||
|
||||
[filter]
|
||||
x,y=$x2,$y2
|
||||
[/filter]
|
||||
|
||||
[effect]
|
||||
apply_to=image_mod
|
||||
replace="CS(50,50,0)"
|
||||
[/effect]
|
||||
|
||||
[effect]
|
||||
apply_to=ellipse
|
||||
ellipse="misc/ellipse-nozoc"
|
||||
[/effect]
|
||||
|
||||
[effect]
|
||||
apply_to=zoc
|
||||
value=no
|
||||
[/effect]
|
||||
[/object]
|
||||
[/then]
|
||||
[/if]
|
||||
[/event]
|
||||
|
@ -208,22 +226,46 @@
|
|||
[store_unit]
|
||||
[filter]
|
||||
side=$side_number
|
||||
[and]
|
||||
[filter_wml]
|
||||
stun=yes
|
||||
[/filter_wml]
|
||||
[/and]
|
||||
[filter_wml]
|
||||
[variables]
|
||||
stunned=yes
|
||||
[/variables]
|
||||
[/filter_wml]
|
||||
[/filter]
|
||||
variable=stunned
|
||||
[/store_unit]
|
||||
|
||||
{FOREACH stunned i}
|
||||
{VARIABLE stunned[$i].zoc yes}
|
||||
{VARIABLE stunned[$i].stun no}
|
||||
{VARIABLE stunned[$i].ellipse "misc/ellipse"}
|
||||
{VARIABLE stunned[$i].variables.stunned no}
|
||||
|
||||
[unstore_unit]
|
||||
variable=stunned[$i]
|
||||
[/unstore_unit]
|
||||
|
||||
[object]
|
||||
silent=yes
|
||||
|
||||
[filter]
|
||||
x,y=$stunned[$i].x,$stunned[$i].y
|
||||
[/filter]
|
||||
|
||||
[effect]
|
||||
apply_to=image_mod
|
||||
replace="NOP()"
|
||||
[/effect]
|
||||
|
||||
[effect]
|
||||
apply_to=ellipse
|
||||
ellipse="misc/ellipse"
|
||||
[/effect]
|
||||
|
||||
[effect]
|
||||
apply_to=zoc
|
||||
value=yes
|
||||
[/effect]
|
||||
[/object]
|
||||
{NEXT i}
|
||||
|
||||
{CLEAR_VARIABLE stunned}
|
||||
[/event]
|
||||
[/unit_type]
|
||||
|
|
Loading…
Add table
Reference in a new issue