Author Topic: Writing an AI to play Hammerwatch, and need help with the reward.  (Read 441 times)


  • Posts: 1
  • Maggot Crusher.
    • View Profile
I am currently writing a reinforcement learning agent(read AI) to play Hammerwatch, continuing on a semester project where I was part of a team developing a similar agent for Starcraft II.
I have encountered a problem with Hammerwatch which is providing the agent with a reward when it performs a correct action such as doing damage to an enemy. I was wondering if it is possible to use the editor to create a map where the enemies give gold when hit, or at least when killed? I have looked around and I don't seem to find anything about this.

If I can get the monsters to reward the player with gold on hit or on kill, I can read in the memory of Hammerwatch to see if I am getting gold when doing an action.

Additionally is it possible to randomize maps? Say I spawn a bunch of dodoes in a random location within a room?

Thanks in advance, and sorry if this is a bit of an unusual question.