《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 Serial12 Chapters
Devouring - Progenitor of Evolution
// NOT ON HIATUS, just no time right now to write more... Sadly... //His mother killed in prostitution and by drugs, his father stabbed to death in a robbery by ordinary street thugs, he himself lived on the streets at the age of 18, surviving instead of living.A heroic drive, however, snatched him out of this miserable life, and he thought it was finally over, until he learned from an odd character that this was not his first "unlucky" life in succession, and that he would be eligible for a special program for his reincarnation.Without much to lose, and not much that could go worse in the next life, he landed in a new world... As a mole. His oh so great ability, which he had been promised?Absorption of biological and magical properties of EVERYTHING he devoured! And so began his journey as a mole! Emotions? Missing brain strands to feel anything of that nature. Joy? All the more! Finally eating, no matter what... Starving is no more! The progenitor of devouring was let loose on the world, and who knows where his journey will lead him... This story will appear irregularly, and first of all on Patreon. I'm mainly writing the story "Healing Dungeon" myself, and every now and then another chapter of Devouring to clear my head ;)
8 122 - In Serial39 Chapters
The Shard Legacy
(Cover Art by JackofHeart) Shara. A beautiful world full of wonders and excitement, full of sights that are worth finding, and people that are worth meeting. Although riddled with monsters, and with threats from The Great 13, it is still a place with much wonder and exciitement. And yet, the dangers that they face also cannot be ignored. And perhaps because of that, a certain someone has taken action. After a terrible bus accident on Earth, a class of twenty students and their teacher are reincarnated into the world of Shara. Given new lives and a bit of special power, they will end up awakening in this world through unexpected ways. And they will have to fight the darkness that threatens them all. But also, in this world where they do not all agree with each other, with different ideologies, it is not just the approaching darkness that they will have to fight...but they will need to deal with each other as well as the factions form. The faction formed by the popular Class President, who wants them all to become the heroic shield, selflessly devoting themselves to protect everyone at all times and disturbing the culture and nature of this world as little as possible. The faction formed by the ambitious top student in the class, which believes by unifying the world under the rule of him and other reincarnators, they can live luxuriously while also leading the world to prosperity. The faction formed by the loyal and determined teacher, who will do everything in her power to take every single one of them back home to their world, no matter what, and abandon this world. And then, the fourth faction...led by the boy who would come to be known as Rikuo. Whose journey throughout this world will shape him, change him, and as a result, make him choose the most chaotic option of all. This is their story. The Great Battle has begun. But in the end, who will win? What will the goal of the fourth faction even be? And how will these desires end up shaping the world? The fight is on. Arc 1: Introduction Arc (1-15) Arc 2: Imperial Capital Arc (16-35) Arc 3: Adventure Arc (36-)
8 181 - In Serial11 Chapters
Ephemeral Shards
Since the beginning of time, individuals have always wondered, ‘Is there any life out there, above the stars?’ Instead, they should be thinking, ‘Is there anything down there, beneath us?’ The Drow are unruly, excessively violent and cunning race when compared to their elvish surface cousins. They are one of the reigning established races within the Underworld. Yet there is always something bigger, slumbering away, buried within deep shadows, waiting to be awakened. Synthia, a young naive Drow has it all - talent as a thief, a position within a high-class crew and the ability to act as graceful as a noble. The Drow Empire is on the verge of collapse due to internal disputes. How do you save a race when they're very foundations are built on lies and deceit? How do you trust someone when odds are, they’ll stab you in the back. How do you survive the terrifying creatures of the Underworld, when you can’t even survive the creatures that live within your own mind? Cover Art belongs to the original artist.
8 209 - In Serial22 Chapters
The Cataclysm
A story of multiple people and their adventures across the southeast of the United States, specifically Georgia. In a world where technology has stopped working and the laws of physics have rewritten itself, the "heroes" of this story must find a way to survive what has succumbed to their world. We follow many characters and see them develop within a year of discourse, love, sorrow, and even mayhem. Ariel struggles with morality and leadership. Erik only sees his way as the best and brightest options. Luis struggles with faith. This is only a fraction of what the world has to offer.
8 141 - In Serial15 Chapters
Simply lucky(Bat girl/Barbara Gordon x male reader)
So one night you were walking home from work and like the idiot you are walk into an ally followed by thugs who would like nothing more then to kill you. But luckily you met a freind.....or maybe more.
8 100 - In Serial13 Chapters
Karan ki jaan
just peep into know more only focus on moran but also include sidsa koezi and other academy members and our Aneesh the neech insane it's short story of 2,3 parts cover credit goes to my dear friend @theawwnkhi
8 76