《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 Serial14 Chapters
Apoch's Twilight
"Reincarnated Into My Half-Finished Isekai VRMMO Tabletop RPG" Once upon a time, there was a boy named Bull. Bull fancied himself something of a writer and game designer, and had half-created a homebrew roleplaying game for himself and some friends called Apoch’s Twilight. It was a perpetual work-in-progress, as Bull only wrote enough to fill in whatever gaps he needed to run the game for his friends. Then one day, Bull was hit by a truck. Bull should have looked both ways before crossing the street. Bull wakes up at a character creation screen, with an AI prompting him to create a character. The name of the game he’s creating a character for? Apoch’s Twilight. Say what? I plan to update weekly, give or take, while staying a couple chapters ahead for my Patrons. Thanks for reading! -- Bull
8 177 - In Serial12 Chapters
Treading Twilight
Reia Welsh was a student Photomancer who attended Decorous Academy for magical knights, typically wouldn't find herself on either end of the bullying stick, which was pretty impressive considering a multitude of authoritative clubs for the social elites happened to oppress and rule the school with an iron fist. But constantly watching such transgressions from the sidelines proved to go against every moral bone in Reia's body. She was a knight, right? And Knights protected people! And as such, she's going to do something about it-but the consequences she might have to face just may go deeper than the school's very own foundations. With only a few months left before graduation, will she be able to change Decorous for the better? Or will conspiracies, twisted ideologies, dark forces, and mystical beasts intercept any chances she has at reaching her goals? Join Reia on her bizarre knight journey. *** And see, as the redhead cowered at the foot of a locker, they petrified him right there and then in a blast of snow-like powder that came out of one of the bully's hands without the single utterance of a spell all there was a blue instantaneous glow...then the kids from Deck 52 walked off all the while goofily wiggling their bodies. "Hey, why don't you dance with us Peter, c'mon do a little dance." "It's just a petrification spell Peter, don't be down..." "Yeah, dude." But of course, the victim couldn't so much as move his thumbs let alone dance a fool.** ⚠️Caution Mature Content ⚠️⚠️Mature Language⚠️⚠️Mild Drug use⚠️⚠️Graphic/Exaggerated Violence⚠️⚠️OverPoweredCharacters⚠️
8 189 - In Serial20 Chapters
War, Honor and Vengeance
In a world where there is no right or wrong, justice and injustice, good or evil, it is the world where only the strong persists while the weak slaves. A world filled with lies, treachery and betrayal. There is no two way. Only one way. One way to either Hell or Heavens. Some call it Destiny, some call it Providence, others call it The God’s Will. But I call it Fate. My arch-nemesis. Something so invisible, out-of-reach and strong, that no matter how much you fight, there seems no end. But tell me, will you succumb to your fate, as others rise on it. Tell me, will you let your family, your children, your wives be slaughtered and slaved on this so-called Fate. No. War. In a world where lives are nothing more than livestock, either you rise up and rule in passion or go down in flames. Will you stay mum and accept this so-called Fate and be slaughtered by your enemies, or will you rise up. Wealth, fame, fortune, desires are not ever-lasting. Only War is eternal. Vengeance. In a world where with no rights and wrong, the weak would be preyed upon while the strong will wreak havoc. But, will you accept your fate of being weak…. No. You rise up and exact revenge for all the wrongs done to you. You rise for Vengeance. Honor. Honor… something which runs deep within our blood, but yet forgotten in dust. Something, so intangible, so frail, yet so over-powering. Villains justify it as useless, Lords deem it as unnecessary and Kings mock it as worthless, but yet, it flows ever so deeply within. Deeply… like our thirst of wealth and power. Without this so-called useless, worthless and unnecessary piece of intangible force, we, as Knights are nothing but mere foot soldiers. So, rise up! Rise Up! RISE UP, my Knights. For War! For Vengeance! For Honor!!!! ………………………………………………………… The release rates are going to be a bit sloppy with my college entrance exams upcoming, so please don’t be angry, my avid readers. I also want to inform you that my college entrance exams are coming up and so, I wont be making regular updates like Im doing now and the chapters will generally be around 1.5-1.7k. Along with that, Im inclined to inform you that, the story will be progressing slowly, so be ready to wait. The promised release date will be every Tuesday, generally at 7:00pm (IndianST) and there will be a guarantee of 7 chapters per week. Not one bit less but if you want more, well ...well...
8 126 - In Serial44 Chapters
GREED : ALL FOR WHAT?
What if magic were real, how would our world be like? How would the biology of organisms be like? What would be our priorities? Would our values change? How would magic possibly work? How powerful would magic be? Is there a limit to the power that magic can give? Could the issue of equality and fairness be finally solved? Would our society be better for it?This book attempts to solve these questions and many others. It does not boast to have found the answers but you will not be left wanting in the great and magical world that has been envisioned. It is a world with a grand system of multiple universes.In a world with Gods, Demons, and Titans. Born as a high elf with arguably the highest affinity to mana in High Heaven Realm, Gehald, our MC isn't satisfied. With his inner demons awakened, he set out to achieve perfection. Gehald is power-hungry and ruthless, cold and calculating, determined and unwavering no matter the obstacles. But the world isn't so simple, the world wasn't made just for him, numerous others are have taken the same path as him, sometimes they would collaborate but most times they would clash. Even two demon kings cannot share the same level of the abyss, after all, the path of power is narrow, you could get pushed off by another and pay the price of defeat with your life. Gehald isn't a hero, and the world doesn't just hand things over to him.Why is his world the way it is? What could come from the unique fusion of the powers of Gods, Demons, and Titans in a single vessel? Follow Gehald on his thirst for power, alongside some other characters through their joys, tribulations, sorrows, and hard-won success. You might just find one or two answers.
8 79 - In Serial20 Chapters
♡Not So Royal Love♡||Killugon/Gonkillu Royal Au
Killua, a prince of the Royal Zoldyck family, and Gon, a new knight just hired from the village. Upon Killua wandering around the castle, he spots a young male knight the same age as him named Gon and they immediately hit it off as friends. But Killua wants more than that. What he doesn't know is that Gon feels the same. Will they confess their feelings before it's too late?--- Note: They will both be 17 at the beginning of this story! There will be cursing!! [ART IS NOT MINE!! I ONLY ADDED TO IT!!]
8 144 - In Serial18 Chapters
Bennys girl. (Benny X reader)
Y/n smalls has just moved to a new town and immediately catches the eye of Benny Rodriguez. But some things get in the way like an old friend and especially benny's ex. Will y/n and Benny get there happy ending?This is the first book I wrote, I'm very sorry that it's bad I cba to make it better
8 206

