Custom plague

The place to post your WML questions and answers.

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.
Post Reply
Andrzej127
Posts: 23
Joined: July 26th, 2019, 4:10 pm

Custom plague

Post by Andrzej127 »

Hello. I'm looking for weapon special code that changes killed unit into a custom zombie (unit id: nek_l1_zombie). It needs to work only on living units. I tried to do this myself by changing undead_variation but it doesn't work.
Andrzej127
Posts: 23
Joined: July 26th, 2019, 4:10 pm

Re: Custom plague

Post by Andrzej127 »

I did it by copying plague ability from the mainline and changing "type=Walking Corpse" to my own unit.
User avatar
sergey
Posts: 475
Joined: January 9th, 2015, 9:25 pm

Re: Custom plague

Post by sergey »

There is a macro in that file that you could use:
{WEAPON_SPECIAL_PLAGUE_TYPE "Custom Unit Type"}
Author of SP scenario Dragon Fight and SP campaign Captured by a Nightmare.
Created The Rise of Wesnoth (alternative mechanics) version of the mainline campaign.
Post Reply