Special move type and resistance

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
Stupidbro
Posts: 22
Joined: March 5th, 2019, 12:08 am

Special move type and resistance

Post by Stupidbro »

How do you make it so a unit has a special movement type and resistance?
User avatar
Pentarctagon
Project Manager
Posts: 5531
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Special move type and resistance

Post by Pentarctagon »

What do you mean by "special"?
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
Stupidbro
Posts: 22
Joined: March 5th, 2019, 12:08 am

Re: Special move type and resistance

Post by Stupidbro »

A movement and resistance code, built into the unit itself, that is not built into the game already.
User avatar
The_Gnat
Posts: 2215
Joined: October 10th, 2016, 3:06 am
Contact:

Re: Special move type and resistance

Post by The_Gnat »

Do you mean like this:

Code: Select all


... INSIDE UNIT FILE ...

    [resistance]
        blade=90
        pierce=90
        impact=90
        arcane=70
    [/resistance]
    [defense]
	frozen=50
    [/defense]
    [movement_costs]
        frozen=1
    [/movement_costs]

...

Stupidbro
Posts: 22
Joined: March 5th, 2019, 12:08 am

Re: Special move type and resistance

Post by Stupidbro »

That looks about right.

---

It worked! Thank you!
Last edited by Pentarctagon on March 16th, 2019, 4:16 pm, edited 1 time in total.
Reason: Merged double post
User avatar
The_Gnat
Posts: 2215
Joined: October 10th, 2016, 3:06 am
Contact:

Re: Special move type and resistance

Post by The_Gnat »

Glad to help out! :)
Post Reply