Danny0317
Todavía no sé español ;-;
Idea de The Miscellaneous Script Thread - The PokéCommunity Forums.
El punto de este tema as poner scripts para que otras pesonas usen (pero no cosas como scripts do tu storia o algo asi, cosas como Vendedor de Pokemones y algo asi.)
Si quieres añadir uno, utilice esto:
Los scripts
El punto de este tema as poner scripts para que otras pesonas usen (pero no cosas como scripts do tu storia o algo asi, cosas como Vendedor de Pokemones y algo asi.)
Si quieres añadir uno, utilice esto:
Código:
[B]Nombre:[/B]
[B]ROM:[/B]
[B]Effecto:[/B]
[B]Script:[/B]
[B]Commentarios y errores:[/B]
[B]Creditos:[/B]
Nombre: Escojer Pokemon para pelea
Nombre: Mostrar animacion de HM para pokemon que no es tuyo.
Nombre: Pokéradio
ROM:Esmeralda
Ejemplo:
Effecto:Escoje pokemon para una pelea.
Script:
Y sin mis commentarios:
EL ASM
Commentarios y errores:Si pierdes, tus pokemones se quedan. Para arreglar eso, puedes poner un sethealingplace en el script, y en la ciudad que van cuando pierden puedes poner un script de nivel con "special 0x29"
Creditos:Diegoisawsome por el ASM. necesario y Dark Sneasel, pero no es necesario.
Ejemplo:
Effecto:Escoje pokemon para una pelea.
Script:
#dynamic 0xE40000
#org @start
lock
faceplayer
msgbox @1 0x6 //just had that there, obviously not mandatory
goto @choose
end
#org @choose
special 0x28 //stores party in RAM
fadescreen 0x1
special 0x2A //Pokemon choosing screen
waitstate
compare LASTRESULT 0x0
if 0x5 goto @it //if all went well, like no cancelling, go to @it
special 0x29 //restores party (In my case it won't be mandatory since I'm forcing the player to choose in @no, obviously you can change that like in the steven battle where he tells you to get ready or something
goto @no //if something bad did happen, goto @no
#org @it
callasm 0x(offset + 1) //sets proper slot for 0xEA
special 0xFB //removes all other Pokémon
msgbox @3 0x6
trainerbattle 0x3 0x10 0x0 @Win
msgbox @4 0x6
setvar 0x8004 0x6
special 0xEA //store new stats into temporary space
special 0x29 //restore your party from temporary space
release
end
#org @Win
= Oh no.
#org @4
= I will now return your party.
#org @3
= Battle begin.
#org @no
msgbox @2 0x6
goto @choose //here for all of @no you can make it do something else, and it will be fine because your party has already been restored back with special 0x29
#org @2
= I said choose.
#org @1
= Choose.
#org @start
lock
faceplayer
msgbox @1 0x6 //just had that there, obviously not mandatory
goto @choose
end
#org @choose
special 0x28 //stores party in RAM
fadescreen 0x1
special 0x2A //Pokemon choosing screen
waitstate
compare LASTRESULT 0x0
if 0x5 goto @it //if all went well, like no cancelling, go to @it
special 0x29 //restores party (In my case it won't be mandatory since I'm forcing the player to choose in @no, obviously you can change that like in the steven battle where he tells you to get ready or something
goto @no //if something bad did happen, goto @no
#org @it
callasm 0x(offset + 1) //sets proper slot for 0xEA
special 0xFB //removes all other Pokémon
msgbox @3 0x6
trainerbattle 0x3 0x10 0x0 @Win
msgbox @4 0x6
setvar 0x8004 0x6
special 0xEA //store new stats into temporary space
special 0x29 //restore your party from temporary space
release
end
#org @Win
= Oh no.
#org @4
= I will now return your party.
#org @3
= Battle begin.
#org @no
msgbox @2 0x6
goto @choose //here for all of @no you can make it do something else, and it will be fine because your party has already been restored back with special 0x29
#org @2
= I said choose.
#org @1
= Choose.
#dynamic 0xE40000
#org @start
lock
faceplayer
goto @choose
end
#org @choose
special 0x28
fadescreen 0x1
special 0x2A
waitstate
compare LASTRESULT 0x0
if 0x5 goto @it
special 0x29
goto @no
#org @it
callasm 0x(offset + 1) //sets proper slot for 0xEA
special 0xFB //removes all other Pokémon
msgbox @3 0x6
trainerbattle 0x3 0x10 0x0 @Win
msgbox @4 0x6
setvar 0x8004 0x6
special 0xEA //store new stats into temporary space
special 0x29 //restore your party from temporary space
release
end
#org @no
#org @start
lock
faceplayer
goto @choose
end
#org @choose
special 0x28
fadescreen 0x1
special 0x2A
waitstate
compare LASTRESULT 0x0
if 0x5 goto @it
special 0x29
goto @no
#org @it
callasm 0x(offset + 1) //sets proper slot for 0xEA
special 0xFB //removes all other Pokémon
msgbox @3 0x6
trainerbattle 0x3 0x10 0x0 @Win
msgbox @4 0x6
setvar 0x8004 0x6
special 0xEA //store new stats into temporary space
special 0x29 //restore your party from temporary space
release
end
#org @no
EL ASM:
Código:
.text
.align 2
.thumb
.thumb_func
.global ParkHack
start: ldr r0, addr1
ldr r1, val1
ldr r0, [r0]
add r0, r0, r1
ldr r1, addr2
ldrh r1, [r1]
strb r1, [r0]
mov r1, #0x0
strb r1, [r0, #0x2]
strb r1, [r0, #0x4]
strb r1, [r0, #0x6]
strb r1, [r0, #0x8]
strb r1, [r0, #0xA]
bx lr
.align 2
addr1: .word 0x03005D90
addr2: .word 0x020375F0
val1: .word 0x00000CAA
Creditos:Diegoisawsome por el ASM. necesario y Dark Sneasel, pero no es necesario.
ROM:EM/FR
Effecto:Click
Script:
Commentarios y errores: Muestra la animacion de OW de el jugador pero puedes mover la camara 7 blocks arriba como yo hice. Tambien, para FR tienes que cambiar "special 0x28" con "special 0x27" y "special 0x29" con "special 0x28"
Creditos:Yo, pero no es necesario.
Effecto:Click
Script:
Código:
special 0x28 //guarda tus pokemones en el RAM,
callasm 0x8E40AA1 //de Hackmew, borra tus pokemones
callasm 0x8E40AA1
callasm 0x8E40AA1
callasm 0x8E40AA1
callasm 0x8E40AA1
callasm 0x8E40AF1 // de hackmew, borra tu ultimo pokemon
givepokemon 0x15F 0xA 0x0 0x0 0x0 0x0 //El pokemon que quieres que apaersca
checkattack 0x96 //pon un attacke que tu saves que el pokemon va a tener 100%
bufferpokemon 0x0 LASTRESULT
setanimation 0x0 LASTRESULT
doanimation 0x25
waitstate
special 0x29 //te devuelve tus pokemones
Creditos:Yo, pero no es necesario.
ROM: FR
Comentarios y errores: Es una Pokéradio, y reproduce música xD!
Creditos: Foxz
Comentarios y errores: Es una Pokéradio, y reproduce música xD!
Código:
#dynamic 0x800000
#org @inicio
msgbox @msj1 0x5
compare LASTRESULT 0x1
if 0x1 goto @sip
release
end
#org @sip
random 0x15
compare LASTRESULT 0x0
if 0x1 goto @0
compare LASTRESULT 0x1
if 0x1 goto @1
compare LASTRESULT 0x2
if 0x1 goto @2
compare LASTRESULT 0x3
if 0x1 goto @3
compare LASTRESULT 0x4
if 0x1 goto @4
compare LASTRESULT 0x5
if 0x1 goto @5
compare LASTRESULT 0x6
if 0x1 goto @6
compare LASTRESULT 0x7
if 0x1 goto @7
compare LASTRESULT 0x8
if 0x1 goto @8
compare LASTRESULT 0x9
if 0x1 goto @9
compare LASTRESULT 0xA
if 0x1 goto @A
compare LASTRESULT 0xB
if 0x1 goto @B
compare LASTRESULT 0xC
if 0x1 goto @C
compare LASTRESULT 0xD
if 0x1 goto @D
compare LASTRESULT 0xE
if 0x1 goto @E
compare LASTRESULT 0xF
if 0x1 goto @F
release
end
#org @0
playsong 0x14D 0x0
release
end
#org @1
playsong 0x146 0x0
release
end
#org @2
playsong 0x134 0x0
release
end
#org @3
playsong 0x138 0x0
release
end
#org @4
playsong 0x117 0x0
release
end
#org @5
playsong 0x123 0x0
release
end
#org @6
playsong 0x13A 0x0
release
end
#org @7
playsong 0x130 0x0
release
end
#org @8
playsong 0x111 0x0
release
end
#org @9
playsong 0x118 0x0
release
end
#org @A
playsong 0x11E 0x0
release
end
#org @B
playsong 0x132 0x0
release
end
#org @C
playsong 0x116 0x0
release
end
#org @D
playsong 0x135 0x0
release
end
#org @E
playsong 0x11A 0x0
release
end
#org @F
playsong 0x124 0x0
release
end
#org @msj1
= Es una Pokéradio. ¿Te gustaría\nencenderla?