Hello everyone!
I wanted to make special units/heroes that can be hired, but onlu one per type.
What's the easiest way to do this by using scripting only?
I thought it's right to introduce new resource types, but I can't figure out how to, so I suppose they're within the compiled game not scripts.
Any ideas, please?
Allow only one unit of is type
-
- Posts: 14
- Joined: Tue Dec 20, 2016 7:00 am
Re: Allow only one unit of is type
Resources are defined via scripts. However, I believe you can limit it to one via the build button. You should be able to make the button disappear when you've already got the unit.
-
- Posts: 14
- Joined: Tue Dec 20, 2016 7:00 am
Re: Allow only one unit of is type
Thank you - I'll investigate about the buttons...
-
- Posts: 14
- Joined: Tue Dec 20, 2016 7:00 am
Re: Allow only one unit of is type
The maximum quantity of resource types is defined in the engine (namely 6), but you can define what they are in the scripts. 6 resource slots is probably enough for you to achieve what you want.Mizukami999 wrote:Hello everyone!
I wanted to make special units/heroes that can be hired, but onlu one per type.
What's the easiest way to do this by using scripting only?
I thought it's right to introduce new resource types, but I can't figure out how to, so I suppose they're within the compiled game not scripts.
Any ideas, please?
-
- Posts: 14
- Joined: Tue Dec 20, 2016 7:00 am
Re: Allow only one unit of is type
Thank you! For now I used dynamic unit disallowing - too many unique units.The maximum quantity of resource types is defined in the engine (namely 6), but you can define what they are in the scripts. 6 resource slots is probably enough for you to achieve what you want.