So probably an odd one in hindsight but its a simulator type game lol Decided I wanted to plan out a game about horses where you play as a lead stallion gathering mares and building a herd by collecting herd members you find on the map, you also breed horses to get foals. Winner is the stallion who takes out the rest of the other lead stallions and their herds to become the sole lead stallion and herd of the map.
However, there's a few mechanisms I was wondering if anyone had answers for. I've been experimenting with different ideas to do a breeding system for the horses, so your lead stallion fathers foals with the mares you collect in order to raise your horse army to destroy your rivals' herds. I was referencing Sheep Farmer's method that uses the transport method to make a pretend pregnancy but while I can get the action to work, as in, spawn the unborn horse to load the unit into the transport, the game never spawns the real foal after or destroys the unborn foal. So, I'm really stuck on how to proceed. Ideally as well each foal would spawn randomly from each breeding, so there'd be different types with colors being a determining factor on what spells/stats the foal is born with, the mare itself might be a factor but idk how complex I want to get. So for example a chestnut foal being a healer based horse or a black foal being a tank based horses, so on and so forth.
This stuff tho is just extra flavor, I gotta get the breeding system itself up and working first before I dig even deeper. This is the current trigger system I came up with so far. I'll post both a screencap and a copy paste version. Breed Foals does work but I gotta find out how to factor it for future different number of players, mare types and stallion types. The idea in brief I got is using transport to make a fake pregnancy, it loads a unborn horse but then the unborn horse is removed once its mana reaches 100 and the real foal is "born". I also want to know if there's a way to make it so transport isn't selectable or cancelable by the player, else the system won't really work as intended at all.
If anyone has any answers, I'd be grateful! Sorry for the long drawn out paragraphs, I wanted to be detailed. I got another few questions but I'll save them for another time so I don't eat up more space or overwhelm anyone.
breed foals
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Father Foals
And - All (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Equal to Stallion
(Unit-type of (Target unit of ability being cast)) Equal to Mare
Actions
Unit Group - Add (Target unit of ability being cast) to pregnantmares
Unit - Create 1 Unborn Horse for Player 1 (Red) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
Unit - Order (Target unit of ability being cast) to Load (Last created unit)
Unit Group - Add (Loading unit) to unbornfoals
foal birth
Events
Time - Every 2.00 seconds of game time
Conditions
(Mana of (Loading unit)) Equal to 100.00
(Number of units in pregnantmares) Greater than 0
Actions
Unit - Kill (Loading unit)
Unit Group - Pick every unit in pregnantmares and do (Unit - Create 1 Foal for Player 1 (Red) at (Position of (Transporting unit)) facing Default building facing degrees)
Animation - Play (Transporting unit)'s death animation
However, there's a few mechanisms I was wondering if anyone had answers for. I've been experimenting with different ideas to do a breeding system for the horses, so your lead stallion fathers foals with the mares you collect in order to raise your horse army to destroy your rivals' herds. I was referencing Sheep Farmer's method that uses the transport method to make a pretend pregnancy but while I can get the action to work, as in, spawn the unborn horse to load the unit into the transport, the game never spawns the real foal after or destroys the unborn foal. So, I'm really stuck on how to proceed. Ideally as well each foal would spawn randomly from each breeding, so there'd be different types with colors being a determining factor on what spells/stats the foal is born with, the mare itself might be a factor but idk how complex I want to get. So for example a chestnut foal being a healer based horse or a black foal being a tank based horses, so on and so forth.
This stuff tho is just extra flavor, I gotta get the breeding system itself up and working first before I dig even deeper. This is the current trigger system I came up with so far. I'll post both a screencap and a copy paste version. Breed Foals does work but I gotta find out how to factor it for future different number of players, mare types and stallion types. The idea in brief I got is using transport to make a fake pregnancy, it loads a unborn horse but then the unborn horse is removed once its mana reaches 100 and the real foal is "born". I also want to know if there's a way to make it so transport isn't selectable or cancelable by the player, else the system won't really work as intended at all.
If anyone has any answers, I'd be grateful! Sorry for the long drawn out paragraphs, I wanted to be detailed. I got another few questions but I'll save them for another time so I don't eat up more space or overwhelm anyone.
breed foals
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Father Foals
And - All (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Equal to Stallion
(Unit-type of (Target unit of ability being cast)) Equal to Mare
Actions
Unit Group - Add (Target unit of ability being cast) to pregnantmares
Unit - Create 1 Unborn Horse for Player 1 (Red) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
Unit - Order (Target unit of ability being cast) to Load (Last created unit)
Unit Group - Add (Loading unit) to unbornfoals
foal birth
Events
Time - Every 2.00 seconds of game time
Conditions
(Mana of (Loading unit)) Equal to 100.00
(Number of units in pregnantmares) Greater than 0
Actions
Unit - Kill (Loading unit)
Unit Group - Pick every unit in pregnantmares and do (Unit - Create 1 Foal for Player 1 (Red) at (Position of (Transporting unit)) facing Default building facing degrees)
Animation - Play (Transporting unit)'s death animation