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
User avatar
Lordlewis
Posts: 333
Joined: July 20th, 2016, 11:15 am
Location: Nowhere

Custom plague

Post by Lordlewis »

How do you make a custom plague attack? I've tried many things but it never works, so how do you do it?
Gold is great!
Swat them bugs!
User avatar
James_The_Invisible
Posts: 534
Joined: October 28th, 2012, 1:58 pm
Location: Somewhere in the Northlands, fighting dark forces
Contact:

Re: Legend of the Invincibles

Post by James_The_Invisible »

Dugi wrote:
Lordlevis wrote:How do you make a custom plague attack? I've tried many things but it never works, so how do you do it?
For example with this:

Code: Select all

{WEAPON_SPECIAL_PLAGUE}
[+plague]
    type=Fire Dragon  # Or whatever type you want to create
[/plague]
While this works, it is unnecessary complicated. There is macro WEAPON_SPECIAL_PLAGUE_TYPE in core which has TYPE parameter.
User avatar
Lordlewis
Posts: 333
Joined: July 20th, 2016, 11:15 am
Location: Nowhere

Re: Legend of the Invincibles

Post by Lordlewis »

Can some one show me a unit list that has a unit with the [PLAGUE] (not walking corpse) as their weapon special, also I'm new to code so can someone also explain a bit.
Gold is great!
Swat them bugs!
User avatar
Lordlewis
Posts: 333
Joined: July 20th, 2016, 11:15 am
Location: Nowhere

Re: Legend of the Invincibles

Post by Lordlewis »

The Sire from the Vampire faction has a Plague attack, but I can't seem to put it on any other unit from another era/add on and change the replacement. It's kind of annoying in a good.
Gold is great!
Swat them bugs!
User avatar
Lordlewis
Posts: 333
Joined: July 20th, 2016, 11:15 am
Location: Nowhere

Re: Legend of the Invincibles

Post by Lordlewis »

How and where do I place this block

{WEAPON_SPECIAL_PLAGUE}
[+plague]
type=Fire Dragon # Or whatever type you want to create
[/plague]

I'm kind of like, WOW.
Gold is great!
Swat them bugs!
User avatar
Ravana
Forum Moderator
Posts: 3005
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Custom plague

Post by Ravana »

User avatar
ForestDragon
Posts: 1771
Joined: March 6th, 2014, 1:32 pm
Location: Ukraine

Re: Legend of the Invincibles

Post by ForestDragon »

Lordlewis wrote:How and where do I place this block

{WEAPON_SPECIAL_PLAGUE}
[+plague]
type=Fire Dragon # Or whatever type you want to create
[/plague]

I'm kind of like, WOW.
put this inside the [specials] tag, which inside the [attack] tag in unit type files
also, you could use this for simplicity:

Code: Select all

{WEAPON_SPECIAL_PLAGUE_TYPE (insert a unit's id here) }
My active add-ons: The Great Steppe Era,XP Bank,Alliances Mod,Pestilence,GSE+EoMa,Ogre Crusaders,Battle Royale,EoMaifier,Steppeifier,Hardcoreifier
My inactive add-ons (1.12): Tale of Alan, The Golden Age
Co-creator of Era of Magic
Post Reply