Alternate Saurian Flanker Sprite Custom Unit

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
Gweddeoran
Posts: 157
Joined: December 19th, 2014, 6:03 am
Location: Estmark Hills

Alternate Saurian Flanker Sprite Custom Unit

Post by Gweddeoran »

Hey everyone!

I edited the existing Saurian Flanker sprite (just a few colour changes). I wanted Inarix, the protagonist, to look different from the other Saurian Flankers in the campaign. However, I don't want a separate entry in the units database for the campaign. Also, I want it to retain all the exact stats of the Saurian Flanker. How do I do this?

Thanks in advance. :D
User avatar
Ravana
Forum Moderator
Posts: 3002
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Alternate Saurian Flanker Sprite Custom Unit

Post by Ravana »

I mark original image invisible and place new on it https://github.com/ProditorMagnus/Agele ... fg#L69-L77
User avatar
Gweddeoran
Posts: 157
Joined: December 19th, 2014, 6:03 am
Location: Estmark Hills

Re: Alternate Saurian Flanker Sprite Custom Unit

Post by Gweddeoran »

Would this be inefficient for every single frame of movement, attack etc.?
User avatar
Gweddeoran
Posts: 157
Joined: December 19th, 2014, 6:03 am
Location: Estmark Hills

Re: Alternate Saurian Flanker Sprite Custom Unit

Post by Gweddeoran »

Did it! I created a custom unit and made the 'hide_help=yes' in the unit.cfg file. I made its id different, i.e, Special Saurian Flanker, but left its name the same. So, the player does not see the unit listed on the database but it exists and Inarix uses its sprites, animations. Thanks for your help, I might need the [effect] tag later in the campaign.
Post Reply