2k/3 Coding help - Setting event to activate if input # is a multiple of #
BMM Archive · July 15, 2026
Original Source
- Original title: 2k/3 Coding help - Setting event to activate if input # is a multiple of #
- Original author: Croquet
- Original date: May 8, 2026
- Source thread: https://forums.rpgmakerweb.com/threads/coding-help-setting-event-to-activate-if-input-is-a-multiple-of.183536/
- Source forum path: Game Development Engines > Legacy Engine Support > RPG Maker 2000/2003 Support
Summary
Heya, so I need some help with coding. In my game, theres a puzzle, where the player inserts a 3 digit code into a box. if the inputted number is an even number (a multiple of 2), the middle of the 3 creatures will change graphics (from a blue thing to a sheep). View attachment 365848 the logic for my code is: player inserts 3 digit number. A different "middleman" variable is set to this number. The middleman variable is Mod by 2, which should either produce the number 1...
Archived First Post
View attachment 365848
the logic for my code is: player inserts 3 digit number. A different "middleman" variable is set to this number. The middleman variable is Mod by 2, which should either produce the number 1 (if the inputted number was odd) or 0 (if it was even).
However, when I run the code, I could type any number, and the creature turns into a sheep. also, once its set to the sheep graphic, i cant turn it back. idk where im messing up T_T
TLDR: I want to write a code where, if a player inserts a number that is a multiple of 2, it will switch to the sheep graphic, & if they type an odd number, it changes/stays as the blue thing
Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadCreator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...