《Programmable Magic》Chapter 12: Fireball 2.0
Advertisement
After Mr. Ito’s class I rush back to my dorm, luckily Sara isn’t home yet so I have some peace and quiet to work on my magic.
My idea is to program a smaller, faster fireball, hopefully the smaller size will result in a reduced mana-cost.
I guess I’ll just modify the size and speed of the fireball-code I got from Lance…
I type the new code into the unknown yellow cartridge and hit save…
ERROR Syntax error
Dammit… ah I see, I forgot to add a semicolon at the end. This reminds me of my old mobile-game coding days…
After fixing the syntax error, I hit save again and get this pop up:
Statistics
Mana Price: 41 Mana/Use
Explosion Efficiency: 36%
Save
Edit
What’s this efficiency stat? Well let’s just ‘trial and error’ a bunch I guess.
I changed the speed and size back to the original code I got from Lance, the Explosion Efficiency is now 100% and the Mana Price went back up to 100 Mana/Use… If my guess is correct, this ‘Explosion Efficiency’ measures the amount of potential energy from the fireball that’s actually converted into the heat and kinetic energy of the explosion it creates when it comes into contact with something.
Or in normal people speech: a higher efficiency means a bigger boom.
It appears that a smaller fireball can’t convert a lot of potential energy into the explosion which would make it a lot less powerful… Looks like the mana count is based on a combination of speed, size and power.
Wouldn’t it be possible to alter the size of the fireball when it hits something in order to create a bigger explosion?
Alright, let’s program a smaller faster fireball that’ll expand when it hits a target, this should increase the ‘Explosion Efficiency’ since the fireball is big when it explodes. But It should also consume less mana since it still has a small volume when I fire it.
Advertisement
I tried adding another modifier at the end of my code to expand the fireball, but I got an error, this time a ‘Modifier overflow’ error. Looks like I can only add two modifiers to my magic right now.
This means that I can’t apply the burn effect from the original fireball though, since I need an open modifier spot, but maybe by removing the burn effect I can lower the total mana cost even more…
After a lot of testing and syntax errors I finally got some statistics I liked:
Statistics
Mana Price: 50 Mana/Use
Explosion Efficiency: 100%
Save
Edit
It should have a fair bit more power than a regular fireball and it’s also a lot faster, however, it doesn’t have a burn effect like a regular fireball would have. That did make it a lot cheaper though.
I hit the Save option and I get another window telling me to name my new code.
“What about… Explosion!”
I enter the name ‘Explosion’ and hit enter.
[Yellow] Explosion:
import Magic_Class.Projectile;
import User;
public class Fireball extends ManaActivity{
@Override
protected void onActivation() {
boolean active = true;
while(active) {
if (User.Brain.Thought_detection == "Shoot") {
Projectile fireball = new Projectile;
// fireball initiation
fireball.shape = "SPHERE";
fireball.volume = 0.0000001; // in m³
fireball.velocity = 180; // in m/s = Kinetic energy
fireball.acceleration = 0; // in m/s²
fireball.power = 900; // in KiloJoule = Potential energy
fireball.element = "FIRE";
fireball.starting_point = User.limbs.hand.palm;
fireball.trajectory = "Y = V0y*t - 1/2*g*t²";
// shoot the actual fireball
fireball.launch();
boolean fired = true;
long start = System.currentTimeMillis();
long end = start + 5*1000;
while(fired && System.currentTimeMillis()
if(CollisionDetected(fireball)){
fired = false;
ExpandProjectile(fireball);
}
}
fireball.detonate; //unleashes explosive force of the fireball
Advertisement
}
if (User.Brain.Thought_detection == "Deactivate") {
active = false;
}
}
};
// Modifier 1: Collision detection
public boolean CollisionDetected(Projectile fireball){
if(fireball.velocity = 0){ //fireball stops when it hits anything
return true;
}
else{
return false;
}
};
// Modifier 2: Expansion
public void ExpandProjectile(projectile fireball){
fireball.volume = 0.09; // in m³
};
};
The cartridge starts to glow and sizzle but stops after a while, I insert the cartridge and get the prompt:
Yellow Revealed Cartridge: Explosion
Store
Eject
Analyze
Nice! This could work! I can actually become a powerful Machia like this, fuck gift-cartridges, fuck mana-count, I’ll just do this my way!
Let’s start with winning the dual tomorrow, I’m curious about which lackey Kaori will send my way though. I hope someone from wood [I] or [II].
I can only hope to one-shot my opponent with explosion, they shouldn’t see it coming since the projectile is only visible on impact. Now that I think about it, I really created something superior to a regular fireball. Not only is it faster, it’s also near undetectable and more powerful.
Or well… it should be at least… I’m confident in my coding abilities, but I couldn’t actually test the magic itself out. It also looks like I can’t reprogram an already revealed cartridge, this is totally a nightmare for any debugger…
Also, I don’t think I’ll get a lot of time to practice my explosion magic before the match...
*SMACK*
I hear the front door swing open, presumably Sara returned home.
*KNOCK* *KNOCK*
“I know you’re in there pervert, let’s eat together, I bought too much sushi.”
What a shock, is she finally opening up to me? L-Lets not make any bold assumptions, it’s Sara we’re talking about after all…
“Sure, give me like 5 minutes!”
Advertisement
- In Serial283 Chapters
Path of the Hive Queen
A girl wakes up alone in the wilderness with no memory, climbing out of an egg. She has human knowledge that doesn’t seem to match her body. Now she needs to not only survive, but figure out the blue boxes, her biology, and how to build up and protect her hive, while balancing her Hive Queen instincts with the human parts of her mind. Her instincts want her to treat her progeny as expendable tools and destroy everything that might possibly one day be a threat. She’d rather not become an apocalypse. But she does need to secure resources and territory for her hive, and maybe a bit of conquest wouldn’t be so bad. A fantasy adventure with litRPG elements and kingdom building, telling the story of a Hive Queen and her family. [participant in the Royal Road Writathon challenge]
8 510 - In Serial43 Chapters
Zeroth Knight re: Dawn
Isekai, fantasy, with the core themes of Identity and Fate. Story contains a, mostly, lesbian cast. Updated twice a day. Evangeline Sayagawa makes the ultimate choice at the cost of the ultimate sacrifice: She decides to leave her world that she fought so hard to return to, and return to Arsea in hopes of saving everyone. Little was she aware of just how bad things had gotten. The world she was returning to was cast into chaos and on the precipice of being destroyed. She awakens in this new kind of Arsea, after having witness the end of a dear friend. The world now belonged to the monstrosities of old, the Beta, and their corrupted human warriors, the Eld. With her fake identity, that which defined her in this world, being stripped from her, she now has to navigate a darkness in which not even the women she loves recognize her. This is book 2 of the Evangeline Sayagawa "Zeroth Knight" story, with book 1 being found here. The first "chapter" posted here is a hyper-condensed version of volume/book 1, in case anyone needs a generalized refresher of events, or for those who wish to start with this book instead as it is faster paced and more action-packed than the first one. Suffice to say, but most of the details from book 1 are lost by doing this; however, enough of the more-important information is present to allow one to understand the general idea of what is going on. This book features a mostly lesbian cast and deals more so with fate and crises of identity more than anything else. However, there is much more action in this one than any of my other stories thus far and brings about the end of Evangeline Sayagawa's story arch... sort of. I have another story up, a short story drama with light yuri and supernatural themes: "Escape The KNIGHT" Share the story if you think it's good. And please rate some stars and leave reviews guys. It will help encourage other people to take a chance with the story and get to know this wonderful journey with us. Also, a friend has made a Discord for the "Zeroth Universe" if anyone wants to join and hang out to talk about the stories, theories, or just general fun chats with us! https://discord.gg/f3Bc4TR Follow me on Twitter @Ozefen0 to stay up to date on my stories and what have you.
8 147 - In Serial9 Chapters
Raven
What is the purpose of your life?Is it wealth? Power? Or something else?But does it even matter, since everything would be over when you're dead?Nay, the truth isn't something like that.Very few had known about the truth of life and death, and I, Raven, am one of them.Do you have what it takes to know about the truth? If so, then... follow me on my journey to unravel the truth.-----------------------------------------------------------------------Cover pic (Raven) drawn by our glorious artist, drealicious. Many thanks to you!
8 192 - In Serial7 Chapters
Soul Status (HIATUS)
The MC lives in a world where having a status is commonplace but due to an incident in the past he himself has no name due to not having the ability to summon his status. Being close to 15 years old the MC must now go to school and against all odds somehow survive 3 years against people who are powered by their status. If he can't then his life will be jeopardize as the MC won't be able to get a job and he doesn't have any other options due to him being statless. Can the nameless MC somehow produce a miracle in being able to accomplish the impossible and be on par with his peers at school? *Note: I'm very new at writing and would be happy if people would point out what needs to be done to improve my story and I will try to at least post 1 chapter each week. I will also update/modify the story's tags if anything changes as the chapters go on. Soul image is found in this website https://www.circleofhope.net/blog/what-do-you-think-about-the-soul/ and the word status is a snapshot of an image found in this website https://www.shutterstock.com/search/status?searchterm=status&page=2
8 165 - In Serial19 Chapters
Souls of Red
As the sun begins to fade from existence, five protectors are chosen. Their unique blood type is thought to help the Earth regain its strength. Aryn, a prominent surgeon, is unaware of the fateful gift that flows in her. She carries the same blood type as the chosen ones. Hidden truths start appearing, when a letter is sent from her parents, who abandoned her at a young age. Aryn becomes imprisoned by the black words in the letter, and falls into the memories of the past. While Aryn tries to gather the missing clues, more mysteries emerge. After treating an eccentric patient, he presents Aryn with more questions than answers. Aware of the doctor's hidden identity, Louis sends her upon a journey toward her darkest days and deepest truths. Aryn's journey begins with the gift of a strange and life-altering book. Aptly titled 'Rules of Death', it doesn't stop with the exposure of her own identity. The book holds knowledge and power Aryn can only begin to understand. She then realizes the importance of her task: guarding all the manuscript dares to tell. Envious eyes and inquisitive minds threaten everything she's determined to defend. In order to preserve the power of the protectors, Aryn must carry the secrets of the book to the grave. Will she keep the book's mysteries to herself, or will Aryn's secret become a world undoing ?~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~•Highest Ranks•#6 In Mystery, on 13/10/2020•Awards•- 1st place winner in the discovery awards - 2nd place winner in the pantheon awards- Honorable Mention- The Shimmer Awards (2020)
8 97 - In Serial7 Chapters
Lucky Number
(Tom Holland x plus size!reader) What happens when one of the world's most famous celebrities accidentally dials your number instead of his new assistant's...is it a happy accident or a recipe for disaster?
8 187

