• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Archive] Script help thread

Status
Not open for further replies.
Hey Guys
quick question
how does the shiny hack work
 
Hey Guys
quick question
how does the shiny hack work

You mean to battle a shiny Pokemon?
If so,
Here is an example of a script : (thethethethe's tutorial)
Spoiler:

You use ASM function, and convert it to XSE or Pokescript.
For a shiny battle, you use
callasm 0x71B771 to begin with it, and end with it.

 
Hey guys, I need some help. For some reason this script isn't quite working. Problem: After $poocho, the script just ends. P.S. This is on Ruby.

Script:
Code:
#ORG $begin
lock
faceplayer
writebytetooffset 0x02 0x02026B00
writebytetooffset 0x03 0x02026B01
writebytetooffset 0xDA 0x02024EBE
writebytetooffset 0x67 0x02026A5A
message $yesno
boxset 5
compare LASTRESULT 1
if B_True goto $poochy
#raw 0xCA
message $no
boxset 6
#raw 0xCB
release
end

#ORG $yesno
$yesno 1 = Would you like to take the\nPoochyena with you?

#ORG $poochy
message $poocho
boxset 6
setflag 0x828
givepokemon 286 5 0xD
#raw 0xCA
message $gotpooch
boxset 6
#raw 0xCB
applymovement 0x01 $dis
pausemove 0
applymovement 0x02 $dis1
pausemove 0
applymovement 0xFF $exe
pausemove 0
message $talk
boxset 6
fadescreen 0
warp 0x0 0x29
release
end

#ORG $no
$no 1 = \v\h01 did not take the Poochyena.

#ORG $poocho
$poocho 1 = Poochyena: Poochy, pooch!

#ORG $gotpooch
$gotpooch 1 = \v\h01 took the Poochyena.

#ORG $dis
#raw 0x54 0xFE

#ORG $dis1
#raw 0x54 0xFE

#ORG $exe
#raw 0x56 0xFE

#ORG $talk
$talk 1 = \c\h01\h06(\v\h01: How am I going to get\nout of here?\pOh! what's happening?

P.S.S. When I open it in XSE it shows this:
Code:
'-----------------------
#org 0x6B0E5B
lock
faceplayer
writebytetooffset 0x2 0x2026B00
writebytetooffset 0x3 0x2026B01
writebytetooffset 0xDA 0x2024EBE
writebytetooffset 0x67 0x2026A5A
msgbox 0x86B0E95 '"Would you like to take the\nPoochye..."
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x86B0F89

'-----------------------
#org 0x6B0F89
msgbox 0x86B0FFF '"Poochyena: Poochy, pooch!"

'---------
' Strings
'---------
#org 0x6B0E95
= Would you like to take the\nPoochyena with you?

#org 0x6B0FFF
= Poochyena: Poochy, pooch!
 
Hay guys I made this script but it doesn't work.
On FR
Code:
#Dynamic 0x2F0318

#org @start
checkflag 0x828
if 0x0 goto @get
if 0x1 goto @got
end

#org @get
lock
message @wait
boxset 0x6
applymovement 0xFF @move
waitmovement 0x0
goto @start2
release
end

#Org @start2
lock
faceplayer
checkflag 0x828
if 0x0 goto @poke
if 0x1 goto @nopoke

#org @poke
message @need
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
setflag 0x828
message @recived
boxset 0x6
fanfare 0x13E
waitfanfare
message @recived2
boxset 0x6
release
end



#org @nopoke
message @look
boxset 0x6
release
end

#org @got
release
end

#org @recived
= \v\h1 got a Charmander.

#org @recived2
= Look after it.

#org @look
= Are you looking after your Charmander?

#org @need
= You need a pokemon before going out.


#org @move
#raw 0x11 0xFE

#org @wait
= Wait
Could you help me out?
 
Hay guys I made this script but it doesn't work.
On FR
Code:
#Dynamic 0x2F0318

#org @start
checkflag 0x828
if 0x0 goto @get
if 0x1 goto @got
end

#org @get
lock
message @wait
boxset 0x6
applymovement 0xFF @move
waitmovement 0x0
goto @start2
release
end

#Org @start2
lock
faceplayer
checkflag 0x828
if 0x0 goto @poke
if 0x1 goto @nopoke

#org @poke
message @need
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
setflag 0x828
message @recived
boxset 0x6
fanfare 0x13E
waitfanfare
message @recived2
boxset 0x6
release
end



#org @nopoke
message @look
boxset 0x6
release
end

#org @got
release
end

#org @recived
= \v\h1 got a Charmander.

#org @recived2
= Look after it.

#org @look
= Are you looking after your Charmander?

#org @need
= You need a pokemon before going out.


#org @move
#raw 0x11 0xFE

#org @wait
= Wait
Could you help me out?

umm idk cuz i use pokescript. but arnt the offsets supposed to be
like

#org @wait
@wait 1 = blah blah blah?

or do u not do that in XSE
 
Hay guys I made this script but it doesn't work.
On FR
Code:
#Dynamic 0x2F0318

#org @start
checkflag 0x828
if 0x0 goto @get
if 0x1 goto @got
end

#org @get
lock
message @wait
boxset 0x6
applymovement 0xFF @move
waitmovement 0x0
goto @start2
release
end

#Org @start2
lock
faceplayer
checkflag 0x828
if 0x0 goto @poke
if 0x1 goto @nopoke

#org @poke
message @need
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
setflag 0x828
message @recived
boxset 0x6
fanfare 0x13E
waitfanfare
message @recived2
boxset 0x6
release
end



#org @nopoke
message @look
boxset 0x6
release
end

#org @got
release
end

#org @recived
= \v\h1 got a Charmander.

#org @recived2
= Look after it.

#org @look
= Are you looking after your Charmander?

#org @need
= You need a pokemon before going out.


#org @move
#raw 0x11 0xFE

#org @wait
= Wait
Could you help me out?

what do you mean by doesn't work?? have u entered the var no. and unknown no. in advance map?
 
Hey, dratii, you don't need another "if". You can just put the "got" part underneath.
 
Thanks works now. It didn't say that in the tut.
 
Spoiler:


I was bored and did this script.
The wildbattle part doesn't activate. I talk to the spearow, and it only disappears.
Is there a problem?
 
Ah, you got the secret I used in my hack :). Anyway, your scripts all wrong. You do not put strings like the pokewitch way.
I fixed it don't worry, and yessir I sure did!

Spoiler:


I was bored and did this script.
The wildbattle part doesn't activate. I talk to the spearow, and it only disappears.
Is there a problem?
Fixes in Bold...
 
I figured it out 5 seconds before you posted. lol
But thanks for the reply Tb Pro.
 
Hey Gus I'm having some difficulties with this script
it doesn't do the applymovements

'-----------------------
#org 0x8000DE
checkflag 0x828
if 0x0 goto 0x8800899
if 0x1 goto 0x8800902
end

'-----------------------
#org 0x800899
lockall
special 0x113
msgbox 0x88008BA '"I recon I should check out that mac..."
callstd 0x3
applymovement MOVE_CAMERA 0x88008E5
applymovement MOVE_PLAYER 0x88008FF
special 0x114
releaseall
end

'-----------------------
#org 0x800902
release
end


'-----------
' Movements
'-----------
#org 0x8008E5
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw FE 'End of Movements

#org 0x8008FF
#raw 11 'Step Up (Normal)
#raw FE 'End of Movements


'---------
' Strings
'---------
#org 0x8008BA
= I reckon I should check out that\nmachine.
 
Hey Gus I'm having some difficulties with this script
it doesn't do the applymovements

'-----------------------
#org 0x8000DE
checkflag 0x828
if 0x0 goto 0x8800899
if 0x1 goto 0x8800902
end

'-----------------------
#org 0x800899
lockall
special 0x113
msgbox 0x88008BA '"I recon I should check out that mac..."
callstd 0x3
applymovement MOVE_CAMERA 0x88008E5
applymovement MOVE_PLAYER 0x88008FF
special 0x114
releaseall
end

'-----------------------
#org 0x800902
release
end


'-----------
' Movements
'-----------
#org 0x8008E5
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw FE 'End of Movements

#org 0x8008FF
#raw 11 'Step Up (Normal)
#raw FE 'End of Movements


'---------
' Strings
'---------
#org 0x8008BA
= I reckon I should check out that\nmachine.

The first mistake is that you forgot th waitmovement 0x0.
And a huge mistake, when you use camera script, you should add movements for the camera to return back to the player(same movements but the other way).
Post the un-compiled script please.
 
ok heres the uncompiled script

'-----------------------
#Dynamic 0x800000

#org @start
checkflag 0x828
if 0x0 goto @hey!
if 0x1 goto @end
end

#org @hey!
lockall
special 0x113
msgbox @talk
applymovement 0x7F @move
waitmovement 0x0
applymovement 0xFF @back
special 0x114
releaseall
end

#org @talk
= I reckon I should check out \nthat machine.

#org @move
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE


#org @back
#raw 0x11 0xFE

#org @end
release
end
 
Spoiler:


Try this.
And check if there is grammatical mistakes.
Hope that helps.
 
Thanks it works perfectly
 
Status
Not open for further replies.
Back
Top