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,984
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,984
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,984
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,291
Reaction score
5,461
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 Posts

Latest Profile Posts

Yay, our new game, Causality is finally released on Steam!
A good way to practice writing is to write "flash fiction"; very short stories. Link
[CM]
5VaUMjAFpz1I6fSsgDrfJc.jpg

Title is star.
Dam, does the night get to me, I sound and look like a monster. Its 3:54 am right now...I need sleep...or...coffee.

Forum statistics

Threads
110,488
Messages
1,053,675
Members
143,582
Latest member
beru
Top