You can create maps like ones you always wanted. Tower Defense, survival, art of defense maps without any C# coding. Only need yaml to do this now.
First one is Spawner trait. It can spawn units for you at certain locations for a certain units with waves that you choose. It has the following attributes:
Code: Select all
Spawner:
repeatCount = takes a number, how many times the waves will repeat.
delay = takes a number, 25 = 1 sec. How long before the inital spawner should start.
isSynced = true/false, if true all spawners on same unit type will only send messages once.
sharedUnits = true/false, the units for each wave are shared equally between the spawns.
waves:
wave@1:
autokill = takes a number, 25 = 1 sec, will kill all units after x amount of time for that wave.
delay = takes a number, 25 = 1 sec, how long time before the wave should start spawning units.
delayBetweenSubSpawn = takes a number, 25 = 1 sec, how long time before each unit will spawn
repeatCount = takes a number, how many times it will repeat the wave.
messageBegin = takes a string, will display the text before the wave will start
messageDidBegin = takes a string, will display the text when the wave is started
messageEnded = takes a string, will display the text when the wave is complete
clear = true/fale, if true that means that the wave will wait until all units are dead before starting the next wave.
maxUnits = takes a number, maximum number of spawned units on the map at the sametime.
units = takes string array, with each unit name
amounts = takes int array, with each unit amounts
owner = takes string array, who will be owner of each unit.
units: E1, E3
amounts: 3, 7
owner: Creeps, Multi0
also units: can take a coordinate to copy a unit ex:
units: {25|25}
that would copy unit a position at x: 25 y: 25.
that will create 3x of E1 for Creeps and 7x of E3 for Multi0
Then there is the second trait called Orderer. It can make units move attack to from one location to another.
Code: Select all
Orderer:
delay = take a number, 25 = 1 sec, how often it will check if units are inside the area to move.
location = takes a int array, ex: 25,23 if you want random between to points you can do 25,23,50,50 it would be random betwen 25,23 and 50,50
effects = take a string array, which players will be effected by this trait. ex: Creeps, Multi0, Multi1
Code: Select all
Rules:
mpspawn:
Orderer:
location:41,35
effects: Creeps
Spawner:
isSynced: true
sharedUnits: true
Wave@1:
units: E1
amounts: 3
owner: Creeps
clear: true
autokill: 500
messageDidBegin: Wave 1 starting..
messageBegin: Wave 1 will start..
messageEnded: Wave 1 ended..
Wave@2:
delay: 200
units: E3
amounts: 4
owner: Creeps
clear: true
messageDidBegin: Wave 2 starting..
messageBegin: Wave 2 will start..
messageEnded: Wave 2 ended..