I sometimes play a certain computer role-playing game (RPG). In this game, my character (whom I might name after myself but who does not otherwise resemble me) fights mythological creatures and collects handy items. In the end, I aim to have my character retrieve a powerful treasure from the place where it is kept.
If I choose, my character can choose to worship one of 18 available "gods". If my character kneels at an altar, prays to it, or sacrifices creatures, then the "god" I choose might give my character special abilities or better items.
Can you cause a character to worship a "god" while playing such a computer game? If so, why?
What if you modify the source code of the game and rename all the "gods" to "Hashem"?
Please ask your rabbi instead of trusting what you read here, for various reasons.
Possibly related, regarding idolatry:
Possibly related, regarding violence:
Other questions on ethics in video games:
Wikipedia has an article on religion and video games, but it doesn't yet discuss Judaism.