Dune2K Maps

Leaders & Assassins Mod for v.20231010

Information and discussion for custom maps and mods.
Adrian
Posts: 135
Joined: Wed Feb 12, 2020 5:44 pm

Re: Dune2K Maps

Post by Adrian »

Markis wrote:
Sat Dec 14, 2024 1:23 pm
1) Limit for the maximum number of harvesters that a player can build.
2) Limit for the maximum number of Carryals as well.
I "play" here with Buildable traits. (For unit Medic from RA for Dune2000)
And I remember this post.

Main idea.
To use trait

Code: Select all

	Buildable:
		BuildLimit: 
Main code.
For example, 4 harvesters and 4 carryalls.
You can redefine harvester and carryall Buildable traits in rules.yaml file. Only Buildable traits.

When you reach maximum of units, it gives voice message:
"No room for new unit"

Code: Select all

harvester:
	Buildable:
		BuildLimit: 4

carryall:
	Buildable:
		BuildLimit: 4
------------------------------------------------------------------------

Bigger code for testing.

"BuildDuration" trait builds units quickly here.
"Valued/Cost" — cheaply.
Delete after testing.

Code: Select all

harvester:
	Buildable:
		BuildLimit: 4
		BuildDuration: 10
	Valued:
		Cost: 10

carryall:
	Buildable:
		BuildLimit: 4
		BuildDuration: 10
	Valued:
		Cost: 10

Post Reply