Wanna do some eventing duels?

So, yesterday @ScaredPumpkinAri who happens to make great art, asked for a plugin to simulate a lock picking event. "Yeah, right!" I thought. "As if I need a plugin for that! I bet I can do it without." 😛 And I wasn't the only one who thought exactly that. @Spaske pretty much said the same thing. (Even though we both used other words than the ones I used in this quote.) Not only did he say the same thing, we also said it pretty much at the same time.

So I challenged him, as a joke. I said: We both make the system and then have the OP choose which system is best. And so we did! We both made the system the OP requested, using nothing but eventing and some simple edited images.

This was fun. It doesn't matter who won, (I did!) but it was fun. At the end of it all, Spaske said: "This was fun. Lets do this again some time." and I couldn't agree more.

So... Let's do it again! Lets think of simple, small challenges, that can be done with eventing only (no plugins) and see who can come up with the best system.

I already have the first challenge: Spawn random enemies to replace defeated enemies after 5 minutes

Rules for this challenge:
- Only use events (no plugins allowed!!!)
- The enemies must either be down or gone when defeated, until they re-spawn
- A random enemy must spawn in its place after 5 minutes
- If needed you may add art or edits as long as you made them specially for this challenge
- Do not use existing methods, you have to make your own

How to apply:
- Leave screenshots of the event (all pages) in a reply
- If you use a common event, leave a screenshot of that too
- If possible, record a short game-play video of your event in action. (Optional, but adviced)

A week from now, I will make a poll, with all the applied systems as a choice. Whoever gets the most vote, wins... Nothing! 😛 Just honer, glory and the rights to brag about it to all the losers. 😛



Edit: I made the first event. Open the spoiler to see it!
Spoiler: My version of the re-spawning random enemies
In the first page of my event, there is a random variable going 1, 2 or 3.
In the second, third and fourth page, there is different enemies. After they are defeated, the timer is set up in a single variable.
In the fifth and last page, there is a condition checking if enough time has passed (5 minutes) after the enemy is defeated. If so, it will reset the event. If not, it will erase the event.

This last page will trigger each time the player enters the map, after defeating the enemy.

I know it is really simple, but this is my version of the event.

1643918911674.png
1643918767551.png
1643918778243.png
1643918843823.png
1643918862918.png
If I had some spare time today, I might take you up on the challenge. I don't, sadly, so instead I'll leave you a note for future reference: your topic title should've used "duels", not "duals". Dual refers to something with two parts, like dual-element spells. Duel is the fighting one.
Page one has the rng variable that determines which enemy you get. And on the second page you have the script equivalent of a wait command with a little rng to not have it only a fixed 5 minutes all the time. Had that in my game anyway, thought why not share it.
Spoiler: Spoiler
1643921275365.png

Page 2:
1643921308613.png
Spoiler: Start Page
1643921286336.png

Merely chooses a random encounter from a set of three, then (default) if you win, goes to final page.

Spoiler: Pages 2-6
1643921409701.png
no need for all those screenies. 5 pages of a different monster pic, bats flapping, etc. same as start page, but each has a variable to activate, 1-5.

Spoiler: Final Page
1643921630623.png
I don't have the patience to wait 5 minutes for a test, so this respawns after 1 minute. puts the event back in it's starting place, does a wait, (skips most of it x.x ) sets the activation variable to one of the 5 other pages, and shuts off the switch so it can respawn.

i'm not trying for elegant and pretty, just making a system that works!

EDIT: not sure why that last pic isn't in a spoiler >:(

EDITEDIT: or it is, it's just also showing as an attachment. ;-;

EDITEDITEDIT: 1 second, not 1 minute.
Ey! Cool to see some of you took me up for the challenge! 😀

I must confess... I do not understand everything I see. I think that is because not everything is shown in all posts. I would really advice to make screenshots of the whole event, instead of a cut-out. Things like the trigger, the move route, the chosen image per page, conditions, etc. It is all important to the event, right? At least the trigger and the conditions are.

Edit: @Sword_of_Dusk Haha, you are right. Oops.
I'd join in, but I'd probably lose, since my specialty is just making stuff that looks good, LOL.
Is it cheating if I reuse my resource node respawning method for this? Because it would absolutely work for respawning enemy events.
Is it cheating if I use the script call heavily? 😛
Is it cheating if I use the script call heavily? 😛
I don't see why that would count as cheating, at least from my pov. I'd say go for it, but I'm not OP, lol. I mean, assuming this exercise is supposed to help people practice their eventing skills, excluding script calls implies that it is a skill not worth learning/practicing, which is something I wholeheartedly disagree with.
Nice one @JohnDoeNews, love this thread. 😀
So many ideas, different aproaches ect... and ofc im gonna contribute as well, here is my take at this...
Things used:
1 variable
1 switch
1 event with 7 pages (on map)
1 common event ( i used a common event for the timer so it can count even if youre not on that map)

Pictures:
1643937728814.png

Page 2-6 are the same events, only difference is the monster picture, so no point in showing them all.
The timer is set at 15sec for my vid but its no problem to set it at any time you want.

This is a cool idea, but it might be good to clarify the ground rules regarding script calls. I'd hate for someone to spend time writing a super cool event system, but then to get told that their entry doesn't really count because it over-relies on script calls or something.

I don't see why that would count as cheating, at least from my pov. I'd say go for it, but I'm not OP, lol. I mean, assuming this exercise is supposed to help people practice their eventing skills, excluding script calls implies that it is a skill not worth learning/practicing, which is something I wholeheartedly disagree with.

I agree with you, but it's good to go ahead and make things like this clear. Technically, just about anything that can be done with a plugin can also be done with a script call. The only real difference (other than a plugin being able to define parameters and commands) is that a plugin's code gets injected into the game automatically when the game starts up, and a script call's code gets injected into the game when the event gets executed. But what can be done from within that code doesn't really change much.

So if there's some kind of line that shouldn't be crossed, it's probably good to define where that line is beforehand.
Hmm... Many questions regarding script calls. Good ones though. But to decide on rules about script calls, I might first tell you all what the idea is behind this challenge:

This started when we (Spaske and I) were making an event to help someone out. To teach them. And that is what I intended with this challenge as well: Make events that teach. The events we post should be clear and understandable by everyone. After all, if someone doesn't understand what you did, they can not vote you a winner either.

We do this all together, so I guess we decide on the rules together, but as far as I concern, script calls are fine, as long as they are all clear.

So I propose the next rule:
- Script calls are allowed, but they need to be explained clearly and step by step. Every user of RPG maker, also those who do not know javascript, should be able to use the calls in their own projects and adapt them to their liking.
What do you guys think of this idea?

I'd join in, but I'd probably lose, since my specialty is just making stuff that looks good, LOL.
That is okay. Participating is more important than winning. 🙂 I think it is a great way to measure our own skills with that of others. If your skill is better then mine, then you teach me in the process, and the other way around.

Is it cheating if I reuse my resource node respawning method for this? Because it would absolutely work for respawning enemy events.
Well, we all have our own ways to do things. I have used my own methods before, kinda. I simplified it for the challenge, but it isn't at all new.

If you can explain your way in a simple event that is understandable by everyone, and therefor can be recreated by everyone, then sure, go right ahead.
I would like to add that script calls are event commands. If the idea of this thread is to share and grow our eventing skills, script calls should absolutely be included.

I agree we should do our best to explain what each script call is doing and to make sure they can be utilized generally across most projects.
Nice one @JohnDoeNews, love this thread. 😀
So many ideas, different aproaches ect... and ofc im gonna contribute as well, here is my take at this...
Things used:
1 variable
1 switch
1 event with 7 pages (on map)
1 common event ( i used a common event for the timer so it can count even if youre not on that map)

This is essentially what I thought of, so no entry for me.
@JohnDoeNews I'll admit that was just a hypothetical situation (for the future challenge maybe?), I don't need script-call heavy for this scenario to work. I simply thought of the opposite and am actually curious if I can break the convention of using eventing to script call heavy, for a sake of "breaking the rules".

So I propose the next rule:
- Script calls are allowed, but they need to be explained clearly and step by step. Every user of RPG maker, also those who do not know javascript, should be able to use the calls in their own projects and adapt them to their liking.
What do you guys think of this idea?
As @Arthran said, anything done in the plugin can be done in script call (it is just more inconvenient and longer). I have no problem explaining each line-by-line, although I'm inclined to end the explanation by adding "now, this is very inconvenient, right? we can turn this into a plugin like this ... ".

I'm okay with the rules. But if so, you also have to explain what does Date.now() + 30000 doing in your code (I also forgot what the return value of it is and why +30000 in particular).
@JohnDoeNews I'll admit that was just a hypothetical situation (for the future challenge maybe?), I don't need script-call heavy for this scenario to work. I simply thought of the opposite and am actually curious if I can break the convention of using eventing to script call heavy, for a sake of "breaking the rules".


As @Arthran said, anything done in the plugin can be done in script call (it is just more inconvenient and longer). I have no problem explaining each line-by-line, although I'm inclined to end the explanation by adding "now, this is very inconvenient, right? we can turn this into a plugin like this ... ".

I'm okay with the rules. But if so, you also have to explain what does Date.now() + 30000 doing in your code (I also forgot what the return value of it is and why +30000 in particular).
Date.now() returns the number of milliseconds that have elapsed since the 1st of January 1970 and 300,000 is the number of milliseconds in 5 minutes, so it's basically adding 5 minutes to the current time.
I'm okay with the rules. But if so, you also have to explain what does Date.now() + 30000 doing in your code (I also forgot what the return value of it is and why +30000 in particular).

Date.now() returns the number of milliseconds that have elapsed since the 1st of January 1970 and 300,000 is the number of milliseconds in 5 minutes, so it's basically adding 5 minutes to the current time.
Oh yeah, I indeed used a bit of script in a "control variable" command myself. 😛 Thanks for explaining it for me. 😛

In my defense, the rule to explain the script came after I uploaded my screenshots, though. 😛 Haha.

But to make it clear, what I did it this:

When the enemy is defeated I check the current time (real time, so it keeps ticking even when the game is not running) and add 5 minutes in miliseconds. So in var#6 I have the exact time 5 minutes from now.

In var#7 I have the current time. And check if that number is larger or smaller than var#6. If it is bigger, it means 5 minutes have past and the event will be reset. If it is smaller, it has not been 5 minutes yet, and therefor the event will be erased. It will be checked again when leaving the map and coming back, either by going to another map, or reloading the game.
Oh yeah, I indeed used a bit of script in a "control variable" command myself. 😛 Thanks for explaining it for me. 😛

In my defense, the rule to explain the script came after I uploaded my screenshots, though. 😛 Haha.

But to make it clear, what I did it this:

When the enemy is defeated I check the current time (real time, so it keeps ticking even when the game is not running) and add 5 minutes in miliseconds. So in var#6 I have the exact time 5 minutes from now.

In var#7 I have the current time. And check if that number is larger or smaller than var#6. If it is bigger, it means 5 minutes have past and the event will be reset. If it is smaller, it has not been 5 minutes yet, and therefor the event will be erased. It will be checked again when leaving the map and coming back, either by going to another map, or reloading the game.
Lol, thought such things would not be allowed as well since its something you cant achieve trough events (except script calls), thats why i used instead the common event variable, my first plan was to use real time and just check it if enough time elapsed like you. 😀
Even found the script call from another thread. haha
Lol, thought such things would not be allowed as well since its something you cant achieve trough events (except script calls), thats why i used instead the common event variable, my first plan was to use real time and just check it if enough time elapsed like you. 😀
Even found the script call from another thread. haha

Which script call? New date()? 😛 That is one of the few thing about javascript I do not have to look up. Hahahaha. 😛 (Well, I had at some point obviously... But that is years ago!)

I have my daily reward system based on that too, it gives a reward every day, if the player comes back, and the reward gets bigger every day, and grows up to 31 tiers a month, then if it is not the same month anymore, it resets back to the first tier. 😛 So when players come back to play 31 days in 1 month, they get the biggest reward.
Which script call? New date()? 😛 That is one of the few thing about javascript I do not have to look up. Hahahaha. 😛 (Well, I had at some point obviously... But that is years ago!)

I have my daily reward system based on that too, it gives a reward every day, if the player comes back, and the reward gets bigger every day, and grows up to 31 tiers a month, then if it is not the same month anymore, it resets back to the first tier. 😛 So when players come back to play 31 days in 1 month, they get the biggest reward.
Yup, something like that new date thing, i knew its possible to check real life date, time ect.. but did not know the code for it. ^^ Actually i dont know any js codes tbh... i know they exist like to set a variable but i have no idea how the code goes and i could look it up and use it 50 times, i would still forget it after a while. 😀

Original thread: https://forums.rpgmakerweb.com/threads/wanna-do-some-eventing-duels.144595/