I've just recently started messing around in RPG Maker MZ, and I wanted to create an event where you can interact with carrot tiles to "count" them. The code for it is pretty long, but here it is;
◆If:CarrotCount = 0
◆Text:None, None, Dim, Bottom
: :Four carrots.
◆
:Else
◆If:CarrotCount = 1
◆Text:None, None, Dim, Bottom
: :Eight carrots.
◆
:Else
◆If:CarrotCount = 2
◆Text:None, None, Dim, Bottom
: :Twelve carrots.
◆
:Else
◆If:CarrotCount = 3
◆Text:None, None, Dim, Bottom
: :Sixteen carrots.
◆
:Else
◆If:CarrotCount = 4
◆Text:None, None, Dim, Bottom
: :Twenty carrots.
◆
:Else
◆If:CarrotCount = 5
◆Text:None, None, Dim, Bottom
: :Twenty-four carrots.
◆
:Else
◆If:CarrotCount = 6
◆Text:None, None, Dim, Bottom
: :Twenty-eight carrots.
◆
:Else
◆If:CarrotCount = 7
◆Text:None, None, Dim, Bottom
: :Thirty-two carrots.
◆
:Else
◆If:CarrotCount = 8
◆Text:None, None, Dim, Bottom
: :Thirty-six carrots.
◆
:Else
◆If:CarrotCount = 9
◆Text:None, None, Dim, Bottom
: :Forty carrots.
◆
:Else
◆If:CarrotCount = 10
◆Text:None, None, Dim, Bottom
: :Forty-four carrots.
◆
:Else
◆If:CarrotCount = 11
◆Text:None, None, Dim, Bottom
: :Forty-eight carrots.
◆
:Else
◆If:CarrotCount = 12
◆Text:None, None, Dim, Bottom
: :Fifty-two carrots.
◆
:Else
◆If:CarrotCount = 13
◆Text:None, None, Dim, Bottom
: :Fifty-six carrots.
◆
:Else
◆If:CarrotCount = 14
◆Text:None, None, Dim, Bottom
: :Sixty carrots.
◆
:Else
◆If:CarrotCount = 15
◆Text:None, None, Dim, Bottom
: :Sixty-four carrots.
◆
:Else
◆If:CarrotCount = 16
◆Text:None, None, Dim, Bottom
: :Sixty-eight carrots.
◆
:Else
◆If:CarrotCount = 17
◆Text:None, None, Dim, Bottom
: :Seventy-two carrots.
◆
:Else
◆If:CarrotCount = 18
◆Text:None, None, Dim, Bottom
: :Seventy-six carrots.
◆
:Else
◆If:CarrotCount = 19
◆Text:None, None, Dim, Bottom
: :Eighty carrots.
◆
:Else
◆If:CarrotCount = 20
◆Text:None, None, Dim, Bottom
: :Eighty-four carrots.
◆
:Else
◆If:CarrotCount = 21
◆Text:None, None, Dim, Bottom
: :Eighty-eight carrots.
◆
:Else
◆If:CarrotCount = 22
◆Text:None, None, Dim, Bottom
: :Ninety-two carrots.
◆
:Else
◆If:CarrotCount = 23
◆Text:None, None, Dim, Bottom
: :Ninety-six carrots.
◆
:Else
◆If:CarrotCount = 24
◆Text:None, None, Dim, Bottom
: :One-hundred carrots.
◆
:Else
◆If:CarrotCount = 25
◆Text:None, None, Dim, Bottom
: :One-hundred and four carrots.
◆
:Else
◆If:CarrotCount = 26
◆Text:None, None, Dim, Bottom
: :One-hundred and eight carrots.
◆
:Else
◆If:CarrotCount = 27
◆Text:None, None, Dim, Bottom
: :One-hundred and twelve carrots.
◆
:Else
◆If:CarrotCount = 28
◆Text:None, None, Dim, Bottom
: :One-hundred and sixteen carrots.
◆
:Else
◆If:CarrotCount = 29
◆Text:None, None, Dim, Bottom
: :One-hundred and twenty carrots.
◆
:Else
◆If:CarrotCount = 30
◆Text:None, None, Dim, Bottom
: :One-hundred and twenty-four carrots.
◆
:Else
◆If:CarrotCount = 31
◆Text:None, None, Dim, Bottom
: :One-hundred and twenty-eight carrots.
◆
:Else
◆If:CarrotCount = 32
◆Text:None, None, Dim, Bottom
: :One-hundred and thirty-two carrots.
◆
:Else
◆If:CarrotCount = 33
◆Text:None, None, Dim, Bottom
: :One-hundred and thirty-six carrots.
◆
:Else
◆If:CarrotCount = 34
◆Text:None, None, Dim, Bottom
: :One-hundred and forty carrots.
◆
:Else
◆If:CarrotCount = 35
◆Text:None, None, Dim, Bottom
: :One-hundred and forty-four carrots.
◆
:Else
◆If:CarrotCount = 36
◆Text:None, None, Dim, Bottom
: :One-hundred and forty-eight carrots.
◆
:Else
◆If:CarrotCount = 37
◆Text:None, None, Dim, Bottom
: :One-hundred and fifty-two carrots.
◆
:Else
◆If:CarrotCount = 38
◆Text:None, None, Dim, Bottom
: :One-hundred and fifty-six carrots.
◆
:Else
◆If:CarrotCount = 39
◆Text:None, None, Dim, Bottom
: :One-hundred and sixty carrots.
◆
:Else
◆If:CarrotCount = 40
◆Text:None, None, Dim, Bottom
: :One-hundred and sixty-four carrots.
◆
:Else
◆If:CarrotCount = 41
◆Text:None, None, Dim, Bottom
: :One-hundred and sixty-eight carrots.
◆
:Else
◆If:CarrotCount = 42
◆Text:None, None, Dim, Bottom
: :One-hundred and seventy-two carrots.
◆
:Else
◆If:CarrotCount = 43
◆Text:None, None, Dim, Bottom
: :One-hundred and seventy-six carrots.
◆
:Else
◆If:CarrotCount = 44
◆Text:None, None, Dim, Bottom
: :One-hundred and eighty carrots!
◆
:Else
◆Text:None, None, Dim, Bottom
: :There are one-hundred and eighty carrots here.
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
---
And then here's a screenshot of the event page:-
The issue is that when I try and interact with the carrot tile, nothing happens at all. I don't have any plugins or anything like that. I'm hoping I'm just missing something small because this was really tedious to do.
Originally I had a second event page that would bump up the variable, inside a self-switch so the count doesn't go up when interacting with the same carrot tile over and over again. So any advice moving forward would be very much appreciated too.
◆If:CarrotCount = 0
◆Text:None, None, Dim, Bottom
: :Four carrots.
◆
:Else
◆If:CarrotCount = 1
◆Text:None, None, Dim, Bottom
: :Eight carrots.
◆
:Else
◆If:CarrotCount = 2
◆Text:None, None, Dim, Bottom
: :Twelve carrots.
◆
:Else
◆If:CarrotCount = 3
◆Text:None, None, Dim, Bottom
: :Sixteen carrots.
◆
:Else
◆If:CarrotCount = 4
◆Text:None, None, Dim, Bottom
: :Twenty carrots.
◆
:Else
◆If:CarrotCount = 5
◆Text:None, None, Dim, Bottom
: :Twenty-four carrots.
◆
:Else
◆If:CarrotCount = 6
◆Text:None, None, Dim, Bottom
: :Twenty-eight carrots.
◆
:Else
◆If:CarrotCount = 7
◆Text:None, None, Dim, Bottom
: :Thirty-two carrots.
◆
:Else
◆If:CarrotCount = 8
◆Text:None, None, Dim, Bottom
: :Thirty-six carrots.
◆
:Else
◆If:CarrotCount = 9
◆Text:None, None, Dim, Bottom
: :Forty carrots.
◆
:Else
◆If:CarrotCount = 10
◆Text:None, None, Dim, Bottom
: :Forty-four carrots.
◆
:Else
◆If:CarrotCount = 11
◆Text:None, None, Dim, Bottom
: :Forty-eight carrots.
◆
:Else
◆If:CarrotCount = 12
◆Text:None, None, Dim, Bottom
: :Fifty-two carrots.
◆
:Else
◆If:CarrotCount = 13
◆Text:None, None, Dim, Bottom
: :Fifty-six carrots.
◆
:Else
◆If:CarrotCount = 14
◆Text:None, None, Dim, Bottom
: :Sixty carrots.
◆
:Else
◆If:CarrotCount = 15
◆Text:None, None, Dim, Bottom
: :Sixty-four carrots.
◆
:Else
◆If:CarrotCount = 16
◆Text:None, None, Dim, Bottom
: :Sixty-eight carrots.
◆
:Else
◆If:CarrotCount = 17
◆Text:None, None, Dim, Bottom
: :Seventy-two carrots.
◆
:Else
◆If:CarrotCount = 18
◆Text:None, None, Dim, Bottom
: :Seventy-six carrots.
◆
:Else
◆If:CarrotCount = 19
◆Text:None, None, Dim, Bottom
: :Eighty carrots.
◆
:Else
◆If:CarrotCount = 20
◆Text:None, None, Dim, Bottom
: :Eighty-four carrots.
◆
:Else
◆If:CarrotCount = 21
◆Text:None, None, Dim, Bottom
: :Eighty-eight carrots.
◆
:Else
◆If:CarrotCount = 22
◆Text:None, None, Dim, Bottom
: :Ninety-two carrots.
◆
:Else
◆If:CarrotCount = 23
◆Text:None, None, Dim, Bottom
: :Ninety-six carrots.
◆
:Else
◆If:CarrotCount = 24
◆Text:None, None, Dim, Bottom
: :One-hundred carrots.
◆
:Else
◆If:CarrotCount = 25
◆Text:None, None, Dim, Bottom
: :One-hundred and four carrots.
◆
:Else
◆If:CarrotCount = 26
◆Text:None, None, Dim, Bottom
: :One-hundred and eight carrots.
◆
:Else
◆If:CarrotCount = 27
◆Text:None, None, Dim, Bottom
: :One-hundred and twelve carrots.
◆
:Else
◆If:CarrotCount = 28
◆Text:None, None, Dim, Bottom
: :One-hundred and sixteen carrots.
◆
:Else
◆If:CarrotCount = 29
◆Text:None, None, Dim, Bottom
: :One-hundred and twenty carrots.
◆
:Else
◆If:CarrotCount = 30
◆Text:None, None, Dim, Bottom
: :One-hundred and twenty-four carrots.
◆
:Else
◆If:CarrotCount = 31
◆Text:None, None, Dim, Bottom
: :One-hundred and twenty-eight carrots.
◆
:Else
◆If:CarrotCount = 32
◆Text:None, None, Dim, Bottom
: :One-hundred and thirty-two carrots.
◆
:Else
◆If:CarrotCount = 33
◆Text:None, None, Dim, Bottom
: :One-hundred and thirty-six carrots.
◆
:Else
◆If:CarrotCount = 34
◆Text:None, None, Dim, Bottom
: :One-hundred and forty carrots.
◆
:Else
◆If:CarrotCount = 35
◆Text:None, None, Dim, Bottom
: :One-hundred and forty-four carrots.
◆
:Else
◆If:CarrotCount = 36
◆Text:None, None, Dim, Bottom
: :One-hundred and forty-eight carrots.
◆
:Else
◆If:CarrotCount = 37
◆Text:None, None, Dim, Bottom
: :One-hundred and fifty-two carrots.
◆
:Else
◆If:CarrotCount = 38
◆Text:None, None, Dim, Bottom
: :One-hundred and fifty-six carrots.
◆
:Else
◆If:CarrotCount = 39
◆Text:None, None, Dim, Bottom
: :One-hundred and sixty carrots.
◆
:Else
◆If:CarrotCount = 40
◆Text:None, None, Dim, Bottom
: :One-hundred and sixty-four carrots.
◆
:Else
◆If:CarrotCount = 41
◆Text:None, None, Dim, Bottom
: :One-hundred and sixty-eight carrots.
◆
:Else
◆If:CarrotCount = 42
◆Text:None, None, Dim, Bottom
: :One-hundred and seventy-two carrots.
◆
:Else
◆If:CarrotCount = 43
◆Text:None, None, Dim, Bottom
: :One-hundred and seventy-six carrots.
◆
:Else
◆If:CarrotCount = 44
◆Text:None, None, Dim, Bottom
: :One-hundred and eighty carrots!
◆
:Else
◆Text:None, None, Dim, Bottom
: :There are one-hundred and eighty carrots here.
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
---
And then here's a screenshot of the event page:-
The issue is that when I try and interact with the carrot tile, nothing happens at all. I don't have any plugins or anything like that. I'm hoping I'm just missing something small because this was really tedious to do.
Originally I had a second event page that would bump up the variable, inside a self-switch so the count doesn't go up when interacting with the same carrot tile over and over again. So any advice moving forward would be very much appreciated too.