Special move type and resistance

The place to post your WML questions and answers.

Moderators: Forum Moderators, Developers

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

Special move type and resistance

Post by Stupidbro » March 15th, 2019, 10:37 pm

How do you make it so a unit has a special movement type and resistance?

User avatar
Pentarctagon
Forum Administrator
Posts: 3748
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Special move type and resistance

Post by Pentarctagon » March 15th, 2019, 11:43 pm

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

Re: Special move type and resistance

Post by Stupidbro » March 16th, 2019, 12:18 am

A movement and resistance code, built into the unit itself, that is not built into the game already.

User avatar
The_Gnat
Posts: 1935
Joined: October 10th, 2016, 3:06 am
Contact:

Re: Special move type and resistance

Post by The_Gnat » March 16th, 2019, 5:15 am

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

Re: Special move type and resistance

Post by Stupidbro » March 16th, 2019, 4:11 pm

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: 1935
Joined: October 10th, 2016, 3:06 am
Contact:

Re: Special move type and resistance

Post by The_Gnat » March 17th, 2019, 8:45 am

Glad to help out! :)

Post Reply