• 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.

thethethethe's Scripting Tutorial

This was a great tutorial it really helped me out.. ALOT! lol, right now i'm somewhat stumped. I'm trying to make a trainer disappear after hes beaten. Here's my attempt at the script
#org $start
trainerbattle 0 0x1CD $before $after
message $beaten
boxset 6
release
end
#org $before
$before 1 =An intruder?\nPrepare yourself!
#org $after
$after 1 = IMPOSSIBLE!!
#org $beaten
$beaten 1 =YOU'LL PAY!
fadescreen 0
#raw 0x53 0x04 0x00
setflag 0x200
release
end

thanks.
 
Code:
#org $start
lock
faceplayer
message $follow
[B]boxset[/B] 6
applymovement [B]0x[/B]1 $walk
applymovement 0xFF $walkplayer
release
end

#org $follow
=[PLAYER]!\pThere you are!\nPlease follow me.

#org $walk
#raw 13
#raw 13
#raw 13
#raw 13
#raw 13
#raw 13
#raw 11
#raw 11
#raw 11
#raw 11
#raw FE

#org $walk player
#raw 10
#raw 13
#raw 13
#raw 13
#raw 13
#raw 13
#raw 13
#raw 11
#raw 11
#raw 11
#raw 11
#raw FE
What's wrong with this script?
I don't think pokescript has callstd.
Other than that, I don't see anything wrong, besides the changes in bold.
What didn't work in the script?
(I'm not a pokescript scripter, so I may have missed something.)
 
i figured out what was wrong lol if anyone wants to know how to make a trainer dissapear heres the code working for me now

Code:
#org $start
trainerbattle 0 0x1CD $before $after
message $beaten
boxset 6
setflag 0x200
fadescreen 0
#raw 0x53 0x04 0x00
release
end
#org $before
$before 1 =An intruder?\nPrepare yourself!
#org $after
$after 1 = IMPOSSIBLE!!
#org $beaten
$beaten 1 =YOU'LL PAY!
 
I don't think pokescript has callstd.
Other than that, I don't see anything wrong, besides the changes in bold.
What didn't work in the script?
(I'm not a pokescript scripter, so I may have missed something.)
Pokescript does have callstd. Irish Witch included all ScriptED commands in Pokescript's commands database and also the command she used like boxset and message.
The main problem was something that is an error that would appear in both XSE and Pokescript.
Look at "$walk player", no spaces allowed in pointers.
 
- Pushed follow.$start to 0
- Adjusting follow.$follow in 0 at 800001D
- Adjusting follow.$walk in 0 at 8000042
- Adjusting follow.$walkplayer in 0 at 800004D

$start is at 0? o.o Still doesn't work I guess.
 
- Pushed follow.$start to 0
- Adjusting follow.$follow in 0 at 800001D
- Adjusting follow.$walk in 0 at 8000042
- Adjusting follow.$walkplayer in 0 at 800004D

$start is at 0? o.o Still doesn't work I guess.

Spoiler:


Try this.
 
Hello...!
Uh... The ASM Script doesn't works...
I've put the Script in a MiniSprite and when I talk with the people, the game restarts...
I hope you'll repair the ASM Script.
 
Hello.

I would just recommend using XSE instead of PokéScript. You see that there is a problem you can not resolve, in XSE, such problems do not exist at all. This guide won't be completely compatible for it, but you can use it as command reference.
 
Hello.

I would just recommend using XSE instead of PokéScript. You see that there is a problem you can not resolve, in XSE, such problems do not exist at all. This guide won't be completely compatible for it, but you can use it as command reference.

Umm, why did you post this? This is Flaming(or would it be spam). Nice Tut Thethethethe, I just inserted my first script xD
 
Umm, why did you post this? This is Flaming(or would it be spam). Nice Tut Thethethethe, I just inserted my first script xD

That's not really flaming, it's a suggestion. XSE is the newest and best script editor/compiler/decompiler availlable, and pokescript has many bugs and errors. The tut itself is cool, since alot of those commands work in XSE as well, but... Well, you should get the point now, I guess :)
 
will the givepokemon script work on pokemon emerald?
 
Hey Thethethethe, I read your scripting tut and found out how to make the pokedex at the beginning the national, but mine wont save, can you tell me why? please?
 
will the givepokemon script work on pokemon emerald?
Yes.

Hey Thethethethe, I read your scripting tut and found out how to make the pokedex at the beginning the national, but mine wont save, can you tell me why? please?
What do you mean by it won't save? You don't 'save' a script in the ROM. You need to compile it to the ROM.
 
hi. a freind and i have been planning to learn how to use pokescript. However, I cannot for the life of me figure out how to go from script->game.

Order of events:
1. type up script in notepad
2. save as .rbc
3. open pksvui
4. open rom FR
5. open script
6. do something?
7. go to advance map and change the offset of a preexisting script
8. test and enjoy :D

I've looked at IW's tutorial, but could not find a "burn" button, or a right click compile
Perhaps I misinstalled pksvui?

also, is there any way to add OWs to a map?
Thanks.
 
hi. a freind and i have been planning to learn how to use pokescript. However, I cannot for the life of me figure out how to go from script->game.

Order of events:
1. type up script in notepad
2. save as .rbc
3. open pksvui
4. open rom FR
5. open script
6. do something?
7. go to advance map and change the offset of a preexisting script
8. test and enjoy :D

I've looked at IW's tutorial, but could not find a "burn" button, or a right click compile
Perhaps I misinstalled pksvui?

also, is there any way to add OWs to a map?
Thanks.
First off you get Pokescript.

Pksv is the tool that you're trying to use. Completely different tool = Completely different processes.
 
Back
Top