Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- first_time_only=no
- id="post_advance_amla_elynia_e1_spell_thorns"
- name="post advance"
- [filter]
- role="hero"
- side=1
- [/filter]
- [set_variable]
- name="temp_event_id"
- value="post_advance_amla_elynia_e1_spell_thorns"
- [/set_variable]
- [set_variable]
- name="i"
- value=0
- [/set_variable]
- [while]
- [variable]
- less_than="$unit.modifications.advance.length"
- name="i"
- [/variable]
- [do]
- [if]
- [variable]
- equals="amla_elynia_e1_spell_thorns"
- name="unit.modifications.advance[$i].id"
- [/variable]
- [then]
- [set_variable]
- name="k"
- value=0
- [/set_variable]
- [while]
- [variable]
- less_than="$unit.event.length"
- name="k"
- [/variable]
- [variable]
- name="unit.event[$k].id"
- not_equals="$temp_event_id"
- [/variable]
- [do]
- [set_variable]
- add=1
- name="k"
- [/set_variable]
- [/do]
- [/while]
- [bug]
- message="unit does not carry the amla command controller event!"
- [condition]
- [variable]
- name="k"
- numerical_equals="$unit.event.length"
- [/variable]
- [/condition]
- [/bug]
- [clear_variable]
- name="unit.event[$k],k"
- [/clear_variable]
- [unstore_unit]
- find_vacant=no
- variable="unit"
- [/unstore_unit]
- [learn_spell]
- cooldown_time=3
- #textdomain wesnoth-Shadows_of_Deception
- description=_"Unleashes a barrage of thorns at an enemy, slowing them."
- id="e1_thorns"
- image="attacks/thorns.png"
- name=_"Thorns"
- unit="Elynia"
- [target_filter]
- [filter]
- [not]
- [filter_wml]
- [status]
- petrified=yes
- slowed=""
- [/status]
- [/filter_wml]
- [/not]
- [filter_adjacent]
- id="Elynia"
- is_enemy=yes
- [/filter_adjacent]
- [/filter]
- [/target_filter]
- [spell_effect]
- [sound]
- name="magic-thorns-[1,2].ogg"
- [/sound]
- [modify_unit]
- [filter]
- x="$spell_target.x"
- y="$spell_target.y"
- [/filter]
- [status]
- slowed=yes
- [/status]
- [/modify_unit]
- [/spell_effect]
- [/learn_spell]
- [event]
- id="$temp_event_id"
- remove=yes
- [/event]
- [wml_message]
- logger="debug"
- message="[SoD] Post-advance commands applied for AMLA 'amla_elynia_e1_spell_thorns'"
- [/wml_message]
- [/then]
- [/if]
- [set_variable]
- add=1
- name="i"
- [/set_variable]
- [/do]
- [/while]
- [clear_variable]
- name="i"
- [/clear_variable]
- [clear_variable]
- name="temp_event_id"
- [/clear_variable]
Advertisement
Add Comment
Please, Sign In to add comment