《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 Serial76 Chapters
Shinobi Exam: First Question, Why Was Akatsuki Destroyed?
⚠️WARNING⚠️
8 894 - In Serial11 Chapters
Kenji and Jester
Kenji Gordon had faced many challenges in life, and problems with his family, friends and loved ones. He developed voices in his head with some Symbols flashing with every thought. But one day he woke up in the bizarre world of Dregroyor with a spiritual being that lurks in his mind. Now Kenji must learn how to live and survive in this fantasy world along with the people he befriended while also having to overcome his past guilts, regrets, and his new Spiritual friend, Jester. Kenji and Jester must adapt to this new world, watch as the two embark on an adventure filled with magic and wonder, and how the new world teaches them valuable lessons such as Change, Love, Regret, and Forgiveness. But with every adventure comes great danger, as they will meet some of the most dangerous foes and tackle the most mythical beast of Dregroyor. It is a story of a Man and his somewhat Imaginary friend who are bonded by unknown circumstances and are forced to tackle a whole new world, whiles they try to understand each other's perspective.
8 141 - In Serial6 Chapters
Selfishness can be so rewarding
His father once told him "Son,men who do good things get good things." Since that day Nox Michael became the most selfish person in the world.Helping people,volunteering,recycling and everything he could do to get good karma.All to get what he wanted. So when he died saving someone he thought he would go straight to heaven.What happened was so much better. Becoming an overpowered being and going to another dimension that is basically a xianxia. "This is awesome!Normally the objective is to become the strongest,get revenge,get a harem and enjoy life.I'm already the best and nobody killed my family sooooo all I need is my harem then I can enjoy life by wrecking the bad guys and messing with people.Being selfish is the best thing ever!"
8 192 - In Serial24 Chapters
Republic Of Lions
Training for peace does not prepare you for war. The Socialist Union has declared war on the Leonis Republic. The Republic knows it can't win. The last time a large empire declared war on the smaller Republic an uneasy truce was reached. This time lines may have to be crossed that will cost the warriors their soul. Eric Spears has big shoes to fill because he is the nephew of the great Colonel Mike Spears, hero of the Han war, but unlike his uncle he is mediocre and he has never been to war. What none of them know is that there is something else out in the great dark. Something powerful and it is waking up to destroy Mankind's fledgling civilization.
8 141 - In Serial17 Chapters
The Lads from Loch Allen
A Highland Scots urban fantasy.Meet Plan Thurisaz: Miss Alice Liddell, an archaeology student from London who happens to possess a potential about which she does not yet know - but someone, somewhere, has noticed it.Yanked straight out of the scene of her own violent death, she's just become that someone's last desperate shot at prising survival from the jaws of absolute destruction, she doesn't know what's going on with this twenty years ago that thinks it's a hundred years ago despite doing cyberpunk, she'd quite like off this wild ride right now please, and it's probably very very fortunate that she fell straight into the laps of a pair of crofter's lads from the far northwest of the wilder, weirder, more dangerous, downright stranger Scotland that she's awakened in.Now she's stuck in a world where folk stories are real, the British Empire never fell, the Highland Clearances turned into a centuries-long low-level war, the cold war was a three-way affair, there are capital-P Powers calling the shots, and she's about to find out that the rabbit hole into which she's been blown by a car-bomb goes one hell of a long way down indeed...Updates on the first and third Saturday of each month.
8 127 - In Serial24 Chapters
Fighting Back The Tide
My first attempt at writing a novel so please go easy on me and constructive criticism and ideas are welcome. This is a story about how the world get turned into an RPG like world and how the MC fights back and explores the new/merged world. There are many like this so apologies if it sounds similar to any others but I have read MANY, MANY fantasy and RPG stories as they are my favourite but stick with me and I promise one heck of a unique ride
8 51

