Hello friends
I want to request something, can someone help me change this script to not use suffix?
example:
chopo1-montaria
be just:
mount
Thankyou very much
I want to request something, can someone help me change this script to not use suffix?
- Código:
#================================================================
#================================================================
#========================= Montaria V 1.0 =======================
#================================================================
#=======BY:Gladistony Silva======================================
#=======Criada para o forum: Aldeiarpgbr ========================
#=======A pedido de Mateus Silva ================================
#=======NÃO POSTA EM OUTRO FORUM SEM AUTORIZAÇÃO=================
#================================================================
#================================================================
module User_Edit_Skill
MONTARIA = {}
# MONTARIA[ID ACESSORIO] = ["Sufixo", bonus em Str,Agi,Dex,Int, velocidade]
# MONTARIA[5] = ['Fire', [1,10,2,0], 5]
MONTARIA[25] = ['-montaria',[1,10,2,0],5]
end
#=====================NAO EDITE ================================
class Scene_Map
alias regenerar_trans update
def update
regenerar_trans
a = $game_party.actors[0].armor4_id
if User_Edit_Skill::MONTARIA.keys.include?(a)
return if $game_party.actors[0].trans_m
$game_party.actors[0].charor = a
$game_party.actors[0].character_name += User_Edit_Skill::MONTARIA[a][0]
$game_player.refresh
$game_party.actors[0].trans_m = true
soma_montaria
else
return unless $game_party.actors[0].trans_m
b = $game_party.actors[0].charor
$game_party.actors[0].character_name.slice!(User_Edit_Skill::MONTARIA[b][0])
$game_party.actors[0].trans_m = false
$game_player.refresh
subtrair_montaria
end
end
end
def soma_montaria
a = User_Edit_Skill::MONTARIA[$game_party.actors[0].charor][1]
$game_party.actors[0].str += a[0]
$game_party.actors[0].agi += a[1]
$game_party.actors[0].dex += a[2]
$game_party.actors[0].int += a[3]
$game_player.move_speed = User_Edit_Skill::MONTARIA[$game_party.actors[0].charor][2]
end
def subtrair_montaria
a = User_Edit_Skill::MONTARIA[$game_party.actors[0].charor][1]
$game_party.actors[0].str -= a[0]
$game_party.actors[0].agi -= a[1]
$game_party.actors[0].dex -= a[2]
$game_party.actors[0].int -= a[3]
$game_player.move_speed = 4
end
class Game_Actor
attr_reader :charor
attr_reader :trans_m
alias setup_actor setup
def setup(id)
setup_actor(id)
@charor = 0
@trans_m = false
end
def charor=(charor)
@charor = charor
end
def trans_m=(trans_m)
@trans_m = trans_m
end
end
example:
chopo1-montaria
be just:
mount
Thankyou very much