Blog Post link: https://blog.toyowlet.com/2018/09/devblog-5-t-rex-in-game-ailments.html
Discord: https://discord.gg/JM6h4Qm
Hey there!
Exciting news, T Rex is finally stomping around in game! Check out the video below to see a few of them in action!
T. Rex
So yep, as you can see, T. Rex is in the game! Its top and bottom facing animations still need to be done, but since it has at least its side walking animations, I can start testing it out in game and adding onto its behavior ("AI"). I've decided T. Rex will be a creature that pairs only with its mate, and will tolerate only its mate and children in the same area it's in. It will tolerate herbivores if it's not hungry. It will attempt to kill any carnivores (including other Rexes) that are in its territory.
Dino Behaviors
I wanted to touch upon dinosaur behaviors (or "AI") a bit in this post. I am going to attempt to make dinosaurs act as natural as possible. They will have basic needs, which I'll list and describe in detail below:
Appetite - Basically food and water combined. Appetite will drop in value over time. A dinosaur can raise its appetite value by eating its preferred food (plants or meat). Dinosaurs may occasionally visit water for a drink if they're close enough as well.
Social - The need for the dinosaur to group with others of its kind. Instead of a value, this will likely just be a true or false variable. For example if the dinosaur is a loner, we'll go with:
"social = false;" or if the dinosaur
does group, we'll use:
"social = true;"
Aggression - This will be a simple true or false variable as well. If set to
false, the dinosaur will be timid and attempt to flee from extreme situations. It will also be passive around other dinosaurs and the player. If set to
true, the dinosaur will be aggressive and will attempt to fight other dinosaurs and the player if they wander too close. You can imagine most carnivores will be aggressive, but there will be a few herbivores as well that you may not want to get too close to. (;
These are the main three needs I've thought of. Feel free to leave suggestions in the comments or in the discord if you have ideas for other needs!
Dino Ailments
Using our poor Rex as an example, wild and tamed dinosaurs will get ailments dependent on some factors. If a dinosaur is starving, there is a small chance of it getting sick with the
"Saurian Flu". Dinosaurs who have recently been wounded also have a chance to get infections. Pictured above you will see Parasites, Bumblefoot, and Saurian Flu afflictions. Wild dinosaurs are mostly out of luck if they come down with an ailment, but tamed dinosaurs can be cured as long as the player notices the disease in time. Ailments will gradually damage a dinosaur over time until it dies or the dinosaur is cured.
Dino Skins & Variants
Wild spawned dinosaurs and hatched dinosaurs will have a small chance to spawn with a skin variation. Dinosaurs will have at least 1 or 2 variations. Most of the "wild" type skin variations will be natural mutations such as albinism, melanism, piebaldism, leucism, erythrism, caeruthism (fictional) and xanthism. Once breeding is implemented, dinosaurs can hatch with unnatural skin types and patterns by breeding parents with certain mutations together. Pictured above are three mutated T. Rex, in order:
Caeruthic, Albino, and Melanistic.