undead variation to recruit list
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.
undead variation to recruit list
Walking corpses and soulless have many variations for different races, is it possible to add a variation to a recruit list/faction? What would be the id of the unit, when I put soulless I only get the standard variant.
Author of 'An Orcish Might' viewtopic.php?t=57032
Re: undead variation to recruit list
You would need to create separate unit types out of them. Some addons have done that already.
-
- Posts: 1456
- Joined: August 26th, 2018, 11:46 pm
- Location: A country place, far outside the Wire
Re: undead variation to recruit list
Be nice if you could say something like soulless.wose. I don't really know anything about variations, so that may not make much sense.
Speak softly, and carry Doombringer.
Re: undead variation to recruit list
alright, thanks for the info could you tell me a addon that does it for example?
Author of 'An Orcish Might' viewtopic.php?t=57032
Re: undead variation to recruit list
Does RECRUIT_UNIT_VARIATIONS do what you want?
Re: undead variation to recruit list
The main line campaign 'Secrets of the Ancients'.could you tell me a addon that does it for example?
The add-on: campaign 'Zombies:Introduction'. (he took from Secrets of the Ancients).
I think I know what you want to do... put the walking corpses and soulless variations on the recruit list itself, right?
It's a good idea!

Re: undead variation to recruit list
@gnombat actually I wanted to add the unit to an era, and I think it may be kinda Frustrating for the Player If it is random, but thank you nonetheless.
@saizo-Luz thanks, I'll Check the campaigns. I will have to See how the unit is balanced in the era. Maybe I'll add some Higher Level Units or Something.
Also sorry for the capitalization, my Phone autocorrects for my native language.
@saizo-Luz thanks, I'll Check the campaigns. I will have to See how the unit is balanced in the era. Maybe I'll add some Higher Level Units or Something.
Also sorry for the capitalization, my Phone autocorrects for my native language.
Author of 'An Orcish Might' viewtopic.php?t=57032
- Lord-Knightmare
- Discord Moderator
- Posts: 2475
- Joined: May 24th, 2010, 5:26 pm
- Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
- Contact:
Re: undead variation to recruit list
There is a mod by dwarftough where you can enable and pick what variations of WC/Soulless should be recruited. You can try that.
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Re: undead variation to recruit list
I have a related question.
I am trying to define new unit type, but I want it to inherit from basic Walking Corpse. For some reason, it seems to choose random variation, and I end up with dwarves and falcons. Is there a way to clearly specify the basic Walking Corpse?
I am trying to define new unit type, but I want it to inherit from basic Walking Corpse. For some reason, it seems to choose random variation, and I end up with dwarves and falcons. Is there a way to clearly specify the basic Walking Corpse?
Re: undead variation to recruit list
Do you want to create a unit from the walking corpse without any variation? Just the base 'variation'?

Re: undead variation to recruit list
https://wiki.wesnoth.org/SingleUnitWMLWiki wrote:undead_variation: Will override the default provided by the [unit_type]. This is generally not set manually.
Re: undead variation to recruit list
Re: undead variation to recruit list
You just need to copy the walking body file and make the change, removing all variations. I'll do it for you...
Code: Select all
[unit_type]
id=Walking_Corpse_Base
name= _ "Walking Corpse"
profile=portraits/undead/walking-corpse.png
race=undead
{TRAIT_FEARLESS_MUSTHAVE}
image="units/undead/zombie.png"
hitpoints=18
movement_type=smallfoot
movement=4
level=0
experience=24
alignment=chaotic
advances_to=Soulless
cost=8
usage=fighter
description= _ "Walking Corpses are the bodies of the dead, re-animated by dark magic. Though not especially dangerous to a trained soldier, the sight of one’s former comrades amongst their number is frightening to say the least."
die_sound={SOUND_LIST:ZOMBIE_WEAK_HIT}
{DEFENSE_ANIM "units/undead/zombie-defend.png" "units/undead/zombie.png" {SOUND_LIST:ZOMBIE_WEAK_HIT}}
[death]
start_time=0
[frame]
image="units/undead/zombie-die-[1~4].png:150,units/undead/soulless-die-[5~10].png:150"
[/frame]
[/death]
[resistance]
arcane=140
[/resistance]
[movement_costs]
deep_water=4
[/movement_costs]
[defense]
deep_water=90
[/defense]
[attack]
name=touch
description=_"touch"
icon=attacks/touch-zombie.png
type=impact
range=melee
damage=6
number=2
[specials]
{WEAPON_SPECIAL_PLAGUE}
[/specials]
[/attack]
[attack_anim]
[filter_attack]
name=touch
[/filter_attack]
direction=s
start_time=-200
[frame]
image="units/undead/zombie-attack-s.png:400"
sound=zombie-attack.wav
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=touch
[/filter_attack]
direction=n
start_time=-200
[frame]
image="units/undead/zombie-attack-n.png:400"
sound=zombie-attack.wav
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=touch
[/filter_attack]
direction=se,sw,ne,nw
start_time=-200
[frame]
image="units/undead/zombie-attack.png:400"
sound=zombie-attack.wav
[/frame]
[/attack_anim]
[/unit_type]

You can make whatever changes you want - hp, xp, moves, etc. Increase level, improve attack damage... whatever you want.
Re: undead variation to recruit list
Nice, thanks!
- Celtic_Minstrel
- Developer
- Posts: 2371
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: undead variation to recruit list
If you want to use
It's likely easier to just make a copy instead, like Saizo-Luz said, but in case you find that to be an issue, this alternative does exist.
[base_unit]
to avoid duplication, then you would need to delete all the variations in the inherited unit. I think that would mean adding about 20 copies of this block to your [unit_type]
:Code: Select all
[variation]
__remove=yes
[/variation]