《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 Serial272 Chapters
An Unbound Soul
When Peter suffers a too-close encounter with a truck, he finds himself reborn in another world. At first glance it is a perfect fantasy land. There's magic to play with, elves singing in the forest and a hyperactive catgirl neighbour. There's even a System that lets him earn skills and level up. But it isn't long before he notices that the world is far too perfect. Just why is everyone so nice? Can Peter accept the alien morality of this world's self-proclaimed protector, or will he seek to overthrow her? Set after the events of A Lonely Dungeon, a few hundred years after the rebirth of civilization, this is a story about an earthling falling into Erryn's new world and the subsequent struggles of himself and Erryn to understand each other. It's a slow paced slice of life, and while there are pieces of action, don't expect any immediate grand conflict between Erryn and Peter. Published here, scribblehub and amazon. Two new chapters a week on Tuesdays and Fridays.
8 414 - In Serial93 Chapters
The Destiny of Fyss
Political turmoil begins to throw the world into chaos, but to starving orphan Fyss, that couldn't matter less. He works for pennies to fill his belly, and plays with his fellow orphans, none of the tumult reaching him in his daily life. But when Fyss is caught stealing, his life changes forever. There's no ignoring the greater stakes at play when you've become an integral part of them. Don't forget to rate my fiction! Thank you! [participant in the Royal Road Writathon challenge]
8 188 - In Serial23 Chapters
Spade : Reborn
Important Note : This novel has ended on chapter 20. For the next chapter wil be on Spade : AfterLife. Thank you for reading from the beginning until the end. I know it's kinda rush and there's alot of mistakes I made. I try to improve in future! Putera Mizane Nodochi Izuno, an expert gamer who is addicted into Online and Fantasy game. One day, he saw a game in online website called Era Orbit Online. The game is famous since 2017, and it requires VR system to play. As Nodochi order it on online, a message pop-up on his PC. A Registration card needs to fill in to continue the order. He answered all of the security, real-life data( info and details ) informations. The next day, the game arrived. Nodochi put the disk in the computer and put on his VR. It appears that the game is Fantasy, Role-playing type. As he reading the game rules and regulations, the game glitched and Nodochi skipped everything. He force-transported at a strange deep forest. Join he's journey, will it be BAD ending or GOOD? Notes I want to thank to the people who read my novel and keeping sharp to look more chapters in future! I'm trying my best to find my mistakes and typos. I might make the chapter's words over 1000+ since some of you enjoyed it so much such as I am. I also read my own novel just to feel like a reader. I accept criticsim and ideas, don't be shy. Anyway, thank you so much for reading. I really appericiate. Stay tune for more chapters in future! For Info/Daily infromations about Spade series, you can follow me at : Instagram : @puteramizane Facebook : ???
8 129 - In Serial57 Chapters
The Kind Prince Who Became An Evil Lord of Darkness
In 17th century France, the rich nobles control the world with a magic system called "Artifacts". Prince an innocent hearted prince of the Bourbon Kingdom, one day has his life thrown into chaos by betrayal, and inherits an "Artifact" that is the ancient spirit of "The Dark King". Through misfortune after misfortune, Prince eventually loses everything and starts his life over without a royal name. Prince vows to make his way back to the top hiding amongst the everyday people of France. Prince is a Japanese style light novel based on Machiavelli’s classic "The Prince". Although this work takes influence from it, the story, quotes, and characters are all completely original. It is mostly the concept of good and evil that is borrowed from Machiavelli.
8 255 - In Serial11 Chapters
Oceaniq
One century ago the world was changed. In forty terrible days and forty terrible nights the oceans rose to swallow the land. Now only the sea and the island nations remain.Naoto Aequitas knows that he is... different. A scaleless mer, he was raised by his father on the outskirts of an underwater nereid city. He knows the ins and outs of his corner of the ocean and has never met another nereid like him.Charles Denali grew up around boats. Part of the second generation of humans born after the Second Flood, life in one of the smaller island nations isn't easy - especially when your luck is as fickle as Charles's.When they both end up stranded on a mysterious island that's home to a hungry amphibious creature, they must work together to defeat it and find a way home. But being stranded on a deserted island with a monster is the least confusing thing about their new partnership.
8 204 - In Serial15 Chapters
After the Calamity
A sequel to my story, Before the Calamity. After the fight with Ganon, Link and Zelda are reunited. However, things are not as perfect as they should be. The two of them encounter new struggles as they try to readjust in a world with no place for them. Breath of the Wild belongs to Nintendo. Ps- cover art is mine ;)
8 182

