《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 Serial7 Chapters
Sun on Serendib
SUN ON SERENDIB - The Jade and Ruby Dragons “Some battles are worth losing, especially if it means I can keep you safe, precious.” Song Haoran, an adviser to the Emperor of the Song Dynasty, who also happens to be an illegitimate son of the Emperor, travels to the island of Serendib to establish an embassy and part of a trading loop. He meets a prince, Rajasekaran Chola who gives him a different perspective on life and shows him that he is worth much more than the work he does. But the Dynasties they represent are suddenly on different sides of the battlefield and they have to make hard decisions that they never imagined having to make. Haoran is unfortunately killed and they both think it's the end of their story. But five years later, in an unfamiliar place to Haoran, they meet again and Haoran falls for him again. So, Haoran stays by the prince's, helping him in small ways as he gains power and learns to manipulate the world around him as a ghost.
8 139 - In Serial7 Chapters
J&K
One day, a creature appeared on the beach of a world ruled by the human race. Born from a higher form of intelligence that was spending its immortality crossing between worlds, the creature's mission was simple : live and see. See what for yourself what the world has to offer. But what the world had to offer was sometimes quite overwhelming. ** [participant in the Royal Road Writathon challenge] from chapter 2; be careful, chapter 1 has sexual content. Refer to the tags as the story can be quite dark. The story is a slice of life turned not so wholesome as the protagonist meets mostly freaks while becoming one themself.
8 135 - In Serial26 Chapters
DomeNET Online
UNDERGOING A REWRITE! After leading one of the top raiding guilds in Altera Online, four friends decide to move their core group to a brand new VR MMO, DomeNET Online. An online world promising unlimited freedom in play style and a chance to influence the world in ways they’ve never seen before. Carrots, one of the core players, decides he wants a change of pace, so he sets his mind on playing as a Citizen instead of a regular starting class. But when he logs in things don’t go as planned. The game drops him in without character customization, class selection, or even the chance to set his avatar’s name! After disabling his HUD, Carrots is unable to get it back up and running, so he has to rely on quick thinking and asking plenty of questions as he tries to figure out the game mechanics and how to log out.
8 132 - In Serial21 Chapters
Common Ground ⇥ Bellamy Blake
❝People do dumb things when they're hurt.❞She was forced to come down. He came down voluntarily. When they meet, everything they've ever known will be torn apart. ( bellamy blake x oc)( season 1 )( discontinued )
8 119 - In Serial16 Chapters
Dark Mage: The Offer
Over a millennia ago a dark mage sealed the first contract with the Demon Emperor. He opened a rift and Demons spilled into the world before collapsing. The demon race has tirelessly warred with the human race since that time and slowly expanded its territory into the human lands it has conquered.A youth lives quietly in an unassuming village. Having lost his mother, he has lived under the kindness of those that used to be strangers. He has learned diligently, trying to repay their love and care. However, a darkness approaches and our 'shy hero' will have to learn to confront it while walking in its shadows. He is a dark mage and he will have to learn of the responsibilities that status entails as well as its struggling reputations amongst the human populace.
8 169 - In Serial6 Chapters
Mujahadah
"Aku nak move on." Bibir milik Qurrotun Inn tak pernah lekang dengan ucapan sebegitu."Aku dah bosan dengan move on kau tu." Komen Farhana yang merupakan kawan baru yang paling rapat sejak Inn pindah sekolah.Bibir mudah menyebut tapi hatinya masih berbolak-balik dek kerana dicengkam dengan perasaan yang mendalam.***"Saya solat 5 waktu Alhamdulillah cukup,tapi saya banyak buat dosa.Saya nak berubah, tapi susah. Ustaz tolong beri tips untuk saya."Luahan itu ditulis atas kertas kecil oleh Ahmad Seth Yusuf sebaik sahaja Ustaz Syafi'e membuka sesi soal jawab setelah selesai talaqi kitab di surau sekolahnya.
8 91

