Custom Units-How to?
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.
Custom Units-How to?
I am currently working on an undead campaign, and it's been going smoothly.
I then decided to add a custom unit to recruit. So I created its code in a folder called 'units' and I have its sprites all done. So the unit is put together. I then added the name 'Dead Rider' to the possible recruit list, and then my recruit list won't pop up when I hit 'Ctr+r' the recruit box doesn't pop up, and then when I hit 'end turn' it pops up and error message.
So my question is, how do I get my leader to recruit my custom unit? All help appreciated.
I then decided to add a custom unit to recruit. So I created its code in a folder called 'units' and I have its sprites all done. So the unit is put together. I then added the name 'Dead Rider' to the possible recruit list, and then my recruit list won't pop up when I hit 'Ctr+r' the recruit box doesn't pop up, and then when I hit 'end turn' it pops up and error message.
So my question is, how do I get my leader to recruit my custom unit? All help appreciated.
Lord Kata
Coder, Roller coaster enthusiast, king of the world...
I'm looking to hire artists for my campaign. If interested, please PM me.
Coder, Roller coaster enthusiast, king of the world...
I'm looking to hire artists for my campaign. If interested, please PM me.
Re: Custom Units-How to?
Sounds like most likely you forgot to include the unit .cfg's (which you most likely want to do in your _main.cfg). Look for [+units] in other campaigns' _main.cfg's for an example.
Re: Custom Units-How to?
Thanks a lot, Zookeeper! It now works.
Lord Kata
Coder, Roller coaster enthusiast, king of the world...
I'm looking to hire artists for my campaign. If interested, please PM me.
Coder, Roller coaster enthusiast, king of the world...
I'm looking to hire artists for my campaign. If interested, please PM me.