Itsuki: "YES! I was able to print Hello World. Now… time to read more of this documentation. Should help me understand the language and how it actually functions."
He flipped through the documentation, the page flickering between sections like it couldn't make up its mind. Eventually, he landed on the Functions section.
Itsuki: "Alright… to create a function, I need to use the function statement. So… something like function nameHere {}. Easy enough… but… hmm… how do I add arguments to it?"
Itsuki: "oh! I need to do function nameHere(arg1,arg2){}. Hmm… using () for the arguments feels a bit weird, but whatever, I'll roll with it.. I'll try to code a test function now"
Itsuki returns back to the IDE with his new found knowledge about functions and writes:
[
function printmsg(msg){
print(msg);
};
printmsg("hi there");
]
Itsuki hits Run, and the output appears: ["hi there"].
Itsuki: "That's amazing! So… you only need to add () to the function to create arguments. I thought it would feel weird at first, but I think I can get used to it pretty fast. Oh—hey, they even have a section for built-in functions!"
He opens the built-in functions section.
Itsuki: "Oh wow… they have a fireball function! The arguments are size, speed, and duration. Seems easy enough… but what's considered 'big' and 'fast'? I'll have to experiment."
He returns to the IDE and writes:[
fireball(10,10,2);
]
Itsuki: "Okay, the fireball should only last 2 seconds."
He hits Run—and the fireball explodes with insane speed and size, instantly destroying the forest around him.
Itsuki: "Good thing I only made it last 2 seconds… otherwise, I would've completely wrecked this place!"
A notification pops up: "37.592 Mana depleted from use of fireball function"
Itsuki: "Oh… so there's a mana system! I wonder if I can print how much mana I have, so I can keep a close eye on it."
Itsuki reopens the documentation and searches for variables.
Itsuki: "Alright… the mana variable is called ManaV. Wow… very creative. So if I print this, it should show how much mana I have, right?"
He types into the IDE:[
print(ManaV);
]
He hits Run, and the text above his head reads: "null"
Itsuki: "Ah… so it's not that simple. Got it. Maybe I need to convert it into a string first?"
Itsuki returns to the documentation to see if theres anyway to transform a int value to a string
Itsuki: "OH, alright… so you use to_string(value) to turn something into a string, and to_number(value) returns a number. That could be useful for calculating how big a fireball I want based on how loud I scream!",
Itsuki returns to his file and writes:
[
mana = to_string(ManaV);
print(mana);
]
Itsuki runs the code, text appears above his head and says: "62.408"
Itsuki: "ALRIGHT! I got it! So I have 62.408 mana… is that like a percentage? So 100% is just 100? Maybe I can expand my mana by using more spells… probably not, though. Hm."
Itsuki: "I wonder if it's possible to make UI element that constantly shows my mana, so I don't have to print it everytime"
Itsuki: "To make a new UI element I need to use another function called UIInstance(name, size, position, type), seems easy enough, but, I'll need to see how to position this ui and size it correctly, otherwise it might be off"
Itsuki: "So it uses Vector2, Vector2 is a mathematical structure that represents a 2-dimensional vector, seems interesting, oh it works for sizing too, that's nice."
Itsuki returns to his file and writes:
[
mana = to_string(ManaV);
size = new Vector2(150,150);
position = new Vector2(-350,200);
frame = UIInstance("Border", size, position, "frame");
textsize = new Vector2(50,50);
text = UIInstance("ManaCount", textsize, position, "TextLabel");
text.Text = mana;
]
Itsuki hits the run button.A small frame pops above his head, glowing faintly with the text 62.408.
Itsuki: "YES! Finally, now I don't have to print it every time I wanna check. This should be good enough for now."
He lets out a short breath, then glances around at the dark trees.
Itsuki: "…Oh. Right. I'm still in the middle of nowhere. Guess I should find somewhere to rest before I start dropping dead of exhaustion."
Itsuki wandered through the forest, branches crunching softly under his feet. He was about to give up on finding shelter when the trees parted to reveal a tiny village tucked between the woods. Despite its size, it looked lively — lanterns lit, voices faintly echoing.
Before he could step further, a figure emerged. Pointed ears, flowing hair, eyes that seemed to shimmer even in the dim light — unmistakably an elf.
Elf: "W-Who a-are you?!"
Itsuki (startled but trying to be friendly): "My name's Itsuki! What about you?"
Elf (nervously clutching their hands together): "I-I'm Aozora. W-We d-don't get a l-lot of visitors a-around here…"
Aozora: "Do you need s-somewhere to s-stay?"
Itsuki: "Yeah! I do, I've been practicing quite alot, and I lost track of time"
Itsuki chuckles nervously
Aozora, getting more comfortable says: "Follow me, I'll bring you to our leader.."
Itsuki: "Sure thing!"