Thursday 9 May 2013

Update 10/05/13

This week started with some additions to the sound system, such as random pitch on footsteps, background ambient noise, and button clicking sound effects.

Most of the work was done on the AI systems though. It won't be apparent until more tasks are added, because currently there's only a searching task, rally allies task, and hit stuff with a melee weapon task, but the underlying system allows for some smart decision making.

It also allowed for me to add in a friendly AI human really easily. You can control him by pressing enter and typing a command, but since the talking system isn't properly implemented yet all he knows is "follow" and "stop following". The AI looks for keywords in sentences and acts according to those, so you can construct any kind of sentence you like and so long as it contains the keywords somewhere the game knows what you mean. The sentence in the picture below is valid, for example.

Later on you'll be able to issue complex commands, including asking NPCs to explore areas of the dungeon you haven't been to yet or to otherwise move to faraway locations, but for now he's pretty dumb. I don't expect you'll be able to keep him alive past a single fight either, but you have to start somewhere!


No comments:

Post a Comment