Awesome! I went back and took a crack at it with your instructions. I was able to reprogram some entities:
- food that refills my health entirely and doesn’t disappear
- spiders that permanently wander and ignore the player, and use their field of view to scout for the exit
- landmines that hit for zero damage
- a bot that hunts for other bots instead of the player
Tried to make a spider hit me for healing, but it seems like it was healing itself instead. Would have been funny to rig one up as a punching bag like that to grind melee attack experience.
I had some issues “defusing” the bombs, especially if they aggro’d immediately outside of the spawn point on lv 2. There’s just not a lot of rounds to link + upload a hack.
edit: Should probably add that I was a little confused on the signatures of the functions used, it seems like ent is the entity itself and fov is the tiles (and entities) the entity can see, but the docs would make it pretty straightforward to dig around in there.
and I meant it before and mean it even more now, this is an awesome concept that I’d love to see evolve. Maybe it’s more cyberpunk than “sucked into a video game”, but I’m imagining:
- having a budget for the number of opcodes you can add or change, alter the values by a limited amount
- other enemies investigating “off script” behavior of their allies
- changing input instead of code, make enemies “hallucinate” that entities have different tags than they do
- getting through an enemy’s security system without detection, either by requiring certain code still works, or requiring the length or checksum of the modified program match the original
so basically, my hat’s off to you. I think I may put some of these ideas to work myself, this is such an awesome sandbox concept