En vista que el RPG esta medio muerto y de que no e subido ningún aporte, hoy les traigo un menú táctil.
Pensaran que es como el otro de doble pantalla....pero NO
Este menú esta en la primera pantalla :D
Requisitos:
[LIST=1]
Tener el script de Mouse
[/LIST]
Bien espesemos.
Lo primero que hay que hacer es borrar el script que dice "PokemonPauseMenu".
Lo segundo es insertar el nuevo script, con el nombre que quieran.
Aquí esta:
##############################################################################
##############################################################################
####### Script Menu Tactil ###################################################
####### En Primera Pantalla ##################################################
##############################################################################
######## BY: VGS #############################################################
##############################################################################
if $DEBUG
@sprites["debug"]=Sprite.new(@viewport)
@sprites["debug"].bitmap=BitmapCache.load_bitmap("Graphics/Pictures/debugboton")
@sprites["debug"].x=0
@sprites["debug"].y=318
end
end
#-----------------------------------------------------------------------------
def pbScene
loop do
Graphics.update
Input.update
pbUpdate
if Input.trigger?(Input::B)
break
end
if Mouse.mouse_in_area?(69, 65-10, 182, 65)
@sprites["boton1"].bitmap=BitmapCache.load_bitmap("Graphics/Pictures/botonmenu2")
if Mouse.click?(1)
pbPlayDecisionSE()
PBDebug.logonerr {
scene=PokemonTrainerCardScene.new
screen=PokemonTrainerCard.new(scene)
pbFadeOutIn(99999) {
screen.pbStartScreen
@scene.pbRefresh
}
}
end
else
@sprites["boton1"].bitmap=BitmapCache.load_bitmap("Graphics/Pictures/botonmenu")
end
if Mouse.mouse_in_area?(69, 65+68-10, 182, 65)
@sprites["boton2"].bitmap=BitmapCache.load_bitmap("Graphics/Pictures/botonmenu2")
if Mouse.click?(1)
pbPlayDecisionSE()
scene=PokemonSaveScene.new
screen=PokemonSave.new(scene)
if screen.pbSaveScreen
end
end
else
@sprites["boton2"].bitmap=BitmapCache.load_bitmap("Graphics/Pictures/botonmenu")
end
if $Trainer.party.length>0
if Mouse.mouse_in_area?(69, 218-10, 182, 65)
@sprites["boton3"].bitmap=BitmapCache.load_bitmap("Graphics/Pictures/botonmenu2")
if Mouse.click?(1)
pbPlayDecisionSE()
sscene=PokemonScreen_Scene.new
sscreen=PokemonScreen.new(sscene,$Trainer.party)
hiddenmove=nil
pbFadeOutIn(99999) {
hiddenmove=sscreen.pbPokemonScreen
if hiddenmove
@scene.pbEndScene
end
}
end
else
@sprites["boton3"].bitmap=BitmapCache.load_bitmap("Graphics/Pictures/botonmenu")
end
end
if Mouse.mouse_in_area?(261, 65-10, 182, 65)
@sprites["boton4"].bitmap=BitmapCache.load_bitmap("Graphics/Pictures/botonmenu2")
if Mouse.click?(1)
pbPlayDecisionSE()
item=0
scene=PokemonBag_Scene.new
screen=PokemonBagScreen.new(scene,$PokemonBag)
pbFadeOutIn(99999) {
item=screen.pbStartScreen
if item>0
break
end
}
if item>0
Kernel.pbUseKeyItemInField(item)
return
end
end
else
@sprites["boton4"].bitmap=BitmapCache.load_bitmap("Graphics/Pictures/botonmenu")
end
if Mouse.mouse_in_area?(261, 65+68-10, 182, 65)
@sprites["boton5"].bitmap=BitmapCache.load_bitmap("Graphics/Pictures/botonmenu2")
if Mouse.click?(1)
pbPlayDecisionSE()
pbFadeOutIn(99999){
scene=PokemonOptionScene.new
screen=PokemonOption.new(scene)
screen.pbStartScreen
}
end
else
@sprites["boton5"].bitmap=BitmapCache.load_bitmap("Graphics/Pictures/botonmenu")
end
if $Trainer.pokedex
if Mouse.mouse_in_area?(261, 218-10, 182, 65)
@sprites["boton6"].bitmap=BitmapCache.load_bitmap("Graphics/Pictures/botonmenu2")
if Mouse.click?(1)
pbPlayDecisionSE()
pbFadeOutIn(99999) {
scene=PokemonPokedexScene.new
screen=PokemonPokedex.new(scene)
screen.pbStartScreen
}
end
else
@sprites["boton6"].bitmap=BitmapCache.load_bitmap("Graphics/Pictures/botonmenu")
end
end
if $Trainer.pokegear
if Mouse.mouse_in_area?(165, 289-10, 182, 65)
@sprites["boton7"].bitmap=BitmapCache.load_bitmap("Graphics/Pictures/botonmenu2")
if Mouse.click?(1)
pbFadeOutIn(99999) {
pbLoadRpgxpScene(Scene_Pokegear.new)
}
end
else
@sprites["boton7"].bitmap=BitmapCache.load_bitmap("Graphics/Pictures/botonmenu")
end
end
if $DEBUG
if Mouse.mouse_in_area?(0, 318, 82, 65)
@sprites["debug"].bitmap=BitmapCache.load_bitmap("Graphics/Pictures/debugbotonp")
if Mouse.click?(1)
pbFadeOutIn(99999) {
pbDebugMenu
}
end
else
@sprites["debug"].bitmap=BitmapCache.load_bitmap("Graphics/Pictures/debugboton")
end
end
if Mouse.mouse_in_area?(430, 318, 82, 65)
@sprites["salir"].bitmap=BitmapCache.load_bitmap("Graphics/Pictures/salirbotonp")
if Mouse.click?(1)
break
end
else
@sprites["salir"].bitmap=BitmapCache.load_bitmap("Graphics/Pictures/salirboton")
end
Me sale este error De verdad nose si puse bien el script de mouse no entiendo la parte de pegar
Mouse.update
$mouse.x = Mouse.pos_x
$mouse.y = Mouse.pos_y
Yo se como es
Esto
class PokemonOptionScene
def pbUpdate
pbUpdateSpriteHash [MENTION=24071]Sprite[/MENTION]s)
end
def pbStartScene
[MENTION=24071]Sprite[/MENTION]s={}
@viewport=Viewport.new(0,0,Graphics.width,Graphics.height)
@viewport.z=99999
[MENTION=24071]Sprite[/MENTION]s["title"]=Window_UnformattedTextPokemon.newWithSize(
_INTL("Options"),0,0,Graphics.width,64,@viewport)
[MENTION=24071]Sprite[/MENTION]s["textbox"]=Kernel.pbCreateMessageWindow
[MENTION=24071]Sprite[/MENTION]s["textbox"].letterbyletter=false
[MENTION=24071]Sprite[/MENTION]s["textbox"].text=_INTL("Speech frame {1}.",1+$PokemonSystem.textskin)
screensize1=_INTL("{1}x{2}",DEFAULTSCREENWIDTH/2,DEFAULTSCREENHEIGHT/2)
screensize2=_INTL("{1}x{2}",DEFAULTSCREENWIDTH,DEFAULTSCREENHEIGHT)
# These are the different options in the game. To add an option, define a setter and
# a getter for that option. To delete an option, comment it out or delete it.
# The game's options may be placed in any order.
[MENTION=12671]pokemon[/MENTION]Options=[
EnumOption.new(_INTL("TEXT SPEED"),[_INTL("SLOW"),_INTL("MID"),_INTL("FAST")],
proc { $PokemonSystem.textspeed }, # Getter
proc {|value|
$PokemonSystem.textspeed=value
MessageConfig.pbSetTextSpeed(pbSettingToTextSpeed(value))
} # Setter
),
EnumOption.new(_INTL("BATTLE SCENE"),[_INTL("ON"),_INTL("OFF")],
proc { $PokemonSystem.battlescene },
proc {|value| $PokemonSystem.battlescene=value }
),
EnumOption.new(_INTL("BATTLE STYLE"),[_INTL("SHIFT"),_INTL("SET")],
proc { $PokemonSystem.battlestyle },
proc {|value| $PokemonSystem.battlestyle=value }
),
EnumOption.new(_INTL("FONT STYLE"),[_INTL("Em"),_INTL("R/S"),_INTL("FRLG"),_INTL("DP")],
proc { $PokemonSystem.font },
proc {|value|
$PokemonSystem.font=value
MessageConfig.pbSetSystemFontName($VersionStyles[value])
}
),
NumberOption.new(_INTL("FRAME"),_INTL("TYPE%d"),1,$TextFrames.length,
proc { $PokemonSystem.frame },
proc {|value|
$PokemonSystem.frame=value
MessageConfig.pbSetSystemFrame($TextFrames[value])
}
),
EnumOption2.new(_INTL("MAP VIEW"),[_INTL("ORIGINAL"),_INTL("CUSTOM"),_INTL("PERSPECTIVE")],
proc { $PokemonSystem.tilemap ? $PokemonSystem.tilemap : 0 },
proc {|value|
oldvalue=$PokemonSystem.tilemap
$PokemonSystem.tilemap=value
if value!=oldvalue
ObjectSpace.each_object(TilemapLoader){|o| next if o.disposed?; o.updateClass }
end
}
),
NumberOption.new(_INTL("SPEECH FRAME"),_INTL("TYPE%d"),1,$SpeechFrames.length,
proc { $PokemonSystem.textskin },
proc {|value| $PokemonSystem.textskin=value;
MessageConfig.pbSetSpeechFrame(
"Graphics/Windowskins/"+$SpeechFrames[value]) }
)
]
[MENTION=24071]Sprite[/MENTION]s["option"]=Window_PokemonOption.new [MENTION=12671]pokemon[/MENTION]Options,0,
[MENTION=24071]Sprite[/MENTION]s["title"].height,Graphics.width,
[email]Graphics.height [MENTION=24071]Sprite[/MENTION]s["title"].height[/email])
[MENTION=24071]Sprite[/MENTION]s["option"].viewport=@viewport
[MENTION=24071]Sprite[/MENTION]s["option"].visible=true
# Get the values of each option
for i in 0.. [MENTION=12671]pokemon[/MENTION]Options.length
[MENTION=24071]Sprite[/MENTION]s["option"]= [MENTION=12671]pokemon[/MENTION]Options.get || 0)
end
pbDeactivateWindows [MENTION=24071]Sprite[/MENTION]s)
pbFadeInAndShow [MENTION=24071]Sprite[/MENTION]s) { pbUpdate }
end
Hay k sustituir en el script de Pokemon options(Borras desde la linea 347[v13] asta la linea donde pone
pbDeactivateWindows [MENTION=24071]Sprite[/MENTION]s)
y asta el end.Tras borrarlo copiaas y pegas el script k te puse antes
Yo se como es
Esto
class PokemonOptionScene
def pbUpdate
pbUpdateSpriteHash [MENTION=24071]Sprite[/MENTION]s)
end
def pbStartScene
[MENTION=24071]Sprite[/MENTION]s={}
@viewport=Viewport.new(0,0,Graphics.width,Graphics.height)
@viewport.z=99999
[MENTION=24071]Sprite[/MENTION]s["title"]=Window_UnformattedTextPokemon.newWithSize(
_INTL("Options"),0,0,Graphics.width,64,@viewport)
[MENTION=24071]Sprite[/MENTION]s["textbox"]=Kernel.pbCreateMessageWindow
[MENTION=24071]Sprite[/MENTION]s["textbox"].letterbyletter=false
[MENTION=24071]Sprite[/MENTION]s["textbox"].text=_INTL("Speech frame {1}.",1+$PokemonSystem.textskin)
screensize1=_INTL("{1}x{2}",DEFAULTSCREENWIDTH/2,DEFAULTSCREENHEIGHT/2)
screensize2=_INTL("{1}x{2}",DEFAULTSCREENWIDTH,DEFAULTSCREENHEIGHT)
# These are the different options in the game. To add an option, define a setter and
# a getter for that option. To delete an option, comment it out or delete it.
# The game's options may be placed in any order.
[MENTION=12671]pokemon[/MENTION]Options=[
EnumOption.new(_INTL("TEXT SPEED"),[_INTL("SLOW"),_INTL("MID"),_INTL("FAST")],
proc { $PokemonSystem.textspeed }, # Getter
proc {|value|
$PokemonSystem.textspeed=value
MessageConfig.pbSetTextSpeed(pbSettingToTextSpeed(value))
} # Setter
),
EnumOption.new(_INTL("BATTLE SCENE"),[_INTL("ON"),_INTL("OFF")],
proc { $PokemonSystem.battlescene },
proc {|value| $PokemonSystem.battlescene=value }
),
EnumOption.new(_INTL("BATTLE STYLE"),[_INTL("SHIFT"),_INTL("SET")],
proc { $PokemonSystem.battlestyle },
proc {|value| $PokemonSystem.battlestyle=value }
),
EnumOption.new(_INTL("FONT STYLE"),[_INTL("Em"),_INTL("R/S"),_INTL("FRLG"),_INTL("DP")],
proc { $PokemonSystem.font },
proc {|value|
$PokemonSystem.font=value
MessageConfig.pbSetSystemFontName($VersionStyles[value])
}
),
NumberOption.new(_INTL("FRAME"),_INTL("TYPE%d"),1,$TextFrames.length,
proc { $PokemonSystem.frame },
proc {|value|
$PokemonSystem.frame=value
MessageConfig.pbSetSystemFrame($TextFrames[value])
}
),
EnumOption2.new(_INTL("MAP VIEW"),[_INTL("ORIGINAL"),_INTL("CUSTOM"),_INTL("PERSPECTIVE")],
proc { $PokemonSystem.tilemap ? $PokemonSystem.tilemap : 0 },
proc {|value|
oldvalue=$PokemonSystem.tilemap
$PokemonSystem.tilemap=value
if value!=oldvalue
ObjectSpace.each_object(TilemapLoader){|o| next if o.disposed?; o.updateClass }
end
}
),
NumberOption.new(_INTL("SPEECH FRAME"),_INTL("TYPE%d"),1,$SpeechFrames.length,
proc { $PokemonSystem.textskin },
proc {|value| $PokemonSystem.textskin=value;
MessageConfig.pbSetSpeechFrame(
"Graphics/Windowskins/"+$SpeechFrames[value]) }
)
]
[MENTION=24071]Sprite[/MENTION]s["option"]=Window_PokemonOption.new [MENTION=12671]pokemon[/MENTION]Options,0,
[MENTION=24071]Sprite[/MENTION]s["title"].height,Graphics.width,
[email]Graphics.height [MENTION=24071]Sprite[/MENTION]s["title"].height[/email])
[MENTION=24071]Sprite[/MENTION]s["option"].viewport=@viewport
[MENTION=24071]Sprite[/MENTION]s["option"].visible=true
# Get the values of each option
for i in 0.. [MENTION=12671]pokemon[/MENTION]Options.length
[MENTION=24071]Sprite[/MENTION]s["option"]= [MENTION=12671]pokemon[/MENTION]Options.get || 0)
end
pbDeactivateWindows [MENTION=24071]Sprite[/MENTION]s)
pbFadeInAndShow [MENTION=24071]Sprite[/MENTION]s) { pbUpdate }
end
Hay k sustituir en el script de Pokemon options(Borras desde la linea 347[v13] asta la linea donde pone
pbDeactivateWindows [MENTION=24071]Sprite[/MENTION]s)
y asta el end.Tras borrarlo copiaas y pegas el script k te puse antes
Yo soy de los Estados Unidos. Mi español no es tan grande. He utilizado Google Translate para traducir esto, por lo que esperan algunos errores. Sin embargo, estoy usando Pokémon Essentials para hacer un juego. He visto que este guión tiene un montón de errores. Eso incluye cosas que no sé o errores de espaciado sencillo. ¿Puede alguien ayudarme? Muchas gracias.