RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[VXA] Is there a way to force stop an event? e.g. script call?

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 58
in training
Is there a way to force stop an event set to run parallel?

For example: I have three events. We'll call them events 1, 2 and 3 on map 10. All are dormant when self switches aren't set
After talking to an NPC I use the following three lines to turn switch A on

$game_self_switches[[10, 1, 'A']] = true
$game_self_switches[[10, 2, 'A']] = true
$game_self_switches[[10, 3, 'A']] = true

Event 1A is set to parallel and moves the player around stage like they are dancing
Event 2A is set to parallel and moves an event around a stage like they are also dancing

Event 3A is set to autorun and displays the conversation between these two characters on screen.

At the end of 3A I use $game_self_switches to turn self switch B on for all of those events and transfer the player to the new location at which point Event 4 kicks in and the game progresses as normal.

My problem is that, once we regain control of the player, they start moving along a pre ordained path.

I'm assuming this is because one of the previous "move" commands hadn't finished. I've worked around this by putting another transfer player line in the succeeding event but it looks messy when the player walks a few steps then transfers to the place they're meant to be.

Any advice? I'm sure there has to be a way to break/kill/delete an event mid process.

*
Rep:
Level 97
2014 Best RPG Maker User - Engine2014 Most Unsung Member2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Move processing is done within the Game_Character class itself, so it is not the event itself that is still running. Just use a regular move event command on the player in Event 4 and that will prevent him or her from carrying out the previous commands. I don't think it will even need to have any commands in it, but if such is required, then just make him or her turn in the proper direction.

**
Rep:
Level 58
in training
Thank you. I'll try just making the character face right and see if that works. Unfortunately it's a sporadic issue which makes it hard to test :)

**
Rep:
Level 58
in training
Long time of testing but... it didn't work :(

*
The Hero of Rhyme
Rep:
Level 83
( ͡° ͜ʖ ͡°)
Project of the Year 20142014 Best RPG Maker User - Story2014 Queen of RMRK2011 Best Newbie2014 Kindest Member2014 Best RPG Maker User - Creativity2013 Queen of RMRKBronze SS AuthorBronze Writing ReviewerSecret Santa 2013 ParticipantFor taking arms in the name of your breakfast.GOOD!For frequently finding and reporting spam and spam bots2012 Best Yuyubabe Smiley2012 Best RPG Maker User (Creativity);o
You can always try the "Erase Event" command, but that only works until you get off the map. So, if you return to the map, it will proceed again.
I don't know if that will stop movement routes for sure, though.

Also, you can do transfers with no fade, it that helps. D:
Spoiler for My Games and Art:
ℒℴѵℯ❤


My Artwork Thread

The Lhuvia Tales [Current]

Ambassador [Complete]

The Postman [Complete]

The Wyvern [Complete]

Phoenix Wright: Haunted Turnabout [Complete]

Major Arcana [Cancelled]


****
Rep:
Level 43
Somewhat got a project? (\ô/)
GIAW 14: ParticipantParticipant - GIAW 11
Well, I use the self switch command and worked for me perfect. ;)
Is not much effort and works everytime. :) (\s/)