Challenge of the events.

Spoiler: Intro
Remember those challenges we did a few years ago? Where I came up with a random problem and we all came up with an event-only solution? That was fun, wasn't it? I thought so.

Back then, we treated it as a competition, with strict rules, and nothing to gain. And I think that is why it stopped. But the challenges were much more than a competition. They were great practice. And practicing on problems you would otherwise not encounter, is something I just love to do. So, I would like to challenge you all again.

This time, I will not give any hard rules. If the rules say you can't use a plugin, and you really need to create a little plugin to make your otherwise perfect solution come true, you won't be disqualified and there is no penalty. There is nothing to gain, and there is nothing to lose.

It is important that you use your own work, though. This has to be your solution completely, or else the whole practice is useless.
Spoiler: Guidelines and How To Participate
Guidelines:
  • You must use any RPG maker you own
  • You can have to event the solution, you can not use plugins
  • You can use JavaScript in script calls, variables and conditions
Allowed art for tilesets and characters:
  • RTP (incl. character generator made)
  • Your own edits if necessary for your solution to work.
  • Explain what you've changed in your edits and why.
Allowed art for user interface:
  • RTP
  • Your own edits
  • Free community made assets from the forum (please provide link)
  • Explain the assets you use outside RTP. How and why do you use them?


To participate, you have to have to:
  • Post screenshots of your full event in a reply (see example 1)
  • Explain what happens in those screenshots

  • Quote your script calls (see example 2)
  • Explain your code

  • Be open to feedback, positive and negative
  • Clearly mention WHICH challenge you apply to.

Example 1 (Taken from my tutorial)
1733930440589.png


Example 2 (Quoted from the same tutorial)
For the first condition:
JavaScript:
new Date().getMonth() == 11

For the second condition:
JavaScript:
(new Date().getMonth() + 1) * 100 + new Date().getDate() == $gameVariables.value(140)

For the Control Variables command:
JavaScript:
(new Date().getMonth() + 1) * 100 + new Date().getDate()

Script call:
JavaScript:
var itemId = 21 ; //replace this with this id of the reward for 1 december.
var mmddId = 140 ; //replace this with the id of the variable you stored MMDD in.
$gameParty.gainItem($dataItems[$gameVariables.value(mmddId)-1201+itemId], 1);

I challenge you to make eventing-only solutions to random problems. For example "Create a lockpicking system with a difficulty level", which was the original problem that sparked the challenges years ago, by the way.

Challenges will run forever. There is no deadline! They are not a competition. You simply share your solution, compare them with other solutions and see what people have to say about yours. The goal is not to win, but to practice, to teach and to learn.

We all deal with those problems in a different way. Some solutions are better than others. But often 2 solutions are completely different and both get the job done perfectly well. And that is where it gets interesting.

Sometimes you think you have a genius idea, and then it turns out you've been overthinking it this whole time, when you see how other made it. Or you think you just made something basic and easy, and then it turns out your had that genius idea no-one else has thought of.

And if you fail the challenge? Did you have this amazing plan, but can't figure out why it doesn't work? Send in your solution in anyway! Maybe others can see what is wrong with your plan. Sometimes you just need a fresh pair of eyes.



Challenge 1: Status bars
Started: December 2024
Spoiler: Details
Use events to create status bars on your map.
You choose how the how this event is triggered to update the bars.

Goals:
  • Show an accurate bar for HP, MP and TP of the party leader when on the map.
  • Show a background behind the bars (optionally with a border a round the bars)
Bonus goals:
  • Show the right portrait next to the bars
  • Repeat the whole process for 1, 2 or even 3 followers. (Or 12, if you're ambitious.)
Super bonus goal:
  • Add state icons to the right portraits.
Why not start of with an easy one? 😛 Nah, I know this is a challenge, but if I can do it, so can you. And yes, I'll share my solution, too. I enjoyed working on mine, so I hope even though it isn't an easy one to start with, it is at least a fun one to work on.
Spoiler: Solutions:


Have fun!

Oh, and don't forget to mention which challenge your solution was made for. That will become important once there are more challenges.
the only plugin I would use a my map bar or Galv_VariableBar to
solve this issue 😀

so variables can handle the rest in parallel event 😀
or the show picture, but the scaling is off by this, which is an issue if you use
a frame around it.

but I wonder how to minified the code if not for Galv_Variablebar for this gauge ^^
the only plugin I would use a my map bar or Galv_VariableBar to
solve this issue 😀
Yeah, if you use plugins, specially 3rd party plugins, you didn't really get the assignment. 😛 This should be your own solution: How would you do it? Not: How would Galv do it? 😛

Are you up for the challenge?
Are you up for the challenge?
no time really as busy to improve my tutorial plugin and PXD improvement.
but also RL stops me for doing so, but maybe I can see what I can do with
pure eventing if times allows it (no promises though), specially those last days
to new year 🙂

but I try 🙂 with pure eventing only.
What a fun idea. Doing challenges like this often leads to learning all sorts of weird and interesting behaviors of RM as you poke around in different areas than you normally would.
Good luck and have fun to all participants.

*hugs*
My best guess is you could "solve" it using variables and pictures, but in no way would the bars be "accurate" since you'd need a new picture for basically every single pixel and then do a bunch of math.

And a solution to a problem that is "just create a bunch of artwork", doesn't really sound like an "eventing challenge" to me.

The variable problems would be easy enough though. You can assign those via the variable menu to track those specific stats. After that, it's just a matter of "if variable is X, divide by variable Y, then display picture Z at coordinates".

An easier way would probably just be to grab a plugin or learn some actual programming and then just put some coding language within an event, but that probably breaks the spirit of "eventing challenge" as well, since we're no longer eventing and are instead coding.
My best guess is you could "solve" it using variables and pictures, but in no way would the bars be "accurate" since you'd need a new picture for basically every single pixel and then do a bunch of math.
No, I've done it with 1 picture per bar, and 1 picture for the background, and one more for the dace. 5 pictures in total. I use the same Pic for 3% health as I use for 100% health.

I'll show my solution tonight so you can see.

And a solution to a problem that is "just create a bunch of artwork", doesn't really sound like an "eventing challenge" to me.
the eventing is the challing. Not the art.

The variable problems would be easy enough though. You can assign those via the variable menu to track those specific stats. After that, it's just a matter of "if variable is X, divide by variable Y, then display picture Z at coordinates".

An easier way would probably just be to grab a plugin or learn some actual programming and then just put some coding language within an event, but that probably breaks the spirit of "eventing challenge" as well, since we're no longer eventing and are instead coding.
Yeah, grabbing a plugin is easier. 😛 that bypasses the practice completely. The practice is to make this without the use of a plugin. And it is a lot easier than you seem to think. I made the whole system work in less than an hour, the first time I did it.

(Yes, I made this system myself before, 2 or 3 times actually, in different variations.)

Maybe you've seen that mini project of mine where you have to chase the black car? It uses a bar like this too, for nitro, which is reality is just MP. ;p

I promise, it is very much possible to create this with only use of 4 pics and a single script call. I'll show you how I did it when I get back home.
Is scripting allowed? You would draw a rectangle using PixiJS and have a math formula scale it to HP. Update with a parallel event
I'm not sure how "script calling" works outside of using plugins, but doesn't any solution requiring you "call a script" actually embody "coding challenges" rather than "eventing challenges"?

I can't code anything, so any solution that involves creating or using coding is the same to me as "just get a plugin to do the work for you". At the minimum, I'd need to google the code I need to insert into the game. Which means it also isn't "my solution" according to your rules.

EDIT: I'm not really sure "learn how to code" is within the spirit of "eventing challenge", either. Since anyone who CAN code or script will solve all problems THAT WAY instead of eventing, and anyone WITHOUT the skillset to code or script then either has to give up or learn a new skill that ISN'T eventing.
Some things simply can't be done without a script, or are way more inefficient if you try eventing it (compound conditionals with a script vs nesting conditionals with events). I can select every event with the name "Goblin" or "Bat" with a script and tell them all to move 3 tiles right, I'm struggling to think how you'd do that with eventing. You also can't use notetags without script.

I promise, it is very much possible to create this with only use of 4 pics and a single script call.
Well apparently the answer itself uses a script call so...
EDIT: I'm not really sure "learn how to code" is within the spirit of "eventing challenge", either. Since anyone who CAN code or script will solve all problems THAT WAY instead of eventing, and anyone WITHOUT the skillset to code or script then either has to give up or learn a new skill that ISN'T eventing.
if you can code, or use scriptcall snippet to get the HP for an actor,
the funny thing is, this could be done in 6 different ways, but even so, other peoples
that can code or event show different ways you might not think off.

so you can learn more than just coding as you can do it with 5 lines of code,
but maybe with loop or array, much more than 1 actor to take all into account.

more ways, more idea's to learn from and adapt if you don't want to use plugins,
or as less as possible 🙂
I am going to recreate my old solution for the challenge now. I did not cross all the bonus features, though. I did not add a face to my old version, but I will add one for the challenge. I am not going to botter with the full party, though. I'm also not going to bother with states for now either, but maybe I'll add it to the solution later and update my entry.

Is scripting allowed? You would draw a rectangle using PixiJS and have a math formula scale it to HP. Update with a parallel event
Yeah, javascript is allowed. If you know how to do that, your entry will at least be very different then mine. 😛 I see an upside here, though. Feels like you don't need an image for the bars? My solution does. You'll see, I'll make it as soon as I replied to all the replies that need a reply. 😛

It's in the guidelines, though. 😛

EDIT: I'm not really sure "learn how to code" is within the spirit of "eventing challenge", either. Since anyone who CAN code or script will solve all problems THAT WAY instead of eventing, and anyone WITHOUT the skillset to code or script then either has to give up or learn a new skill that ISN'T eventing.
You see it all wrong. Script calls are tools you can use to create your event. A script call isn't just copy pasting what you find online, but it is using pieces of the default RPG maker code, and add or change details or combine them. This would be 100% your own creative solution, and not someone elses work.

You know, the last time we did this, the group fell apart because I didn't allow non-RTP art and JavaScript. This time I decided not to tell you what you can or can not use. 😛

(Edit: The things you can use are only limited because it has to be your own work. That is the only thing where I would actually say: "that wasnt the challenge".)

I intentionally did not add any rules to the challenges, to avoid people disagreeing with the rules and turn the thread into an argument. Instead I gave the challenges guidelines. There is no need to argue the guidelines. You are free to stray from those if you please.

if you can code, or use scriptcall snippet to get the HP for an actor,
the funny thing is, this could be done in 6 different ways, but even so, other peoples
that can code or event show different ways you might not think off.

so you can learn more than just coding as you can do it with 5 lines of code,
but maybe with loop or array, much more than 1 actor to take all into account.

more ways, more idea's to learn from and adapt if you don't want to use plugins,
or as less as possible 🙂
Yeah, you get it. Everyone uses a different method, and that we can learn from.
Yeah, javascript is allowed. If you know how to do that, your entry will at least be very different then mine
Reminds me of the CT_Bolt project that boasts "no plugins" then proceeds to have walls of javascript in the events, including defining functions on game start

Reminds me of the CT_Bolt project that boasts "no plugins" then proceeds to have walls of javascript in the events, including defining functions on game start
Woa! That is extreme. 😛 And yeah, that wouldn't be in the spirit of an eventing challenge. Ha ha.

You can add a script call and a formula in an event, when using variables, pictures and other default commands as well. That is how I pictured it.

In previous challenges, the ones getting the most praise, were the ones that made the solution the easiest to understand.

We don't show the result (although you can if you want) but we show the events. If the events are very complicated or long, then people won't understand any of it. And therefor ignore it.

Still... I see it like this: If people would take that as an approach, I wouldn't enjoy checking it out, and probably skip it. You too, I assume. But as long as they enjoyed writing a wall of script for the eventing challenge, then this was a success.

You guys are 100% right, that the more you use javascript, the less it becomes eventing... but is that still true when you use it like this:
1734115630348.png


or like this:
1734115748278.png


Then you're eventing with JavaScript, am I wrong?

And what is so cool about javascript, is that you can make a condition or an action once, and repeat it 300 times in less than nothing, while otherwise you have to make 300 different conditions, and 300 different actions on each condition. Which would be nessecary if I did what I plan to do with a script call, without the script call. 😛

It's still possible, but man I don't have no time for that. 😛

There is 1 fair point, from @Tai_MT , if I read between the lines. If I read their comments, they say: "I don't know how to code." And that must feel like a disadvantage. And it is. The challenge should be doable for those who don't use any coding at all.

I don't think I kept the amount of afford it would take to do it manually when I picked this challenge. I will keep that in mind for future challenges.

By the way, if you have an idea for another challenge, maybe something you always wanted to try, but never got to it, then let me know.

I am really going to do some homework now. I mean, work on my own solution. Yesterday I've been typing so long, that I fell asleep before I got to the project. It still looks like this:
1734117138405.png
I evented a storage (this can be fun) as it can be annoying, depending how
you use it, and it works 😛

got 3 evented lockpicks (not showing those yet) but are different than PXD_Lockpick!

HP bar is more a combination (which isn't allowed based your challenge.
but if JS is allowed, but not heavy, but minimal, than hpRate() might be useful
to calculate the HP or else $gameActor.actor(id)._hp with $gameActor.actor(id).mhp.
inside a variable, you can also make a different HP pool with 1 variable.
you just need a mini snippet that actor HP = variable you choose and it should work
inside battle and or map 🙂

this method is probably the lamest, but functional 😀
I evented a storage (this can be fun) as it can be annoying, depending how
you use it, and it works 😛

got 3 evented lockpicks (not showing those yet) but are different than PXD_Lockpick!

HP bar is more a combination (which isn't allowed based your challenge.
but if JS is allowed, but not heavy, but minimal, than hpRate() might be useful
to calculate the HP or else $gameActor.actor(id)._hp with $gameActor.actor(id).mhp.
inside a variable, you can also make a different HP pool with 1 variable.
you just need a mini snippet that actor HP = variable you choose and it should work
inside battle and or map 🙂

this method is probably the lamest, but functional 😀
Save the explanation for your entry. 😛 If you tell people why to do things beforehand, you unwillingly infect their originality.

I know you mean will, but it's kinda like a spoiler for the movies. Even if you don't plan to make an entry or use this in your entry, it will still take away a bit of the magic for other entrees that are using it. 😛

I think, if you have a good idea, and you want to share it here, you should make an entry. It's just a little step beyond thinking it up and telling us how you would do it. 😛 Now if any of the solutions use any of it, it seems like it was your idea. And maybe they took it from you, or maybe they made their system years ago and are reusing it. No-one knows that old system, so maybe people won't believe him. 😛

Okay, okay, you spoiled some of my solution. Like, a tiny bit, but still. I'll quickly finish (and start, still) my entry now, before you spoil everything else. 😛
hp and mhp is what most probably use for image part 🙂
or a simple gauge, how else will you calculate their HP?

but even so, if you hide the gauge, you can do it also in a better way.
as it require 1 image *spoiler alert of 20 lines of simple event*!

that's how would make it (this is a single actor only without face) and outside battle.
you get that right 😛
I totally made a joke about it, but one part was for real: If you want to show us your plans, you really should make an entry. If not, I would friendly request to not tell us how it can be done. Because, you know, that is the challenge. It's like shouting out the answers in a quiz show while you're in the audience. 😛
Challenge 1: Status Bars

Edit: Fixed - Here is the result - also, since I was on the project, I updated it to allow for the status windows to close during dialog. Checked the FPS, lowered wait to 4, and moved the UI to the bottom to test interaction with game message.

I basically just used what was there in the engine and went from there to make it available on the map.

1 script call for the main feature inside a common event that is called with an event on map (about 12 lines condensed to fit in the visible area of the editor so no long trails of code).

Code:
Spoiler
s1.png

JavaScript:
const s = SceneManager._scene, m = $gameParty.members(), wh = 180, ww = 360, w2 = 408,
drawIt = (x, act) =>
  {x.drawActorSimpleStatus(act, 0, 0, ww); x.drawActorTp(act, wh - 2, w2 - 300, 176);
   x.drawActorFace(act, 0, 112, 144, 56)}; let n, w, a; if (!s._newWindow) s._newWindow = [];
for (n = 0; n < 4; n++) {a = m[n]; if (!a) {s._newWindow[n]?.destroy(); continue};
  w = s.getChildByName(`stats${n}`);
  if (!w) {w = s._newWindow[n] = new Window_Base(w2*n/2, Graphics.height - (wh/2), w2, wh);
    w.name = `stats${n}`; drawIt(w, a); w.scale.x = .5; w.scale.y = .5; s.addChild(w);
  } else {w.contents.clear(); drawIt(w, a)};
  if ($gameMessage.isBusy() && w.isOpen()) w.close();
  else if (!$gameMessage.isBusy() && w.isClosed()) w.open();
}

Cleaner looking code:
JavaScript:
const s = SceneManager._scene,
      m = $gameParty.members(),
     wh = 180, ww = 360, w2 = 408,
 drawIt = (x, act) => {
    x.drawActorSimpleStatus(act, 0, 0, ww);
    x.drawActorTp(act, wh - 2, w2 - 300, 176);
    x.drawActorFace(act, 0, 112, 144, 56)
};
let n, w, a;
if (!s._newWindow) s._newWindow = [];
for (n = 0; n < 4; n++) {
    a = m[n];
    if (!a) {
        s._newWindow[n]?.destroy();
        continue;
    }
    w = s.getChildByName(`stats${n}`);
    if (!w) {
        w = s._newWindow[n] = new Window_Base(w2 * n / 2, Graphics.height - (wh / 2), w2, wh);
        w.name = `stats${n}`;
        drawIt(w, a);
        w.scale.x = .5;
        w.scale.y = .5;
        s.addChild(w);
    } else {
        w.contents.clear();
        drawIt(w, a);
    }
    if ($gameMessage.isBusy() && w.isOpen()) w.close();
    else if (!$gameMessage.isBusy() && w.isClosed()) w.open();
}
Description:
Spoiler
Referenced from a later post:
I define all my constants at the beginning: Scene Manager's main scene, party members, window height/width and the content's width.

I create a constant function to simplify my use of existing functions so I don't have to write them again with the drawIt function which draws the actor's statuses, tp, and face. Other variables defined with let.

I then check to see if there is an array ._newWindow inside the Scene Manager, if not, create one (that way it doesn't keep overwriting it in the parallel).

I create a for loop that loops 0 to 3 where I:
- grab the child attached to the scene by name
- if there is nothing there, create a new window base and name it
- go through all party members, and if anything changes, destroy the window and create/update with a new one
- drawIt function called
- scale it so it actually fits since I am not able to resize text, etc. without going into the js and editing it (with a plugin, etc.) - I mean, yes, but I don't want to be overwriting code either at this point haha
- add it to the scene with .addChild()
- if all of that exists already, then just refresh the contents by clearing it and updating it with the drawIt function
- added game message functionality where the status windows close so the messages can be seen if needed (example: if you set your message to be at the top where the status windows are, the windows close)
- wait 4 frames (felt like this worked better for me for performance and efficiency)
Video:
@bass2yang You would make CT_Bolt proud

Original thread: https://forums.rpgmakerweb.com/threads/challenge-of-the-events.173841/