The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking > Binary Hack Tutorials
Reload this Page thethethethe's Scripting Tutorial

Notices
For all updates, view the main page.

Binary Hack Tutorials Various tools and resources to help you develop your legacy hacks can be found here.

Ad Content
Reply
 
Thread Tools
  #226   Link to this post, but load the entire thread.  
Old July 13th, 2008 (2:38 PM).
cooley's Avatar
cooley cooley is offline
///Keepin' it simple
 
Join Date: Feb 2007
Location: United States
Age: 28
Gender: Male
Nature: Impish
Posts: 1,148
Quote:
Originally Posted by Son Sebbe View Post
Dude, would you stop your advertising for XSE?
I seen you did it in you own tutorial, (of XSE) but now to start advertise in a pokescript guide is to far, I understand your point, but I think the thing you are doing is advertising...

In the end I can tell you that I use XSE, but really... You are way over the top in my eyes...
Yeah, ok.
It's just that I haven't realized how I was speaking, until you told me.
__________________

Reply With Quote
  #227   Link to this post, but load the entire thread.  
Old July 13th, 2008 (2:40 PM).
Ryousha Ryousha is offline
Waiting for Gen 4 Remakes
 
Join Date: Jun 2007
Location: Somewhere
Nature: Naive
Posts: 954
Cooley, XSE is pretty much similiar to Pokescript except they have everything you need and has a built in tutorial. xD.

XSE needs more tutorials, but I'm sticking with pokescript.
Reply With Quote
  #228   Link to this post, but load the entire thread.  
Old July 13th, 2008 (4:59 PM).
KhaosKnight's Avatar
KhaosKnight KhaosKnight is offline
The 1 and only Khaotic Hacker
 
Join Date: Dec 2007
Nature: Relaxed
Posts: 355
Hey when using the Setmaptile command how do you get the map to reset, i used the special 0x8E, i think that is just for FR, i need this for a script in Emerald. Is the "special" value for reset different for emerald, and if so what is it?
__________________





Reply With Quote
  #229   Link to this post, but load the entire thread.  
Old July 13th, 2008 (5:09 PM). Edited July 13th, 2008 by heatransoul.
heatransoul's Avatar
heatransoul heatransoul is offline
 
Join Date: Jun 2008
Posts: 67
Quote:
Originally Posted by poddish View Post
How do you get it to work on advancemap?
This is step by step. (May make me look stupid for underestimating the human mind)
1. Open AdvanceMap
2. Load your ROM (the one that has the script compiled)
3. Make a Person/Script Event
4. Get the script offset and place it where it says 'Offset'.

Don't know where to get the offset?
1. Write the Script in NOTEPAD!
2. Save the script as the All Files type, OR IT WILL BE CALLED example.rbc.txt instead of example.rbc .
3. Write Whatever you want as the save name and add .rbc next to it.
4. Open Pokescript.
5. Open this file with Pokescript.
6. It should open Buf Rite. Choose 'Destination' from the file menu. Then choose the rom you want to compile it to.
7. Go to the menu and press a button that, when you hover over it, it says, 'Assign'.
8. Choose FF if you want new space. Or OO if you want to delete existing space.
9. Choose the first number/letter code and select 'Assign'.
10. Then Copy down the FIRST Number/Letter Code that appears and put that as the script offset. If that doesn't work, please tell me.
Reply With Quote
  #230   Link to this post, but load the entire thread.  
Old July 14th, 2008 (7:16 AM).
Aspinth's Avatar
Aspinth Aspinth is offline
Assspinth? Aspinth? Aspinth!
 
Join Date: Jul 2008
Location: Antarctica :P
Age: 30
Gender: Male
Nature: Quiet
Posts: 4
Quote:
Originally Posted by Ryousha View Post
Cooley, XSE is pretty much similiar to Pokescript except they have everything you need and has a built in tutorial. xD.

XSE needs more tutorials, but I'm sticking with pokescript.
Hey, well it's your decision. When you wonder why your scripts aren't working, and you can't decompile it to find the problem. You'll know it's pokescript...

Look, not to be off-topic here, but Irish-Witch didn't fully understand scripting before she made the program. It's not my decision though, it's yours. So, I don't care what you use, as long as you have fun scripting and create a good hack! ;)
Reply With Quote
  #231   Link to this post, but load the entire thread.  
Old July 14th, 2008 (8:48 AM).
pokemonmaster21 pokemonmaster21 is offline
 
Join Date: Jan 2008
Posts: 2
where do i get the script editor tool. i want to do a really good hack and of fire red and if anyone wants to join please tell me.i have started only a little.thxxx please tell me. also i cant make pokemart and a_text work. i have tried downloading the missing files and they still dont work.

please i need help. ^_^ really i need alot of help because i want to make a really good hack.
Reply With Quote
  #232   Link to this post, but load the entire thread.  
Old July 14th, 2008 (10:54 PM).
12345's Avatar
12345 12345 is offline
Sky
 
Join Date: Aug 2007
Gender: Male
Nature: Calm
Posts: 157
I can't hide sprites forever. After I leave there, it appears again.
Reply With Quote
  #233   Link to this post, but load the entire thread.  
Old July 15th, 2008 (4:14 AM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
If I sound angry at anyone, I don't mean it, I'm just tired. So sorry if I happen to sound angry...
Quote:
Originally Posted by pokemonmaster21 View Post
where do i get the script editor tool. i want to do a really good hack and of fire red and if anyone wants to join please tell me.i have started only a little.thxxx please tell me. also i cant make pokemart and a_text work. i have tried downloading the missing files and they still dont work.

please i need help. ^_^ really i need alot of help because i want to make a really good hack.
I'm getting so sick of saying this to new people who come to PC.
Google. Google. Google. Google.
Tools Sections at PC.
XSE
score_under's tool.
Don't just ask straight away, search first.
Also don't post things where they are irrelevant. This thread has nothing to do with Pokemart and A-text.

Quote:
Originally Posted by khaosknight1 View Post
Hey when using the Setmaptile command how do you get the map to reset, i used the special 0x8E, i think that is just for FR, i need this for a script in Emerald. Is the "special" value for reset different for emerald, and if so what is it?
I usually just rely on hacking FR/LG, you could try and find it yourself through trial and error. That's about all the information I can give.
Quote:
Originally Posted by Aspinth View Post
Hey, well it's your decision. When you wonder why your scripts aren't working, and you can't decompile it to find the problem. You'll know it's pokescript...

Look, not to be off-topic here, but Irish-Witch didn't fully understand scripting before she made the program. It's not my decision though, it's yours. So, I don't care what you use, as long as you have fun scripting and create a good hack! ;)
Considering you're new here and that was your first post, it seems like you're just jumping on the bandwagon of XSE. So it seems like you'd would never even have tried to use Pokescript, and are just repeating what other people have said. But then again, I could be wrong about that.
Honestly my opinion on this is that people can't just treat people's work like it's crap. Fair-enough, use XSE, but that doesn't give you reason to start talking about other people's programs as if they were the most useless thing on the planet, and, "how did we ever survive using this crappy tool?" I know no-one has said that exactly, but it seems like it's being implied every time someone talks about XSE and Pokescript in the same sentence.
So I don't care if you use XSE, but just stop all the talking about Pokescript as if it is 'crap'.
So at least from now on, keep XSE talk out of this pokescript tutorial. Okay?
This isn't totally directed at you, Aspinth, it's just what I've seen from this community as a whole, since the release of XSE, have just badmouthed pokescript to the point that all new hackers think it's a useless program that doesn't even work, and I'm just getting sick of it.

Quote:
Originally Posted by 12345 View Post
I can't hide sprites forever. After I leave there, it appears again.
Look back at the section on the Wildbattle. I think I covered keeping the sprite hidden.
__________________
Gone.
Reply With Quote
  #234   Link to this post, but load the entire thread.  
Old July 15th, 2008 (8:36 AM).
12345's Avatar
12345 12345 is offline
Sky
 
Join Date: Aug 2007
Gender: Male
Nature: Calm
Posts: 157
Here is my script:
Code:
#dynamic 0x172632
#org @start
checkflag 0x100C
if 0x1 goto @dontshowsprite
applymovement 0xD @move
waitmovement 0x0
hidesprite 0xD 
setflag 0x100C
release
end

#org @dontshowsprite
release
end

#org @move
#raw 0x04 0xFE
end
And sprite hidden. but when I return, it appears again. :(
Reply With Quote
  #235   Link to this post, but load the entire thread.  
Old July 15th, 2008 (8:42 AM).
hi sir tomato my password is syvniti's Avatar
hi sir tomato my password is syvniti hi sir tomato my password is syvniti is offline
gggggggggggggggggg
 
Join Date: Jan 2007
Location: My user name _ asciii_ +&h1!" lulz
Posts: 581
Quote:
Originally Posted by 12345 View Post
Here is my script:
Code:
#dynamic 0x172632
#org @start
checkflag 0x100C
if 0x1 goto @dontshowsprite
applymovement 0xD @move
waitmovement 0x0
hidesprite 0xD 
setflag 0x100C
release
end

#org @dontshowsprite
release
end

#org @move
#raw 0x04 0xFE
end
And sprite hidden. but when I return, it appears again. :(
That's because Jason is mad... He's never tired since he can sleep at much as he want, there he lives it's night at day... So...

But you can set a flag an then set the person or people (Don't remember what's it called) in advance map to the flag, when the flag then is setted the person is gone, and when not he's there...
__________________
THE CAKE IS A LIE!!!!!!!!!!!!!!!!!!!!!!!
Reply With Quote
  #236   Link to this post, but load the entire thread.  
Old July 15th, 2008 (9:04 AM).
Aspinth's Avatar
Aspinth Aspinth is offline
Assspinth? Aspinth? Aspinth!
 
Join Date: Jul 2008
Location: Antarctica :P
Age: 30
Gender: Male
Nature: Quiet
Posts: 4
Quote:
Originally Posted by thethethethe View Post
If I sound angry at anyone, I don't mean it, I'm just tired. So sorry if I happen to sound angry...

I'm getting so sick of saying this to new people who come to PC.
Google. Google. Google. Google.
Tools Sections at PC.
XSE
score_under's tool.
Don't just ask straight away, search first.
Also don't post things where they are irrelevant. This thread has nothing to do with Pokemart and A-text.


I usually just rely on hacking FR/LG, you could try and find it yourself through trial and error. That's about all the information I can give.

Considering you're new here and that was your first post, it seems like you're just jumping on the bandwagon of XSE. So it seems like you'd would never even have tried to use Pokescript, and are just repeating what other people have said. But then again, I could be wrong about that.
Honestly my opinion on this is that people can't just treat people's work like it's crap. Fair-enough, use XSE, but that doesn't give you reason to start talking about other people's programs as if they were the most useless thing on the planet, and, "how did we ever survive using this crappy tool?" I know no-one has said that exactly, but it seems like it's being implied every time someone talks about XSE and Pokescript in the same sentence.
So I don't care if you use XSE, but just stop all the talking about Pokescript as if it is 'crap'.
So at least from now on, keep XSE talk out of this pokescript tutorial. Okay?
This isn't totally directed at you, Aspinth, it's just what I've seen from this community as a whole, since the release of XSE, have just badmouthed pokescript to the point that all new hackers think it's a useless program that doesn't even work, and I'm just getting sick of it.


Look back at the section on the Wildbattle. I think I covered keeping the sprite hidden.
Sorry for all the trouble, but I've been using pokescript since it came out.
Well I did like pokescript, but I don't stick with one tool, when there is a better tool out there.

It's like using advance map 1.30 when there is 1.92. Anyways, you've made your point. Your Thread, your rules. Sorry to be a bother, nice tutorial by the way! You should update all the #raw commands with the new pokescript commands you've made!
__________________
*It's me, I'm back!*

*Pokemon Daydona, a hack by Aspinth*

*Credits go to cooley for the logo and sprite*

Reply With Quote
  #237   Link to this post, but load the entire thread.  
Old July 15th, 2008 (10:07 AM).
jakerman999's Avatar
jakerman999 jakerman999 is offline
looking for spriters
 
Join Date: Oct 2007
Location: Ingersoll
Age: 30
Gender: Male
Nature: Adamant
Posts: 52
the images in the spoilers aren't working for me anymore. they were up yesterday, but now there is nothing to indicate they were there at all, except you referring to them.

I can't find them on google images either. help?
__________________
you must build :t043: -inal pylons.

jakerman999's PokePet

sharpshell the level 45 Kabutops!


I have a life, I bought it on e-bay.

support shiny gold!
Reply With Quote
  #238   Link to this post, but load the entire thread.  
Old July 15th, 2008 (8:09 PM).
iammiho iammiho is offline
 
Join Date: Jul 2008
Gender:
Posts: 4
-sigh- too.. complicated.. can anyone tell me whats wrong with this one? o.O(i know i kinda took whole thing in the tutorial)

#org $lugia
lock
faceplayer
checkflag 0x200
message $1
boxset 6
cry 0xA1 249
nop
nop
wildpokemon 249 70 1
setflag 0x200
release
end

#org $1
$1 1 =GYAOOOO!!!!
Reply With Quote
  #239   Link to this post, but load the entire thread.  
Old July 15th, 2008 (8:16 PM).
destinedjagold's Avatar
destinedjagold destinedjagold is offline
You can contact me in PC's discord server...
 
Join Date: May 2007
Age: 32
Gender: Male
Nature: Careful
Posts: 8,579
Quote:
Originally Posted by iammiho View Post
-sigh- too.. complicated.. can anyone tell me whats wrong with this one? o.O(i know i kinda took whole thing in the tutorial)

#org $lugia
lock
faceplayer
checkflag 0x200
message $1
boxset 6
cry 0xA1 249
nop
nop
wildpokemon 249 70 1
setflag 0x200
release
end

#org $1
$1 1 =GYAOOOO!!!!
Code:
#org $lugia
lock
faceplayer
checkflag 0x200
if b_true goto $done
cry 0xA1 249
pause 0x38
message $1
boxset 6
wildpokemon 249 70 1
setflag 0x200
release
end

#org $1
$1 1 = GYAOOOO!!!!

#org $done
release
end
__________________

Reply With Quote
  #240   Link to this post, but load the entire thread.  
Old July 15th, 2008 (11:38 PM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by 12345 View Post
Here is my script:
Code:
#dynamic 0x172632
#org @start
checkflag 0x100C
if 0x1 goto @dontshowsprite
applymovement 0xD @move
waitmovement 0x0
hidesprite 0xD 
setflag 0x100C
release
end

#org @dontshowsprite
release
end

#org @move
#raw 0x04 0xFE
And sprite hidden. but when I return, it appears again. :(
First of all, why ask this here? Use the script help thread. I fixed one little problem, and doesn't people id sound familiar.

Quote:
Originally Posted by Aspinth View Post
Sorry for all the trouble, but I've been using pokescript since it came out.
Well I did like pokescript, but I don't stick with one tool, when there is a better tool out there.

It's like using advance map 1.30 when there is 1.92. Anyways, you've made your point. Your Thread, your rules. Sorry to be a bother, nice tutorial by the way! You should update all the #raw commands with the new pokescript commands you've made!
Wow, I'd love to argue with you right now, about what you've just said there, but I'll just leave it. There's no point in arguing.
Quote:
Originally Posted by jakerman999 View Post
the images in the spoilers aren't working for me anymore. they were up yesterday, but now there is nothing to indicate they were there at all, except you referring to them.
I can't find them on google images either. help?
I just looked at them all and they were fine. Maybe it's your computer? That happens to me as well sometimes.
__________________
Gone.
Reply With Quote
  #241   Link to this post, but load the entire thread.  
Old July 15th, 2008 (11:42 PM).
12345's Avatar
12345 12345 is offline
Sky
 
Join Date: Aug 2007
Gender: Male
Nature: Calm
Posts: 157
I want to a sprite move in another place forever after active a script
EX: My character is in A location and After I want this character is in B location forever.
Can you help me?
~~~~~~~
Sorry, if i have another question i will go to help thread
Reply With Quote
  #242   Link to this post, but load the entire thread.  
Old July 15th, 2008 (11:56 PM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by 12345 View Post
I want to a sprite move in another place forever after active a script
EX: My character is in A location and After I want this character is in B location forever.
Can you help me?
~~~~~~~
Sorry, if i have another question i will go to help thread
Like the girl in pallet town that constantly moves at the beginning of the game.
Mixture of a movesprite and a level script.
Movesprite, layout is same between XSE and Pokescript, you can look here.
Level Script, Cooley's tutorial, Baro's Spanish Tutorial, wherever else there is one.
__________________
Gone.
Reply With Quote
  #243   Link to this post, but load the entire thread.  
Old July 18th, 2008 (1:08 AM).
pokemon_hacking's Avatar
pokemon_hacking pokemon_hacking is offline
blah_maker
 
Join Date: Jul 2008
Gender: Male
Nature: Lonely
Posts: 24
can somone help me i made this script but all it does it move to the side i want it to say the script then move to the side
#org $start
message $hru
applymovement 0x04 $move
pausemove 0x0
applymovement 0xFF $move2
pause 0x30
applymovement 0x04 $move3
applymovement 0xFF $move3
pausemove 0
release
end
#ORG $hru
$hru 1 = \c\h01\h06Hello, how are you \n\v\h01?
thanks in advanced
__________________
making hacks by yourself is :( but oh well
Reply With Quote
  #244   Link to this post, but load the entire thread.  
Old July 18th, 2008 (3:31 AM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by pokemon_hacking View Post
can somone help me i made this script but all it does it move to the side i want it to say the script then move to the side
#org $start
message $hru
applymovement 0x04 $move
pausemove 0x0
applymovement 0xFF $move2
pause 0x30
applymovement 0x04 $move3
applymovement 0xFF $move3
pausemove 0
release
end
#ORG $hru
$hru 1 = \c\h01\h06Hello, how are you \n\v\h01?
thanks in advanced
The tutorial is there for a reason... You should try reading it.
Since you said it does move side to side, I'll just assume you left the movements out of this post.
The problem lies here.
Code:
#org $start
message $hru
applymovement 0x04 $move
What needs to follow a message command to appear?
Boxset
All 'message' does is copy the text from the rom to the ram.
The boxset allows it to appear.
So that little section should appear like this.
Code:
#org $start
message $hru
boxset 0x6
applymovement 0x04 $move
__________________
Gone.
Reply With Quote
  #245   Link to this post, but load the entire thread.  
Old July 18th, 2008 (4:33 AM). Edited July 18th, 2008 by pokemon_hacking.
pokemon_hacking's Avatar
pokemon_hacking pokemon_hacking is offline
blah_maker
 
Join Date: Jul 2008
Gender: Male
Nature: Lonely
Posts: 24
thank u so much
i am so happy now

wat am I doing wrong
#org $start
message $hi
boxset 0x6
applymovement 0xFF $move
pausemove 0x0
applymovement 0xFF $move2
pause 0x30
applymovement 0x04 $move3
applymovement 0xFF $move3
pausemove 0
goto 0x1 $battle
goto 0x2 $warp
release
end
#ORG $hi
$hi 1 = \c\h01\h06Hello, where am i \n\v\h01?
#org $move
#raw 0x06 0x06 0x06 0xFE
#org $move2
#raw 0x54 0xFE
#org $move3
#raw 0x55 0xFE

#org $battle
giveitem 13 1
release
end

#org $warp
message $****
boxset 6
warp 0x0 0x9 0x1
end
#org $****
$**** 1 =going to your house\ni see.
__________________
making hacks by yourself is :( but oh well
Reply With Quote
  #246   Link to this post, but load the entire thread.  
Old July 19th, 2008 (12:49 AM).
blackshadow's Avatar
blackshadow blackshadow is offline
 
Join Date: May 2008
Posts: 8
hey im new to scripting and im trying to do a legendary battle with celebi and heres my script:
#org $start
lock
faceplayer
message $1
boxset 6
cry 0xA1 251
nop
nop
wildbattle 251 50 0x8B
fadescreen 0
#raw 0x53 0x0F 0x80
setflag 0x200
release
end
#org $1
$1 1 =Celebi:cele,cele,bi

and every time i try to compile it says run time error 9 subscript out of range
plz help!!!
__________________



Reply With Quote
  #247   Link to this post, but load the entire thread.  
Old July 20th, 2008 (12:16 AM). Edited July 20th, 2008 by pokemon_hacking.
pokemon_hacking's Avatar
pokemon_hacking pokemon_hacking is offline
blah_maker
 
Join Date: Jul 2008
Gender: Male
Nature: Lonely
Posts: 24
how to make this start stop from restarting from the begging
Code:
#ORG $start
lock
faceplayer
message $talk
boxset 6
goto $movement1
release
end
 
#ORG $talk
$talk 1 = \c\h01\h04hey wats up
 
#ORG $movement1
applymovement 0xFF $walk
pausemove 0x0
pause 0x30
message $talk2
boxset 6
goto $aaa
release
end
 
#ORG $talk2
$talk2 1 = \c\h01\h04 kool 
 
#org $walk
#raw 0x03 0x04 0x35 0x47 0xFE
 
#org $aaa
if B_true goto $finish
message $fed
boxset 6
warp 0x1 0x1 0x0
release
end
 
#ORG $fed
$fed 1 = \c\h01\h04nm g2g bye.
 
#ORG $finish
release
end
__________________
making hacks by yourself is :( but oh well
Reply With Quote
  #248   Link to this post, but load the entire thread.  
Old July 20th, 2008 (2:42 AM).
jamieboy30 jamieboy30 is offline
 
Join Date: Feb 2008
Posts: 23
Hey, brilliant tutorial, learnt to script in one week! But i have a problem with one of my scripts (sorry if it's in the wrong place):

Spoiler:

#org $hoohscript
checkflag 0x200
if b_true goto $done
applymovement 0xFF $move
message $7
boxset 6
cry 0xA1 250
nop
nop
applymovement 0x04 $move2
applymovement 0xFF $move3
applymovement 0x04 $move4
message $8
boxset 6
setflag 0x200
release
end

#org $7
$7 1 =\v\h01: ...Huh?\n................\p???:Screaaaaeaaaark!

#org $8
$8 1 =\v\h01: What on earth was that?!\nHmmmm, I guess I'll never know...

#org $move
#raw 0x01 0x65 0xFE

#org $move2
#raw 0x1D 0x1D 0x1D 0x1D 0x1D 0x1D 0x1D 0x1D 0xFE

#org $move3
#raw 0x00 0xFE

#org $move4
#raw 0x1D 0x1D 0x1D 0x1D 0x1D 0x1D 0x1D 0x1D 0xFE

#org $done
release
end


It all goes well, but Ho-oh is assigned to 04, so he should fly past /v/h01, but i think he gets stuck on the movement permissions, how can i make the person event of ho-oh ignore movement permissions? or is it impossible?
__________________
Reply With Quote
  #249   Link to this post, but load the entire thread.  
Old July 20th, 2008 (3:15 AM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by pokemon_hacking View Post
thank u so much
i am so happy now

wat am I doing wrong
Spoiler:
Code:
#org $start
message $hi
boxset 0x6
applymovement 0xFF $move
pausemove 0x0
applymovement 0xFF $move2
pause 0x30
applymovement 0x04 $move3
applymovement 0xFF $move3
pausemove 0
goto 0x1 $battle   'What on earth is this?
goto 0x2 $warp    'And this aswell?
release
end
#ORG $hi
$hi 1 = \c\h01\h06Hello, where am i \n\v\h01?
#org $move
#raw 0x06 0x06 0x06 0xFE
#org $move2
#raw 0x54 0xFE
#org $move3
#raw 0x55 0xFE
 
#org $battle
giveitem 13 1
release
end

#org $warp
message $****    'And the title of the pointer?
boxset 6
warp 0x0 0x9 0x1
end
#org $****
$**** 1 =going to your house\ni see.
First of all it doesn't look like you understand the goto command. Once you goto a part of a script you can't return.
You may want to read over that section.

Quote:
Originally Posted by blackshadow View Post
hey im new to scripting and im trying to do a legendary battle with celebi and heres my script:
Spoiler:
Code:
#org $start
lock
faceplayer
message $1
boxset 6
cry 0xA1 251
nop
nop
wildbattle 251 50 0x8B
fadescreen 0
#raw 0x53 0x0F 0x80
setflag 0x200
release
end
#org $1
$1 1 =Celebi:cele,cele,bi


and every time i try to compile it says run time error 9 subscript out of range
plz help!!!
Try learning how to script. Don't just copy scripts straight out of the tutorial. That's a problem in Pokescript. It occurs in the 0x8B. Just change it to 0x0.

Quote:
Originally Posted by jamieboy30 View Post
Hey, brilliant tutorial, learnt to script in one week! But i have a problem with one of my scripts (sorry if it's in the wrong place):

Spoiler:

#org $hoohscript
checkflag 0x200
if b_true goto $done
applymovement 0xFF $move
message $7
boxset 6
cry 0xA1 250
nop
nop
applymovement 0x04 $move2
applymovement 0xFF $move3
pausemove 0x0
applymovement 0x04 $move4
pausemove 0x0
message $8
boxset 6
setflag 0x200
release
end

#org $7
$7 1 =\v\h01: ...Huh?\n................\p???:Screaaaaeaaaark!

#org $8
$8 1 =\v\h01: What on earth was that?!\nHmmmm, I guess I'll never know...

#org $move
#raw 0x01 0x65 0xFE

#org $move2
#raw 0x1D 0x1D 0x1D 0x1D 0x1D 0x1D 0x1D 0x1D 0xFE

#org $move3
#raw 0x00 0xFE

#org $move4
#raw 0x1D 0x1D 0x1D 0x1D 0x1D 0x1D 0x1D 0x1D 0xFE

#org $done
release
end


It all goes well, but Ho-oh is assigned to 04, so he should fly past /v/h01, but i think he gets stuck on the movement permissions, how can i make the person event of ho-oh ignore movement permissions? or is it impossible?
Glad it helped.
Applymovements are immune to movement permissions. If don't have some form of pause, the movements will stop as there is not time for the moves to complete.
__________________
Gone.
Reply With Quote
  #250   Link to this post, but load the entire thread.  
Old July 20th, 2008 (5:41 AM).
roywillow's Avatar
roywillow roywillow is offline
 
Join Date: Feb 2008
Location: Shandong China
Gender:
Posts: 39
Well, I think I'd better ask here. Posting message isn't convenient.
The people ID, also a kind of flag. So how many of them have been used in the game? If I put some people on the map, what IDs can I give them?
__________________
http://poketb.com/bbs/images/logo.gif
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:06 AM.