RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

Changing Switches inside Scripts

Started by Zethzune, December 28, 2008, 04:26:44 PM

0 Members and 1 Guest are viewing this topic.

Zethzune

I have walking sounds that are played from a parallel process common event, with four conditional branches (one for each directional key) these calls a second common event to play the footstep sound for the ground type of the area; however there is a problem with this method. Pressing directional on a choice message (dialog options) plays the footstep sounds. I don't want to put an event in every conversation to turn the footstep switches to 0, and then 1 when the message is gone.

So I want to toggle the switch in the window_message script.
I tried something like $game_switches.switch_id[0003] = 0

It would probably be better if somebody told me how moves were detected in scene_map so I can just put the sounds there (but I'd still have to check if switch 0003 (footsteps) was on or not)
My strength is that of ten men, for I am wired to the eyeballs on espresso!