Equipment changes dash speed

Tuomo L

Oldbie
Veteran
Joined
Aug 6, 2012
Messages
2,326
Reaction score
1,286
First Language
Finnish
Primarily Uses
RMMV
As mentioned, I don't think I have seen something like this been done. See, I have these winged fast boots which would make you dash incredible speeds, but I haven't found a script that alters the speed of your dashing. 

This could also be expanded to include a negative effect to dashing too, if you wear really heavy armor.
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
This is the default implemention of Game_CharacterBase.real_move_speed. It can bet altered or extended to fit your needs.

Code:
class Game_CharacterBase	def real_move_speed		@move_speed + (dash? ? 1 : 0)	endend
 

Tuomo L

Oldbie
Veteran
Joined
Aug 6, 2012
Messages
2,326
Reaction score
1,286
First Language
Finnish
Primarily Uses
RMMV
This is the default implemention of Game_CharacterBase.real_move_speed. It can bet altered or extended to fit your needs.

class Game_CharacterBase def real_move_speed @move_speed + (dash? ? 1 : 0) endend
How do I make the shoes when equipped change this value? 
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
854
First Language
English
Primarily Uses
RMMV
Probably not the most elegant solution, but it will work :

Code:
#==============================================================================# ** Game_CharacterBase#==============================================================================class Game_CharacterBase  unless method_defined?(:move_AqQK9lBT_gcb_real_move_speed)    alias_method(:move_AqQK9lBT_gcb_real_move_speed, :real_move_speed)  end  	def real_move_speed(*args, &block)    #                       (:weapons || :armor, item_id)    if $game_party.has_item?(:weapons, 3)      #             (dash? ? dash speed : non-dash speed)      @move_speed + (dash? ? 3 : 0)    else      move_AqQK9lBT_gcb_real_move_speed(*args, &block)    end	endend # Game_CharacterBase#==============================================================================# ** Game_Party#==============================================================================class Game_Party < Game_Unit    def has_item?(item_type, item_id)    case item_type      when :weapons        leader.weapons.include?($data_weapons[item_id])      when :armors        leader.armors.include?($data_weapons[item_id])    end  end  end # Game_Party 
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top