Getting my feet wet with Packages

Post » Thu Jun 21, 2012 11:11 am

Okay, so I have these things in my game called the "Dabus", and all you need to know about them is that they walk around hitting things (walls mostly) with hammers. All day.
So, I need to design these things, and I'm having a bit of trouble conceptualizing it, maybe you all can help put things in perspective. So far my thoughts are the following.

Every location where they can hit stuff is an activator in a large FormList. Every 45 seconds they pick a random member of this formlist, and whatever number they pick they set a global variable equal to the index they picked. Then there is a packagelist of associated packages that basically says "walk to this place and hit it with a hammer". I'm guessing I can just force the actor to continuously attack the activator with a hammer at that point. Each of these packages are only enabled if the global variable is the correct value, so they wander about hitting things seemingly at random.

The problem I immediately see with this solution is how labor intensive it is. Is there perhaps an easier way to manage this that I'm overlooking?
User avatar
Mrs shelly Sugarplum
 
Posts: 3440
Joined: Thu Jun 15, 2006 2:16 am

Post » Thu Jun 21, 2012 10:42 am

This sounds a lot like the mining AI. Have you looked at how mining is set up?
User avatar
Myles
 
Posts: 3341
Joined: Sun Oct 21, 2007 12:52 pm

Post » Thu Jun 21, 2012 5:12 am

I haven't, that's a great idea.
EDIT: As it turns out, I can't figure out how they did it. It seems all the packages with the word Mine in it consist of them unlocking the doors in the morning and starting work.
User avatar
Syaza Ramali
 
Posts: 3466
Joined: Wed Jan 24, 2007 10:46 am


Return to V - Skyrim