Variables are an integral part of RPG Maker, whether they’re through events or scripts. The Fun With Variables section contains several tutorials about what you can do with variables, particularly focusing on RM2K3 and events. While it’s more feasible to use variables via scripts in RMXP, RMVX and RMVXA, sometimes there will be occasions where using variables through events is more plausible.
Random Colours In Messages (RM2K3/XP/VX/VXA)
What if, for whatever reason, you’d like the character’s name to be a different colour each time you speak to an NPC? You’ll only need one variable (let’s call it Randomize) and one NPC event with two Command Events in it, thus: The first line sets up the random number for the colour. Under Variable Operations (RM2K3), … (RMXP), Control Variables (RMVX) or Variable Operation (RMVXA), set the "Single Variable" to Randomize, which is then set to a random number between 1 and 19. (The colours are based on the 20 colours in the current System Set in RM2K3 or the windowskin colours in RMXP/VX/VXA. Zero is the "default". The […]
You must log in to post a comment.