Boots of Dashing?

Grinn

The Game Dev Wonder
Veteran
Joined
May 5, 2012
Messages
66
Reaction score
17
First Language
English
Primarily Uses
Hello! So I have a problem. I am trying to give the players a "boots of dashing" (or something like that) item. Is there a way to globally disable dashing (even just by disallowing it with the map options on a per map basis) EXCEPT when they are wearing the boots?

The best I could come up with is something like a parallel process common event that increases movement speed if shift is being pressed AND the item is worn (ala conditional branches). It's really a hacky way to do it.

Any thoughts?
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
797
Reaction score
350
First Language
English
Primarily Uses
N/A
You can edit line 139 of Game_Player to do a check for a switch.

Then turn on said switch when the item is equipped via Common Events.
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
If possible, i would never directly edit the base scripts provided with the maker. Makes it much harder to revert your changes later on.

try adding this script under Materials, above Main:

class Game_Player < Game_Character    alias :original_dash? :dash?    def dash?        original_dash? && $game_actors[1].armors.select{|a| a.id == 5}.any?    endend
This disables dashing as long as the actor with id 1 isn't wearing the armor with id 5.
 

Grinn

The Game Dev Wonder
Veteran
Joined
May 5, 2012
Messages
66
Reaction score
17
First Language
English
Primarily Uses
If possible, i would never directly edit the base scripts provided with the maker. Makes it much harder to revert your changes later on.

try adding this script under Materials, above Main:

class Game_Player < Game_Character    alias :original_dash? :dash?    def dash?        original_dash? && $game_actors[1].armors.select{|a| a.id == 5}.any?    endendThis disables dashing as long as the actor with id 1 isn't wearing the armor with id 5.
Oh man, you are awesome. Let me test that out. I'll edit this comment if it works.

Edit: It totally works and you are my savior. Thank you SO much!
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,977
Members
137,563
Latest member
cexojow
Top