《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 Serial46 Chapters
Bear Station
Janus is a junior college student who wants nothing more than to prove himself. The world has undergone great changes; humanity has moved below ground in an effort to survive. But, tensions are mounting. Levels and statistics now govern everyday life. Mankind has adapted to their new circumstances, using the System to replace the technology they lost. A semblance of normalcy has finally settled on the people below ground. But threats continue to loom from the surface. Janus finally gets his shot for greatness. A strange skill he received as a child has caught the eye of a legendary delver — an explorer who braves the depths of dungeons in search of glory. Follow Janus as he navigates a hostile and unforgiving world. Will he rise from the furnace of his trials tempered and prepared for even greater hardships?
8 170 - In Serial8 Chapters
Naruto:Shadow
Riley who was born to be a assassin has been one he has only liked dogs and watching anime or reading manga or light novel.he was betrayed and has reincarnate in the naruto world Naruto is not mine or the characters that will appear in this novel There might be many errors to my typing so keep that in mind Also i will add extra characters keep that in mind too.And mc will have Sharingan but wait he will not have a clan so he will be just a civilian This might not be good because this have no plot i just think of it suddenly then want to make it ENGLISH IS NOT MY FIRST LANGUAGEThe cover of this novel is not mine I got it from Pinterest so who created it pm me and I will remove it This not might be a harem I think the name of the novel doesn't make any sense so I will tell you just don't look at the name of the novel i have made this webnovel and so it got more popular. Discord link -removed from the description-
8 106 - In Serial248 Chapters
Rebirth: Monarchs
[A rewrite of a previous series: Rebirth: Hero!] Description: As he grows, the world trembles; as he speaks, the world listens; what he wills, the world provides; common sense overturned by his power. A man is reborn from a previous life into a human, the weakest race on the planet. Along with him, a girl whom he saved in his last moments. With the memories of Kai’s past and present life, can he conquer everything and truly be a Monarch? Together with the residents of the new world, watch as they pierce through the boundaries and break through the chains of fate! [Updated description] Summary: Kai dies trying to save a girl and is reborn as a human in another world, the being who reincarnated him and the girl he saved gave him the task of becoming a monarch which he made his goal along with meeting the girl he saved once more.
8 205 - In Serial52 Chapters
Solitary Sovereign
The price of progress is not something just anyone can afford, only the determined can break through and continue on the journey to become the strongest. This journey of cultivation; a Feud against Fate, a Heresy against the Heavens, an Oath to Oneself. Humans are the emperors of all living beings but something greater rises, a great demon of the world that acts as his heart pleases! Yun Fei tried to be the diligent, straight-laced student, the obedient son. He studied hard, did his best to make his family proud but when all that he knows is lost can a lost lamb survive this world. This world with no regard for life, where there is no respect without strength and death is only a breath away. Insulted as a monster and chased for his life, stoking the flames of vengeance in his heart he will reach new heights. [participant in the Royal Road Writathon challenge]
8 222 - In Serial56 Chapters
The Event Master
It is a reincarnation/transmigration story where the MC can only do magic that is socially condemned, but is protected somewhat by his powerful political station. For as long as he can keep it, anyway. With a little luck and some modern world thinking, perhaps he'll come up with something to change people's minds. Not forcefully though, that would be unethical. ** The MC is not a fighter. He's a gamer. He loves rpgs, movies, modern music, and telling stories. I intend to post at least once a week in the range of 2k words. If work eases up I'll increase the amount again. ((Work has instead intensified to the point where I'm struggling to get a chapter every two weeks. I'll pick it back up properly when I can, but for now it is on temporary hiatus while I still might post every once and awhile. This winter, I plan to go back to regular posts until the story finishes.))
8 168 - In Serial4 Chapters
the girl in the ramones shirt
8 133

