《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 Serial68 Chapters
Project: You have died
A monologue story about a man who died and was reborn in a new world of mysteries and intrigue. Where monsters and magic are common place and gods are plentiful. The story follows his life as fate conspires to bind him to a path which he will eventually struggle to come to terms with. *** The story is a slow burner inspired by web novels with the main character accounting every action in time. I doubt this style is for everyone ***
8 211 - In Serial8 Chapters
Dual Nature - A Harry Potter/Percy Jackson crossover
Follow as 10 year old Krishna Khanna navigates the Wizarding and Demigod worlds through their turbulent times. Harry Potter/Percy Jackson crossover Alternate Universe. Modern Setting. Somewhat canon. Pairings unknown. No slash. No harem. Slow irregular updates. Sorry. Real Life stuff Notes: Frequent changes and rewrite occur that slow down releases. Sorry, but you have to live with it. I like changing things up when I think of new things because it's fun for me. Please feel free to comment with grammatical or spelling errors. I suck at writing, so I apologize in advance. I don't own the image. If the owner ever wants me to take it down, I will.
8 184 - In Serial6 Chapters
Contact First
2039 - Earth A narrow beam energy signal appeared aimed squarely at earth from the TRAPPIST system. The communication consisted of a layered set of repeating data over several thousand wavelengths. Over the next few months scientists discovered that the lower wavelengths carried an encoded numerical language which could then be used to interpret the more complicated messages carried on the higher wavelengths. After half a year of painstaking work the signal was fully decoded. It described a small satellite launched along a precise trajectory towards the fourth planet of our solar system. Included was a package of advanced research that humanity would need to have ready in order to receive the satellite and decelerate it safely. The alien data provided the kick that humanity needed to turn from petty squabbling and unite to explore the final frontier. Major government and corporate leaders worked together to create the framework for the United Federation of Sol. UFS spaceports went from scaffolding to daily launches in every major city around the globe. Ships floated like dandelion seeds, spreading on solar wind to grow into colonies. 2397 - Mars orbit, Egeria Station The command center was a hive of activity as checks were conducted and systems initialized. Scientists flitted by like mayflies as communicators beeped and holoscreens spat out green tinted readouts. Nervous energy was thick in the air as everyone anticipated the culmination of over three hundred years of work. Massive fusion reactors under the planet's surface thrummed with barely restrained power as energy fed into a gleaming metallic maze criss crossing the planet. Metal fingers reached up, overshadowing the mighty olympus mons and trying to grab the stars. All over the solar system, people quickly turned to look as gigantic energy lances shot from the dusty fourth planet. Two years later. The same people that clapped loudly at the successful activation of project Hermes now wait with baited breath. A silver capsule trailing bright photonic sails is captured by a net of grav beams and guided with care bordering on reverence into the station. Holoscreens across the headquarters project an image of the sleek craft settling in the bay. Data connections are established and the holoscreens blink to white. Slowly an image forms on the screen. Across the headquarters people stare in wonder as a wholly alien face stares back. "Contact established. Welcome to the universe."
8 155 - In Serial16 Chapters
The Impossible Girl
Marrisa is an impossible girl. She is Bella's adopted sister. She is Jasper Whitlock's lost wife. And she's older than anyone could fathom.#1 in edwardcullen
8 107 - In Serial5 Chapters
Oh, Sweet Nightingale ⌑ The Sandman
❛sing sweet, nightingale❜⌑The tale of a court minstrel, who dreamt of toes buried in sunlit earth.❛ this isn't your tale, lord morpheus -- it's mine ❜⌑❛so where'd you go? i should know, but it's cold. and, i don't wanna belonely, so tell me you'll come home. even if it's just a lie❜- - - - - Neil Gaiman's Netflix adaptation of The Sandman#19 IN SANDMAN #11 IN MORPHEUS
8 86 - In Serial10 Chapters
My favorite Wandanat Oneshots
8 95

