cant get toggle dash script 2 work 4 the life of me! :0(

Status
Not open for further replies.

whotfisjojo

clownin' around
Veteran
Joined
Jun 5, 2019
Messages
64
Reaction score
18
First Language
English
Primarily Uses
RMVXA
i found this script and it was exactly what i needed for my project! i saw it was in that funky "forum code format" so i tried to "organize??" the code myself but im not all that smart when it comes to making sure all the code is where it needs to be so i just got a hundred or so errors every time i tried :0/

if someone knows how to put the code snippet into a plug-and-play format i would really appreciate it! thanks a whole bunch! :0)
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,982
Reaction score
665
First Language
English
Primarily Uses
RMVXA
if someone knows how to put the code snippet into a plug-and-play format
That's a pretty easy one to fix.
Ruby:
class Game_Player < Game_Character 
#-------------------------------------------------------------------------- 
# * Object Initialization 
#-------------------------------------------------------------------------- 
    alias dash_initialize initialize 
    def initialize   
        dash_initialize   
        @dash = false 
    end 
#-------------------------------------------------------------------------- 
# * Determine if Dashing 
#-------------------------------------------------------------------------- 
    def dash?   
        return false if @move_route_forcing   
        return false if $game_map.disable_dash?   
        return false if vehicle   
        return @dash 
    end 
#-------------------------------------------------------------------------- 
# * Frame Update 
#-------------------------------------------------------------------------- 
    alias dash_update update 
    def update   
        dash_update   
        @dash = !@dash if Input.trigger?(:A) 
    end
end
 

whotfisjojo

clownin' around
Veteran
Joined
Jun 5, 2019
Messages
64
Reaction score
18
First Language
English
Primarily Uses
RMVXA
hrmm... i didnt get any errors this time but the script itself doesnt seem to work... the dash is disabled completely... but thank you for putting it the format i needed! :0)
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,982
Reaction score
665
First Language
English
Primarily Uses
RMVXA
the dash is disabled completely
How are you trying to activate/use the dash?
This script changes it so that just pressing the shift once will turn it on. press shift again and it turns off.
It would only never work if you have disable dash called somewhere
 

whotfisjojo

clownin' around
Veteran
Joined
Jun 5, 2019
Messages
64
Reaction score
18
First Language
English
Primarily Uses
RMVXA
im using the shift key to dash. i went through my scripts that have anything to do with movement and after removing them it doesnt seem to make any difference. i also checked any parallel processes and common events & i removed the toggle dash script as well and the dash seems to work just fine as it regularly does :0/
the only script that is disabling the dash feature is this toggle dash script
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,982
Reaction score
665
First Language
English
Primarily Uses
RMVXA
Works fine. So it will be up to you to find the issue, unless you want to send me you project to tinker with.
 

whotfisjojo

clownin' around
Veteran
Joined
Jun 5, 2019
Messages
64
Reaction score
18
First Language
English
Primarily Uses
RMVXA
thank you but i will try to figure it out myself... i'll be sure to post a solution here if i find one! thank you for your help! :0)
 

whotfisjojo

clownin' around
Veteran
Joined
Jun 5, 2019
Messages
64
Reaction score
18
First Language
English
Primarily Uses
RMVXA
i'll be sure to post a solution here if i find one!
the problem was this script: "Smart(er) Followers v1.0a"
dont see exactly why it would affect that but hey- found the problem!
(im just going to keep the dash script and remove the smart followers one)
this thread can now be closed :0)
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
8,267
Reaction score
5,444
First Language
Dutch
Primarily Uses
RMXP

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.

 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts

When you don't find any time to work... :kaocry:
First Ten Minutes of my Caretaker inspired game

Finally, I got a good Gmail message [from smg5urded]
"This game does look a bit plain, but, I'm sure this does not destroy the experience as a whole. Monsters fit your style of game-play, mapping looks crude but I'm sure you can make it better if you do a remake of Forgotten Eclipse"
Going to start a new project today. OMG, it will be on RPGMaker MV. :D
Paid material WIP~
EysZO9cVEAEWy9W

This is Alchemy pack.
I decided to add more witch elements.

Now we have wooden props, candles, pots, and potion bottles.
We also want to add herbs, kettles, fireplaces, etc.

Forum statistics

Threads
110,397
Messages
1,052,952
Members
143,454
Latest member
pinhapower
Top