[RMMV] TYPEERROR CANNOT USE 'IN' OPERATOR TO SEARCH FOR 'DISABLE_DASHING' IN UNDEFINED
Posts
Pages:
1
Hello! Sorry for the long title.
So I am working on my firts RMMV game and I wanted to make a town portal system
similar to Diablo. I got that to work just fine.
I have the Town Portal Scroll trigger a common event which will teleport the player
to the town. And in each town I have paralel events which set 3 variables to set
the map ID, Map X and Y. So you always teleport to the last town you went.
( it's a linear game so there's not much need to revisit previous towns )
I hope I'm explaining everything correctly I apologize I'm still new to RPG Maker.
So anyway after that I decided I wanted to make a system where you can then use a
Return Scroll of some sorts to return to the place in the dungeon.
I thought if the common event which transported you back to town also set 3 new
variables of this event to pin down the "return location" and then trigger the transfer with the return scroll based on those 3 variables.
But whenever I use the return scroll I get the error message
TypeError Cannot use 'In' operator to search for 'disable_dashing' in undefined
I hope I explained everything properly and thank you in advance if anyone can help me! <3
So I am working on my firts RMMV game and I wanted to make a town portal system
similar to Diablo. I got that to work just fine.
I have the Town Portal Scroll trigger a common event which will teleport the player
to the town. And in each town I have paralel events which set 3 variables to set
the map ID, Map X and Y. So you always teleport to the last town you went.
( it's a linear game so there's not much need to revisit previous towns )
I hope I'm explaining everything correctly I apologize I'm still new to RPG Maker.
So anyway after that I decided I wanted to make a system where you can then use a
Return Scroll of some sorts to return to the place in the dungeon.
I thought if the common event which transported you back to town also set 3 new
variables of this event to pin down the "return location" and then trigger the transfer with the return scroll based on those 3 variables.
But whenever I use the return scroll I get the error message
TypeError Cannot use 'In' operator to search for 'disable_dashing' in undefined
I hope I explained everything properly and thank you in advance if anyone can help me! <3
I have no idea how to fix that error, but you should try to avoid parallel events as much as possible, because even if they don't cause concurrency issues, they are constantly taking up resources even if they're doing nothing. If you just need to know which town you went last to teleport there, you should just make an autorun event on the town that executes when entering and/or exiting.
Also, it would be helpful to know which plugins are you using because the error might pop up because of a compatibility error.
Also, it would be helpful to know which plugins are you using because the error might pop up because of a compatibility error.
Well, since the error relates to something called "disable_dashing", I'd say it's that plugin of dashing stamina that generates the problem. You might want to give a bug report to whomever made it so they can try to see if it's an error on their end or a compatibility issue.
Autorun events will keep running nonstop while the player is in their map and their execution condition is met. So if you want an autorun to just run once, you can put a "Turn Self Switch" command at the end of its event page and make a new empty page in that event that is activated when that same switch is triggered. That way, the autorun will execute once, turn the switch, and the empty page will override the autorun page.
For what you're trying to do, you could put an autorun event in town that sets the variables to the proper values and then deletes itself until you exit and reenter. That way, it won't keep running forever but will be executed again when you come back. The event would look more or less like this:
Autorun events will keep running nonstop while the player is in their map and their execution condition is met. So if you want an autorun to just run once, you can put a "Turn Self Switch" command at the end of its event page and make a new empty page in that event that is activated when that same switch is triggered. That way, the autorun will execute once, turn the switch, and the empty page will override the autorun page.
For what you're trying to do, you could put an autorun event in town that sets the variables to the proper values and then deletes itself until you exit and reenter. That way, it won't keep running forever but will be executed again when you come back. The event would look more or less like this:
Pages:
1