- Joined
- Apr 15, 2020
- Messages
- 75
- Reaction score
- 27
- First Language
- English
- Primarily Uses
- RMMV
Hi,
I have an RPG Maker MV game with an event "Maid" character who at a certain time walks toward the exit and fades out (leaves). For some reason, the event moves to the exit properly, but the switch won't activate. I have the exact same code on another event and it works properly. Any help would be greatly appreciated!
At the designated time I activate the switch which turns on the event page for her to leave. In that event page's movement route I have the following code:
Event Pager 14 - Movement Route
Script: //travel to Exit
Script: if ($gameMap.event(this._eventId).regionId() === 8 || $gameMap.event(this._eventId).regionId() === 24 || $gameMap.event(this._eventId).regionId() === 9 ) { this.moveStraight(this.findDirectionTo(14, 20)) };
Script: if ($gameMap.event(this._eventId).regionId() === 13 ) { this.moveStraight(this.findDirectionTo(20, 16)) };
Script: if ($gameMap.event(this._eventId).regionId() === 14 ) { this.moveStraight(this.findDirectionTo(20, 22)) };
Script: //if at exit, fade
Script: if (this.pos(20, 22)) {$gameSwitches.setValue(1043, true)};
Event Page 15 - Movement Route
Switch 1043 required for page to run
Opacity: 200
Wait: 15 frames
Opacity: 150
Wait: 15 frames
Opacity: 100
Wait: 15 frames
Opacity: 50
Wait: 15 frames
Through On
Transparent On
Both movement routes are: "repeat movements" = true, "skip if cannot move" = false. Both pages are parrallel trigger.
I have an RPG Maker MV game with an event "Maid" character who at a certain time walks toward the exit and fades out (leaves). For some reason, the event moves to the exit properly, but the switch won't activate. I have the exact same code on another event and it works properly. Any help would be greatly appreciated!
At the designated time I activate the switch which turns on the event page for her to leave. In that event page's movement route I have the following code:
Event Pager 14 - Movement Route
Script: //travel to Exit
Script: if ($gameMap.event(this._eventId).regionId() === 8 || $gameMap.event(this._eventId).regionId() === 24 || $gameMap.event(this._eventId).regionId() === 9 ) { this.moveStraight(this.findDirectionTo(14, 20)) };
Script: if ($gameMap.event(this._eventId).regionId() === 13 ) { this.moveStraight(this.findDirectionTo(20, 16)) };
Script: if ($gameMap.event(this._eventId).regionId() === 14 ) { this.moveStraight(this.findDirectionTo(20, 22)) };
Script: //if at exit, fade
Script: if (this.pos(20, 22)) {$gameSwitches.setValue(1043, true)};
Event Page 15 - Movement Route
Switch 1043 required for page to run
Opacity: 200
Wait: 15 frames
Opacity: 150
Wait: 15 frames
Opacity: 100
Wait: 15 frames
Opacity: 50
Wait: 15 frames
Through On
Transparent On
Both movement routes are: "repeat movements" = true, "skip if cannot move" = false. Both pages are parrallel trigger.