• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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.

Script Help Thread (DO NOT REQUEST SCRIPTS)

Status
Not open for further replies.

trebornosliw

Learning
516
Posts
14
Years
  • Age 31
  • Seen Jul 22, 2012
okay, so what's wrong with it.
Lol, well, that wasn't the question. Still, you've already told me what I wanted to know, I guess. I was just making sure I had it right. Thanks for your help!
@Enigma, do you mean, how do you find an offset to write it to, or how do you find the offset after you've inserted it?
 

Quickster

Dream or Drop?
351
Posts
16
Years
  • Seen Apr 4, 2016
This should be easy ebough to answer,but I dont know what Im doing wrong.
I give a person an id of 1001.
I set the flag in one script so hes not visible in the map he is in.
Next,in another map,I clear the flag 1001. He still is not visible.
I want him to be visible,so what do i do?

EDIT: I fixed this.-_-
I changed the flags from 1001 to 201.But for future refrences,why didnt this work with 1001?
 
Last edited:

trebornosliw

Learning
516
Posts
14
Years
  • Age 31
  • Seen Jul 22, 2012
This should be easy ebough to answer,but I dont know what Im doing wrong.
I give a person an id of 1001.
I set the flag in one script so hes not visible in the map he is in.
Next,in another map,I clear the flag 1001. He still is not visible.
I want him to be visible,so what do i do?

EDIT: I fixed this.-_-
I changed the flags from 1001 to 201.But for future refrences,why didnt this work with 1001?
...wow. How did you set the hideflag, exactly? I know that can be done, but I've never tried it before. Do I just type hidesprite 0x201, setflag 0x201 in a different map, or is it more complicated than that?
As for your question, I've heard that only specific flags can be used for that kind of hidesprite, but as you may have guessed, I'm not exactly an authority in this area.
 

Quickster

Dream or Drop?
351
Posts
16
Years
  • Seen Apr 4, 2016
...wow. How did you set the hideflag, exactly? I know that can be done, but I've never tried it before. Do I just type hidesprite 0x201, setflag 0x201 in a different map, or is it more complicated than that?
As for your question, I've heard that only specific flags can be used for that kind of hidesprite, but as you may have guessed, I'm not exactly an authority in this area.

Well,all I basically did was give a sprite a person id of 201. In a script I setflag 0x201.Its that simple. And if you were to hide a person in a script while in the map, you would hidesprite 0xwhatever and then setflag 0x201.
 

NarutoActor

The rocks cry out to me
1,974
Posts
15
Years
O.o Yeah hidesprites are super easy but I never tryed to un hide them :P But my guess is try adding the special that reloads the map. The one used for setmaptile.
 

TB Pro

Old-timer
2,708
Posts
19
Years
This should be easy ebough to answer,but I dont know what Im doing wrong.
I give a person an id of 1001.
I set the flag in one script so hes not visible in the map he is in.
Next,in another map,I clear the flag 1001. He still is not visible.
I want him to be visible,so what do i do?

EDIT: I fixed this.-_-
I changed the flags from 1001 to 201.But for future refrences,why didnt this work with 1001?
Showsprite 0x[people number]
Clearflag 0x[ID no.]
 

~Teh Panda~

Back in hacktion
918
Posts
16
Years
  • Seen Jul 20, 2022
Wow.... My level script = failure......

What is meant to happen, read this script!
What screws up? It just doesn't work. I set up the flag in AMap to 7033. The script type is 02

Script:
Code:
#dynamic 0x760000

#org @start
lockall
applymovement 0xFF @Surprised
waitmovement 0x0
Message @YellingMom 0x6
applymovement 0xFF @ToTV
waitmovement 0x0
message @ShowOn 0x6
fadescreen 0x1
special 0x113
applymovement 0x7F @MoveCamera1
waitmovement 0x7F
fadescreen 0x0
special 0x114
special 0x140
showpokepic 0x115 0x0A 0x03
message @OakSpeaks 0x6
hidepokepic
fadescreen 0x1
special 0x113
applymovement 0x7F @MoveCamera2
waitmovement 0x7F
fadescreen 0x0
setvar 0x7033 0x01
release
end

#org @Surprised
#raw 0x56 0xFE

#org @ToTV
#raw 0x07 0x07 0x04 0x07 0x01 0xFE

#org @MoveCamera1
#raw 0x06 0x06 0x06 0x06 0x06 0x06 0x06 0x06 0x06 0x06 0x06 0x06 0x06 0x06 0xFE

#org @MoveCamera2
#raw 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0xFE

#org @YellingMom
= You dont get to

#org @ShowOn
= You dont get to

#org @OakSpeaks
= You dont get to

Decompiled:
Code:
'---------------
#org 0x760000
lockall
applymovement 0xFF 0x8760063
waitmovement 0x0
msgbox 0x876008D 0x6 '"MOM: Hey [player]!!!\nProfessor Oa..."
applymovement 0xFF 0x8760066
waitmovement 0x0
msgbox 0x876011A 0x6 '"The TV turns on and you begin to\n..."
fadescreen 0x1
special 0x113
applymovement 0x7F 0x876006D
waitmovement 0x7F
fadescreen 0x0
special 0x114
special 0x140
showpokepic 0x115 0xA 0x3
msgbox 0x8760146 0x6 '"OAK: Hello there young trainer! I\..."
hidepokepic
fadescreen 0x1
special 0x113
applymovement 0x7F 0x876007D
waitmovement 0x7F
fadescreen 0x0
setvar 0x7033 0x1
release
end


'---------
' Strings
'---------
#org 0x76008D
= You dont get to

#org 0x76011A
= You dont get to

#org 0x760146
= You dont get to


'-----------
' Movements
'-----------
#org 0x760063
#raw 0x56 'Exclamation Mark (!)
#raw 0xFE 'End of Movements

#org 0x760066
#raw 0x7 'Step Right (Slow)
#raw 0x7 'Step Right (Slow)
#raw 0x4 'Step Down (Slow)
#raw 0x7 'Step Right (Slow)
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements

#org 0x76006D
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0xFE 'End of Movements

#org 0x76007D
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0xFE 'End of Movements
 

TB Pro

Old-timer
2,708
Posts
19
Years
Wow.... My level script = failure......

What is meant to happen, read this script!
What screws up? It just doesn't work. I set up the flag in AMap to 7033. The script type is 02

Script:
Code:
#dynamic 0x760000

#org @start
lockall
applymovement 0xFF @Surprised
waitmovement 0x0
Message @YellingMom 0x6
applymovement 0xFF @ToTV
waitmovement 0x0
message @ShowOn 0x6
fadescreen 0x1
special 0x113
applymovement 0x7F @MoveCamera1
waitmovement 0x7F
fadescreen 0x0
special 0x114
special 0x140
showpokepic 0x115 0x0A 0x03
message @OakSpeaks 0x6
hidepokepic
fadescreen 0x1
special 0x113
applymovement 0x7F @MoveCamera2
waitmovement 0x7F
fadescreen 0x0
setvar 0x7033 0x01
release
end

#org @Surprised
#raw 0x56 0xFE

#org @ToTV
#raw 0x07 0x07 0x04 0x07 0x01 0xFE

#org @MoveCamera1
#raw 0x06 0x06 0x06 0x06 0x06 0x06 0x06 0x06 0x06 0x06 0x06 0x06 0x06 0x06 0xFE

#org @MoveCamera2
#raw 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0xFE

#org @YellingMom
= You dont get to

#org @ShowOn
= You dont get to

#org @OakSpeaks
= You dont get to

Decompiled:
Code:
'---------------
#org 0x760000
lockall
applymovement 0xFF 0x8760063
waitmovement 0x0
msgbox 0x876008D 0x6 '"MOM: Hey [player]!!!\nProfessor Oa..."
applymovement 0xFF 0x8760066
waitmovement 0x0
msgbox 0x876011A 0x6 '"The TV turns on and you begin to\n..."
fadescreen 0x1
special 0x113
applymovement 0x7F 0x876006D
waitmovement 0x7F
fadescreen 0x0
special 0x114
special 0x140
showpokepic 0x115 0xA 0x3
msgbox 0x8760146 0x6 '"OAK: Hello there young trainer! I\..."
hidepokepic
fadescreen 0x1
special 0x113
applymovement 0x7F 0x876007D
waitmovement 0x7F
fadescreen 0x0
setvar 0x7033 0x1
release
end


'---------
' Strings
'---------
#org 0x76008D
= You dont get to

#org 0x76011A
= You dont get to

#org 0x760146
= You dont get to


'-----------
' Movements
'-----------
#org 0x760063
#raw 0x56 'Exclamation Mark (!)
#raw 0xFE 'End of Movements

#org 0x760066
#raw 0x7 'Step Right (Slow)
#raw 0x7 'Step Right (Slow)
#raw 0x4 'Step Down (Slow)
#raw 0x7 'Step Right (Slow)
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements

#org 0x76006D
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0xFE 'End of Movements

#org 0x76007D
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0xFE 'End of Movements

Oookay then. I'm not understanding wtf is up with your text in the decompiled version. Where did the "MOM: Hey [player]!!! Professor Oak" ect. come from. Is that you saying we don't get to read the text? xD Anyways, the last camera move needs a special 0x114 after it. Also try waitmovement 0 instead of 0x7F. That's all I could find, but follow Cooley's tut to see if anything is wrong. Sorry...
 

~Teh Panda~

Back in hacktion
918
Posts
16
Years
  • Seen Jul 20, 2022
Oookay then. I'm not understanding wtf is up with your text in the decompiled version. Where did the "MOM: Hey [player]!!! Professor Oak" ect. come from. Is that you saying we don't get to read the text? xD Anyways, the last camera move needs a special 0x114 after it. Also try waitmovement 0 instead of 0x7F. That's all I could find, but follow Cooley's tut to see if anything is wrong. Sorry...

Oh darn yeah your not supposed to see that, and yeah on the cameras. Also I will check his tut ;P
 

trebornosliw

Learning
516
Posts
14
Years
  • Age 31
  • Seen Jul 22, 2012
Well,all I basically did was give a sprite a person id of 201. In a script I setflag 0x201.Its that simple. And if you were to hide a person in a script while in the map, you would hidesprite 0xwhatever and then setflag 0x201.

Wow, awesome! I've got to try that.
Btw, the special Naruto is talking about: special 0x8E.
 

Co500

Nostalgia Edition
563
Posts
15
Years
this simple script for some reason isnt working im sure its obvious but i cant find the problem.
Spoiler:

As soon as the script is executed the game freezes but its supposed to have a bit of text and then warp to viridian city it might be the size of bytes i used 300 i think

EDIT: never mind problem fixed
 
Last edited:

~Teh Panda~

Back in hacktion
918
Posts
16
Years
  • Seen Jul 20, 2022
Here is the decompiled level script Harry:

Code:
aw pointer 0x8760000
#raw word 0x0001

'---------------
#org 0x760000
lockall
applymovement 0xFF 0x8760063
waitmovement 0x0
msgbox 0x876008D 0x6 '"MOM: Hey [player]!!!\nProfessor Oa..."
applymovement 0xFF 0x8760066
waitmovement 0x0
msgbox 0x876011A 0x6 '"The TV turns on and you begin to\n..."
fadescreen 0x1
special 0x113
applymovement 0x7F 0x876006D
waitmovement 0x7F
fadescreen 0x0
special 0x114
special 0x140
showpokepic 0x115 0xA 0x3
msgbox 0x8760146 0x6 '"OAK: Hello there young trainer! I\..."
hidepokepic
fadescreen 0x1
special 0x113
applymovement 0x7F 0x876007D
waitmovement 0x7F
fadescreen 0x0
setvar 0x7033 0x1
release
end


'---------
' Strings
'---------
#org 0x76008D
= MOM: Hey [player]!!!\nProfessor Oak is making his\lannouncement for his open\llabaratory date! You should check\lit out if you want to be a\ltrainer.

#org 0x76011A
= The TV turns on and you begin to\nwatch...

#org 0x760146
= OAK: Hello there young trainer! I\nwill be opening up my labaratory\lfor those of you interested in\lgaining your first Pokemon! I have\lmany to chose from but know that\lmany will come. So be one of the\lfirst.


'-----------
' Movements
'-----------
#org 0x760063
#raw 0x56 'Exclamation Mark (!)
#raw 0xFE 'End of Movements

#org 0x760066
#raw 0x7 'Step Right (Slow)
#raw 0x7 'Step Right (Slow)
#raw 0x4 'Step Down (Slow)
#raw 0x7 'Step Right (Slow)
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements

#org 0x76006D
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0xFE 'End of Movements

#org 0x76007D
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0x3 'Face Right
#raw 0xFE 'End of Movements
 
19
Posts
14
Years
  • Seen Sep 7, 2010
I have 3 simple questions :) (All is PKSV)...

1. How would I create a 2 vs 2 Player Battle is PKSV?

2. How do I chose the pokemon and level of pokemon that are used in a battle? (On your opponents side)

3. How do I give a badge?
 
Last edited:

~Teh Panda~

Back in hacktion
918
Posts
16
Years
  • Seen Jul 20, 2022
I have 3 simple questions :) (All is PKSV)...

1. How would I create a 2 vs 2 Player Battle is PKSV?

2. How do I chose the pokemon and level of pokemon that are used in a battle? (On your opponents side)

3. How do I give a badge?

Read a tutorial! This thread is not for posts asking stuff like this.
 

Darthatron

巨大なトロール。
1,152
Posts
18
Years
Is this thread not for asking for help with scripts?

You are generally expected to read tutorials first, and then post a script if it has errors, then we go about helping to fix those errors. You should check out the Documents and Tutorials section before asking questions in here, or the Simple Questions thread. ^_^
 
Status
Not open for further replies.
Back
Top