PDA

View Full Version : [Tutorial] Hack Tutorials: Scripting (In HD Video Form!)


foullump
July 16th, 2009, 05:22 PM
http://i181.photobucket.com/albums/x218/foullump/hacktutorialsscriptingcopy-1.jpg
For use with Pokescript, NOT XSE.

http://i181.photobucket.com/albums/x218/foullump/intro.jpg

Hello, everyone!
Many people (including myself) have made written tutorials that explain how to create scripts in a Pokémon hack game. I myself learned from one of these tutorials.
However, I have realized that some people are still incapable of learning how to script.
So then the idea came to me: I should make a video tutorial!
And so, I have.
Clearly such a topic as scripting cannot be explained by one simple video, and so I have created "lessons," or individual videos each explaining on aspect of scripting.
(They cover them quite well, if I do say so myself :))
Currently, I have 5 full length lessons made, and one short "follow-up" lesson to lesson 1.


http://i181.photobucket.com/albums/x218/foullump/lessons-1.jpg (http://www.youtube.com/view_play_list?p=BE051129C078E637)http://i181.photobucket.com/albums/x218/foullump/followups.jpg
http://i181.photobucket.com/albums/x218/foullump/1left.jpg (http://www.youtube.com/watch?v=mu4S2p81eTo)http://i181.photobucket.com/albums/x218/foullump/1right.jpg (http://www.youtube.com/watch?v=AsWFQ19Yxxw&feature=channel)
http://i181.photobucket.com/albums/x218/foullump/2left.jpg (http://www.youtube.com/watch?v=ps-Ov5bHCuU)http://i181.photobucket.com/albums/x218/foullump/2right.jpg
http://i181.photobucket.com/albums/x218/foullump/threeleft.jpg (http://www.youtube.com/watch?v=4X0sLhsWuQI)http://i181.photobucket.com/albums/x218/foullump/3right.jpg
http://i181.photobucket.com/albums/x218/foullump/fourleft.jpg (http://www.youtube.com/watch?v=91TiH7XO6AQ)http://i181.photobucket.com/albums/x218/foullump/fourright.jpg
http://i181.photobucket.com/albums/x218/foullump/fiveleft.jpg (http://www.youtube.com/watch?v=SD7x6MNx0a0&feature=channel)http://i181.photobucket.com/albums/x218/foullump/fiveright.jpg
http://i181.photobucket.com/albums/x218/foullump/sixleft.jpg (http://www.youtube.com/watch?v=nMzEU0wZlKE)http://i181.photobucket.com/albums/x218/foullump/sixright.jpg
http://i181.photobucket.com/albums/x218/foullump/7left.jpg (http://www.youtube.com/watch?v=HjHxvZPlW1w)http://i181.photobucket.com/albums/x218/foullump/7right.jpg
http://i181.photobucket.com/albums/x218/foullump/blank7.jpg
Just click the lesson you want to see!

More to come!

http://i181.photobucket.com/albums/x218/foullump/questions.jpg

Make any comments or questions you may have either here or on the youtube page for the respective video.
If you ask a question about a video here, please make it a bit easier on me by posting what lesson your question pertains to!

http://i181.photobucket.com/albums/x218/foullump/requests.jpg

If you have a request for a topic, please do so here!
Now taking requests for lesson 8!

______________________

http://www.pokemonelite2000.com/sprites/dpmfa/dpmfa446.png

toastx2009
July 17th, 2009, 06:06 PM
Dude, this helps me 10000 times better than the other tutorials! Thanks, I'm on Lesson 2!
(first post ftw!)

Chibi Robo
July 17th, 2009, 06:12 PM
Nice to see you back foullump this looks extremely helpful and the thread looks really well setup
I bet this will help some people but most people use XSE but Its good that you put up a tutorial that uses pokescript

0m3GA ARS3NAL
July 17th, 2009, 06:25 PM
I already don't see the point of this... XSE is the norm now. Pokescript is old, and buggy...
in my own opinion of course...

Tyrantrum
July 17th, 2009, 08:14 PM
Even though I don't use PokéScript anymore, this would've helped me out a TON when I used to use it.
Great job on the tutorial, foullump.

huntley93
July 18th, 2009, 05:43 AM
thanks follump i saw your youtube video a couple of weeks and it has really helped me to script. any chance of making a tutorial on how to combine a yes/no script and give pokemon. i undestand the basic scripts but dont understand how to combine them

.Seth
July 18th, 2009, 07:12 AM
thanks follump i saw your youtube video a couple of weeks and it has really helped me to script. any chance of making a tutorial on how to combine a yes/no script and give pokemon. i undestand the basic scripts but dont understand how to combine them

You just put one command after the other. It's pretty simple.

Anyways, foullump, great job on the videos and everything.
Although, most people use XSE, I'm sure those who still use Pokescript would gladly find this useful.
(b'')b

I'll definitely watch the new ones as you release them.

foullump
July 18th, 2009, 10:47 AM
thanks follump i saw your youtube video a couple of weeks and it has really helped me to script. any chance of making a tutorial on how to combine a yes/no script and give pokemon. i undestand the basic scripts but dont understand how to combine them

Funny you should request that! That happens to be the lesson 2 & 3 follow-up that is coming soon! :)

huntley93
July 20th, 2009, 05:10 AM
thanks you've taught me how to script now. when will the next 2 lessons be release. going on holiday tomorrow unitil august

mootjuh117
July 20th, 2009, 10:38 AM
[REQUEST] after selecting the YES option of YES/NO your screen will turn black for a second and it will heal your pokemon and ofcourse with the heal sound like the old lady's rest stop

TuRbO-LuT
July 20th, 2009, 01:16 PM
Hiya Foullump. Your tutorials are the best i have found by the way. :D understood them all straight away and i have now started on my hack. Thanks for that. My reason for posting though! Is to request something. Now i asked this question in the Simple Questions forum and was told that it can only be done if you are an extremely good user of ASM/XSE.
Question is : How do i make it so that a pokemon will only evolve when leveled up at a certain location?? e.g Eevee evolves into Glaceon while leveled up at that Icy Rock place in Diamond/Pearl/Platinum.
I am going to hack Fire Red. :D
Thanks again for your tuts man :D

foullump
July 22nd, 2009, 12:14 PM
Hiya Foullump. Your tutorials are the best i have found by the way. :D understood them all straight away and i have now started on my hack. Thanks for that. My reason for posting though! Is to request something. Now i asked this question in the Simple Questions forum and was told that it can only be done if you are an extremely good user of ASM/XSE.
Question is : How do i make it so that a pokemon will only evolve when leveled up at a certain location?? e.g Eevee evolves into Glaceon while leveled up at that Icy Rock place in Diamond/Pearl/Platinum.
I am going to hack Fire Red. :D
Thanks again for your tuts man :D

That has to do with the game's mechanics, so that would involve ASM, so I really can't explain that, as I was always too lazy to learn that! :D

huntley93
August 9th, 2009, 02:15 AM
when are the next tutorials comming cant wait for them.

Pokemaniac11
August 9th, 2009, 09:25 AM
I did everything like you said on the first lesson but when i speak to the guy my game freezes , or a red screen appears .. what am I doing wrong? :/

This is the script I use :

#org $begin
lock
faceplayer
message $talk
$talk 1 = Hello.
boxset 6
release
end

the compile option doesn't appear so I just encode it in pokescript , is that the same as compile?

foullump
August 9th, 2009, 12:07 PM
when are the next tutorials comming cant wait for them.
I've been doing some work on lesson 6, but I've had some distractions so I haven't gotten a lot of it done yet. :D Sorry!
I did everything like you said on the first lesson but when i speak to the guy my game freezes , or a red screen appears .. what am I doing wrong? :/

This is the script I use :

#org $begin
lock
faceplayer
message $talk
$talk 1 = Hello.
boxset 6
release
end

the compile option doesn't appear so I just encode it in pokescript , is that the same as compile?

If the compile script doesn't show up you should try reinstalling it into C:\pokewitch and then afterwards install pkmnadv to C:\pokewitch.
If it still doesn't work, you need to click file, database on pokescript, then click on commands.psh in the pkmnadv folder. After that it will tell you that the database has been loaded and then you can encode your script.

Pokemaniac11
August 9th, 2009, 01:13 PM
Thank you so much :D
I can't wait to make a hack xD

Team Fail
August 9th, 2009, 11:07 PM
My person says ÌÉ Á. What went wrong?

Here is my script:
#org $script
lock
faceplayer
message $talk
$talk 1= Hi.
boxset 6
release
end

It does this on LeafGreen, and if the exact same script is imported to emerald, the same thing also happens.

foullump
August 10th, 2009, 10:19 AM
My person says ÌÉ Á. What went wrong?

Here is my script:
#org $script
lock
faceplayer
message $talk
$talk 1= Hi.
boxset 6
release
end

It does this on LeafGreen, and if the exact same script is imported to emerald, the same thing also happens.
As far as I can see, you are compiling it wrong
Never mind that. I found the problem. You put "$talk 1= Hi." You're supposed to put a space between them, like this: "$talk 1 = Hi."

Emosh
August 10th, 2009, 08:43 PM
You da man foullump, I subscribed to your channel yesterday if I remember correctly.. Nice tuts..

Pokemaniac11
August 17th, 2009, 02:51 AM
Do you know when are you going to upload the next tutorials? :)

Late
August 17th, 2009, 04:44 AM
Great tutorial, I want these to XSE too. I relly need some help with my scripts. I haven't scripted so much...

dubboy
August 17th, 2009, 04:32 PM
Hey i loves these tutoriols i am just really waiting for the only once tut

foullump
August 17th, 2009, 05:40 PM
Do you know when are you going to upload the next tutorials? :)
Well, it's probably about 76% done, so I suspect soon! :)
Hey i loves these tutoriols i am just really waiting for the only once tut

Again, it's probably about 76% done, so it shouldn't be too long!

mew²
August 17th, 2009, 10:34 PM
I just watched Tutorial 1 and the follow - up. Your videos help me so much it is not even funny. Thanks bro.

foullump
August 21st, 2009, 10:51 AM
UPDATE: Lesson Six has been uploaded!

Fendaril
August 23rd, 2009, 01:17 PM
Foullump do you prefer pokescript over XSE or is that what you are use to using as a scripting language.

huntley93
August 24th, 2009, 09:03 AM
will the main body of the script work on xse or not. and have a request for next lesson. legendary battles like mewtwo and zapdos or is that the same as wild battles?

Team Fail
August 24th, 2009, 04:22 PM
As far as I can see, you are compiling it wrong
Never mind that. I found the problem. You put "$talk 1= Hi." You're supposed to put a space between them, like this: "$talk 1 = Hi."

Thanks. Now I know what I've been doing wrong. I also want to know: How do you add a sound when you either:
A: talk to a person, or
B: Move with someone

I want to do that like at the beginning of the game when Prof. Oak moves the player to the lab with the "Follow Me" theme.

foullump
August 31st, 2009, 03:25 PM
Thanks. Now I know what I've been doing wrong. I also want to know: How do you add a sound when you either:
A: talk to a person, or
B: Move with someone

I want to do that like at the beginning of the game when Prof. Oak moves the player to the lab with the "Follow Me" theme.

That would be "playsound 0x0000" where 0000 represents the sound's value. Afterwards, use #raw 0x33 to prevent the game from having errors.

Glitch.
September 1st, 2009, 04:33 PM
i use xse since it has less bugs and its what most people use

ChikoritaMudkipz
September 1st, 2009, 08:29 PM
Hey I was wondering if lesson 8 could be on level scripts, or even combining previous scripts into a rival battle.

jarcon
September 5th, 2009, 12:55 PM
Foullump great tutorials, I've started scripting now and have made some really cool scripts already thanks to what I learned! Couldn't have done it without you. Keep them coming! If I have any requests I'll let you know.

Denali
September 6th, 2009, 03:03 PM
To start off, amzing tutorials! I don't know what I'd do without you! This may sound stupid, but, I'm confused on how to use the "script" event on advance map. I thought you just make a script making your sprite move, then, when you step on the script tile your player moves and stuff. Am I right?

Here's the script I used:

#org $nonopoppa
lock
faceplayer
message $halt
$halt 1 =Crap!
boxset 6
applymovement 1 $jiggy
$jiggy 1 ; #binary 0x62 0x01 0x08 0x12 0x44 0xFE
applymovement 0xFF $jiggy
release
end

I don't know if this is right, but, thanks for your time Foullump.

foullump
September 7th, 2009, 08:46 AM
To start off, amzing tutorials! I don't know what I'd do without you! This may sound stupid, but, I'm confused on how to use the "script" event on advance map. I thought you just make a script making your sprite move, then, when you step on the script tile your player moves and stuff. Am I right?

Here's the script I used:

#org $nonopoppa
lock
faceplayer
message $halt
$halt 1 =Crap!
boxset 6
applymovement 1 $jiggy
$jiggy 1 ; #binary 0x62 0x01 0x08 0x12 0x44 0xFE
applymovement 0xFF $jiggy
release
end

I don't know if this is right, but, thanks for your time Foullump.

If you're using a script box then you'll want to get rid of 'lock faceplayer' and maybe add a pause after your movements. Then in advance map, click the script box and on the right it will ask for var values. I always put 50 40.

Denali
September 14th, 2009, 02:58 PM
Hey Foullump, I tried your advice and removed the 'faceplayer and lock', but my script still doesn't work. Every time I step on the tile, the hero freezes and is unable to move...Maybe I just can't script...Anyways, here is the script I used the second time...

#org $pimp
message $talk
$talk 1 =Crap!
boxset 6
applymovement 1 $mover
$mover 1 ; #binary 0x01 0x0A 0x04 0x0C 0xFE
applymovement 0xFF $mover
pausemove 0x0000
release
end

Oh, and I tried to do the var values thing, but I didn't do it right I guess. Or maybe I just didn't understand you.
Thanks foullump,
-MDS

foullump
September 20th, 2009, 04:31 PM
Hey Foullump, I tried your advice and removed the 'faceplayer and lock', but my script still doesn't work. Every time I step on the tile, the hero freezes and is unable to move...Maybe I just can't script...Anyways, here is the script I used the second time...

#org $pimp
message $talk
$talk 1 =Crap!
boxset 6
applymovement 1 $mover
$mover 1 ; #binary 0x01 0x0A 0x04 0x0C 0xFE
applymovement 0xFF $mover
pausemove 0x0000
release
end

Oh, and I tried to do the var values thing, but I didn't do it right I guess. Or maybe I just didn't understand you.
Thanks foullump,
-MDS

One thing you might want to try doing is putting a space before "crap!" It should look like this:
$talk 1 = Crap!

Now that might not do anything at all but as I recall scripts would always freak out if the smallest thing was wrong...

VVB
September 26th, 2009, 10:57 AM
I have a suggestion on what to include in lesson 8. How about making choices, other than just yes or no, like choosing one out of three starters? :)

Denali
September 28th, 2009, 12:17 PM
I'm sorry foullump, I still can't fix the problem. And what did you mean by the 40 50 var values thing?

huntley93
October 4th, 2009, 01:55 AM
how do i make a trainer battle me again after he has battled me the first time. I have tried putting the script underneth the 1st one but couldn't compile it. Got an idea for lesson 8. could it be one like the enti,scuicine and riakou event in fire red and leaf grean?

boo7100
October 4th, 2009, 09:41 AM
I need some help with my wild battle script. the battle and the fadescreen and event work fine. the only thing is, when i capture or beat the pokemon, it doesnt go away. Here is my script. can someone tell me wat I did wrong?

#org $script
lock
faceplayer
cry 0xA1 250
#raw 0x33
pause 0x30
message $cry
$cry 1 = Gyooooga!
boxset 6
wildbattle 250 47 2
pause 0x70
fadescreen 1
removesprite 0x800F
setflag 0x1211
pause 0x10
fadescreen 0
release
end

DawnRyder
October 4th, 2009, 01:49 PM
I need some help with my wild battle script. the battle and the fadescreen and event work fine. the only thing is, when i capture or beat the pokemon, it doesnt go away. Here is my script. can someone tell me wat I did wrong?

#org $script
lock
faceplayer
cry 0xA1 250
#raw 0x33
pause 0x30
message $cry
$cry 1 = Gyooooga!
boxset 6
wildbattle 250 47 2
pause 0x70
fadescreen 1
removesprite 0x800F
setflag 0x1211
pause 0x10
fadescreen 0
release
end
What you need to do is to set a person ID in AdvanceMap. Select the sprite, and just above the 'Open Script' button will be a box that says 'Person ID'

Klofkac
October 5th, 2009, 04:18 AM
I have terrible problem with texts. I did all in lesson, but is is always bad.
Script code:
#org $script
lock
faceplayer
message $question
$question 1 = Hi, do you like\nthis game?
boxset 5
compare 0x800D 0x0001
if 0x01 goto $yes
message $no
$no 1 = Ok. Then...
boxset 6
release
end

#org $yes
message $yes1
$yes1 1 = That's great,\nI like you!
boxset 6
release
end In-Game picture:
http://img89.imageshack.us/img89/2193/pokemonfr02.png

Katie Skyye
October 5th, 2009, 02:34 PM
Ergh...

I would rather use XSE since everyone says it's better, but I'd be willing to use Pokéscript for the purpose of learning this...

...but I am unable to find it. Is it possible to post a link to a download on this forum? If that's not allowed, sorry for asking, but I'm sort of stuck without that program.

So, I figure it would be easier for you to send a link than to make another tutorial about XSE, so I thought I'd ask. Thanks!

Also, you sound exactly like a kid in my class...it's very encouraging. ;D

romanceisdead
October 8th, 2009, 04:24 PM
i'm having trouble with an oak-like script.
the game just freezes when i reach the script.

RainDogg54
October 9th, 2009, 03:38 PM
Thanks these videos have really have helped me with my hack! But I'm having trouble making a script that gives the player running shoes. Can someone teach me how? I tried giveitem 0x82F 0x01 but I don't think that's how your supposed to do it.. :\ I'm a newbie at scripting obviously

saison
October 11th, 2009, 07:50 PM
Okay, so I'm doing a battle script and everything will work fine, the text before you fight, the battle, and the text once you win. Everything will work until I try to talk to the event again after the battle. It will do something different everytime, whether it be lock the player and have a palette screwup or having weird random text appear in the text box.
#org $script
lock
faceplayer
trainerbattle 0x00 0x01 $see $win
$see 1 = Can you defeat the creator?
$win 1 = Good thing these aren't my Pokemon!
message $after
$after 1 = We'll meet again.
boxset 6
release
end
I'd really appreciate if somebody could help troubleshoot my problem :)

AmazingCouchPotato
October 13th, 2009, 12:41 AM
These videos are awesome they have helped me a lot, keep up the great work

SiegHart
October 16th, 2009, 02:18 PM
hmm so im watching tutorial five, and i was wondering how i could make an event similar to the oak stopping you when you try to leave town, and then he talks to you... i want to walk out the front door of the house and have a character walk up to you and ask you to help find something, then once u find that item the character walks up to you again and takes the item, and tells you something else...i get all the scripting and movement parts, but how do i make a script activate as soon as i step on a certain tile?

saison
October 16th, 2009, 03:50 PM
Okay, I put in a script into the ROM that didn't even work (seeing if I could make a script from nothing, I missed some spacing, that's it) and then for some reason my battle script started to work after the battle o.O

Thanks for putting up these vids :D I'll make sure to reference 'em to people.

Klofkac
October 16th, 2009, 10:16 PM
Hey, lesson 6 is deleted! Why?

foullump
October 17th, 2009, 09:40 PM
Ergh...

I would rather use XSE since everyone says it's better, but I'd be willing to use Pokéscript for the purpose of learning this...

...but I am unable to find it. Is it possible to post a link to a download on this forum? If that's not allowed, sorry for asking, but I'm sort of stuck without that program.

So, I figure it would be easier for you to send a link than to make another tutorial about XSE, so I thought I'd ask. Thanks!

Also, you sound exactly like a kid in my class...it's very encouraging. ;D
There is a link in the description of the video of lesson 1 on youtube.
Thanks these videos have really have helped me with my hack! But I'm having trouble making a script that gives the player running shoes. Can someone teach me how? I tried giveitem 0x82F 0x01 but I don't think that's how your supposed to do it.. :\ I'm a newbie at scripting obviously
Oooh, so close. Use setflag 0x82F.
hmm so im watching tutorial five, and i was wondering how i could make an event similar to the oak stopping you when you try to leave town, and then he talks to you... i want to walk out the front door of the house and have a character walk up to you and ask you to help find something, then once u find that item the character walks up to you again and takes the item, and tells you something else...i get all the scripting and movement parts, but how do i make a script activate as soon as i step on a certain tile?
You would need to use the green "script" boxes in advance map. I'll cover that in the lesson 6 follow up eventually.
Hey, lesson 6 is deleted! Why?

I don't know why it was, but I reuploaded it. I'll fix the link now.

CookieDough
October 18th, 2009, 02:30 AM
Maybe you can also include commands on how to insert the player name, rival name and alot of other /v/h01 etc.... stuff =D I think that would be useful, since I like this way of scripting more then the XSE way :P

SiegHart
October 19th, 2009, 05:02 PM
You would need to use the green "script" boxes in advance map. I'll cover that in the lesson 6 follow up eventually.


ah lol i figured that out :P, now i just need it so that when i talk to her again she either responds that i still need to find it, or that after i found it she just talks normally to me(im guessing i set a seperate script for that to the actual character of her, with a checkflag to see if ive turned in the item already or not), although that makes it a bit confusing cuz then that means i have to make the script for finding the item and turning it in, thennn making the script on how she responds to whether you have found it or not

Ben.
October 20th, 2009, 10:56 AM
Do you realize how much you have helped me?
Thanks so much i really appreciate this.
Seriously i can't thank you enough. :D

SiegHart
October 22nd, 2009, 08:11 AM
hmm i think i know how to do it right but what if i wanted to do more than one script on a person, i dont know what order i would put everything

like first if you didnt find it already she would tell you where she last saw her pokedoll, then if you found it you give it to her and she says ur grandpa is looking for you, then anytime after that she just says thanks for helping her find the pokedoll... i cant figure out in which order everything would go though =[

chrunch
October 24th, 2009, 03:12 PM
Thanks, I can finally script now! How do I script pokemon trades ingame?

foullump
October 25th, 2009, 09:58 AM
hmm i think i know how to do it right but what if i wanted to do more than one script on a person, i dont know what order i would put everything

like first if you didnt find it already she would tell you where she last saw her pokedoll, then if you found it you give it to her and she says ur grandpa is looking for you, then anytime after that she just says thanks for helping her find the pokedoll... i cant figure out in which order everything would go though =[

This should do it. Just make sure that grandpa sets flag 0x1201 somewhere in his script or she'll never stop telling you that he's looking for you.
#org $go
lock
faceplayer
checkflag 0x1201
if 0x01 goto $done
checkflag 0x1200
if 0x01 goto $gpa
checkitem 0x50 1
compare 0x800D 0x0001
if 1 goto $have
message $talk
$talk 1 = I don't know where my DOLL is\hb0
boxset 6
release
end

#org $have
message $wow
$wow 1 = Holy crud you found it?! Thanks!\pBy the way\hb0
boxset 6
setflag 0x1200
goto $gpa

#org $gpa
message $g
$g 1 = Your grandpa is looking for you.
boxset 6
release
end

#org $done
message $so
$so 1 = So what's up?
boxset 6
release
end
Thanks, I can finally script now! How do I script pokemon trades ingame?

I never learned how to do that. What I would do, is use a script that already exists in the game, but go in via hex and just change the pokemon that are being traded, and the text, of course!

SiegHart
October 26th, 2009, 07:32 AM
This should do it. Just make sure that grandpa sets flag 0x1201 somewhere in his script or she'll never stop telling you that he's looking for you.
#org $go
lock
faceplayer
checkflag 0x1201
if 0x01 goto $done
checkflag 0x1200
if 0x01 goto $gpa
checkitem 0x50 1
compare 0x800D 0x0001
if 1 goto $have
message $talk
$talk 1 = I don't know where my DOLL is\hb0
boxset 6
release
end

#org $have
message $wow
$wow 1 = Holy crud you found it?! Thanks!\pBy the way\hb0
boxset 6
setflag 0x1200
goto $gpa

#org $gpa
message $g
$g 1 = Your grandpa is looking for you.
boxset 6
release
end

#org $done
message $so
$so 1 = So what's up?
boxset 6
release
end


I never learned how to do that. What I would do, is use a script that already exists in the game, but go in via hex and just change the pokemon that are being traded, and the text, of course!

thank you so much =D, i see that i was fairly close in my script, i just wasnt sure what order the first part should be in

asdfmoovie
October 26th, 2009, 12:58 PM
foullump do you have vista? if so can you right click on the .rbc file and see a "compile script" option? i have vista home basic 32 Bit. GREAT TUTORIAL THOUGHT. on pokescript if you click file --> encode does that mean compile?

evilmonkey1293
October 26th, 2009, 02:03 PM
foullump do you have vista? if so can you right click on the .rbc file and see a "compile script" option? i have vista home basic 32 Bit. GREAT TUTORIAL THOUGHT. on pokescript if you click file --> encode does that mean compile?I have Vista and I'm able to compile script. I wasn't able to a while back though. What I did was download XSE, make a random script, then save it. After that, I went back to my notepad, make my real script, saved it as (insert name here).rbc then I was able to right click and compile script. I'm sure there's a better and proper way to do it though.

CdubFosho
October 26th, 2009, 07:03 PM
i loved the videos i look forward to more, where did you get the text files that had all the items in the game and all the pokemon in the game?!? thanks :D

SiegHart
November 1st, 2009, 06:34 PM
hmmm you should do a movecamera tutorial maybe, im sure its simple but i havent seen a tutorial for it yet and i would like to know =P

o and on the script u gave me a few posts up, there something wrong with it, when i talk to the girl it doesnt freeze up, but it doesnt even lockplayer or activate the script

The Ominous Plains
November 4th, 2009, 12:12 PM
urrrgh, okay i followed everything, but when i go to talk to the fat guy (who i applied the script too) nothing happens

SiegHart
November 5th, 2009, 07:24 AM
urrrgh, okay i followed everything, but when i go to talk to the fat guy (who i applied the script too) nothing happens


lol thats what im having problems with too =P, but first off, what kind of script is it? maybe i can figure it out for you =D

Geinor
November 6th, 2009, 05:39 AM
Thank you , for this tutorial . Plese say this script are working in Pokemon Fire Red -

#org $script
lock
faceplayer
checkflag 0x1200
if 0x01 goto $done
message $talk
$talk 1 = This is for you .
boxset 6
givepokemon 198 5 0x0
setflag 0x1200
release
end

#org $done
message $noob
$noob 1 = Good bye .
boxset 6
release
end

SiegHart
November 7th, 2009, 03:41 AM
Thank you , for this tutorial . Plese say this script are working in Pokemon Fire Red -

#org $script
lock
faceplayer
checkflag 0x1200
if 0x01 goto $done
message $talk
$talk 1 = This is for you .
boxset 6
givepokemon 198 5 0x0
setflag 0x1200
release
end

#org $done
message $noob
$noob 1 = Good bye .
boxset 6
release
end

i see nothing wrong with that at all, it should work unless im missing something

Maxzeroedge
November 7th, 2009, 04:23 AM
well won't it give Pokemon each time you talk?
And how to prevent it if it does so? (been pondering over it for weeks now!!)

SiegHart
November 7th, 2009, 10:09 AM
well won't it give Pokemon each time you talk?
And how to prevent it if it does so? (been pondering over it for weeks now!!)

no it wont because you have the checkflag and set flag in there

The Ominous Plains
November 8th, 2009, 05:07 AM
i love these scripting tuts...
what will follump do next?
mapping?
Inserting OW sprites? (i need a video for this one especially)

darn it! it still isn't working. :(
when ever i go into that Buf Rite thing you have something that says $talk andthen $script
i only get $script

SiegHart
November 9th, 2009, 05:54 AM
i love these scripting tuts...
what will follump do next?
mapping?
Inserting OW sprites? (i need a video for this one especially)

darn it! it still isn't working. :(
when ever i go into that Buf Rite thing you have something that says $talk andthen $script
i only get $script

did u make sure there are no typos in it o.o, post ur script in a spoiler and maybe i can help

mustyoshi
November 10th, 2009, 02:35 PM
Can you give a tut for changing the video?

legendaryhacker101
November 16th, 2009, 07:25 PM
Hey I am new to this I watched all your tutorials and am trying to enter a wild batlle script for the Pokemon Ho-Oh. When i put it in the game all it does is do the cry and then the screen fades and does nothing could you help me.

Heres the script

#org $script
lock
faceplayer
cry 0xA1 79
#raw 0x33
pause 0x30
message $cry
$cry 1 = Ho-oh: Ho-ohhhhhhhhh!
boxset 6
wildbattle 250 70 1
pause 0x70
fadescreen 1
removesprite 1
setflag 0x1211
pause 0x10
fadescreen 0
release
end

foullump
November 17th, 2009, 07:07 AM
Hey I am new to this I watched all your tutorials and am trying to enter a wild batlle script for the Pokemon Ho-Oh. When i put it in the game all it does is do the cry and then the screen fades and does nothing could you help me.

Heres the script

#org $script
lock
faceplayer
cry 0xA1 79
#raw 0x33
pause 0x30
message $cry
$cry 1 = Ho-oh: Ho-ohhhhhhhhh!
boxset 6
wildbattle 250 70 1
pause 0x70
fadescreen 1
removesprite 1
setflag 0x1211
pause 0x10
fadescreen 0
release
end

Make sure that you have the pokescript database from lesson 4, and that you set the person's id to 1211 in advance map.

Also, does anyone have any suggestions for any more lessons or any other tutorials at all? I'm up for mapping tutorials and such.

SiegHart
November 17th, 2009, 08:04 AM
Make sure that you have the pokescript database from lesson 4, and that you set the person's id to 1211 in advance map.

Also, does anyone have any suggestions for any more lessons or any other tutorials at all? I'm up for mapping tutorials and such.

i vote for a move camera tutorial =D, and maybe level scripts if its possible this way

legendaryhacker101
November 17th, 2009, 02:21 PM
Make sure that you have the pokescript database from lesson 4, and that you set the person's id to 1211 in advance map.

Also, does anyone have any suggestions for any more lessons or any other tutorials at all? I'm up for mapping tutorials and such.
Yeah I did all that and its still not working Arrgh. Anyways I think its my advance map because my game has sprites that i deleted and they wont go away so... It sucks. I vote for making a gym leader or elite 4 trainer. Dpes it matter that I am using Pokemon Emerald instead of Fire Red because I think its not letting me remove sprites or wild battle codes because i tried to do the event after another event in Lesson 6 and that wouldn't work either.

thecougards
November 26th, 2009, 12:28 PM
Is there any way to chan how an itemsorksile iwant to makeitso I can catch rainer pokemon like wild pokemon with a certain ball cause I want to make a rocket game

Thanks

Jemzx
December 19th, 2009, 07:07 PM
Is there a movement script in wich makes walk into a warp and appear in another place??

Like professor OAK's event...

pspdude
December 20th, 2009, 12:51 PM
[REQUEST] Hey foullump can you make some tuts on how to make camera scripts, and event scripts? (ex: oak bring you in thr bulding and gives you the pokemon bla bla and ya)

chrunch
December 20th, 2009, 08:39 PM
Maybe you could make a lesson on some things you didn't do like move camera scripts,
healing scripts, etc...
Anyway, when I make a script for the proffessor to give me a pokemon, he gives me
one, but when I open the menu where the "Pokemon" option should be, theres no Pokemon
option to access it's summary, just like when I didn't have a pokemon.
But when I go into tall grass and battle, it's there!
Is that a bug, or do need a script command to make it accessable?

foullump
December 22nd, 2009, 11:44 PM
Maybe you could make a lesson on some things you didn't do like move camera scripts,
healing scripts, etc...
Anyway, when I make a script for the proffessor to give me a pokemon, he gives me
one, but when I open the menu where the "Pokemon" option should be, theres no Pokemon
option to access it's summary, just like when I didn't have a pokemon.
But when I go into tall grass and battle, it's there!
Is that a bug, or do need a script command to make it accessable?

It's very simple. Just put 'setflag 0x828'

355jt
December 23rd, 2009, 07:41 AM
Man this was the best tutorial i ever watched and now i get scripts completly

foullump
December 23rd, 2009, 09:39 PM
Man this was the best tutorial i ever watched and now i get scripts completly

Thanks for your comment! I'm glad this helped you!

lilfabbro
January 2nd, 2010, 11:39 PM
hey i need your help with your super script, i love it,
but i tryd to compile it to a clean rom i just put it on a Script tile, but when i go on it, the game freezes, can u do a walkthrough how to add that to the game step by step thank you

chrunch
January 3rd, 2010, 08:51 PM
When I put the trainer radius on A-map, then I test it, one step before I go into their
sight range, they come up to me and say endlessly, something like this: qAF...
So I'm stuck...

Apollo-player
January 6th, 2010, 12:20 PM
hey, i found this on youtube, and when i went back to try and find it again it seemed like it vanished.
it was the most helpful thing on scripting i could find on the entire web... but i could never get it onto
the game :( in the end i used XSE instead of pokescript.
could you make similar tutorials for that? i still need help...

altariaking
January 7th, 2010, 08:21 AM
these tutorials are good but could you please make some for xse? 'cause I still dont understand pokescript well :(

KotovSyndrome_
January 12th, 2010, 06:32 PM
Awesome tutorials, If i hadn't have found these I probably would have given up hacking straight away!
Now I use XSE, but I'll still use PS for things I can't do in XSE, like camera moving :D
Keep up the awesome videos :)

PS. Good luck on Pokemon White :D

0m3GA ARS3NAL
January 12th, 2010, 08:16 PM
Awesome tutorials, If i hadn't have found these I probably would have given up hacking straight away!
Now I use XSE, but I'll still use PS for things I can't do in XSE, like camera moving :D
Keep up the awesome videos :)

PS. Good luck on Pokemon White :D

You can move the camera in XSE as well, there is no difference between the two...

//This script, is an example of moving the camera in
//XSE. (Since anything in PS can be done in XSE lol)
//--------------------------------------------------
#dynamic 0x800000

#org @start
lock
special 0x113 //This Special will ENABLE use of applymovement 0x7F (Camera...)
applymovement 0x7F @move1 //This moves the camera (0x7F) up 3 spaces
waitmovement 0x0
message @helloworld 0x6
applymovement 0x7F @move2 //This moves the camera (0x7F) down 3 spaces
waitmovement 0x0
special 0x114 //This special ENDS the usage of the camera (Camera must be over player to work)
release
end

#org @move1
0x11 0x11 0x11 0xFE
//The movements in this script are for FIRE RED, and LEAF GREEN, R/S/E use different
//movement numbers, if you wish to use this script in R/S/E, please change the numbers
//of the movements accordingly!

#org @move2
0x10 0x10 0x10 0xFE

#org @helloworld
= Hello world!

we3z
January 14th, 2010, 11:54 AM
request you should do a tut on how to make a script to sell stuff

foullump
January 14th, 2010, 07:15 PM
request you should do a tut on how to make a script to sell stuff

Very good. I will get on that very soon.

Teomat
January 14th, 2010, 11:13 PM
I would be great, if you create the video about how to program "Boss fights" like Marowak in the first generation and "ghost" like unseen ghastlies(where pokemon cry and can't fight the enemy)

P.S And maybe some camera lessons would be good. How to move camera on another position, or create some spacial effects on camera

foullump
January 15th, 2010, 06:37 PM
I would be great, if you create the video about how to program "Boss fights" like Marowak in the first generation and "ghost" like unseen ghastlies(where pokemon cry and can't fight the enemy)

P.S And maybe some camera lessons would be good. How to move camera on another position, or create some spacial effects on camera

Well these fancy new programs I've actually never used before. I do have a tutorial on camera movement, however.

nicknoord
January 22nd, 2010, 11:03 AM
you should do a tut on how to make an event like the boat
how it can take you to a new area or something

20% Brock
January 23rd, 2010, 06:29 PM
You should definitely do a tutorial on trainer gender based events. Such as if you chose to play as a girl, one thing occurs, and if you chose to play as a boy, another happens.

PokeStoneR
January 30th, 2010, 03:42 AM
These HD Video's on scripting are by far the best I have ever seen, and the same time the most helpful.

With great music and easy-to-follow guides, you have created a great beginner tutorial on scripting.

Thank You.

limeyman
February 1st, 2010, 03:53 PM
Looks good I will look when i get the chance.

Nero_Forever
February 3rd, 2010, 10:12 PM
hey Foullump,

I just wanted to say a huge thank you to you, for your tutorials, without them I would never have gotten into hacking!

So THANK YOU!

super poke master
February 5th, 2010, 02:57 AM
Those scrripts don't work for me. Text is weird and its unreadable.

Repede
February 6th, 2010, 01:38 PM
Excellent tutorial. I'm gonna try to learn this stuff in my free time. I want to try my hand at a hack. Haha

super poke master
February 9th, 2010, 04:55 AM
Can someone help me, please? Excellent tutorial by the way.

Zenox9120
February 21st, 2010, 08:50 AM
Yo, Foullump.

Loving the tutorials, but I have a request. Is it possible to make a script so the player can do an in-game trade with an NPC? And if so, is it possible to customize the trade like the asking pokemon, the nickname, the item they have, etc? That would be cool.

SiegHart
February 23rd, 2010, 08:30 AM
Foullump you still checking this? xD, i cant find any good way to learn how to use movecamera scripts buttt i also like the idea above this comment(about in-game trades)

sooooo is it possible for you to show how to make those?

Chimchar 9
February 27th, 2010, 02:27 AM
I don't know what to use for my hack. Pokescript? or XSE? I know a bit of both though.
If Pokescript, then I'm sure this will help. :)

Midori
March 1st, 2010, 09:43 AM
Making weather change for multiple maps based on an event would be a nice tutorial!

CelebiKing123
August 4th, 2010, 03:44 AM
thanks, i combined the move camera script and the movements, he see's a girl he knows (camera move) then it goes back on him, he takes one step forward and she makes him follow her around and then he gives him a pokedex she found :) thanks, when are you going to be putting another tut on ?

TokioHumaNeko
August 4th, 2010, 09:14 AM
Is Pokescript also known as PKSV?
If so,I wanna know how to make a Level Script for Fire Red.

war rock exe
August 5th, 2010, 02:44 PM
Hey foullump, for lesson eight can you make gym learder scripts?

omegazeroINFI
August 12th, 2010, 02:29 PM
how different are the script commands on pokescript to xse?

redfable
August 12th, 2010, 09:29 PM
I need help im on the first lesson and i cant get it to work everything is fine untill I check my person nothing happens is something wrong with the script?
#org $script
lock
faceplayer
message $talk 1
$talk 1 = Hello.
boxset 6
release
end

ricecrispies
August 14th, 2010, 05:50 PM
I need help im on the first lesson and i cant get it to work everything is fine untill I check my person nothing happens is something wrong with the script?
#org $script
lock
faceplayer
message $talk 1
$talk 1 = Hello.
boxset 6
release
end

Yeah, instead of
message $talk 1
$talk 1 = Hello.

It should be
message $talk
$talk 1 = Hello.

I removed the 1 in the message line.

If I could get some help with givepokemon scripts, it'd be really cool. When my character is given his first pokemon, the Pokemon option doesn't appear in the start menu, and even if I catch another pokemon the option still isn't there, but I do have the pokemon as I can move them by going to a PC.

pikachux2
August 16th, 2010, 02:16 PM
I have the same problem i cant open the POKEMON option on the menu but i can use the pokemon i gave to the PLAYER in a battle and a PC is there a command that will make that option

colcolstyles
August 16th, 2010, 02:48 PM
I have the same problem i cant open the POKEMON option on the menu but i can use the pokemon i gave to the PLAYER in a battle and a PC is there a command that will make that option

Set one of the following flags depending on what game you're hacking:

0x828 - Fire Red
0x800 - Ruby
0x860 - Emerald

pikachux2
August 17th, 2010, 03:41 AM
thanx so much ive been searching for weeks to find that answer!!

Pac-Man1096
September 8th, 2010, 05:25 PM
Thanks for posting those scripting tutorials foullump! Without them, I wouldn't have been as far as I am now in my hack (Pokemon Graystone Version)! Anyway, the current problem I have now is with the hometown... I've been trying to make a little girl who sits in front of the exit to the town to the first route, but when I try to script with those green script boxes, the game just freezes when I step on them! The girl is supposed to walk towards you and tell you all the basic stuff about leaving without a Pokemon, etc. Then, the player moves back and so does the little girl back to where she was at first. I've tried to update the database already, but that didn't seem to help. Can you please help me? Suggestions? Any help will be appreciated. Thanks!

heavymetalthunder
September 19th, 2010, 04:16 PM
Hi. I'm having some trouble getting this program to work. I've installed it to the default location, and it appears to register correctly. However, when I right click on a script (created in notepad, saved as rbc), I don't get any sort of compile option. I have tried the "encode" option in the menu of poke script, but this does not work. If it matters, I am running windows 7 professional 64 bit. Thanks for any help.

Sinnoh_Freak
September 27th, 2010, 07:18 AM
Thanks alot Foullump. I thought I'd never learn to script. But after watching these tutorials. I now can! Thanks again!

Olli
October 18th, 2010, 01:00 PM
I have some BIG problems. I want to make a script like PROF OAK's, but the problem is just how. Also i want to make a person who's moving enter a warp tile (you know, a door)

francisbb
October 19th, 2010, 01:35 PM
Thanks foulump your scripting tutoriols are great
Can you make a warp script tutoriol thanks :)

masterquestmq
November 3rd, 2010, 03:42 AM
tutorials are awsome

but can u make something more advance like rival scripts?

CliveKoopa
November 17th, 2010, 06:04 AM
Thank you for your tutorials, I've watched most of them plus the newer ones as well several times. I found them through Youtube, not from this link. I didn't realise you were a member here as well and just found this page. I find video tutorials easier to understand than written ones and I can follow as I go along.

I-shadez
December 5th, 2010, 08:06 AM
i have been on the point of giving up....

the main problem i get is i type the script perfectly

#org $script
lock
faceplayer
message $talk
$talk 1 = hello.
boxset 6
release
end

and what happens is a small box opens in the corner, i click a/b then the game freezes....

if someone could help me it would be much apreciated

not usualy a bad sport with these sorts of things but its almost 3 in the morning and its frustrating me ha ha ha

also, it looks like your on vista, i am on 7, i think that windows 7 wont let tyou compile the script but vista will, i am seriously hoping this is not the case or there is a solution because this would be a nightmare for me to work out xse

PaulGR
June 16th, 2011, 09:39 AM
I was watching those videos long before i discover this site.... lol

ksipos
July 2nd, 2011, 08:31 AM
i followed the first lesson,but advance map giving me the message "No script editor defined"

Any idea about that ?

Bolens
July 2nd, 2011, 09:01 AM
i followed the first lesson,but advance map giving me the message "No script editor defined"

Any idea about that ?

Go to settings in Advance Map, and scroll down to "Choose Script Editor/Viewer" Now I'm going to say that Pokescript can not view Scripts...You'll need XSE or PKSV. Once you get one of them, I like XSE the best...Then you select the program when your in Advance MAP. Hope this helps.

ksipos
July 2nd, 2011, 09:17 AM
Go to settings in Advance Map, and scroll down to "Choose Script Editor/Viewer" Now I'm going to say that Pokescript can not view Scripts...You'll need XSE or PKSV. Once you get one of them, I like XSE the best...Then you select the program when your in Advance MAP. Hope this helps.


ok thanx for your help ;)

nimbo343
July 23rd, 2011, 12:07 PM
Please read this, because this has been bugging me for quite some time.
I need to find a way to make the guy who works in the Viridian mart to not give one the "Oak's Parcel". I've tried everything I could think of - changing his script, building a new map, even removing him as an event and more.
If anyone knows how to do this, I'd be very grateful!

Edit: The reason I'm posting here, is because PokeScript is the only scripting software I can figure out how to use. I've tried the others, and I didn't know what was up and down.

chrunch
July 23rd, 2011, 05:27 PM
Please read this, because this has been bugging me for quite some time.
I need to find a way to make the guy who works in the Viridian mart to not give one the "Oak's Parcel". I've tried everything I could think of - changing his script, building a new map, even removing him as an event and more.
If anyone knows how to do this, I'd be very grateful!

Edit: The reason I'm posting here, is because PokeScript is the only scripting software I can figure out how to use. I've tried the others, and I didn't know what was up and down.

It's because that script is a level script. try posting in the Simple Questions (http://www.pokecommunity.com/showthread.php?t=79614) thread.

nimbo343
July 24th, 2011, 03:07 AM
It's because that script is a level script. try posting in the Simple Questions thread.

Oh, so sorry - thank you for helping me get started :)

JinRazielGames
July 24th, 2011, 03:22 AM
Hi foullump.
I didn't know that you have a PC account!
I'm so in to your tuts.
But Poket Script won't work for me anymore.
So i wanted an XSE full tutorial.
Videos make me more suitable.

iYesith
July 31st, 2011, 06:21 AM
AWESOME!!! Thanks a lot dude...this is the only tutorial i found helpful...specially since itz in video format...keep up the good work =P

Nate VonGrimm
November 9th, 2011, 08:23 PM
Your tutorials are great and have helped me a load.
Could you possibly do a tutorial on Level (Map) Scripts?
I can't seem to find any and I really want to use more then just sprite scripts as it doesn't really give a lot of a realistic feel to a game.
Be great if you could!

AustinWolff
December 14th, 2011, 04:29 PM
I already don't see the point of this... XSE is the norm now. Pokescript is old, and buggy...
in my own opinion of course...

XSE sucks. i tried compiling my script and it said it didnt know the command "end". If a scripting program can compile scripts with the end command, it is pointless.

I have a problem with my script. I think I set the var values and unknowns right, but I think I did it wrong. can anyone tell me what to put in there? ( it is a script box in Amap. the point is when you step on the box, a guy will look at you, walk up to you then give you your badges, then dissappear)

#org $script
setvar 0x6000 0x1
lock
faceplayer
message $hey
$hey 1 = ?????: Psst. Hey, are you the\nlittle kid?\p\v\h01: Yes.
boxset 6
applymovement 3 $move
pausemove 0
message $talk
$talk 1 = ?????: Here are your badges\nAgent \v\h01.
boxset 6
setflag 0x807
setflag 0x808
setflag 0x809
setflag 0x80C
setflag 0x80D
message $badge
$badge 1 = \v\h01 recieved 5 Mission Badges.
boxset 6
applymovement 0xFF $move3
pausemove 0
message $why
$why 1 = \v\h01: Where's the other 3?\p?????: They were stolen.\nUnfortunately you will have\lto get the other 3 on your own.\nGood luck, agent.
boxset 6
fadescreen 0x1
removesprite 0x3
pause 0x10
setflag 0x1200
release
fadescreen 0x0
end

#org $move
#raw 0x56
#raw 0x07
#raw 0x07
#raw 0x05
#raw 0xFE

#org $move3
#raw 0x57
#raw 0xFE

p.s. I am using a ruby rom

droomph
December 16th, 2011, 10:15 PM
XSE sucks. i tried compiling my script and it said it didnt know the command "end". If a scripting program can compile scripts with the end command, it is pointless.

I have a problem with my script. I think I set the var values and unknowns right, but I think I did it wrong. can anyone tell me what to put in there? ( it is a script box in Amap. the point is when you step on the box, a guy will look at you, walk up to you then give you your badges, then dissappear)

#org $script
setvar 0x6000 0x1
lock
faceplayer
message $hey
$hey 1 = ?????: Psst. Hey, are you the\nlittle kid?\p\v\h01: Yes.
boxset 6
applymovement 3 $move
pausemove 0
message $talk
$talk 1 = ?????: Here are your badges\nAgent \v\h01.
boxset 6
setflag 0x807
setflag 0x808
setflag 0x809
setflag 0x80C
setflag 0x80D
message $badge
$badge 1 = \v\h01 recieved 5 Mission Badges.
boxset 6
applymovement 0xFF $move3
pausemove 0
message $why
$why 1 = \v\h01: Where's the other 3?\p?????: They were stolen.\nUnfortunately you will have\lto get the other 3 on your own.\nGood luck, agent.
boxset 6
fadescreen 0x1
removesprite 0x3
pause 0x10
setflag 0x1200
release
fadescreen 0x0
end

#org $move
#raw 0x56
#raw 0x07
#raw 0x07
#raw 0x05
#raw 0xFE

#org $move3
#raw 0x57
#raw 0xFE

p.s. I am using a ruby rom

What exactly IS the problem? I see everything's all right.

The only thing that I can see that wrong is that the applymovement should be before the faceplayer.

If they will be consistently moving, try removing the faceplayer.

Also, I don't think that it is necessary to pause it during the fadescreen.

AustinWolff
December 17th, 2011, 01:49 AM
What exactly IS the problem? I see everything's all right.

The only thing that I can see that wrong is that the applymovement should be before the faceplayer.

If they will be consistently moving, try removing the faceplayer.

Also, I don't think that it is necessary to pause it during the fadescreen.

the only problem is that i stil dont know how to insert it into A map

red5677
May 19th, 2013, 10:22 AM
Does anyone know how to create a starter event? In my hack the first gym leader wants me to find a pokemon, and I want someone in town to give me one, with the three images and all that, except multichoice and no pokeballs. I know you need to use flags and all that but I can't seem to figure it out, and there is no guide on actually doing it on the interwebs.