r/CodingHelp • u/Morgmorg25 • Oct 04 '25
[Request Coders] Need fake code for a fiction story.
Hello tech people!! I'm writing a story and need help with a part involving coding. I do a little bit of code editing with bases and stuff, but have never once written my own code...
This story takes place in a digital world, everyone is composed of code and programming. Someone is going into the code of one of the characters and implementing a text file (preferably in HTML) that will act essentially like an aversion therapy shock collar. When they behave in a certain way, it will detect the moods of everyone around them, including themself. If the mood is negatively impacted, the code will trigger a wave of hallucinations and physical pain like they're on fire.
How would I write that non-existent code? Where would he place the file in this person's code? If you don't mind me copying and pasting that code into the story, that would be wonderful! I will give credit to whoever's code I used in the end notes of the chapter it's used in. I am so sorry if this is not the correct subreddit to be asking this in. I sincerely hope everyone here has a wonderful day!!
Edit -- I've been made aware that HTML is a formatting code and not a game code! Please ignore that bit, as I still need help with making a non-existent code for my silly story. 😅
•
u/AutoModerator Oct 04 '25
Thank you for posting on r/CodingHelp!
Please check our Wiki for answers, guides, and FAQs: https://coding-help.vercel.app
Our Wiki is open source - if you would like to contribute, create a pull request via GitHub! https://github.com/DudeThatsErin/CodingHelp
We are accepting moderator applications: https://forms.fillout.com/t/ua41TU57DGus
We also have a Discord server: https://discord.gg/geQEUBm
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
5
u/atamicbomb Oct 04 '25
HTML is a markup language, not a coding one. It tells you what size or font to make text for example. It doesn’t have the ability to follow specific steps to do any task you want. It’s no more coding than making a word document.
To code on websites, JavaScript is generally used.
3
u/jedi1235 Oct 05 '25
Let's assume the world runs on JavaScript, since that's what most of the web has used for thirty years so everyone will keep working.
Your world would probably have some kind of security to prevent these kinds of things, because it would be against Alice's interests for Bob to be able to change her experience without her consent. But assuming you found a way past that (admins/police maybe would have superuser access?)...
How does something like this look?
1
u/warlocktx Oct 04 '25
HTML can't do that
1
u/[deleted] Oct 04 '25
[removed] — view removed comment
1
u/[deleted] Oct 04 '25
[removed] — view removed comment
0
u/[deleted] Oct 05 '25
[deleted] — view deleted comment