help disable runing on certian tiles and even slowing down

cant seem to figure how to do this without use of tons of events on where i want him to be slowed down.

Basically what iam trying to accomplish is when he walks on worldmap he can run. If he is on low mountian he cant run and i want him to walk slower. Forest no runing same speed stuff like this.  hope this explains it enough any help or advice would be appreciated.
maybe use the Region events script so that you can make a whole region run the same event...
tried scripts and learning notetags its been brutal hopeing to avoid anymore encounter of notetags lol but if i cant find another way guess i have no choice thanks for fast response avoid it for now come back to it later   🙂
Well I hope these screenshots help ^_^.

Spoiler
Set your desired regions.

7EmCk.jpg


7EmE9.png


Edit Line 138 of the Game_Player script.

7EmEF.png
ty this does work just wondering dont know nothin about scripting barly about commen events but  do i have to turn switch on to turn this event on?  if i just did it right at start of the game would that be good? or would i have to turn it on for every map
Switches are global. Once they're on, they're on, until you turn them off. So turning a switch on at the very start of the game would be sufficient.


In the common event, add a Wait 10 Frames right at the start, or right at the end. Parallel process events (including common events) loop by default, and this would run every frame (so 60 times a second). You don't need to check 60 times a second whether the player is on or off the specific tile, and when you have parallel process events looping like that without a pause, it starts to cause the game to lag - especially when you have a few of them going at once.


HOWEVER ... since you're making a one-line script change anyway, I'd just put the condition into the script itself, and avoid messing around with common events, parallel processes and switches altogether. So you could JUST implement the change in the last screenshot above, but instead of saying

return false if $game_switches[100] == falsedo one of the following:
To ONLY allow dashing where you have put region 1:

return false if $game_map.region_id(@x, @y) != 1
To only DISABLE dashing where you have put region 1:

Code:
return false if $game_map.region_id(@x, @y) == 1
Which one you use depends on whether there's more space where you want dashing enabled or disabled.
o no i broke the run some how i cant run at all anymore
Which method did you choose? Show us screenshots of your common event (if you used one) and the script.


If you used a common event, make sure it's set to parallel process and not autorun. And make sure there's no OTHER event that's set to autorun that's still active (even if it has no commands)
romoved common event and removed all lines i edit and still not dashing done something wrong i know it worked before i did add in victor's animated battles, actor battles, and damage pop up altho it doesnt work yet cause iam reading turtorials on how to set it up dont think that would have disabled it tho.. i can give u screen shot of my script that u told me to edit i double check it exactly way it was.
Yes, screenshot please, of the changes you've made that are still in there. Also a screenshot of your map in the editor, with the region layer selected, showing the area where you're trying to dash but can't. Are you sure you used the correct script line to indicate you do or don't want to dash on the 1 region?


Are you moving AT ALL?
cant seem to add attachments or upload screen shots
How to upload the image to the forums


Now that you have you have an image on your computer you'd like to show us, how can you get it to show up on the forums? Firstly, you need to find an image hosting site, photobucket.com or imageshack.us are popular ones. If you have another image uploading website, great - use that one! Either way, upload it to the site, and then get the direct link. Don't get the resized link, or the thumbnail link, but the direct URL. You'll know you have the direct URL if the URL ends with the file extension you saved your image in (which will hopefully be .png).



Once you have this direct URL to your image, simply use the IMG tags in your forum post and paste the URL in between them. If this image is big, please leave the image in spoiler tags.

IMG tags:
image.png



Though now you can also put your image tag like this:

Code:
[img=www.website.com/image.png]
k think i got it now heere are the links

http://s124.photobucket.com/user/ellcar1/media/Screenshotrunningon1_zpsf15ab759.png.html?sort=3&o=0

http://s124.photobucket.com/user/ellcar1/media/Screenshotscriptedit_zps3d993abd.png.html?sort=3&o=1

tryed to use those tags doesnt seem to work or iam just bad at this lol

o the 1 is area u can run rest are gonna be for random battles and no fights on 1 ether is the plan anyways lol
o wow so sorry this is my bad i have it disapled in map properties once i unchecked that it works great i can hold run button soon as i hit path speeds up soon as i walk off it slows down perfect this is exactly what i wanted. maybe by the end ill have small hills that even slow down the normal speed but for now ty so much for ur time
ellcar, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


Awesome that you figured it out 🙂


The issue with your screenshots is that you haven't chosen the correct link. In Photobucket, after uploading the image, you need to click on the one called the Direct link. That's what you then paste into the image tag.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/help-disable-runing-on-certian-tiles-and-even-slowing-down.24508/