《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
Tome of the Mind
SPOILER WARNING: This is a sequel to Tome of the Body. If you have not read it, please do before reading this story, otherwise, a lot of things will not make sense. It can be found here. ~SYNOPSIS~ Every great story needs an author. Samuel Bragg, now the chosen champion of Arcana, has returned to the world of Ahya after one hundred years of being presumed dead. He awakes in his old home village, tended to by his last living friend, now an old woman. He spends some time enjoying the peace he finds but finds that his time away from the world has weakened him. Struggling with his new purpose in life and the returned boredom of village life, Samuel sets out on a nostalgic trip back to the capital city of Milagre. He is surprised to see that much of the world remains unchanged in the past hundred years, with a few exceptions. Accepted back at the Mage’s College with high honors, Samuel is offered the chance to teach his own class and educate future mages, but declines, deciding he needs more experience. Desperate to learn more about the mysteries of magic, he takes an apprentice and travels to the distant land of Zaban, where it is rumored that mages skilled in unique magic live. He is given a new title and permission to travel from the Royal Family of Gorteau and sets out for the natural nation of Zaban. On his journey, he learns new skills and discovers his talent for teaching. Powered by Arcana and guided by his influence, Samuel returns to the capital city Milagre, to find those small parts of his life that were lost. He encounters his old friends Shigeru and Grimr, each now well-known for their services to the world. But upon connecting with the world as he knows it, he also learns of a terrible war brewing beneath the surface, filling everyone with unease. With a god behind him and a new ally at his side, Samuel steps once more into the unknown. Can he continue to grow as a mage and find triumph again? Read Tome of the Mind, the second book in the Tomes of Ahya series, to witness the truly thrilling tale of a growing legend and the challenges he will face. This story is also available on Scribblehub.
8 136Primordial Majesty (原始神)
Among the countless stars, at the highest level of nirvana, there was mystical place known as the Jade Heaven Land. As the grand Imperial Commander of Heaven, Shen Qin was worshiped for his cultivation talent and tremendous achievements in the paths of Dao; being one of the guardians who maintained order in the immortal plane. However, on a certain fateful night, in order to chase down and eradicate an ancient god who had heavily sinned, Shen Qin had to pay an immense price and was thus, godly wounded. With his life hovering between immortality and eternity, the will of life inside his tranquil heart, which had been tamed through millenniums, began to once again burn fiercely… Schedule for now: N/A My blog at https://ninedream.wordpress.com/ Support my novel on Patreon! https://www.patreon.com/ninedream Status: Ongoing, Active
8 193Legacy of the Ancient
In the world of Nazula, where magic and beasts exist, a hero left behind his legacy when he mysteriously vanishes. Thousands years later, when abilities and talents are absolute necessities, a talentless orphaned boy named Cain is given a book by an old man who teaches him about fighting and magic. Little does he know, the very book he is given is a useless treasure left behind by the hero. With the help of useless treasure, Cain the talentless is ready to change his fate. An original series by me, and Mega Chintasih as my grammar police(up to ch. 3). Cheers!
8 144Haunted Love | Colby Brock x reader✔
You meet Colby, Sam, Corey, Katrina and Brennen in a haunted/abandoned asylum, while exploring it alone. From there you become good friends and move in with them into their mansion. You do scary stuff and experience creepy incouners with spirits you wouldn't want to mess with. You go through these odd things together and fall in love. This is what you call haunted love. Falling inlove while being haunted.
8 131Fireworks {The 100 Fanfiction Modern AU}
10 months. 10 months was enough to numb the pain. Bellamy hated it, hated how the pain lessened because his sister deserved more. She deserved the world, and he couldn't give her it. Bellamy hadn't cried for her yet. He was shoving everything Octavia related into a file in his brain never to be looked at again. He hated himself for it, for trying to forget, but he knew that he would shatter if he tried to sort through it. A part of him had died that day in the backyard, a part of him had died with Lincoln and Octavia in that car crash. Her funeral was the hardest thing he'd ever had to do. Him and Clarke had driven home in silence, and then he'd gotten home and sat on the couch, unable to move, unable to think, too numb to do anything except stare.Woohoo! Another Bellarke story! I'm sorry, these fanfictions just keep coming. Now they're the only thing I can write, lol.This is a modern AU where Bellamy and Clarke are roommates, she works at a Hospital and him as a college professor.*COMPLETED*Started: 4/27/20Finished: 5/26/20200 views?!? Tysm!!300 :DBRO ALMOST 600 ILU GUYS ;w;
8 189little mia
17 year old mia, cat hybrid. was abandoned and is now looking for somewhere safe to stay, until she met issac
8 176