Custom content creation to learn the scripting - Goblin raids! #1197
PrettyPrincessPotato
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
So I got this idea I want to flesh out and play with a bit later but I thought it might be an easy way to pick up and learn the scripting.

The idea is relatively simple:
Goblins will spawn in goblin village and start marching slowly to a chosen encampment. I couldn't figure out how to give them smart pathing without passing ownership to a player, and since I want this event to be something happening on its own I couldn't quite figure out how to do that. So the most annoying thing here was picking each tile down the path and making sure they don't get stuck on a pixel of a hitbox I didn't see.
Sometimes they clump together if a goblin gets in the way for a few seconds.
Still needs polish, sometimes the goblins will go back to the original spawn instead of finishing the route. For this route I had to disable blocking so they will finish the final push.
(Reset the server for proper example) The goblins will slowly gather up in the forest, and when there's enough they'll make a push to the city and fight the guards.
I want to have them do more things longer-term like cut down trees and build up a little camp while they wait for reinforcements, but for now I want to move on to another project. Maybe Shilo Village. My "for playing" account needs a proper source of gems after all!
All reactions