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
  #176   Link to this post, but load the entire thread.  
Old June 1st, 2008 (2:38 PM).
Gundam-Fighter's Avatar
Gundam-Fighter Gundam-Fighter is offline
Look at the ickle Rhydon!
 
Join Date: Apr 2008
Age: 29
Gender:
Nature: Quiet
Posts: 35
None of my scripts work and neither do any of the examples. When pokescript encodes it it ends in
Quote:
\- Processed 16 Buffers

|
\- Processed 0 Lines

|
\- Processed 0 Lines
What does this mean?
Reply With Quote
  #177   Link to this post, but load the entire thread.  
Old June 1st, 2008 (3:06 PM).
Megiddo-san's Avatar
Megiddo-san Megiddo-san is offline
Barium - Summer '12 Return?
 
Join Date: Dec 2007
Location: Where you least expect it
Age: 31
Gender: Male
Nature: Relaxed
Posts: 1,308
Does it say file not found or user cancel?
__________________

Hashire! Asu e tsudzuku shinka no micha wa
Reply With Quote
  #178   Link to this post, but load the entire thread.  
Old June 1st, 2008 (3:15 PM).
Gundam-Fighter's Avatar
Gundam-Fighter Gundam-Fighter is offline
Look at the ickle Rhydon!
 
Join Date: Apr 2008
Age: 29
Gender:
Nature: Quiet
Posts: 35
At every command it says invalid command e.g:
Quote:
#OFFSET: 0, 0
Invalid Command : lock
Invalid Command : faceplayer
Invalid Command : checkflag
Invalid Command : if
Invalid Command : checkflag
Invalid Command : if
Invalid Command : message
Invalid Command : boxset
Invalid Command : compare
Invalid Command : if
Invalid Command : message
Invalid Command : boxset
Invalid Command : release
Invalid Command : end
Can anyone help? Is it pokescript thats corrupt or something?
Reply With Quote
  #179   Link to this post, but load the entire thread.  
Old June 1st, 2008 (3:17 PM).
Megiddo-san's Avatar
Megiddo-san Megiddo-san is offline
Barium - Summer '12 Return?
 
Join Date: Dec 2007
Location: Where you least expect it
Age: 31
Gender: Male
Nature: Relaxed
Posts: 1,308
Did you open it up in pokescript? You need to save it as a .rbc and right click on it and pick compile.
__________________

Hashire! Asu e tsudzuku shinka no micha wa
Reply With Quote
  #180   Link to this post, but load the entire thread.  
Old June 1st, 2008 (3:42 PM).
Gundam-Fighter's Avatar
Gundam-Fighter Gundam-Fighter is offline
Look at the ickle Rhydon!
 
Join Date: Apr 2008
Age: 29
Gender:
Nature: Quiet
Posts: 35
I can't do the right click so I open poke script then click, file, encode and select the .rbc file but thats what happens. I don't know what's wrong because the script seems to be fine it's just it keeps saying invalid command for every line.
Reply With Quote
  #181   Link to this post, but load the entire thread.  
Old June 1st, 2008 (4:09 PM).
Megiddo-san's Avatar
Megiddo-san Megiddo-san is offline
Barium - Summer '12 Return?
 
Join Date: Dec 2007
Location: Where you least expect it
Age: 31
Gender: Male
Nature: Relaxed
Posts: 1,308
Ah, somewhere in the docs and tuts section there's a tut on how to fix that.
__________________

Hashire! Asu e tsudzuku shinka no micha wa
Reply With Quote
  #182   Link to this post, but load the entire thread.  
Old June 2nd, 2008 (11:32 AM).
Pokepal2007's Avatar
Pokepal2007 Pokepal2007 is offline
angels awakening
 
Join Date: Jun 2007
Location: Fire City
Nature: Calm
Posts: 458
what is wrong with dis script?

#org $begin
checkflag 0x220
if b_true goto $done
applymovement 0xFF $move
pausemove 0
message $1
boxset 6
warp 0x18 0x03 0x00
release
end

#org $done
message $2
boxset 6
applymovement 0xFF $move1
pausemove 0
release
end

#org $move
#raw 0x09 0x09 0x09 0x09 0x0B 0x0B 0x09 0xFE

#org $1
$1 1 =WHO DARE COME TO MY PLACE?\p\v\h01: my name is \v\h01,\nI came to ask you about the angels,\pYOU WANT TO KNOW ABOUT ANGELS\nTHEN TAKE THIS.

#org $2
$2 1 =Best i dont go here.

#org $move1
#raw 0x08 0xFE
__________________


Click here to feed me a Star Fruit!


Click here to feed me a Rare Candy!

[center]
Name: Hevaa Guardian
Mascot of Pokémon Heaven Legends
Reply With Quote
  #183   Link to this post, but load the entire thread.  
Old June 3rd, 2008 (5:30 PM).
Tré's Avatar
Tré Tré is offline
Raised by the bastards of 1969
 
Join Date: Oct 2007
Location: My town was blind from refinery sun
Gender: Male
Nature: Quiet
Posts: 1,591
uh..how can i make pikachu disappear after the wild battle... i mean if i walk away he'll appear again?? how can i do it???
Spoiler:

#org $battlepika
lock
faceplayer
checkflag 0x200
if 0x1 goto $done
message $poke
$poke 1 =Hey!!! \pIt's A Pikachu!!! \pBattle it???
boxset 0x5
compare LASTRESULT 0x1
if 0x1 goto $battle
message $no
$no 1 =Maybe This Pikachu Has an \nOwner...
boxset 0x6
release
end
#org $done
#raw 0x53 0x04 0x00
release
end
#org $battle
lock
faceplayer
message $pikachuu
$pikachuu 1 =Pika....Pikachuuuu!!!!
boxset 0x6
wildbattle 25 7 0
setflag 0x200
fadescreen 0x0
release
end
__________________
Reply With Quote
  #184   Link to this post, but load the entire thread.  
Old June 4th, 2008 (9:27 PM).
Perfect_Palkia_10's Avatar
Perfect_Palkia_10 Perfect_Palkia_10 is offline
Ruler of Space
 
Join Date: Apr 2008
Location: Between Dimensions
Age: 27
Nature: Naive
Posts: 28
How do you use flags to activate HM's.
__________________

Reply With Quote
  #185   Link to this post, but load the entire thread.  
Old June 5th, 2008 (8:51 AM).
Judgment's Avatar
Judgment Judgment is offline
 
Join Date: Jun 2008
Age: 30
Gender:
Posts: 12
Help. How can I make the sprite dissappear after a battle? Here is script:
#org $battle
lock
faceplayer
message $roar
boxset 6
wildbattle 1 5 0
setflag 0x206
release
end

#org $roar
$roar 1 = Bulbasaur:Bul..Bulba!

Plz help.
Reply With Quote
  #186   Link to this post, but load the entire thread.  
Old June 7th, 2008 (11:32 PM).
Ninja Caterpie's Avatar
Ninja Caterpie Ninja Caterpie is offline
AAAAAAAAAAAAA
 
Join Date: Mar 2008
Location: Best City OCE
Age: 27
Gender: Male
Nature: Relaxed
Posts: 5,978
Uh...What's the flag for the National Dex?
And, if there is one, the Oak's Parcel one?
__________________
Everything ends,
and that's always sad.
But everything begins again, too,
and that's always happy.
Reply With Quote
  #187   Link to this post, but load the entire thread.  
Old June 9th, 2008 (2:12 AM).
X-Buster X-Buster is offline
 
Join Date: Feb 2008
Posts: 713
Quote:
Originally Posted by dark lakitu View Post
Uh...What's the flag for the National Dex?
And, if there is one, the Oak's Parcel one?
try 16F if it will work but i think it will
__________________
Reply With Quote
  #188   Link to this post, but load the entire thread.  
Old June 9th, 2008 (1:09 PM).
Refresh's Avatar
Refresh Refresh is offline
 
Join Date: Jun 2008
Gender:
Posts: 3
Hi, I'm new here. I've been viewing this forum for quite a while though, without posting anything. I started making a hack for the RUBY US rom. Now I seem to have run into a scripting problem.

Quote:
#org $start
checkflag 0x800
if b_true goto $done
message $noway
boxset 6
applymovement 0x01 $push
applymovement 0xFF $pushed
pausemove 0
applymovement 0x01 $stepback
pausemove 0
release
end

#org $done
trainerbattle 0 0x001 $before $after
message $beaten
boxset 6
applymovement 0x01 $disappear
release
end

#org $noway
$noway =Woah, you're not getting passed me\nunless you beat me in a POKéMON battle.\pOh wait!\nYou don't have any POKéMON!\pGuess you're not leaving anytime soon!

#org $push
#raw 0x07 0xFE

#org $pushed
#raw 0x0F 0xFE

#org $stepback
#raw 0x06 0x03 0xFE

#org $before
$before =Woah, you're not getting passed me\nunless...\pWhat?\nYou're here to challenge me?\pAlright then,\nbring it on!

#org $after
$after =No way!

#org $beaten
$beaten =I underestimated you.\nYou won't beat me a second time!

#org $dissapear
#raw 0x0A 0x0A 0x0A 0x0A 0x54 0xFE
Ok, this scipt is supposed to stop the player from leaving the first town without a pokemon (obvious). When you do have a pokemon, the guy blocking the entrance will battle you and afterwards leave. Anyway, this works fine if I use the script on the person (so if you talk to your rival this script will start). However I want the script to start when you walk into the tile in front of him. I thought I could just place the script on the tile, but when you walk over that tile the game freezes. How can I fix this? (and any other problem with this script for that matter?)

PS: I checked many tut's and tried the search button but they weren't very helpfull, so I'm sorry if this has been asked before.
Reply With Quote
  #189   Link to this post, but load the entire thread.  
Old June 9th, 2008 (1:24 PM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by Refresh View Post
Hi, I'm new here. I've been viewing this forum for quite a while though, without posting anything. I started making a hack for the RUBY US rom. Now I seem to have run into a scripting problem.

Ok, this scipt is supposed to stop the player from leaving the first town without a pokemon (obvious). When you do have a pokemon, the guy blocking the entrance will battle you and afterwards leave. Anyway, this works fine if I use the script on the person (so if you talk to your rival this script will start). However I want the script to start when you walk into the tile in front of him. I thought I could just place the script on the tile, but when you walk over that tile the game freezes. How can I fix this? (and any other problem with this script for that matter?)

PS: I checked many tut's and tried the search button but they weren't very helpfull, so I'm sorry if this has been asked before.
To a lot of people's post my answer is read the tutorial.

Now Refresh within this tutorial, there was a little part on getting the scripts on tiles to work, I think.
In Advancemap 1.82 Change the first Unknown to 03 00 and the var number to 50 40.
In Advancemap 1.9 and higher, change the Unknown to 0003, and the var number to 4050.
It was in the tutorial, except it only covered Advancemap 1.82.
__________________
Gone.
Reply With Quote
  #190   Link to this post, but load the entire thread.  
Old June 9th, 2008 (1:28 PM).
Refresh's Avatar
Refresh Refresh is offline
 
Join Date: Jun 2008
Gender:
Posts: 3
Ok, thanks alot. Your tut has been real helpfull so far.
Reply With Quote
  #191   Link to this post, but load the entire thread.  
Old June 11th, 2008 (5:47 PM).
twi1ight's Avatar
twi1ight twi1ight is offline
Pokemon Paradox Creator
 
Join Date: May 2008
Location: on the earth
Gender:
Nature: Relaxed
Posts: 34
when I do a give pokemon script in the beginning the pokemon won't listen to me what am I doing wrong?
__________________
My Hack

Reply With Quote
  #192   Link to this post, but load the entire thread.  
Old June 11th, 2008 (6:00 PM).
cooley's Avatar
cooley cooley is offline
///Keepin' it simple
 
Join Date: Feb 2007
Location: United States
Age: 28
Gender: Male
Nature: Impish
Posts: 1,148
Well maybe it's because you gave the Pokemon at a level that is too high. You need to get a couple of badges first.

Quote:
Originally Posted by pika-pal-08 View Post
How do you use flags to activate HM's.
Hmm...You don't. You can use giveitem scripts to do so. But you need the required badge for the HM to work.
__________________

Reply With Quote
  #193   Link to this post, but load the entire thread.  
Old June 11th, 2008 (7:04 PM).
twi1ight's Avatar
twi1ight twi1ight is offline
Pokemon Paradox Creator
 
Join Date: May 2008
Location: on the earth
Gender:
Nature: Relaxed
Posts: 34
its at level 5 but it's a mew
__________________
My Hack

Reply With Quote
  #194   Link to this post, but load the entire thread.  
Old June 11th, 2008 (7:15 PM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
The level doesn't actually matter unless it's been traded to you. But if you knew anything about the layout of the Advance Games, is that Mew and I think Deoxys, will not listen to you unless you get them through the proper ways, or look for a way around it;).
__________________
Gone.
Reply With Quote
  #195   Link to this post, but load the entire thread.  
Old June 18th, 2008 (7:48 AM).
Cy-Chan's Avatar
Cy-Chan Cy-Chan is offline
GSC Hacker
 
Join Date: Jan 2005
Location: UK, England.
Age: 31
Gender:
Nature: Timid
Posts: 152
Is it possible to give a Pokémon with a specific move? So, giving the player a LV5 Charmander that knows Dragon Rage or something?
Reply With Quote
  #196   Link to this post, but load the entire thread.  
Old June 19th, 2008 (4:03 AM).
maoh4567's Avatar
maoh4567 maoh4567 is offline
that's what she said...
 
Join Date: May 2008
Location: Novaliches, Quezon City, Philippines
Age: 29
Nature: Modest
Posts: 44
hello the4x...

i've been resding your tutorial for a long time but...

the thing that i dont understand in scripting is setvars,addvar,copyvar,callasm

can u explain it to me...

thnx in advance...
Reply With Quote
  #197   Link to this post, but load the entire thread.  
Old June 19th, 2008 (3:33 PM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by maoh4567 View Post
hello the4x...

i've been resding your tutorial for a long time but...

the thing that i dont understand in scripting is setvars,addvar,copyvar,callasm

can u explain it to me...

thnx in advance...
What don't you understand about them?
Setvar assigns a designated value to a variable.
Addvar increases the value that is stored within a variable.
Copyvar Copies the value in one variable to another variable.
Callasm Calls an ASM function.
__________________
Gone.
Reply With Quote
  #198   Link to this post, but load the entire thread.  
Old June 20th, 2008 (4:26 AM).
maoh4567's Avatar
maoh4567 maoh4567 is offline
that's what she said...
 
Join Date: May 2008
Location: Novaliches, Quezon City, Philippines
Age: 29
Nature: Modest
Posts: 44
hmm...

is there a npc in firered that uses setvars/add/copy/callasm...
i really cant understand their uses
Reply With Quote
  #199   Link to this post, but load the entire thread.  
Old June 21st, 2008 (12:38 AM). Edited June 21st, 2008 by Perfect_Palkia_10.
Perfect_Palkia_10's Avatar
Perfect_Palkia_10 Perfect_Palkia_10 is offline
Ruler of Space
 
Join Date: Apr 2008
Location: Between Dimensions
Age: 27
Nature: Naive
Posts: 28
Okay I'm editing Mr Briney but I can't recreate his script so I can change the directions we travel together and go to 1 or more towns
so can anyone help
__________________

Reply With Quote
  #200   Link to this post, but load the entire thread.  
Old June 21st, 2008 (1:27 AM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by maoh4567 View Post
hmm...

is there a npc in firered that uses setvars/add/copy/callasm...
i really cant understand their uses
There would be some setvars and copyvars in most 'green' scripts.
You still haven't said what you don't understand about them.
__________________
Gone.
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.