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
  #301   Link to this post, but load the entire thread.  
Old September 24th, 2008 (5:06 AM).
PKMNgamer's Avatar
PKMNgamer PKMNgamer is offline
youtube.com/pkmngamer
 
Join Date: Nov 2007
Location: MAINE, U.S.
Age: 29
Gender: Male
Nature: Modest
Posts: 22
Quote:
Okay, ummm... No. PET or some other trainer editing tool or hex.
uhmm right... Any other battle editing programs you recommend? I tried to get Trainer Editor to work but that messes up too.
Reply With Quote
  #302   Link to this post, but load the entire thread.  
Old September 27th, 2008 (10:47 AM).
Stop Messing Up My Files, Porygon-Z!'s Avatar
Stop Messing Up My Files, Porygon-Z! Stop Messing Up My Files, Porygon-Z! is offline
The shadow of Mismagius
 
Join Date: Aug 2008
Location: Distortion World
Gender:
Nature: Quiet
Posts: 159
Quote:
Originally Posted by Jack of Bl♠des View Post
Hey the4 , I was reading through this tut on the special2 section, but there was one question I had to post. Is there a way to remove a pokemon from your party? Not just relocating them to your PC , but basically removing them from the game. There was something going on in my hack where I wanted to imput the option to choose between keeping or releasing a pokemon that you've already purchased, but I now realize removing a pokemon isn't the same as releasing an item.
I think if the pokemon you want to remove is a specific pokemon, and you're forced to have it on the way to the place where the event happens, then maybe you could force a trade by having a script directly after the turned-down trade that makes you trade again.
__________________
I have come back from Smogon. Yippee!


You say you want a Revolution/Wii all wanna change the world
Reply With Quote
  #303   Link to this post, but load the entire thread.  
Old October 3rd, 2008 (1:15 PM).
Moi.'s Avatar
Moi. Moi. is offline
I think I got ownt.
 
Join Date: Aug 2007
Location: Ironforge with Leeroy
Age: 29
Gender:
Nature: Lax
Posts: 182
Okay ive been back to IrishWitches thread.

The link to pokescript is dead. Anyone know were to get it?
__________________
All I do is mine.
Reply With Quote
  #304   Link to this post, but load the entire thread.  
Old October 3rd, 2008 (1:22 PM).
Hiche.. Hiche.. is offline
 
 
Join Date: Apr 2008
Posts: 979
http://www.4shared.com/file/38402269/f1008a20/pokescript-et-pkmadv.html

Hope that helps.
Reply With Quote
  #305   Link to this post, but load the entire thread.  
Old October 3rd, 2008 (4:45 PM).
b1adeh b1adeh is offline
 
Join Date: Oct 2008
Posts: 2
This is just what I was looking for my friend, Something for the noobs.
Reply With Quote
  #306   Link to this post, but load the entire thread.  
Old October 4th, 2008 (9:00 AM).
Andryandrew Andryandrew is offline
Italian Asm Hacker
 
Join Date: Mar 2007
Age: 29
Gender:
Nature: Timid
Posts: 117
a VERY good tutorial... And, as i saw, It's always Up-to-date...

Thanks TheTheTheThe...
If I arrived to the ASM hacking level it's also thaks to this tutorial
__________________

Sorry for my bad English... I'm Italian :embarrass
Anybody that is a GBA ASM hacker is cool!
I'm a GBA ASM hacker --> I'm cool :D

Made Day-Night Routine! You can find the thread HERE
Reply With Quote
  #307   Link to this post, but load the entire thread.  
Old October 7th, 2008 (2:05 PM).
Da GaMeFrEaK's Avatar
Da GaMeFrEaK Da GaMeFrEaK is offline
Farmer/Swordsman
 
Join Date: Nov 2007
Location: various places
Age: 28
Gender: Male
Nature: Jolly
Posts: 18
I realize that. I have PoketScript and have been using it for quite a while. What I want to know is how to make a trainer dissappear and why my custom trainer always ends up to be a Team aqua grunt. Like I said, I have been using PET, which I have mentioned in my previous Forum, instead of the other program that IrishWitch has provided. I want to know how to get around that and be able to use the program PET by HelmetedRodent, unless you don't know what that is. OH! I almost forgot! As of recently, I came to a bump in the Wildbattle area. I tried to make a Deoxys, but when I talked to the sprite, the game froze! So, I tried the sample script IrishWitch provided...THAT DIDN'T WORK EITHER! So, I know I'm doing something wrong here. I'll post these two scripts for ya so you can get a better view of what I'm talking about.

Here's the one for the Wildbattle...

#org $StartWild
lock
faceplayer
cry 386
message $Cry
$Cry 1 = . . .
boxset 6
checkflag 0x808
if 0x1 goto $WildBatt
release
end

#org $Wildbatt
lock
wildbattle 386 82 1
release
setflag 0x500
fadescreen 0
end



And here's the one for the trainerbattle...

#org $Trainer
lock
faceplayer
trainerbattle 0 2B5 $MadChall $MadDefeat
$MadChall 1 = ?????: ...\p\v\h01: This guy has an eerie look on\nhis face...\lAs if I am staring at a ghost.\p?????: SCREEEEEECH!!
$MadDefeat 1 = ...
boxset 6
release
end

I honestly don't think anything is wrong with the script, but I just want to make sure.
Reply With Quote
  #308   Link to this post, but load the entire thread.  
Old October 7th, 2008 (10:44 PM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by Tazman View Post
I realize that. I have PoketScript and have been using it for quite a while. What I want to know is how to make a trainer dissappear and why my custom trainer always ends up to be a Team aqua grunt. Like I said, I have been using PET, which I have mentioned in my previous Forum, instead of the other program that IrishWitch has provided. I want to know how to get around that and be able to use the program PET by HelmetedRodent, unless you don't know what that is. OH! I almost forgot! As of recently, I came to a bump in the Wildbattle area. I tried to make a Deoxys, but when I talked to the sprite, the game froze! So, I tried the sample script IrishWitch provided...THAT DIDN'T WORK EITHER! So, I know I'm doing something wrong here. I'll post these two scripts for ya so you can get a better view of what I'm talking about.

Here's the one for the Wildbattle...

#org $StartWild
lock
faceplayer
cry 386
message $Cry
$Cry 1 = . . .
boxset 6
checkflag 0x808
if 0x1 goto $WildBatt
release
end

#org $Wildbatt
lock
wildbattle 386 82 1
release
setflag 0x500
fadescreen 0
end



And here's the one for the trainerbattle...

#org $Trainer
lock
faceplayer
trainerbattle 0 2B5 $MadChall $MadDefeat
$MadChall 1 = ?????: ...\p\v\h01: This guy has an eerie look on\nhis face...\lAs if I am staring at a ghost.\p?????: SCREEEEEECH!!
$MadDefeat 1 = ...
boxset 6
release
end

I honestly don't think anything is wrong with the script, but I just want to make sure.
I'm trying not to be rude, here, but all you're coming here for is help with a script. You want to know what's wrong with the script, look at this tutorial, and you may realise some things.
This may make no sense to you, but let's look at your first script.
Due to errors in the default database of Pokescript, you're script would compile this.
[6A] [5A] [30] [82] [01] [0F] [00] [XX] [XX] [XX] [XX] [09] [06] [29] [08] [08] [06] [01] [XX] [XX] [XX] [XX] [6C] [02] '[XX] [XX] [XX] [XX] is just a pointer.
That's only the $start wild section.
This in Pokescript language would be.
Code:
#org 0xXXXXXX
lock
faceplayer
cry pkmn_volbeat
#raw 0x0F 0x00
'The script would fall apart here, because it would try and use whatever byte is here, to do something.
Cry would use the first two bytes from that message command, but if you actually look at this tutorial and see how commands should be set out for Pokescript, you probably would have avoided that error.

Now the second script. Know why the battle is screwed up?
This line right here.
Code:
trainerbattle 0 2B5 $MadChall $MadDefeat
The 2B5 isn't detected as a number, because it isn't a number in a decimal system. Try using 0x2B5.
__________________
Gone.
Reply With Quote
  #309   Link to this post, but load the entire thread.  
Old October 8th, 2008 (1:59 PM). Edited October 8th, 2008 by Da GaMeFrEaK.
Da GaMeFrEaK's Avatar
Da GaMeFrEaK Da GaMeFrEaK is offline
Farmer/Swordsman
 
Join Date: Nov 2007
Location: various places
Age: 28
Gender: Male
Nature: Jolly
Posts: 18
I'm such a dork... Thanks man, that helps alot! I never would have figured that out.

Sorry, I must've made a mistake in writing my reply...I didn't mean to post that...weird. Here's my real reply (I posted this one...I don't know how that post ended up there):

I realize that. I have PoketScript and have been using it for quite a while. What I want to know is how to make a trainer dissappear and why my custom trainer always ends up to be a Team aqua grunt. Like I said, I have been using PET, which I have mentioned in my previous Forum, instead of the other program that IrishWitch has provided. I want to know how to get around that and be able to use the program PET by HelmetedRodent, unless you don't know what that is. OH! I almost forgot! As of recently, I came to a bump in the Wildbattle area. I tried to make a Deoxys, but when I talked to the sprite, the game froze! So, I tried the sample script IrishWitch provided...THAT DIDN'T WORK EITHER! So, I know I'm doing something wrong here. I'll post these two scripts for ya so you can get a better view of what I'm talking about.

Dangit!!! My posts are merging! This is confusing...
Reply With Quote
  #310   Link to this post, but load the entire thread.  
Old October 9th, 2008 (1:53 PM).
Da GaMeFrEaK's Avatar
Da GaMeFrEaK Da GaMeFrEaK is offline
Farmer/Swordsman
 
Join Date: Nov 2007
Location: various places
Age: 28
Gender: Male
Nature: Jolly
Posts: 18
Hey, remember me? I would like permission to copy your thread so I can use it on my CPU. I use my mom's CPU for the internet and whatnot. Hey, man sorry about the repeated quote. That was weird how it got there. I chose to go by what you said and I took a look at your Tutorial. I've heard from a lot of my friends you are really smart and talented. Turns out they were right! I can already tell that you did an excellent job on the tutorials.
Reply With Quote
  #311   Link to this post, but load the entire thread.  
Old October 9th, 2008 (9:38 PM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by Tazman View Post
Hey, remember me? I would like permission to copy your thread so I can use it on my CPU. I use my mom's CPU for the internet and whatnot. Hey, man sorry about the repeated quote. That was weird how it got there. I chose to go by what you said and I took a look at your Tutorial. I've heard from a lot of my friends you are really smart and talented. Turns out they were right! I can already tell that you did an excellent job on the tutorials.
Thank you. I've got no problem with people saving it onto there computer.
"Do not take without Permission", just means don't post on other forums.
__________________
Gone.
Reply With Quote
  #312   Link to this post, but load the entire thread.  
Old October 14th, 2008 (1:47 PM).
HackChu's Avatar
HackChu HackChu is offline
I need a haircut...
 
Join Date: Jan 2007
Location: Bankrupt Amerika
Age: 30
Gender: Male
Nature: Modest
Posts: 674
ay can anyone help me out with doing a rival script cuz i want more than one rival thx
Reply With Quote
  #313   Link to this post, but load the entire thread.  
Old October 14th, 2008 (2:05 PM).
Shadows's Avatar
Shadows Shadows is offline
 
Join Date: Jul 2008
Location: Chicago, IL
Age: 27
Nature: Calm
Posts: 857
Quote:
Originally Posted by tyson View Post
ay can anyone help me out with doing a rival script cuz i want more than one rival thx
Just fake a Rival as a trainerbattle, and name the rival on your own.
__________________
Reply With Quote
  #314   Link to this post, but load the entire thread.  
Old October 14th, 2008 (2:21 PM).
HackChu's Avatar
HackChu HackChu is offline
I need a haircut...
 
Join Date: Jan 2007
Location: Bankrupt Amerika
Age: 30
Gender: Male
Nature: Modest
Posts: 674
thx but i mean make a script where the trainer comes out of nowhere and battle than they walk off
Reply With Quote
  #315   Link to this post, but load the entire thread.  
Old October 14th, 2008 (2:26 PM).
Shadows's Avatar
Shadows Shadows is offline
 
Join Date: Jul 2008
Location: Chicago, IL
Age: 27
Nature: Calm
Posts: 857
Quote:
Originally Posted by tyson View Post
thx but i mean make a script where the trainer comes out of nowhere and battle than they walk off
You need to hide the sprite of the fake rival.
put a script on a-map
make the script, and in the script put the following commands(not in any order):

showsprite;applymovement;trainerbattle;hidesprite;waitmovement

Those are pretty much required for a basic one.
__________________
Reply With Quote
  #316   Link to this post, but load the entire thread.  
Old October 14th, 2008 (3:16 PM).
HackChu's Avatar
HackChu HackChu is offline
I need a haircut...
 
Join Date: Jan 2007
Location: Bankrupt Amerika
Age: 30
Gender: Male
Nature: Modest
Posts: 674
thx but could u show what one would look like
Reply With Quote
  #317   Link to this post, but load the entire thread.  
Old October 18th, 2008 (3:51 AM).
Pheya's Avatar
Pheya Pheya is offline
Is very excited about HH & SS.
 
Join Date: Apr 2008
Gender:
Posts: 80
Code:
#org $start
lock
faceplayer
message $follow
callstd 6
applymovement 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?
Reply With Quote
  #318   Link to this post, but load the entire thread.  
Old October 18th, 2008 (3:57 AM).
Surf's Avatar
Surf Surf is offline
...
 
Join Date: Jul 2008
Location: Rust
Age: 28
Gender: Male
Nature: Relaxed
Posts: 1,196
well what happens to it?
filler

wait i see the applymovment for the person should be 0x01
__________________
I'm looking for some good (When I say good,
I mean you can hold your own by yourself)
N**i Zombies players, to form a team or even a
clan, to play with casually.
Send me a PM with your Highest Level and your PSN,
and I'll get back to you.
Reply With Quote
  #319   Link to this post, but load the entire thread.  
Old October 18th, 2008 (5:26 AM).
Pheya's Avatar
Pheya Pheya is offline
Is very excited about HH & SS.
 
Join Date: Apr 2008
Gender:
Posts: 80
Quote:
Originally Posted by Hackimon12 View Post
well what happens to it?
filler

wait i see the applymovment for the person should be 0x01
It doesn't compile, but I'll adjust some things and try again.

Edit; still doesn't compile. It says Run-Time error 457 'This key is already associated with an element of this collection'
Reply With Quote
  #320   Link to this post, but load the entire thread.  
Old October 18th, 2008 (5:52 AM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Errors placed in BOLD.
Spoiler:
Code:
#org $start
lock
faceplayer
message $follow
callstd 6
applymovement 1 $walk
applymovement 0xFF $walkplayer
pausemove 0x0
release
end

#org $follow
=\v\h01!\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 $walkplayer
#raw 10
#raw 13
#raw 13
#raw 13
#raw 13
#raw 13
#raw 13
#raw 11
#raw 11
#raw 11
#raw 11
#raw FE

I think that's about it.
Also, if anyone noticed I didn't place "$1 1 =" before the text. I realised a week or so ago, that you can compile text with just an equal sign.
__________________
Gone.
Reply With Quote
  #321   Link to this post, but load the entire thread.  
Old October 18th, 2008 (6:52 AM).
BigSnipez BigSnipez is offline
 
Join Date: Sep 2008
Gender:
Posts: 2
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
Quote:
#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.
Reply With Quote
  #322   Link to this post, but load the entire thread.  
Old October 18th, 2008 (9:08 AM).
Shadows's Avatar
Shadows Shadows is offline
 
Join Date: Jul 2008
Location: Chicago, IL
Age: 27
Nature: Calm
Posts: 857
Quote:
Originally Posted by Dark Swellow View Post
Code:
#org $start
lock
faceplayer
message $follow
boxset 6
applymovement 0x1 $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.)
__________________
Reply With Quote
  #323   Link to this post, but load the entire thread.  
Old October 18th, 2008 (1:43 PM).
BigSnipez BigSnipez is offline
 
Join Date: Sep 2008
Gender:
Posts: 2
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!
Reply With Quote
  #324   Link to this post, but load the entire thread.  
Old October 18th, 2008 (7:14 PM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by T View Post
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.
__________________
Gone.
Reply With Quote
  #325   Link to this post, but load the entire thread.  
Old October 19th, 2008 (4:50 AM).
Pheya's Avatar
Pheya Pheya is offline
Is very excited about HH & SS.
 
Join Date: Apr 2008
Gender:
Posts: 80
- 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.
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.