Event Trivia - 6th problem on page 3.

Yay Im Green!

-I didnt understand what you meant by scenerio, you were right about that Zeriab.

(You better watch out Regi, Im comin to get you. RAWR.)

^_^
It's alright. At least you know now.
It feels nice being green right? Keep giving me good answers and become better so you can stay in green :3
I am making the previously red problem score green and the no reply points red. That way it should be easier to see max and min.

The bold sentences are the task you have to do or questions you have to answer.

Problem 3
5 points
-3 points on no reply

This problem is different since you have to event a solution to a problem Arshes has.
You see Arshes want to walk around where it pleases him.
Image

The problem is that if he walks onto the cursed sand it breaks the sealing of Arshes inner ghost.
Image

The cure is to use his hot and murky thief's outfit. (Arshes is a thief if you didn't know)
Image

This way Arshes prevents the cursed sand from breaking the seal of the ghost. He really doesn't like wearing the outfit though and therefore want to remove it immediately as he steps onto the grass.

As you probably have figured out the problem is to change the outfit of Arshes accordingly where he is on grass on sand. The actor graphics to use are:
Grass: 001-Fighter01
Sand: 018-Thief03

The map shown is a 20x15 map and the grass field is specified as:
Image

You have to create an event which provides the wanted outfit changes for the given map.
Make a picture of the event and pm that picture to me. (You can for example upload the picture to imageshack.us or to bb.xieke.com)

Now consider this map
Image
You DO NOT have to implement the outfit change on that map. Just answer the following question:
What will it take to make your implementation work on that map?

You have 72 hours from the time of this post.

*hugs*
- Zeriab
Ooh, a challenge! And this one's right in my area of expertise. If I drop the ball here... well, that would be quite embarrassing.
...Damn...this is not good for me...

Well at least ill probably learn something =]
Oh, and don't you mean Aluxes? lol. I really hope you've upgraded since the Arshes days.

But then, despite such vivid resemblance, you never explicitly stated he was from the RTP. Nothing like original characters, right? ;)

Edit: These are not clarifying questions! Don't banhammer me!
Don't let this die, Zeriab.
We're too good for that.
Do you need the entries again? We can resend them.
I have all entries, no worries on that end.
The problem was more the outage and that I have been busy.
It was not unexpected and had there not been an outage you probably wouldn't have noticed my absence.
I don't think I have enough time today, but I hope to get the results posted tomorrow.

Problem 4 repost Spoiler
Problem 4 is an experiment and probably breaks the trivia scope.

Problem 4 (Scripting is allowed)
10 points
-3 points on no reply
A special rule of this problem is that you all start with a 5 point deduction.

Scenario
The two treasure hunters slowly open the door to the bedroom and sneak over to the chest. Together they have broken into the mansion of the evil Magician Murphy after reports of his death. Martin, a hunter, and Rose, the thief, have a long story of successful treasure hunts behind them. To night will be different.

The get over to the chest and Rose wastes no time in trying to pick the chest.
The chest jerks, coughs and spews the pick out.
Image

Murphy, the evil magician, had anticipated that his time soon would come and he spent the last week of his life cursing and otherwise bringing parts of his mansion alive. Treasure hunters or any other good-for-nothings should have what they got coming. Murphy, in addition to being extremely evil, had a really bad teasing habit. Not in a kind way, but a deliciously evil way.

Task
The task is to event the scenario. The chest interaction is the main point. You have finish what I have started. Use your imagination.
The important points is to set the mood, to give the chest life and to give it personality.
Make the scene as if it's for a real game. Make it entertaining, scaring or whatever you like.
The point here is partly the functional and partly the aesthetics.
Additionally you have to document what you do and your reasonings. Explain your motives.

It's a free-for-all. Scripting is allowed.

You have 120 hours (5 days) from the time of this post.

*hugs*
- Zeriab


*hugs*
I think that theory's is rather well done, if unusual. And, if you're wondering how he got those unreleased scripts from me, it's because we bounce scripts back and forth while working on them. And yes, I have seen theory's project. He's seen mine too. We made sure that we had submitted them, though.
I saw Theory's too.

It's too bad I couldn't participate, but my computer had a broken screen, and I was computer-less for a week... :sad:
Sorry for the late response.
It took longer to judge than I had anticipated.
Good work everyone. Especially you theory :3

Problem 4 results
No one used the image I provided :(
Remember the special rule of all entries having 5 points deducted.
For each submissions I will provide provide feedback and then the scoring.

Submissions
Glitchfinder Spoiler
Glitchfinder wrote:
Well, with how much free time I had this week, I didn't have nearly enough time to finish this. Anyway, on to what I was thinking.

The light in the bedroom, and those in the hall, will turn on and off. This was just to show off some cool effects that can be achieved with pictures set to add and subtract.

If you sit for a while, you will be treated to a rather intense thunderstorm. This was to show that certain effects, like lighting windows, lighting rooms, and sound effects, can easily be coordinated and used together.

You will also notice that the house has doors. These doors are all different. The one in the entryway always closes, the one into the study has around a 50% chance of closing partially, and the other two will do the same thing on a much lower chance. To go with this, you can actually walk behind most of the walls, as though it were based more closely on real life. When the door is opened, you are temporarily frozen when an event in the top right corner is placed on top of you, and then removed again. (So that you don't shortcircuit the event) I did this instead of using the wait for move completion command because that command is somewhat buggy, and alternatives usually exist.

The setup event will only start the background music and transfer to the thunderstorm controllers.

And finally, the ghost and chest are part of a duo. You open the chest, and the ghost will come towards you and battle. This is where things get interesting. The enemy, which is a shade of Murphy, only knows two moves. First, he knows a physical attack that plays the Darkness 2 animation. And second, he knows 1 spell. He also has an evented controller that will override his moves with one of several overly dramatic intros, play an animation, and deal a random amount of damage. He will also do a couple of other things, like completely heal you and your party with "cursed water", or mess up on one of his spells. (Although he refuses to take the blame for that one) This battle, while pretty easy, was mostly intended for a little bit of humor, because I had no time for my original plans.

After the battle, you receive an item and return to the title. This is also because I ran out of time. (Although the item is rather...interesting) I would have also added more filters, such as lights for every light, and their shadows, if I had enough time. (As well as shadows for that lightning strike) This is not your fault, but merely the fault of a busy work week, both at home and professionally.

Here's the link:

http://bb.xieke.com/files/GlitchEventContest.rar

Feedback
You did not give the chest life and definitely not personality.
You have a guardian protect the chest, but the chest is just a nameless inanimate object which you can interact with.

You set the mood quite well with the thunderstorm and the tint is nice.
Turning on and off the lamps works quite well. That you can only use some of the lamps does not work well. I know it's because you ran out of time, but you could at least have displayed a message about them not working or something like that. I.e. made them interactive. It would not have taken a long time and given a more consistent feel.
You should have evented the tint instead of the scripted version you provide. It would have been far more dynamic. Just put it in an event on Parallel Process and you won't see the map before the tint. (Assuming it's running from the start :P)
The Game_Picture changes works well with the Lighting system. Good structure of the Lightning system.

Not a single comment event command has been used in the project.
Half of the events have good names and the other half have standard names (I.e. bad names)
The pm is good and explains most. There is no documentation about your scripting. This is problematic with your tint.

You can open the chest in two positions, but you only check if the ghost is in one of the positions. 0.7 point deduction. (Not a whole point since the ghost can go to the right scare and usually do although it's quite obvious that something is wrong)

Interesting doors. It's fun that can move a bit on their own. It works well with the scenario. (You use the same variable for the three doors)
To limit the player's movement you can just Set Move Route for the player with the Wait X amount of frames command. It's good that you did not use Wait for Movement's Completion.
The use of a block event is a bit excessive for the doors, especially because it makes no difference where you use it. The player waits when the trigger is Player Touch. You should have used it when the trigger is Parallel Process although I would still prefer Set Move Route.

Battle event:
The possibility of special skills which comes after a message is a nice idea and the voice over is novel.
Page 3. Why is there are page which will not be executed? I can see you have realized this due to page three in the Magician's Ghost map event.
Page 2 have flow control problems and following excessive checks. Additionally the contents of the branches exceeds the width of the window so one have to go into the event command to look at the code.
Image
Checking both lower and upper bound have the advantage that you can have some buffer points between two actions. This allows you to do some later tweaking of probability of single actions without affecting the probability of other actions. (Except the default, which in this case is none)
You have not done this so there isn't really any reason to do the extra checks.
The battle event does NOT override his normal moves. They work in addition to, not as replacement for.
I find it peculiar that you must hurt Murphy's Shade before he starts doing any special actions. There is nothing wrong with it. It's just weird.

Scoring
Special rule: 5 point deduction
Chest inanimate without personality: 3 points deduction.
Thunderstorm + lights for setting the mood: +1 point bonus
Doors: +0.5 point bonus
Chest issue: 0.5 point deduction
Commenting evens out to be a flat zero. (Same with the battle event)

This grants you 3.0 points. Remember to what the task is.


Regi Spoiler
Regi wrote:
Here is my submission :)

Just a note, the ending might be a little... odd. I ran out of time to work on it and it was the best I could come up with. I included some comments in the first event, explaining most of the commands I used. Hope that should be enough.

Feedback
You have chosen to make it as a cutscene without given control to the player. This is perfectly fine, just worth noting should other people read the feedback.
You have managed to make the chest deliciously evil. I really like how you have presented it. You basically hit spot on.
You have managed to give the cutscene a nice flow. Delays and moves and etc. works well. It's nice that you did the start of the scenario as well. (You didn't have to)
Functionality wise the event is straightforward and I see no error. ^_^

Using stop to give the chest and doll life works very well.

The in-line documentation, comments in the event, are good, but their positions are not. Sometimes they come before and sometimes they come after what they describe. The convention is to make the comments describe what comes after, not before. The event names are good.
You do not explain your motives or reasons behind what you do. Only what you do.

Scoring
Special rule: 5 point deduction
Deliciously evil chest: +1 point bonus
Good cutscene flow: +0.5 point bonus
Start of scenario: +0.5 point bonus
Stop animation: +0.2 point bonus
Commenting Total: 0.2 point deduction

This grants you 7.0 points!


theory Spoiler
theory wrote:
I know it's literally 1 minute away from deadline... But here it is.

http://www.mediafire.com/file/4zyyxmo0qzj/Treasure.exe

first edit was a small bug fix.
second edit is this part explaining it.

also wanted to mention there are 6 endings.
If anyone has trouble finding them all, PM me.

Feedback
You set the mood quite well. The 3 fogs gives a nice misty feeling and the lightmap works well. The occasional effects gives a nice spooky feeling. (Except the screen shake which feels too powerful. I don't like it)
You have managed to give the chest life, but its not really evil and definitely not in a teasing way. It's more like a guardian which does its masters biding.
Murphy is quite evil and the twist with him knowing the visitors is interesting.
You generally use various effects to make the cutscenes well. The changes of overlay combined with the music works great to convey changes of mood.
It's nice that you did the start of the scenario as well. (You didn't have to)
I also like the idea with multiple edings.

It's nice that you can always get the last hint repeated.

Rose Trainer:
It's interesting that there is a chance of the Random Parallel 2 variable becoming 0 and thus cause page 1 to be evaluated again instead of page 2. Since you have not commented this behavior I will assume it's an error. On the other hand it's 1 in 300 percent chance of 200 frames wait being added. (Basically you can call it a nitpick)
Timer in Rose Trainer on page 2 is faulty. You lack a Wait command in the loop.
Currently it just slows the processing of the event down in the frame when that page is evaluated.
Whether to create a variable based timer or use the timer command depends on whether the timer should be showed or not. The random
I like the idea with getting Rose to speak every now and then. It helps feeling she is more invovled.

Chest:
It's a nice detail that you can only open it from one side.
I also like the repeat of the last hint.

Murphy:
The way you freeze Rose is unsafe. There is a danger of freezing her before she arrives and there is a danger of her moving before she is frozen. It depends on how quickly the messages are gone through. You should instead have frozen her by turning ON the switch at least one frame before the pathfinding is initiated.

I like the battles. The blood sprite change is cute and the murphy remains and chest battler are interesting. The betrayal is fun.
The multiple endings are novel, but you have not taken the possibility of the chest being defeated without either Rose or Martin dying.

Commenting:
Event naming of varying quality.
The comments in the events are good.
I like that the event command of each page usually is a comment explaining the purpose of that page.
You didn't really document your scripting which is not very good.

CPU usage significantly higher than normal. It can give problems on slower computer and should have been mentioned.

You have really done a good job on this one theory ^^

Scoring
Special rule: 5 point deduction
Nice effects: +1 point bonus
Overlay: +1 point bonus.
Start of scenario: +0.5 point bonus
Event trainer timer: 0.5 point deduction
Event trainer page 1 random issue: 0.1 point deduction
Interesting battles: +0.5 point bonus
Multiple endings: +0.5 point bonus
No one dying issue: 1 point deduction
CPU usage: 0.2 point deduction
Good commenting: +0.4 point bonus

This grants you 7.1 points!


Scoring
1. 17.8 points - Regi
3. 14.0 points - theory
2. 10.2 points - Glitchfinder
4. 2.4 points - Ulqiorra
5. -3.5 points - LegacyX
6. -4.4 points - becoolioman

Had to leave
ShadowMainZERO (Trial ran out)

I will post Problem 5 in the next post, but that will first be tomorrow so you have some time to chew on the feedback.
Note that Problem 7 will be the final problem.

*hugs*
- Zeriab
Nice. The "bug" with noone dying, is that I just yesterday learned of the true "immortal" option. Never knew there was a right click menu there. I gave the chest 9999 heatlh, made sure it had strong healing abilities, and that the power ratio should under all normal circumstances result in one or the others death. After reevaluation, I suppose a player could collect enough herbs and cherries to survive the battle. Deduction accepted.
Well, I certainly deserved that. I really feel like polishing mine off, but there's no point if I don't plan to release it. I have always been rather sporadic in naming and commenting, simply because I can almost always go back and trace out what I did fairly quickly. As to the other small fixes, like the lights, I really didn't have enough time. As best I can tell, my submission was technically late as it was, so... I didn't want to push it. After the project I'm currently working with theory on, I think I will polish this one off. I'll even add my originally intended battle, which involved the chest amounting to an overpowered, unbeatable Pokemon-like thing, and the Magician's ghost controlling it. I look forward to the next event.

Edit:

Just found this on bb.xieke, so I assume you're making the next entry?
Actually I killed the chest where I just used 1 cherry. The paralyze spell works wonders. In general you should consider the possibility of the enemy being defeated even if there is an ever so slight possibility.
Setting the "immortal" flag in the troop would have solved the problem. It's worth noting that the healing spell would have had no effect in that case.
You finally got over Glitch. (A goal you had ^_^)

I decided not to note the lateness since I was so late in my judgments myself. Your original idea sounds quite interesting.

Problem 5
6points
-3 points on no reply
A special rule of this problem is that you all start with a 2 point deduction.

Consider the following event: (Well, an excerpt of it)
Image

The idea behind this event is to show a general from of having 100 different possibilities depending on a variable.
Just replace all the Do stuff #XXX comments with actual contents.
In this problem the contents of Do stuff #XXX doesn't matter which is why I have simply placed comments.
You cannot assume any correlation between the various possibilities, so you cannot reduce the amount of possibilities.

It should be quite obvious that the structure of the event has the issue of too many indentions, which leads us to the first task: (We don't want the event commands to disappear to the right)
Restructure the event so the event don't have the indention issue

In the event there can be 1 to 100 conditional branch checks. (This may not be true for your restructured event)
Change the structure of the event so the max number of conditional branch checks are below 30
How does this affect the minimum number of checks?
How does this affect the complexity of the event?

Note that the change of the event is more important than the questions.

You have 72 hours (3 days) from the time of this post.

*hugs*
- Zeriab
I am posting a clarification as I see my second task has been misunderstood. The misunderstood version can be defended and is thus my reason for the clarification.
There must still be 100 possibilities. 100 different outcomes. It's just the maximum number of checks to get to a single outcome that must be below 30.
The number of conditional branches are not restricted and any number of conditional branches can be used.

You are allowed to submit another solution. (Only one after this post, not two if you haven't pm'ed yet)
If you do your previous will be ignored.

Solutions that deal with another number of possibilities will be considered the same as not answering the question.
I am sorry for not making this clear.

Additionally I am extending the deadline 24 hours.

*hugs*
- Zeriab
I can't really participate anymore, sorry. But I do have a suggestion...

Edited out ~ Zeriab
Someone didn't read the rules.
Rules wrote:
Posting your answer in the topic itself will lead to disqualification.


Even if you can't participate you didn't have to get yourself disqualified.
:huh: ?

I didn't know I answered the question, sorry...
You answered parts of the problem, or more importantly it could be considered as such.
I am sorry about the clarification problem :sad:

Problem 5 results
For the first task about restructuring the event to mitigate the indention issue the easiest solution is the one Regi provided:
Image

An execution of that event 1-100 of the conditional branches can be checked or interpreted if you prefer that term.
For the second task this event is not viable due to the possibility of 100 conditional branch checks in a single execution of the event.
One way of doing it is to create a binary tree of conditional branches. Here is the event I would use:
Image
Note that I did not complete the binary tree. I used 2 conditional branches to a range of 25 conditional branches.
Can anyone calculate the max number of conditional branch checks in a single execution? Does it fulfill the requirements? Should I stop asking rhetorical questions? >_>

How does this affect the minimum number of checks?
The minimum number of checks has been increase by 2. I.e. the minimum number is 3.

How does this affect the complexity of the event?
It obviously increases the complexity. Just compare it to the original restructuring.

In general the more you narrow down the search (i.e. the more you increase the height of the tree) the more complex the event becomes. The minimum number of checks increases as well.
Every time you increase the height of the tree by one (i.e. split up the search one more time) you increase the minimum number of checks by one. The maximum number of check decrements exponentially. The complexity of the events naturally increases and so does the size of the event.
What all this means is that the first split gives a much larger bonus and the second split.
1 split => max checks goes from 100 checks down to 51.
2 splits => max checks goes from 51 checks down to 27.
3 splits => max checks goes from 27 down to 16.

At some point it is not worth it. For 100 checks I prefer 2 splits. You just have to find a balance which suits your situation.
This is what I wanted to teach you with that problem.



Remember the special rule of all entries having 2 points deducted.
For each submissions I will provide provide feedback and then the scoring.

Submissions
Glitchfinder Spoiler
Glitchfinder wrote:
Question 1: There are several ways to do this. First, you can take the conditional branches outside the else statements. However, that leaves the possibility of more than one branch firing off. Then next possibility is to structure it as a sort of expanding tree. For example, the first branch could check to see if the variable was less than 50. The next branch inside the true condition could check to see if it was less than 25, while the next branch under the false condition could check to see if it was less than 75. This could easily continue until the correct solution is found, and satisfy the next question as well.

Question 2: I found what I assume was an unintended possibility to solve your problem. Here is that solution. In this case, the answers to the next few questions are that it decreases the minimum number of checks to 0, and that it greatly increases complexity.

Assuming that you meant what I first mentioned, and not this solution, the answers to the questions will change. The first of the two will change to the fact that the minimum number of checks will be greatly increased, I believe to the same as the maximum number. The answer to the second question will remain the same, where the change results in a much more complex event.


Feedback
Question 1 has the problem of your not providing any event code. Although itself not a problem it means your must explain what you do in more detail.
For example, you say that moving the conditional branches outside the else branches is a solution to the indention problem, which it is. You do not say to remove the else branches now that nothing is in them, so I'll have to assume that they are still there. All conditional branches fires, it's just that most of the branches fires else branch. You can solve this with an Exit Event Processing or by using a label & goto labels. That way you can get the same number of checks as with the original event. (The max number conditional branch checks does not change)
The binary tree approach does not solve the indention issue in the general case, but you can have a lot more branches before the indention becomes an issue and with 100 possibilities a binary tree would solve it.
It is good that you consider both possibilities ^_^

Question 2:
It is good you keep your mind open and think about solutions other than what the problem description seem to focus on. (Just look at problem 3)
The solution is good, but the discussion is not. How do you know it's a map event? What if I wanted to make a battle event or common event?
Your solution is for example not a valid restructuring of a common event. It's good that you think about different solutions, but you got to discuss the consequences if there are any.
One way you could have done this is by given a general applicable solution and then include your solution where you point out it is another possible solution for map events.
You should of course also have mentioned the limit of 99 pages in an event because 100 possibilities are required.
It's cute that you have provided different functionality :3

It's good you consider the binary tree solution. (I'll ignore the other solution you consider since it doesn't fulfill the below 30 conditional branch checks in a single execution)
The solution of creating a complete binary tree will indeed make the event much more complex. I have argued why you should only make part of the binary tree.
The minimum number of checks will NOT be greatly increased. It cannot be greatly increased considering that the maximum number of checks will be less than 10.

Scoring
Special rule: 2 point deduction
Empty else branches: 1 point deduction
Binary tree also considered: 0.5 point bonus
Page based solution: 1 point bonus
Lack of discussion: 1.5 point deduction
Binary tree discussion in question 2: 0.1 point bonus(sum)

This grants you 3.1 points.


Regi Spoiler
Regi wrote:
Here is my revised solution.

Content Hidden Spoiler
Image


Note that the "Jump to Label" commands can be replaced by "Exit Event Processing" or "Erase Event", if no commands follow the Conditional Branches.

The reason for the "Jump to Label" and "Label" commands is explained below.

How does this affect the minimum number of checks?
The minimum number of checks is exactly the same as the event with the indented branches. It only checks up to the value of the variable. Once a Condition is met, it jumps to the label "End", thus skipping the rest of the Conditional Branches. For example, if the variable is 39, it will only check 39 branches, and after executing the command inside the 39th branch, will skip the rest of the branches. If the "Jump to Label" commands were not present, it would continue checking the rest of the Conditional Branches after #39, unlike the version with indented branches.

How does this affect the complexity of the event?
The event is no more complex than the version with indented branches. It continues checking Conditional Branches until the condition is met, executes the code inside that branch, then skips to the end.


Feedback
You solution to the indention problem is good and the discussion is also good. I agree with the event being no more complex than the original event. I would also say it is less complex, since it's so much easier to get an overview over what's happening and it's much shorter.
You didn't solve question two. (Max checks in a single execution being lower than 30)
There isn't really anything else to comment.

Scoring
Special rule: 2 point deduction
Good discussion: 1 point bonus
Not answered question 2: 3 point dedution

This grants you 2.0 points


Scoring
1. 19.8 points - Regi
2. 13.3 points - Glitchfinder

3. 11.0 points - theory
4. -6.5 points - LegacyX
5. -7.4 points - becoolioman

Had to leave
Ulqiorra

There were only two participants answering. :sad:
Do you guys want to continue?

*hugs*
- Zeriab
Sorry for not having my submission in on time. I'll be honest: I had no idea what you actually wanted there. I do now, though. Oh well.

Yes, I want to continue.
I thank you for the great criticisms. I must admit that I really should be more thorough in my explanations. That's a remnant from a time when I would go on and on, and had to teach myself to cut it down for people who weren't necessarily interested. As to the point values, I have a question. Where is the final point value coming from? I see that, with the points I was given, and the negative starting points, it appears as though I should have lost points this round, not gained them. Also, good job to Regi. He's been in the lead the whole time, and he certainly appears to deserve it. I think this is the only time I seem to have earned more points than him.
I will continue ^_^
Expect the next problem to come out sunday or monday (depending on how wasted I'll be)

@Glitch:
I am glad you like my criticism ^_^
You should definitely add as much content as possible. You shouldn't write more if you don't add any content though.
Being methodical in your explanation is a good idea. It is the contents and not the quantity that matters.
I know it is difficult to get the abstraction level right.
Remember this: You may understand how it works perfectly, but if you don't write it down you won't get any points for it.

The point value is simple math. I just believe you have forgotten a rule:
Zeriab wrote:
Problem 5
6points
-3 points on no reply
A special rule of this problem is that you all start with a 2 point deduction.


Zeriab wrote:
Scoring
Special rule: 2 point deduction
Empty else branches: 1 point deduction
Binary tree also considered: 0.5 point bonus
Page based solution: 1 point bonus
Lack of discussion: 1.5 point deduction
Binary tree discussion in question 2: 0.1 point bonus(sum)


6 - 2 - 1 + 0.5 + 1 - 1.5 + 0.1 = ??
:P

*hugs*
- Zeriab
I'm curious, what was Glitchfinder's magical solution?
Sorry for not sending an answer. The only solution I came up with was the <50, <25 etc, so I thought I'm doing it the hard way again. I used 4 pages and ABCD self-switches, each page only had 25 results. Still, It was so messy I wouldn't call it an improvement :P
I see, I probably could have explained that question more in my response. Grats to Glitchfinder for beating me this round ;)

These trivia questions are getting pretty interesting. Although it'd be nice if you could start updating the subject again (x problem on x page), so it's easier to tell when new questions/solutions arrive.
So we can have another problem now? Please? I'll bring a nice green-bean casserole!
silver wind wrote:
I'm curious, what was Glitchfinder's magical solution?
Sorry for not sending an answer. The only solution I came up with was the <50, <25 etc, so I thought I'm doing it the hard way again. I used 4 pages and ABCD self-switches, each page only had 25 results. Still, It was so messy I wouldn't call it an improvement :P


Ah. I just didn't know what it was called. Go here for a diagram of what a binary branching structure looks like. Basically, in our example, you start with a variable with a value from 1 to 100. You then make a conditional branch that checks if that variable is equal to 50 or less. If it is, you check to see if it is equal to 25 or less. (And, if it isn't, you check to see if it is equal to 75 or less) You then repeat, using a value as close to halfway between the minimum and the maximum of the range that it was put into. So, if the value was equal to 1, it should go through a series of checks like this:

  1. if variable <= 50
  2.   if variable <= 25
  3.     if variable <= 12
  4.       if variable <= 6
  5.         if variable <= 3
  6.           if variable <= 2
  7.             if variable == 1
  8.               # do something
  9.             end
  10.           end
  11.         end
  12.       end
  13.     end
  14.   end
  15. end
Expand to see the code.


Each end statement would actually be preceded by an else statement, which will catch all other possibilities in that specific range, and check until it finds the exact value and gives an output. For example, if the binary branching structure had a range of 1 to 10, it would look something like this:

  1. if variable <= 5
  2.   if variable <= 3
  3.     if variable <= 2
  4.       if variable == 1
  5.         # Output result 1
  6.       else
  7.         # Output result 2
  8.       end
  9.     else
  10.       # Output result 3
  11.     end
  12.   else
  13.     if variable == 4
  14.       # Output result 4
  15.     else
  16.       # Output result 5
  17.     end
  18.   end
  19. else
  20.   if variable <= 8
  21.     if variable <= 7
  22.       if variable == 6
  23.         # Output result 6
  24.       else
  25.         # Output result 7
  26.       end
  27.     else
  28.       # Output result 8
  29.     end
  30.   else
  31.     if variable == 9
  32.       # Output result 9
  33.     else
  34.       # Output result 10
  35.     end
  36.   end
  37. end
Expand to see the code.
@silver wind:
Glitchfinder's solution wasn't magical or anything.
It was a bit like the one I showed:
Image
I was just branched completely out like a binary tree.
Considering how little is gained from the last layers compared to extra time need for making the event, the increased size and the increased likelihood of errors I would say they are hardly worth it. It's an issue of finding a balance between speed and convenience. (Let's not forget to mention that making it as a binary tree can in certain situations be a slower solution than not branching since the minimum number of checks increases)
You don't have send an answer in since you are not a participant, so no need for saying sorry ^_^
The solution I think you would be using would most likely require some overhead due to the page changes.

@Regi:
Now both theory and glitch have gotten more points at one time than you. Do you feel threatened?
I am glad you like my questions and I do hope you also learn something from them ^_^
I intend to keep the title up to date. Please do prod me if I forget it again.

@glitch:
I didn't see your post before I made the long reply to silver wind.
On the bright side, now there are two explanations to look at :D

@theory:
You'll get your satisfaction >:3

I think I will sleep and look at the problem again tomorrow so I can go over it a final time with fresh eyes.
I wouldn't want a repeat of the issues with last problem.

*hugs*
Problem 6
5points
-2 points on no reply
A special rule of this problem is that you all start with a 2 point deduction.

This problem has main focus on the Force Action event command.
There are two common events where Common Event looks like this:
Image
Common Event 2 is the same except that it executes now instead of executing in Normal Sequence.
Briefly explain what the two events do. (No exceptional scenarios in this step)
In which situations does it have an actual effect?

For each of those situations:
Describe a scenario which could trigger the situation.
Describe the effect of the event execution, both the obvious part and possible side-effects. (Remember, from the eventer's point of view)
If there are any dangers to be aware of, describe them and explain how they can be a danger.

I know this is fairly big, so I am given you an extra day.
You have 96 hours (4 days) from the time of this post.

Note that you can request a deadline extension if it happens within 24 hours from the time of this post.


*hugs*
- Zeriab

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=64065