《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 Serial9 Chapters
A-Live AI
The year is 2247. For almost two hundred years Sentient AI research has been banned. Everyone knew this, and yet no one has ever given up on finding the perfect setup for it. Restricted AI are rare, but possible to get ahold of if you have the money and the clout to get through the law for it. Especially when it deals with the military. Alfred Homis is an engineer and has spent the last three years working for the United Terran Military's Research and Exploration Department. Specifically to help build a 'shackled' AI who's prime directive was to explore potentially habitable worlds. Worlds that are far cheaper to colonize and add to the United Terran Directorate's fold than terraforming. During the AI's maiden voyage things go horribly wrong, taking Alfred Homis along for the ride. Thrown into a parallel universe where the laws of physics are just a little messed up, Alfred finds himself trapped inside the very machine he'd helped to build. Add magic, hostile fantasy creatures, and two different pantheons of 'Gods' to the mix and things get even more complicated. Oh, and an invasion between universes to boot. But that's just all in a days work though for Alfred, the AI Lord. Authors Note: Hi guys! Long time no see. And yes, I know that's all on me. But I blame life for that. Anyway, this is my new work, and I hope you guys enjoy it! The chapters are a little shorter than I'd previously posted in my other stories, but I cannot say that I have the same amount of time or energy to write them like that anymore. Sorry about that. Still, some warnings: There is cursing in this story. I am not going to edit it out. There will be sexual content later. Blood, gore and cruel depictions are all planned. If that isn't your thing, I'd suggest you turn back now. There is also my dry, and often not-so-funny sense of humor. And oh, it's all in first person gain. Haha. I just tend to write better that way. If none of that bothers you, then enjoy the read! Feel free to comment, point out mistakes, or make suggestions! Reviews are nice too, but please lay off the criticism until the story gets good and going. Thank you. Note 1: Some edits to the synopsis.
8 73 - In Serial38 Chapters
The Envoy of Darkness
"Everyone loves a good fantasy, but my life was turned upside down by one."What would you do if you had the ability to control the air? How about if you were suddenly brought to a world where, despite your powers, you're at the bottom of the food chain? On a fateful night, Max Walker finds himself summoned to Asterisk and contracted to Liliana Lockwood as her familiar.Forced to leave behind his life on Earth, Max begins a precarious journey into the unknown world of magic. Training as a knight, learning to control mana, battling rogue necromancers and even being mistaken for Duke Walker's son... it's just one thing after the next.But as if that wasn't bad enough, Asterisk, a world which subverts reality as you know it, may just have something to do with Max's own heaven-defying origin... and a secret that could leave the universe hanging by a thread. By the way, this entire book is available on AMAZON KINDLE.If you like what you read, please consider buying it. Your support would mean a lot. Plus, you will get to read all the way to the end weeks before the last chapter gets posted here.https://www.royalroad.com/amazon/B08816QJND This is Book 1 of a projected Trilogy titled "The Legacy".Schedule - Chapters will be published once a week, around Sunday. Bonus chapters might come in occasionally now that I have a stockpile.P.S - Feel free to comment, especially if you have any advice or criticism to offer. On that note, if you could leave a review and/or state your thoughts about the novel as a whole that would be awesome too.This story has also been uploaded on the following sites:www.wattpad.comwww.webnovel.comwww.scribblehub.com
8 117 - In Serial118 Chapters
Mated to Morpheus
There once was a werewolf who was half God, the Moon Goddess' son.His name was Morpheus, he was the same werewolf who had led the wolves into battle, he was the leader of the war that had finally given werewolves complete control over everything, including being above humans.Morpheus despised humans, hated them with a passion because they were the reason werewolves had to hide in the darkest parts of the woods.But, not everything went his way after the war, his mother was appalled by the many human deaths that were taken at her son's hands.She cursed him to a deep sleep, to spend centuries frozen in time until something would come along that could change his view on humans.Being a recently turned eighteen human, Emery finds herself in the cold embrace of a man who she only heard of in stories.note - cover is made by @ViaAlyssaNicole
5 314 - In Serial19 Chapters
What I'll Become
Born to nothing as nothing I led a bland life full of depression and suicidal thoughts, but maybe I can become something else. One goal to die could be over looked if only.....
8 221 - In Serial6 Chapters
LitRPG: Regarding that time I was Reincarnated as a Deep Sea Angler Fish. It was terrifying.
The world as we knew it has sunken beneath a large body of ocean water, as sea creatures and aquatic monsters from the other side then comes on over through the portals, located around the world.Earth has become entirely submerged in water, thereby making it the perfect habitat for oceanic life and sea creatures to prosper.How will our main protagonist Arthur survive by being reincarnated as a deep-sea Angler Fish? Additional Information: I was given permission by the author to post the story here on Royalroad. For the original novel. You can read it here by clicking upon the link below. Regarding That Time I Was Reincarnated As A Deep Sea Angler Fish. It Was Terrifying.
8 122 - In Serial43 Chapters
Notes From a Broken Heart
I've never been a person who would just tell you what I'm dealing with, so writing and music helps me.This is how I express myself, it's chaotic and far from perfect.
8 261

