饥荒联机版

饥荒联机版

Friendly Skeleton - AI
ErrorM3_997 2021 年 9 月 5 日 上午 5:03
Made a personal, optimised gameplay version
I'm respectfully asking for permission to post a version of this mod, or to provide to you a version of the code that works better in terms of gameplay.
Right now, my version of the code makes these changes:

Servants mine and chop only when you do too, they dig autonomously.

Warriors still focus on fighting first,
they work their autonomous work when no enemies are present.
Warriors mine and chop autonomously, they dig only when you dig.
Warriors chop only full-grown trees that aren't withered, and are not 'banana' trees.
Warriors still chop all burnt trees.

there might be subtle changes to their work_seeing range, keep_working range
and the enemy_fighting range, but those I made sure were as helpful as possible, with about 5 hours of playtesting on the mod to iron out any inconsistencies regarding targeting and keeping targets.

I forgot why I made these changes to their code,
but it definitely helps keeping them safe and efficient with their work.

Again, if you want, I can send you the two _brain.lua files
(skeletonservantbrain.lua and skeletonwarriorbrain.lua)
to read
and learn about the conditionals
for tree chopping
and automation of work,
because having workers wait
for the player to do the job with them
is bad gameplay.

I would love to post a personal version of the mod with credits to you and maybe even a link to your mod.

Or, I can keep it a secret and play it on my singleplayer worlds ;-;
最后由 ErrorM3_997 编辑于; 2022 年 11 月 5 日 上午 11:44