I don't know anything about self-modifying code, but I'm not OP.
Does anybody know the concept well enough to explain the idea relatively simply? How do you go about it?
Represent the code within the code, with modifiable parameters? That doesn't seem feasable, and it's unclever to boot, but that's my first guess thinking about the issue.