RMDC #2: Choice Pictures

Discussion in 'Code-Off Challenge' started by Tsukihime, Dec 31, 2014.

  1. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,046
    Location:
    Toronto
    First Language:
    English
    [​IMG]


    You are a new adventurer and have been asked to visit the weapon store to receive your first weapon. When you arrive at the store and talk to the owner, she asks you what you want to use. You are then presented with a few options...but how are these options displayed?


    Introduction


    The RMDev Challenge is a series of articles that presents a problem for RPG Maker developers and the objective is to find a solution.


    The purpose is to engage RPG Maker developers in some (possibly practical) problem-solving that will allow them to explore more of what the engine has to offer, and also to see how others implement the same solution.


    Instructions


    The rules are simple:

    • Your solution must run in RPG Maker
    • You may use any version of RPG Maker
    • You may do anything to solve the problem (eventing, scripting, pictures, etc)
    • The scenario provided is just a guideline. You do not have to follow it. All that matters is the requirements of the challenge.
    You may present your solution however you wish (comment, blog post, video, etc) and wherever you wish, but I ask that you leave a link back to this article if you are sharing a solution on external sites. I also recommend sharing the solution on external sites and leaving a link in the comments because the comment section is too small for details.
    Remember: you want to share with others your solution.


    A list of submissions will be updated at the end of this post, so if you want me to include a link, leave it in the comments or send me a message.


    Challenge


    In RPG Maker, one of the ways to present choices is to use the "Show Choices" event command. This allows you to display a choice selection to the player that looks something like this


    [​IMG]


    Depending on which option you choose, the store owner will give you a different weapon.


    However, depending on how you want to present your game, having a list of options to choose from is unsuitable. Instead, you may want to display a set of choices as a collection of pictures. It might look, instead, like this


    [​IMG]


    How would you provide a selection of choices to the player using a set of pictures?


    Resources


    Here are some pictures to get you started. You do not need to use them. Each picture is 128x128, so crop them out as needed.


    [​IMG]


    Here are the original sources for the images along with their licensing details:


    Stave: https://www.iconfind...steel_tool_icon


    Sword:http://www.iconarchi...Sword-icon.html


    Bow: http://www.clker.com...art-267011.html


    Other Comments


    The next challenge will build on this challenge, so if you have a working solution, consider holding on to it.


    You are encouraged to discuss techniques and solutions with other developers. This thread can be used for discussion as well.


    Submissions


    Any submissions will be linked here.


    Zetu [demo]


    Ralpf v1 [demo]

    [​IMG]
    Ralpf v2 [demo]


    Susan [demo]


    Meridianbot


    (originally posted at HimeWorks)
     
    Last edited by a moderator: Jan 9, 2015
    #1
    Kensoloko, Archeia, Susan and 4 others like this.
  2. mlogan

    mlogan Global Moderators Global Mod

    Messages:
    13,388
    Likes Received:
    7,418
    Location:
    Texas
    First Language:
    English
    Primarily Uses:
    RMMV
    Hmmm, the wheels are already turning as to how to even it. I have an idea just need to get to the computer and see how to implement it.
     
    #2
    Tsukihime likes this.
  3. Zetu

    Zetu Level 99 Stabomancer Veteran

    Messages:
    247
    Likes Received:
    99
    Location:
    Durham, NC
    First Language:
    English
    Primarily Uses:
    N/A
    Already finished! I probably will play around with it a while for more customization options. I have plenty of time to submit after it's posted, anyways. Also, using those Icons would probably be better than what I have.
     
    #3
    Tsukihime likes this.
  4. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,046
    Location:
    Toronto
    First Language:
    English
    That's pretty fast!


    Maybe a preview of how it functions (screenshots, video, ... ) might motivate people :p
     
    #4
  5. Zetu

    Zetu Level 99 Stabomancer Veteran

    Messages:
    247
    Likes Received:
    99
    Location:
    Durham, NC
    First Language:
    English
    Primarily Uses:
    N/A
    I need to make edits to support bigger images, since having pictures that tall go over the screen. Probably a horizontal mode. Here's what it looks like, ignoring that...

    [​IMG]
     
    Last edited by a moderator: Dec 31, 2014
    #5
    Tsukihime likes this.
  6. Ralpf

    Ralpf Veteran Veteran

    Messages:
    597
    Likes Received:
    152
    Location:
    Sparta, TN
    First Language:
    English
    Hmm, not sure how to approach this one. Gonna try to event that (since that's what I know), gonna try to give it a shot tomorrow.
     
    #6
  7. Zetu

    Zetu Level 99 Stabomancer Veteran

    Messages:
    247
    Likes Received:
    99
    Location:
    Durham, NC
    First Language:
    English
    Primarily Uses:
    N/A
    I'm pretty sure you can't event this. This is a coding challenge, not eventing challenge. If you want to event it for your personal use, however, go for it.

    Just read the op. Ignore that and gl eventing it.

    I added modes to what I had. [mode=?]. Here's a screenshot of using mode H and C (horizontal and centered).

    [​IMG]
     
    Last edited by a moderator: Dec 31, 2014
    #7
  8. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,046
    Location:
    Toronto
    First Language:
    English
    Updated the post to look more organized.


    That is pretty much the final version.
     
    Last edited by a moderator: Jan 1, 2015
    #8
  9. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,213
    Likes Received:
    2,715
    Location:
    Philippines
    First Language:
    Tagalog
    It's weird that the other options are images while the cancel is a word...

    If I don't want to script it, I would probably use pictures and maybe a loop which waits for input... Not sure if that's really practical though
     
    #9
  10. Zetu

    Zetu Level 99 Stabomancer Veteran

    Messages:
    247
    Likes Received:
    99
    Location:
    Durham, NC
    First Language:
    English
    Primarily Uses:
    N/A
    Here is my solution v1.02

    Plus Demo v1.02

    Make sure to use the latest solution. Copy the script into the demo if the versions are not the same.

    I may add a few more features later. (Also, the Cancel part can be removed. I was just showing that it's possible to keep text there. I left it out in the demo.)
     
    Last edited by a moderator: Jan 8, 2015
    #10
    Goldstorm and Tsukihime like this.
  11. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,046
    Location:
    Toronto
    First Language:
    English
    This just feels amazing when I'm playing through the demo

    [​IMG]
    And also trying to run away.
     
    Last edited by a moderator: Jan 3, 2015
    #11
    Allusion likes this.
  12. Ralpf

    Ralpf Veteran Veteran

    Messages:
    597
    Likes Received:
    152
    Location:
    Sparta, TN
    First Language:
    English
    It was actually fairly simple to event, took me longer than I thought to get around to it, busy weekend.

    Anyway:

    Two events, one for the conversation with the quartermaster (changed scenario slightly), one autorun to control pictures and variables: RMDC 2-1.jpg

    There is a second page that contains different dialog when switch SecondTime is active

    RMDC 2-2a.jpg

    RMDC 2-2b.jpg
    Gonna map out a decent looking area and submit a demo, maybe tomorrow.
     
    Last edited by a moderator: Jan 7, 2015
    #12
    Tsukihime likes this.
  13. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,046
    Location:
    Toronto
    First Language:
    English
    That does look very simple. I didn't think it would be that short with events.


    Wonder how it looks!
     
    Last edited by a moderator: Jan 7, 2015
    #13
  14. Ralpf

    Ralpf Veteran Veteran

    Messages:
    597
    Likes Received:
    152
    Location:
    Sparta, TN
    First Language:
    English
    #14
    Tsukihime likes this.
  15. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,046
    Location:
    Toronto
    First Language:
    English
    Looks good :)


    The input isn't as responsive sometimes, but I'm assuming that is related to how events loop.


    I think it definitely has more impact than a simple list of text choices.


    Mind if I take screenshots or make videos to showcase it?
     
    Last edited by a moderator: Jan 7, 2015
    #15
  16. Ralpf

    Ralpf Veteran Veteran

    Messages:
    597
    Likes Received:
    152
    Location:
    Sparta, TN
    First Language:
    English
    Sure,

    Go for it, that would be cool.

    The responsiveness lag is due to the waits in there I think, had issues with not being able to select the middle picture and accidentally selecting option one after ending the text. Will change that to 5 frames and see what it is like.

    Edit: 5 frames is too short, the problem resurfaces, 6 frames actually works very well though. But I settled on 7 just in case someone with a less responsive keyboard (or a slower finger) looks at it. I think the responsiveness does feel better. Though the change is so subtle it's hard to be certain.

    I replaced the file with the new version in dropbox, not sure the old link still works so: https://www.dropbox.com/s/sh1uk3190edum85/RMDC2%20-%20Ralpf.zip?dl=0

    This method could actually be used for puzzles and stuff like that, too.
     
    Last edited by a moderator: Jan 7, 2015
    #16
    Tsukihime likes this.
  17. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,046
    Location:
    Toronto
    First Language:
    English
    Are you using the

    Code:
    Loop  Conditional Branch: Button Pressed    Exit Loop  Else    Wait x Frames  EndEnd
    Pattern to wait for user input?
     
    Last edited by a moderator: Jan 7, 2015
    #17
  18. Ralpf

    Ralpf Veteran Veteran

    Messages:
    597
    Likes Received:
    152
    Location:
    Sparta, TN
    First Language:
    English
    I've never used a loop in a button press situation, just a conditional branch that activates on the button being pressed. Will see if that might help.

    Edit: Can't find a place to insert a loop that either doesn't change anything, or stops the whole thing because of an unbreakable loop.

    This is what that little section of the event looks like.

    RMDC2.jpg
     
    Last edited by a moderator: Jan 7, 2015
    #18
  19. Susan

    Susan Veteran Veteran

    Messages:
    2,766
    Likes Received:
    8,388
    Location:
    somewhere on this planet~
    First Language:
    No idea...
    Primarily Uses:
    RMMV
    This challenge looks really interesting! ^^

    Here's my submission on addressing this challenge :

    https://www.dropbox.com/s/g3n0i5yyyeswkvi/RMDC2%20-%20Susan.rar?dl=0

    I used pure eventing with the provided pictures for this submission.

    Screenshots:

    In-game:

    [​IMG]

    [​IMG]
    Event:

    Event - Page 1

    [​IMG]
    Event - Page 2

    [​IMG]
    Event - Page 3

    [​IMG]
     
    Last edited by a moderator: Jan 8, 2015
    #19
    Marsigne, Dalph and Tsukihime like this.
  20. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,046
    Location:
    Toronto
    First Language:
    English
    Ah, that's what those extra events are for...


    I think the helper events wouldn't be necessary if you could somehow lock the player in the choice event.
     
    #20
    Susan likes this.

Share This Page