Olá Aldeia seu mim outra vez eu quero a versão modificada deste script em Netplay v4.9.1 Master:
- Código:
#================================================================
#================================================================
#=================Tranformação Avançada V 1.0 ===================
#================================================================
#=======BY:Gladistony Silva======================================
#=======Criada para o forum: Aldeiarpgbr ========================
#=======A pedido de Lukas Uchiha ================================
#=======NÃO POSTA EM OUTRO FORUM SEM AUTORIZAÇÃO=================
#================================================================
#================================================================
module User_Edit_Skill
TRANSFOR = {}
# TRANSFOR[ID SKILL] = ["Nome do char que vira", Tempo, custo por segundo, bonus em Str,Agi,Dex,Int]
# TRANSFOR[5] = ['Fire', 2, 1, [1,10,2,0]]
TRANSFOR[5] = ['Fire', 2, 1, [1,10,2,0]]
end
#=====================NAO EDITE ================================
class Scene_Map
alias regenerar_trans update
def update
regenerar_trans
contagem if @count == 20
end
end
def contagem
return if not $game_party.actors[0].tranfor
if $game_party.actors[0].time > 0
$game_party.actors[0].time -= 1
if $game_party.actors[0].sp < User_Edit_Skill::TRANSFOR[$game_party.actors[0].magia][2]
$game_party.actors[0].character_name = $game_party.actors[0].charo
$game_party.actors[0].tranfor = false
subtrair_poder
else
$game_party.actors[0].sp -= User_Edit_Skill::TRANSFOR[$game_party.actors[0].magia][2]
end
else
$game_party.actors[0].character_name = $game_party.actors[0].charo
$game_party.actors[0].tranfor = false
subtrair_poder
end
end
def soma_poder
a = User_Edit_Skill::TRANSFOR[$game_party.actors[0].magia][3]
$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]
end
def subtrair_poder
a = User_Edit_Skill::TRANSFOR[$game_party.actors[0].magia][3]
$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]
end
class Game_Actor
attr_reader :tranfor
attr_reader :charo
attr_reader :time
attr_reader :magia
alias setup_actor setup
def setup(id)
setup_actor(id)
@tranfor = false
@charo = ''
@time = 0
@magia = 0
end
def tranfor=(tranfor)
@tranfor = tranfor
end
def charo=(charo)
@charo = charo
end
def time=(time)
@time = time
end
def magia=(magia)
@magia = magia
end
end
class Game_Battler
alias skill_trans can_use_skill?
def can_use_skill?(skill)
a = skill_trans(skill)
if User_Edit_Skill::TRANSFOR.keys.include?(skill.id) and a
return false if $game_party.actors[0].tranfor
$game_party.actors[0].charo = $game_party.actors[0].character_name
$game_party.actors[0].character_name = User_Edit_Skill::TRANSFOR[skill.id][0]
$game_party.actors[0].tranfor = true
$game_party.actors[0].magia = skill.id
soma_poder
$game_party.actors[0].time = User_Edit_Skill::TRANSFOR[skill.id][1]
end
return a
end
end