The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary Hack Tutorials (https://www.pokecommunity.com/forumdisplay.php?f=66)
-   -   thethethethe's Scripting Tutorial (https://www.pokecommunity.com/showthread.php?t=128887)

thethethethe July 20th, 2008 7:47 PM

Quote:

Originally Posted by roywillow (Post 3775610)
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?

Well the available amount is the flags that are available.
I don't think you understand the point of the people id. There only use is to allow NPC's to disappear. If they don't disappear, they have there people id as 0000.

[HoN] Jereziah July 20th, 2008 7:47 PM

Wow!
This is a great scripting tuts...thankies for this

roywillow July 22nd, 2008 8:23 PM

Well, I wonder if thethethethe knows how to get the trainer info by hex editor? I cant use tools for I'm hacking a Chinese FR. I've almost found most of the info, but some are still unknown.

I find the trainer by searching his name. befor the name, there are four(or 3 maybe)bytes. I think they are the trainer class info, but I don't have any list of the class byte. So do you have any?

After it, there are a lot of 00, and in them, a 01 and 02(or 03) appears. What do they mean?

thethethethe July 22nd, 2008 10:50 PM

Quote:

Originally Posted by roywillow (Post 3785462)
Well, I wonder if thethethethe knows how to get the trainer info by hex editor? I cant use tools for I'm hacking a Chinese FR. I've almost found most of the info, but some are still unknown.

I find the trainer by searching his name. befor the name, there are four(or 3 maybe)bytes. I think they are the trainer class info, but I don't have any list of the class byte. So do you have any?

After it, there are a lot of 00, and in them, a 01 and 02(or 03) appears. What do they mean?

Why are you asking about this here? You can pm me about that.
It really doesn't have too much to do with this scripting thread.

roywillow July 23rd, 2008 12:24 AM

Ah...I just think you mentioned PET No in trainerbattle and PET doesn't work here.So...
Sorry for that

mhayquel July 24th, 2008 12:31 AM

legendary battle script
 
elow,,,is there someone can give me the legendary battle script for pokemon firered?

pokemon_hacking July 27th, 2008 12:52 AM

thethethethe i wondering if u can tell me how to contiue a script after u have warped

eample
Spoiler:
#ORG $start
lock
faceplayer
message $talk
boxset 6
goto $movement1
release
end

#ORG $talk
$talk 1 = \c\h01\h04hey wats that
overthere

#org $movement1
lock
faceplayer
message $hi
boxset 0x6
applymovement 0x06 $move
pausemove 0x0
applymovement 0xFF $move2
pause 0x30
applymovement 0xFF $move3
applymovement 0x06 $move3
pausemove 0
applymovement 0xFF $move4
pausemove 0
goto $warp
release
end

#ORG $hi
$hi 1 = \c\h01\h04 raaaa!
#org $move
#raw 0x0B 0x54 0xFE

#org $move2
#raw 0x06 0xFE

#org $move3
#raw 0x55 0xFE

#org $move4
#raw 0x49 0xFE

#org $warp
message $bed
boxset 6
warp 0x1 0x1 0x0
goto $giveitem
end

#org $bed
$bed 1 =going to your bedroom\nsee ya.

#org $giveitem
giveitem 13 5
release
end

flash boy July 27th, 2008 8:43 AM

I think a script ends after a warp so there is really no way :\

pokemon_hacking July 27th, 2008 7:47 PM

yer there is like in firered for the profeser

thethethethe July 27th, 2008 11:20 PM

Quote:

Originally Posted by pokemon_hacking (Post 3800226)
yer there is like in firered for the profeser

No there isn't. There is no a way for a script to continue after a warp.
That event is actually two scripts. Seamless, huh?
One is a normal event script in Pallet Town, in which Oak takes you back to the lab, and the second is a level script in Prof Oak's lab, which involves the conservation with Gary. They work together so well it seems like there is only one script.

pokemon_hacking July 28th, 2008 12:03 AM

help
 
so how do u do it then please reply

hi sir tomato my password is syvniti July 28th, 2008 12:00 PM

Quote:

Originally Posted by pokemon_hacking (Post 3800963)
so how do u do it then please reply

Hi, read this: http://www.pokecommunity.com/showthread.php?t=141650
It'll eksplain the level scripts...

alexk1995 July 30th, 2008 8:58 AM

really good tutorial and keep up the good ork with legend of dragons

awsome tutorails and keep up the awsome work

joeprice July 30th, 2008 10:05 AM

Very good tutorial for beginners, thanks a lot. I was wondering how to change/create scripts for lifts, for example right now i'm trying to get the lift in the rocket hideout to work without the lift key and also go to some new maps, can anyone tell me how to do that? Also im having a problem with my three starters, if you choose to give the pokemon a nickname the small picture and name of the pokemon are replaced by a picture of a ? and a lot of ????s where the name should be. Does anyone know how to fix this?
Thanks.

thethethethe July 31st, 2008 4:03 AM

Quote:

Originally Posted by joeprice (Post 3810875)
Very good tutorial for beginners, thanks a lot. I was wondering how to change/create scripts for lifts, for example right now i'm trying to get the lift in the rocket hideout to work without the lift key and also go to some new maps, can anyone tell me how to do that? Also im having a problem with my three starters, if you choose to give the pokemon a nickname the small picture and name of the pokemon are replaced by a picture of a ? and a lot of ????s where the name should be. Does anyone know how to fix this?
Thanks.

I've got another scripting tutorial that covers elevators. go to google and search for "pkmnhackersonline". I've got an older scripting tutorial there that covers them.
As for the starters. If you've still got the call 0x[I can't remember pointer off the top of my head], for the namepokemon to do this.
Code:

...
...  'Rest of script
message $1    'Would you like to name \v\h02?
boxset 0x5
compare 0x800D 0x1
if 0x1 gosub $namer
...
..
...  'Rest

#org $namer
setvar 0x8004 0x0  'For first Pokemon
call 0xYYYYYY
return



sasuketrooper August 4th, 2008 3:53 PM

what do we do with the scrpit when we're done with it, and could you see if this script is right?
#org $start
lock
faceplayer
message $10
boxset 4
#raw 0x68
fadescreen 0x0
fanfare 0x100
special 0x16F
waitfanfare
fadescreen 0x0
message $11
boxset 6
release
end
#org $10
$10 1 =you need the National Dex.\
#org $11
$11 1 =There you go.\

kotasu August 7th, 2008 6:01 AM

Where can I find the HEX numbers for the Pokemon?
(I need Chikorita, Totodile and Cyndaquil)

EvanMiesterX August 9th, 2008 8:03 PM

Well, I'm a beginning scripter, in fact, this is my first script, and for some reason it won't work... any help?

Spoiler:
Code:

#org $begin
lock
message $WeirdRock
$WeirdRock 1 =There's a strange marking\n on this rock that looks like\l a hand. Do you want to put\l your hand on the marking?
boxset 5
compare LASTRESULT WeirdRock
if WeirdRock goto $yes
message $no
$no 1 =You stepped away from the rock.
boxset 6
release
end

#org $yes
=You touch the rock, and every-\lthing starts to fade away...
boxset 6
warp 0x26 0x13 0x0
release
end




It's supposed to make it so when you press "A" on the rock, the game will ask you if you want to put your hand on the strange marking on it. If you say no, it should say you Stepped away from the rock. If you say yes, it should say You touch the rock, and everything starts to fade away, then you warp to a mysteriouos island. The problem is, it says "You stepped away from the rock." if you press yes or no. Any help is appreciated.

Da GaMeFrEaK August 9th, 2008 9:11 PM

If you want to make a good hack, then you should try using poketScript. I think Irish Witch has a link to download the program and other people have tutorials for it. I'd give it to ya but I don't know how to make links...sorry(I'm new to the quoting thing). Anyways, PoketScript is a really good Scripting program. All you have to do now is learn the script language, which Irish Witch teaches you in her tutorial.

thethethethe August 10th, 2008 10:42 PM

Quote:

Originally Posted by Hermes (Post 3828691)
I said this quite a while ago, this is the most useful tutorial on the entire PokéCommunity (more useful than any ASM, palette editing, mapping, and other tutorials that I've ever seen).

I've never done much scripting in the long time that I've been hacking, but this should help me out a lot.

Thank you so much for writing this tutorial, this is where I'll find everything.

Thanks Hermes/Esmas.
Quote:

Originally Posted by EvanMiesterX (Post 3844732)
Well, I'm a beginning scripter, in fact, this is my first script, and for some reason it won't work... any help?

Spoiler:
Code:

#org $begin
lock
message $WeirdRock
$WeirdRock 1 =There's a strange marking\n on this rock that looks like\l a hand. Do you want to put\l your hand on the marking?
boxset 5
compare LASTRESULT WeirdRock
if WeirdRock goto $yes
message $no
$no 1 =You stepped away from the rock.
boxset 6
release
end

#org $yes
=You touch the rock, and every-\lthing starts to fade away...
boxset 6
warp 0x26 0x13 0x0
release
end




It's supposed to make it so when you press "A" on the rock, the game will ask you if you want to put your hand on the strange marking on it. If you say no, it should say you Stepped away from the rock. If you say yes, it should say You touch the rock, and everything starts to fade away, then you warp to a mysteriouos island. The problem is, it says "You stepped away from the rock." if you press yes or no. Any help is appreciated.

Well you could start by reading this tutorial, and that could help. You seem to have just guessed about a lot of the layout of the scripting.

Code:

compare LASTRESULT WeirdRock
if WeirdRock goto $yes


Weirdrock? Try 0x1.
There's more there, I just chose to pick out this one little thing.

Quote:

Originally Posted by Tazman (Post 3844863)
If you want to make a good hack, then you should try using poketScript. I think Irish Witch has a link to download the program and other people have tutorials for it. I'd give it to ya but I don't know how to make links...sorry(I'm new to the quoting thing). Anyways, PoketScript is a really good Scripting program. All you have to do now is learn the script language, which Irish Witch teaches you in her tutorial.

What are you talking about? And who are you saying this to?
Do you understand this tutorial is for Pokescript?
You should try reading, it's a pretty handy skill.

*Poliwag* August 11th, 2008 1:07 AM

Does anyone know the special for the animation of the pokeballs flashing at the pokemon centre? (When nurse joy takes them and they are healed etc.)

roywillow August 13th, 2008 1:55 AM

In the part Applymovement, what are the var number and var value in the picture in the spoiler used for? It puzzles me a lot...

And are there any free vars(vars haven't been used in the game) that I can use during hacking?

Trodx August 13th, 2008 11:16 AM

Quote:

#dynamic 0x165A6B
#org 0x165A6B
lock
faceplayer
msgbox @statement
boxset 0x6
checkflag 0x827
if b_true goto @pass
if b_false goto @sry
release
end

#org @pass
msgbox @1
boxset 0x6
applymovement 0x02 @dude
pause 0x0
release
end

#org @sry
msgbox @2
boxset 0x6
release
end

'---------
' Strings
'---------
#org @statement
= The path ahead is very dangerous.

#org @pass
= Is that the symbol of Lance\n the dragon master?\lIf you have earned his respect,\lyou are certainly strong enough\l to pass.

#org @sry
= I can see it in your eyes.\nYou wouldn't last a few minutes\l out there. I can't let you pass.

#org @dude
#raw 0x11 0x12 0xFE
I keep getting a repeated line error but that shouldnt happen in this script. Any ideas?

thethethethe August 14th, 2008 2:19 AM

Quote:

Originally Posted by *Poliwag* (Post 3848293)
Does anyone know the special for the animation of the pokeballs flashing at the pokemon centre? (When nurse joy takes them and they are healed etc.)

Why don't you just decompile the script?

Quote:

Originally Posted by roywillow (Post 3853932)
In the part Applymovement, what are the var number and var value in the picture in the spoiler used for? It puzzles me a lot...

And are there any free vars(vars haven't been used in the game) that I can use during hacking?

hey don't actually have to be free. You can use the same one over and over and over and over, etc.

Quote:

Originally Posted by Trodx (Post 3854712)
I keep getting a repeated line error but that shouldnt happen in this script. Any ideas?

Dude, XSE is not Pokescript.
Use the script help thread.

Master_Track August 14th, 2008 3:02 AM

Hey thex4, it's your tutorial that made a scripter out of me ^^
I was just wondering if you may add the mulit command as well?
I think I know the sctructure, the main problem is that I don't have a list of the list's IDs.
Do you have one?
And is it possible to change a list by using thingy or Advance Text? Cause I really need my own multiple choice boxes.
hope ya can help
greez
M_T


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


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.