Axefighterr's questions
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Re: Axefighterr's questions
Would it work if the unit to be modified originally had only an AMLA ?
- axefighterr
- Posts: 27
- Joined: May 1st, 2012, 9:16 am
- Location: Poland
- Contact:
Re: Axefighterr's questions
Thank you Ravana for responding, but I am not so great in WML and I would be very grateful if someone shows me just a basic exaple how to do it. For reference, here are some parts of my unit's code:
Starting weapons:
Advancements:
Any ideas?
Starting weapons:
Code: Select all
[attack]
name=staff
description=_"staff"
icon=attacks/staff-ruby.png
type=impact
range=melee
damage=5
number=1
[/attack]
[attack]
name=fireball
description=_"fireball"
icon=attacks/fireball.png
type=fire
range=ranged
[specials]
{WEAPON_SPECIAL_MAGICAL}
[/specials]
damage=7
number=3
[/attack]
Code: Select all
[advancement]
id=hp4
description= 4 hitpoints
always_display=true
image=icons/heal-royal-2.png
max_times=10
[effect]
apply_to=hitpoints
increase_total=4
increase=4
[/effect]
[effect]
apply_to=max_experience
increase=4
[/effect]
[effect]
apply_to=hitpoints
increase=25%
[/effect]
[/advancement]
[advancement]
id=hp2
description= 2 hitpoints
always_display=true
image=icons/heal-royal-1.png
max_times=100
require_amla=hp4,hp4,hp4,hp4,hp4,hp4,hp4,hp4,hp4,hp4
[effect]
apply_to=hitpoints
increase_total=2
increase=2
[/effect]
[effect]
apply_to=max_experience
increase=4
[/effect]
[effect]
apply_to=hitpoints
increase=25%
[/effect]
[/advancement]
[advancement]
id=mdmg
description= 1 melee damage
always_display=true
image=icons/enchant-red-2.png
max_times=100
[effect]
apply_to=attack
name=staff
increase_damage=1
[/effect]
[effect]
apply_to=attack
name=flamingsword
increase_damage=1
[/effect]
[effect]
apply_to=max_experience
increase=4
[/effect]
[effect]
apply_to=hitpoints
increase=30%
[/effect]
[/advancement]
[advancement]
id=rdmg2
description= 2 ranged damage
always_display=true
image=icons/runes-orange-3.png
max_times=5
[effect]
apply_to=attack
name=fireball
increase_damage=2
[/effect]
[effect]
apply_to=attack
name=darts
increase_damage=2
[/effect]
[effect]
apply_to=attack
name=minimeteorites
increase_damage=2
[/effect]
[effect]
apply_to=max_experience
increase=4
[/effect]
[effect]
apply_to=hitpoints
increase=30%
[/effect]
[/advancement]
[advancement]
id=rdmg
description= 1 ranged damage
always_display=true
image=icons/runes-orange-2.png
max_times=100
require_amla=rdmg2,rdmg2,rdmg2,rdmg2,rdmg2
[effect]
apply_to=attack
name=fireball
increase_damage=1
[/effect]
[effect]
apply_to=attack
name=darts
increase_damage=1
[/effect]
[effect]
apply_to=attack
name=minimeteorites
increase_damage=1
[/effect]
[effect]
apply_to=max_experience
increase=4
[/effect]
[effect]
apply_to=hitpoints
increase=30%
[/effect]
[/advancement]
[advancement]
id=mov
description= 1 movement point
always_display=true
image=icons/boots_elven.png
max_times=5
[effect]
apply_to=movement
increase=1
[/effect]
[effect]
apply_to=max_experience
increase=4
[/effect]
[effect]
apply_to=hitpoints
increase=30%
[/effect]
[/advancement]
[advancement]
id=fireshield
description=Fire shield
always_display=true
image=icons/protect-red-2.png
require_amla=hp4,hp4
max_times=1
[effect]
apply_to=resistance
replace=no
[resistance]
fire=-30
[/resistance]
[/effect]
[effect]
apply_to=max_experience
increase=4
[/effect]
[effect]
apply_to=hitpoints
increase=30%
[/effect]
[/advancement]
[advancement]
id=magmashield
description= Magma shield
always_display=true
image=icons/protect-red-3.png
require_amla=hp4,hp4,hp4,hp4,fireshield
max_times=1
[effect]
apply_to=resistance
replace=no
[resistance]
fire=-30
blade=-10
pierce=-10
impact=-10
[/resistance]
[/effect]
[effect]
apply_to=max_experience
increase=4
[/effect]
[effect]
apply_to=hitpoints
increase=30%
[/effect]
[/advancement]
[advancement]
id=2staff
description= Second staff attack
always_display=true
image=attacks/staff-ruby.png
require_amla=mdmg,mdmg
max_times=1
[effect]
apply_to=attack
name=staff
increase_attacks=1
[/effect]
[effect]
apply_to=max_experience
increase=4
[/effect]
[effect]
apply_to=hitpoints
increase=30%
[/effect]
[/advancement]
[advancement]
id=3staff
description= Third staff attack
always_display=true
image=attacks/staff-ruby.png
require_amla=mdmg,mdmg,mdmg,mdmg,2staff,
max_times=1
[effect]
apply_to=attack
name=staff
increase_attacks=1
[/effect]
[effect]
apply_to=max_experience
increase=4
[/effect]
[effect]
apply_to=hitpoints
increase=30%
[/effect]
[/advancement]
[advancement]
id=flamingsword
description= Flaming sword
always_display=true
image=attacks/sword-flaming.png
require_amla=mdmg,mdmg,mdmg,2staff
max_times=1
[effect]
apply_to=new_attack
name=flamingsword
description=_"flaming sword"
icon=attacks/sword-flaming.png
type=fire
range=melee
damage=9
number=3
[specials]
{WEAPON_SPECIAL_MAGICAL}
[/specials]
[/effect]
[effect]
apply_to=max_experience
increase=4
[/effect]
[effect]
apply_to=hitpoints
increase=30%
[/effect]
[/advancement]
[advancement]
id=illumination
description= Illumination
always_display=true
image=icons/light-air-fire-3.png
require_amla=hp4,rdmg2
max_times=1
[effect]
apply_to=new_ability
[abilities]
{ABILITY_ILLUMINATES}
[/abilities]
[/effect]
[effect]
apply_to=max_experience
increase=4
[/effect]
[effect]
apply_to=hitpoints
increase=30%
[/effect]
[/advancement]
[advancement]
id=4fire
description= Fourth fireball attack
always_display=true
image=attacks/fireball.png
require_amla=rdmg2,rdmg2,rdmg2,
max_times=1
[effect]
apply_to=attack
name=fireball
increase_attacks=1
[/effect]
[effect]
apply_to=max_experience
increase=4
[/effect]
[effect]
apply_to=hitpoints
increase=30%
[/effect]
[/advancement]
[advancement]
id=5fire
description= Fifth fireball attack
always_display=true
image=attacks/fireball.png
require_amla=rdmg2,rdmg2,rdmg2,rdmg2,rdmg2,4fire
max_times=1
[effect]
apply_to=attack
name=fireball
increase_attacks=1
[/effect]
[effect]
apply_to=max_experience
increase=4
[/effect]
[effect]
apply_to=hitpoints
increase=30%
[/effect]
[/advancement]
[advancement]
id=darts
description= Darts
always_display=true
image=attacks/dagger-thrown-human.png
require_amla=rdmg2,
max_times=1
[effect]
apply_to=new_attack
name=darts
description=_"darts"
icon=attacks/dagger-thrown-human.png
type=pierce
range=ranged
damage=5
number=5
[/effect]
[effect]
apply_to=max_experience
increase=4
[/effect]
[effect]
apply_to=hitpoints
increase=30%
[/effect]
[/advancement]
[advancement]
id=minimeteorites
description= Mini meteorites
always_display=true
image=icons/fire-arrows-3.png
require_amla=4fire,darts,
max_times=1
[effect]
apply_to=new_attack
name=minimeteorites
description=_"mini meteorites"
icon=icons/fire-arrows-3.png
type=fire
range=ranged
damage=8
number=7
[specials]
{WEAPON_SPECIAL_MARKSMAN}
{WEAPON_SPECIAL_FIRSTSTRIKE}
[/specials]
[/effect]
[effect]
apply_to=max_experience
increase=4
[/effect]
[effect]
apply_to=hitpoints
increase=30%
[/effect]
[/advancement]
Re: Axefighterr's questions
I suspect it wont be doable directly in advancements, might need event to modify damage after advancing.