public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

2k/3 Coding help - Setting event to activate if input # is a multiple of #

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

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

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 (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
1778259075961.png


1778259042327.png

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download
Creator 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.

#rpg-maker-archive#rm2k-support

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar