The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page [Archive] Script help thread

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Closed Thread
 
Thread Tools
  #51   Link to this post, but load the entire thread.  
Old December 24th, 2007 (12:24 AM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by destinedjagold View Post
Hello pipz. I have a script that cannot be compiled. Wonder what's wrong with it. Please check and thanks in advance... ;)
Code:
#org $start
lock
faceplayer
message $sign
boxset 6
checkflag 0x249
if b_true goto $done
release
end

#org $done
message $sign2
boxset 6
release
end

#org $sign
$sign 1 = CINNABAR ISLAND POKéMON GYM

#org $sign2
$sign2 1 = BLAINE'S CERTIFIED TRAINERS:\nASH\lGARY\l\v\h01
It compiled fine for me. Maybe it's a problem in the file name. The name of the rbc can't contain, symbols like ";", ":", "'", "?", "/"....etc. I think you get the point. This also applies to the folder that the script is in.
So for example this wouldn't work.
Dragon's den.rbc
but this would
Dragons den.rbc

Quote:
Originally Posted by Frostbite View Post
Need some help.

The script won't continue and freezes after the trainerbattle is finished.

Code:
#org $start
checkflag 0x200
if B_TRUE goto $done
goto $continue

#org $continue
applymovement 0x08 $walk1
pause 0x7
goto $fight

#org $fight
trainerbattle 1 0x146 $before $after $further
end

#org $further
message $angry
$angry 1 = [RIVAL]: \c\h01\h08ugh[...]\pI still have alot to learn before I\nbattle you again.\pUp ahead is the next town[...]\pI'll always be one step ahead of you,\n[PLAYER]!
boxset 6
applymovement 0x08 $run
pause 0x07
#raw 53
#raw 200      '(People number 200?)
#raw 00
setflag 0x200
release
end

#org $done
release
end

#org $before
$before 1 = [RIVAL]: \c\h01\h08So, [PLAYER].\pI'm guessing that you just finished\ngetting your starter, right?\pWell, talk is cheap!\nLet's battle!

#org $after
$after 1 = H-how did I loose?!\nI had the upper hand!

#org $walk1
$walk1 1 ; #binary 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0xFE

#org $run
$run 1 ; #binary 0x20 0x20 0x20 0x20 0x20 0x20 0xFE
*Ignore the things in the brackets, those are just some things that will be edited using A-Text.
The problem, is that the trainerbattle continue only after a third pointer. It doesn't actually continue with the script. I guess you can just see in the edited script above.

Quote:
Originally Posted by ~*Pikafan*~ View Post
Does anyone have the offset for the Running Shoes?
They're flags. Here they are.
FR/LG = setflag 0x82F
R/S = setflag 0x860

Quote:
Originally Posted by Roddy View Post
Anyone can help me? It appears to do not work.
It does work, in fact, but it only appears some strange text.

Code:
#org 0x800000
lock
faceplayer
checkflag 0x10A
if 0x1 goto 0x800500
message 0x800100
boxset 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x800200
message 0x800300
boxset 0x6
release
end

#org 0x800100
=Pick the Pokemon?

#org 0x800200
message 0x800400
boxset 0x6
givepokemon 0x4 0x5 0x2
setflag 0x10A
release
end

#org 0x800400
=You picked the Pokemon!

#org 0x800500
message 0x800600
boxset 6
release
end

#org 0x800600
=Leave it there.
There were a few mistakes that I fixed. It should run properly now.

Quote:
Originally Posted by Crashink View Post
Thanks thethethethe, though I want the OW to remain, just the script not to happen again, what would I do?

Though I think i'm starting to get these sought of scripts and how they're set out.

edit:
I finished redoing the script, it should have people number 1 come to them, say they need a Pokemon, get the pokemon and walk back.
I've changed it so it only happens once.
In offset $finished, does it need an end after the release?

Code:
#org $startscript
lock
checkflag 0x200
if b_true goto $finished	'Checks if flag 0x200 has been set.
applymovement 0x1 $walkingto
pausemove 0       'or pause 0x70, it should have enough pauses for the movements. Or use pausemove 0, That just waits for the movements to end.
message $beforegetting
boxset 0x6
givepokemon 0x19 0x5 0x0         '0x25 = No. 37 = Vulpix.   0x19 = No. 25 = Pikachu
message $gettingpoke
boxset 0x6
applymovement 0x1 $gotpoke
pausemove 0
setflag 0x200	'Sets flag 0x200
release
end

#org $beforegetting
= Hi \v\h01!\pYou might need a Pokemon\nbefore going on your journey.

#org $gettingpoke
=\c\h01\h02You received a Pikachu!

#org $finished
release
end

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

#org $gotpoke
#raw 0x0A
#raw 0x0A
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x03
#raw 0xFE
A couple of problems still, but not as many.
I don't think you understand how to prevent things from occuring over and over. It's usually done with flags. Take a look at foullumps tutorial. I think that one explains it the best at the moment (I think Martin's might be clearer when he does it). I've put most of the changes in bold, and explained why I did it.

Think that helps most of the problems.
__________________
Gone.
  #52   Link to this post, but load the entire thread.  
Old December 24th, 2007 (1:10 AM).
/Circa's Avatar
/Circa /Circa is offline
a face in the clouds.
 
Join Date: Nov 2007
Location: Melbourne, Victoria
Gender: Male
Nature: Quiet
Posts: 881
Oh, so I use setflag for making it not repeat, but I need to make sure I don't clear it.
I have another script here.

Code:
#org $startscript
lock
checkflag 0x201
if B_true goto $endscript
applymovement 0x5 $theif
pause 0x10
applymovement 0x6 $policemen
pause 0x50
message $policetalk
boxset 0x6
applymovement ox6 $goaway
pause 0x10
setflag 0x201
release
end

#org $policetalk
= Argh!\lWhy didn't you stop him?

#org $theif
#raw 0x0A
#raw 0x08
#raw 0x08
#raw 0x0A
#raw 0x0A
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0xFE

#org $policemen
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0xFE

#org $goaway
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0xFE

#org $endscript
pause 0x10
release
end
__________________
dragging himself, forw
ard again, the pain has
still not diminished. E
ventually though, he e
merges inside a v
ery large room w

here everything about

the house

suddenly

changes.
  #53   Link to this post, but load the entire thread.  
Old December 24th, 2007 (1:20 AM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by Crashink View Post
Oh, so I use setflag for making it not repeat, but I need to make sure I don't clear it.
I have another script here.

Code:
#org $startscript
lock
checkflag 0x201
if B_true goto $endscript
applymovement 0x5 $theif
pause 0x10
applymovement 0x6 $policemen
pause 0x50
message $policetalk
boxset 0x6
applymovement 0x6 $goaway
pause 0x10
setflag 0x201
release
end

#org $policetalk
= Argh!\nWhy didn't you stop him?

#org $theif
#raw 0x0A
#raw 0x08
#raw 0x08
#raw 0x0A
#raw 0x0A
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0xFE

#org $policemen
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0xFE

#org $goaway
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0xFE

#org $endscript
release
end

Okay everything should run smoothly except for a couple of typos, I'll fix them.

In $endscript, if you keep the pause 0x10, everytime you walk over the tile after the script is complete, it would pause 0x10 everytime you walked over it. I just removed it.
__________________
Gone.
  #54   Link to this post, but load the entire thread.  
Old December 24th, 2007 (1:23 AM).
/Circa's Avatar
/Circa /Circa is offline
a face in the clouds.
 
Join Date: Nov 2007
Location: Melbourne, Victoria
Gender: Male
Nature: Quiet
Posts: 881
Oh I forgot to add something, how do I remove the people off the screen when the script is done?
__________________
dragging himself, forw
ard again, the pain has
still not diminished. E
ventually though, he e
merges inside a v
ery large room w

here everything about

the house

suddenly

changes.
  #55   Link to this post, but load the entire thread.  
Old December 24th, 2007 (3:17 AM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by Crashink View Post
Oh I forgot to add something, how do I remove the people off the screen when the script is done?
Well heres the most effective way.
#raw 0x53 0x(people no. in hex) 0x00
__________________
Gone.
  #56   Link to this post, but load the entire thread.  
Old December 24th, 2007 (3:56 AM).
BlackRainbow*'s Avatar
BlackRainbow* BlackRainbow* is offline
Pokemon Coralo Version ?
 
Join Date: Oct 2006
Location: Yiushu
Gender:
Nature: Bold
Posts: 518
Can anyone Help me with this script?:

Code:
#org 0x7B2B00
checkflag 0x10B
compare LASTRESULT 0x1
if 0x1 goto 0x7B2600
applymovement 0x1 0x7B2C00
pause 0x30
message 0x7B2D00
boxset 0x6
applymovement 0x1 0x7B2E00
pause 0x30
setflag 0x10B
release 
end

#org 0x7B2600
release
end

#org 0x7B2C00
#raw 0x62
#raw 0x13
#raw 0x13
#raw 0x01
#raw 0xFE

#org 0x7B2D00
= Hello\h01p. Prof.Roman just called me and he said that\nyou have to vist his\nlab. He have a present for you.

#org 0x7B2E00
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE
It freez when i step on it.
__________________
Pokemon Coralo Version...New Pokemon Petal.
Shyrika Region
  #57   Link to this post, but load the entire thread.  
Old December 24th, 2007 (4:05 AM).
Satoshi Sugimori's Avatar
Satoshi Sugimori Satoshi Sugimori is offline
Hermit
 
Join Date: Dec 2006
Location: Tokyo, Japan
Age: 30
Gender: Male
Nature: Timid
Posts: 860
Quote:
Originally Posted by ~Shirin View Post
Can anyone Help me with this script?:

Code:
#org 0x7B2B00
checkflag 0x10B
compare LASTRESULT 0x1
if 0x1 goto 0x7B2600
applymovement 0x1 0x7B2C00
pause 0x30
message 0x7B2D00
boxset 0x6
applymovement 0x1 0x7B2E00
pause 0x30
setflag 0x10B
release 
end

#org 0x7B2600
release
end

#org 0x7B2C00
#raw 0x62
#raw 0x13
#raw 0x13
#raw 0x01
#raw 0xFE

#org 0x7B2D00
= Hello\h01p. Prof.Roman just called me and he said that\nyou have to vist his\nlab. He have a present for you.

#org 0x7B2E00
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE
It freez when i step on it.
Do you got the right numbers on the tile it self?
I usally use
Unkown 03 00
var. Number 6C 40
var. Value 00 00
unkown 00 00
__________________
  #58   Link to this post, but load the entire thread.  
Old December 24th, 2007 (4:11 AM).
BlackRainbow*'s Avatar
BlackRainbow* BlackRainbow* is offline
Pokemon Coralo Version ?
 
Join Date: Oct 2006
Location: Yiushu
Gender:
Nature: Bold
Posts: 518
oh thank you i used the numbers you tell me and it works now.
Thank you again,
__________________
Pokemon Coralo Version...New Pokemon Petal.
Shyrika Region
  #59   Link to this post, but load the entire thread.  
Old December 24th, 2007 (1:10 PM).
Blitzballer's Avatar
Blitzballer Blitzballer is offline
Sarcasm: now GMO-free.
 
Join Date: Mar 2007
Location: Whisperpine Woods
Age: 29
Gender: Male
Nature: Jolly
Posts: 215
I just started scripting and now I'm addicted!!! can anyone tell me what's wrong with this script?:

Code:
#org $StarHop
lock
faceplayer
checkflag 0x829
if 0 goto $NeedDex
checkflag 0x828
if 1 goto $TakeCare
message $GetHop
$GetHop 1 = Ow, my back!\pExcuse me.\pWould you take care of Hoppip for me\lme?
callstd 5
compare LASTRESULT 1
if 0 goto $DontHop
givepokemon 187 5 0
jingle
message $GotHop
$GotHop 1 = You recieved a Hoppip!
setflag 0x828
message $NamePoke
$NamePoke 1 = Well of course you want to name it.
namepokemon
message $BeGood
$BeGood 1 = Be good to Hoppip now, ya here!

#org $NeedDex
message $NeedDex
$NeedDex 1 = Did you know that a friend of mine\lhas an old Pokedex that he doesn't\nneed anymore?\lYou should pay him a visit.
callstd 6
release
end

#org $DontHop
message $DontHop
$DontHop 1 = Fine, don't help an old man in need.\lHumph!
callstd 6
release
end

#org $TakeCare
message $TakeCare
$TakeCare 1 = Take care of your Pokemon, and\lyourself!
callstd 6
release
end
By the way, I'm using Firered.
Any Help is appreciated, THANKS!
  #60   Link to this post, but load the entire thread.  
Old December 24th, 2007 (2:13 PM).
Kingdra's Avatar
Kingdra Kingdra is offline
*-_Pokémon Larimar_-*
 
Join Date: Oct 2007
Location: Belgium
Gender:
Nature: Calm
Posts: 20
Can someone tell me what's wrong with this script (I'm using Fire Red):

Spoiler:
#org $tv
checkflag 0x800
if B_True goto $Done
checkflag 0x213
if B_true goto $Move
setflag 0x800
message $TV
$TV 1 = Big News!!!\pTeam Aqua is remarked in Ileon!!\nAfter their unsuccessful efforts,\pThey attempt to catch \nthe legendary pokemon Suicune\pwhich one is remarked\nIn Ileon a few days ago too...
boxset 6
release
end

#org $Done
release
end

#org $Move
applymovement 0XFF $Lala
pausemove 0
return

#org $Lala
$Lala 1 ; #Binary 0x12 0x12 0x12 0x01 0x65 0xFE
__________________
  #61   Link to this post, but load the entire thread.  
Old December 24th, 2007 (2:36 PM).
/Circa's Avatar
/Circa /Circa is offline
a face in the clouds.
 
Join Date: Nov 2007
Location: Melbourne, Victoria
Gender: Male
Nature: Quiet
Posts: 881
Thanks thethethethe, you've been helpfull :D.

So, I figured I'd remove them after their certain movements.
So, for the theif, when he finishes he's set, and the policemen in the $goaway pointer.

Code:
#org $startscript
lock
checkflag 0x201
if B_true goto $endscript
applymovement 0x5 $theif
pause 0x10
applymovement 0x6 $policemen
pause 0x50
message $policetalk
boxset 0x6
applymovement ox6 $goaway
pause 0x10
setflag 0x201
release
end

#org $policetalk
= Argh!\nWhy didn't you stop him?

#org $theif
#raw 0x0A
#raw 0x08
#raw 0x08
#raw 0x0A
#raw 0x0A
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x53 0x5 0x00
#raw 0xFE

#org $policemen
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0xFE

#org $goaway
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x53 0x6 0x00
#raw 0xFE

#org $endscript
release
end
__________________
dragging himself, forw
ard again, the pain has
still not diminished. E
ventually though, he e
merges inside a v
ery large room w

here everything about

the house

suddenly

changes.
  #62   Link to this post, but load the entire thread.  
Old December 24th, 2007 (2:58 PM).
ShyRayq's Avatar
ShyRayq ShyRayq is offline
Unprofessional Unprofessional
 
Join Date: Aug 2007
Gender: Male
Nature: Adamant
Posts: 1,855
Hey what are the offsets for the kanto badges
Are they the same as the ruby ones?
  #63   Link to this post, but load the entire thread.  
Old December 24th, 2007 (6:58 PM).
~*Pikafan*~'s Avatar
~*Pikafan*~ ~*Pikafan*~ is offline
Man I gotta stop leaving!
 
Join Date: Sep 2007
Age: 29
Gender:
Nature: Jolly
Posts: 202
Dragoon - No, they were posted in the Script Discussion thread before, on like Pg. 66. I asked that, and if I find it, I'll quote it here.

Kingdra - What's with the return? I can't really find out what's wrong until you say why.
__________________
I have returned ONC AGAIN!

Guitar Hero and Rock Band Rock. 'Nuff Said :P

I have a bunch of Friend Codes for Wii. These games I have Friend Codes for:

Guitar Hero World Tour (GHWT)
Super Smash Bros. Brawl (SSBB)
Guitar Hero 3 (GH3)
Pokemon Battle Revolution (PBR)
Rock Band 2, once I get it >_> (RB2)

RAWR. I NEED SHTUFF FOR MAH SIGNATURE. RAWR.
  #64   Link to this post, but load the entire thread.  
Old December 24th, 2007 (11:16 PM).
destinedjagold's Avatar
destinedjagold destinedjagold is offline
You can contact me in PC's discord server...
 
Join Date: May 2007
Age: 32
Gender: Male
Nature: Careful
Posts: 8,579
Merry Christmas everyone!

I would just like to ask if anyone can show me a simple code that checks whether the player is either a male or female...
E.g. when talking to a sprite in a map, if male, he says "Lovely Day.", and if female, he says "Beautiful Day.".

Thanks~
__________________

  #65   Link to this post, but load the entire thread.  
Old December 25th, 2007 (1:30 AM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by Crashink View Post
Thanks thethethethe, you've been helpfull :D.

So, I figured I'd remove them after their certain movements.
So, for the theif, when he finishes he's set, and the policemen in the $goaway pointer.

Code:
#org $startscript
lock
checkflag 0x201
if B_true goto $endscript
applymovement 0x5 $theif
pause 0x10
applymovement 0x6 $policemen
pause 0x50
message $policetalk
boxset 0x6
applymovement ox6 $goaway
pause 0x10
setflag 0x201
release
end

#org $policetalk
= Argh!\nWhy didn't you stop him?

#org $theif
#raw 0x0A
#raw 0x08
#raw 0x08
#raw 0x0A
#raw 0x0A
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x53 0x5 0x00
#raw 0xFE

#org $policemen
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0xFE

#org $goaway
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x53 0x6 0x00
#raw 0xFE

#org $endscript
release
end
I guess I didn't explain that #raw 53 thing very well.

#raw 0x53 0x06 0x00, should be apart of the script not the movements. I haven't checked what the movements for those numbers are, but it wouldn't work the decided way.
I'll show you an example of the #raw 53.

Code:
#org $start
checkflag 0x828
if 1 goto $done
applymovement 0x01 $move
pausemove 0
#raw 0x53 0x01 0x00   'Make the person dissapear after leaving the screen. 
setflag 0x828
release
end

#org $done
release
end

#org $move
#raw 0x12 0x12 0x12 0x12 0x12 0x12
#raw 0x12 0x12 0xFE
Quote:
Originally Posted by destinedjagold View Post
Merry Christmas everyone!

I would just like to ask if anyone can show me a simple code that checks whether the player is either a male or female...
E.g. when talking to a sprite in a map, if male, he says "Lovely Day.", and if female, he says "Beautiful Day.".

Thanks~
Here's part of a script that I cut out of LoD.
Code:
#org $start
checkflag 0x201
if 1 goto $alternate
checkgender                     'The part you're interested in.
compare 0x800D 0         '0x800D = LASTRESULT, I type 0x800D, because it's faster. 
if 1 goto $boyy
compare 0x800D 1
if 1 goto $girly

#org $girly
message $girlthink
boxset 4
#raw 68
pause 0x14
storetext 0x0 $girlli           'My added command, don't take notice of this. This command is not in a normal database.
message $lucky
boxset 6
....
....

#org $boyy
setflag 0x202
message $boythink
boxset 4
#raw 68
pause 0x14
storetext 0x0 $boyyyi           'My added command, don't take notice of this. This command is not in a normal database.
message $lucky
boxset 6
.....
.....
__________________
Gone.
  #66   Link to this post, but load the entire thread.  
Old December 25th, 2007 (1:32 AM).
destinedjagold's Avatar
destinedjagold destinedjagold is offline
You can contact me in PC's discord server...
 
Join Date: May 2007
Age: 32
Gender: Male
Nature: Careful
Posts: 8,579
Thanks, thethethethe, I'm going to try it out later when I fix my compiler!
Thanks and Merry Christmas~
__________________

  #67   Link to this post, but load the entire thread.  
Old December 25th, 2007 (3:00 AM).
Satoshi Sugimori's Avatar
Satoshi Sugimori Satoshi Sugimori is offline
Hermit
 
Join Date: Dec 2006
Location: Tokyo, Japan
Age: 30
Gender: Male
Nature: Timid
Posts: 860
Spoiler:
#org $balievrouw
lock
faceplayer
message $airtalk
$airtalk 1 =Welcome to Brazoon Airlines!\nCan I help you?
boxset 5
compare LASTRESULT B_TRUE
if B_False goto $no
message $yes
$yes 1 =Do you want to fly somewhere?
boxset 5
compare LASTRESULT B_TRUE
if B_False goto $no2
message $yes2
$yes2 1 =Do you have a ticket?
boxset 5
compare LASTRESULT B_TRUE
if B_False goto $no3
message $yes3
$yes3 1 =Than you have to go to \nthe gentleman nest to me.
boxset 6
release
end

#org $no
lock
faceplayer
$no 1 =Alright.\nHave a nice day.\nSee you the next time!
boxset 6
release
end

#org $no2
lock
faceplayer
$no2 1 =Sorry.\nBut then I can't help you.
boxset 6
release
end

#org $no3
lock
faceplayer
$no3 1 =Sorry.\nBut then I can't help you.
boxset 6
release
end



Spoiler:
#org $securityguy
lock
faceplayer
checkitem 0x79
if B_true goto $follow
message $nonono
$nonono 1 =You don't have a ticket \nso I can't help you.
boxset 6
release
end

#org $follow
lock
faceplayer
message $board
$board 1 =Do you want to go on the plane?
boxset 5
compare LASTRESULT B_TRUE
if B_false goto $nono
message $alright
$alright 1 =Alright!\nFollow me then!
boxset 6
applymovement 0x3 $followme
applymovement 0xFF $followme
pausemove 0
applymovement 0x3 $followme2
applymovement 0xFF $followme2
pausemove 0
message $goin
$goin 1 =All aboard!
boxset 6
applymovement 0x3 $get
pausemove 0
release
end

#org $nono
lock
faceplayer
Message $next
$next 1 =Alright see you next time!
boxset 6
release
end

#org $followme
$followme 1 ; #binary 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0xFE

#org $followme2
$followme2 1 ; #binary 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0xFE

#org $get
$get 1 ; #binary 0x13 0x11 0x11 0x11 0x11 0x12 0x11 0x11 0xFE


Can someone check my scripts please (I really suck at YES/NO...XD)
Thanks in advance..:)

Merry Christmas Everyone
__________________
  #68   Link to this post, but load the entire thread.  
Old December 25th, 2007 (8:47 AM). Edited December 25th, 2007 by cooley.
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
First Problem with a script in a Long time, hehe....
Well First, the script doesn't make entei appear, and it's like a Invisible entei jumping on trees!

Second the Cry doesn't work, Third, The Message "\v\h01: Put the NUGGET in the Items poket" Doesn't disappear, ....Well, Everything after

"Applymovement 0xFF $turn" Doesn't work.

Code:
#org $start
lock
message $neck
$neck 1 = \v\h01: Mom's Neckalace. Take it?
boxset 5
compare LASTRESULT 1
if 1 goto $got
message $put
$put 1 = \v\h01 left it there.
boxset 6
release
end

#org $got
giveitem 0x6E 1
#raw 0x53 0x01 0x00
#raw 0x55  0x02 0x00
applymovement 0x02 $entei
pausemove 0
applymovement 0xFF $turn
$turn 1 ; 0x2E 0x62 0xFE
pausemove 0
cry 0xF4
pause 0x28
message $scare
$scare 1 = \c\h01\h08\v\h01: AHHHHHH!!!!!!
boxset 6
applymovement 0x02 $jmp
$jmp 1 ; 0x14 0x4E 0x4E 0x4E 0x4E 0x4E 0x4E
pausemove 0
#raw 53
#raw 02
nop
message $have
$have 1 = \c\h01\h08\v\h01: You don't see that every\nday.\lI have to tell someone!
boxset 6
setflag 0x202
release
end

#org $entei
#raw 0x51 0x51 0x4F 0x4F 0x51 0x51 0x51 0x51 0x51
#raw 0x51 0xFE
I had to refer to thethethethe's hex tutorial to try and fix it!
Anyone willing to help out?
__________________

  #69   Link to this post, but load the entire thread.  
Old December 25th, 2007 (11:56 AM).
~*Pikafan*~'s Avatar
~*Pikafan*~ ~*Pikafan*~ is offline
Man I gotta stop leaving!
 
Join Date: Sep 2007
Age: 29
Gender:
Nature: Jolly
Posts: 202
Yeah, for the Turn, first of all, you have to put #binary after the ;.

Secondly, the reason why it doesn't appear is because the #raw 0x55 makes it disappear. So Entei disappears.

Third, You forgot a bunch of stuff to end the movements. You forgot a lot of 0xFE so it doesn't really work.

Fourth, cry isn't in poketscript. I think thethethethe put it in the Script Discussion thread because I asked him that. If I find it, I'll quote it.

I fixed it a little bit, try and see if it works. The only confusing thing is the nop that you put in the script. What's with that?

Code:
#org $start
lock
message $neck
$neck 1 = \v\h01: Mom's Neckalace. Take it?
boxset 5
compare LASTRESULT 1
if 1 goto $got
message $put
$put 1 = \v\h01 left it there.
boxset 6
release
end

#org $got
giveitem 0x6E 1
#raw 0x53 0x01 0x00
#raw 0x55 0x02 0x00
applymovement 0x02 $entei
pausemove 0
applymovement 0xFF $turn
$turn 1 ; #binary 0x2E 0x62 0xFE
pausemove 0
cry 0xF4
pause 0x28
message $scare
$scare 1 = \c\h01\h08\v\h01: AHHHHHH!!!!!!
boxset 6
applymovement 0x02 $jmp
$jmp 1 ; #binary 0x14 0x4E 0x4E 0x4E 0x4E 0x4E 0x4E 0xFE
pausemove 0
#raw 53
#raw 02
nop - What's with the nop?
message $have
$have 1 = \c\h01\h08\v\h01: You don't see that every\nday.\lI have to tell someone!
boxset 6
setflag 0x202
release
end

#org $entei
#raw 0x51 0x51 0x4F 0x4F 0x51 0x51 0x51 0x51 0x51 0xFE
__________________
I have returned ONC AGAIN!

Guitar Hero and Rock Band Rock. 'Nuff Said :P

I have a bunch of Friend Codes for Wii. These games I have Friend Codes for:

Guitar Hero World Tour (GHWT)
Super Smash Bros. Brawl (SSBB)
Guitar Hero 3 (GH3)
Pokemon Battle Revolution (PBR)
Rock Band 2, once I get it >_> (RB2)

RAWR. I NEED SHTUFF FOR MAH SIGNATURE. RAWR.
  #70   Link to this post, but load the entire thread.  
Old December 25th, 2007 (1:42 PM).
litium litium is offline
 
Join Date: Dec 2007
Posts: 26
Hi! i'm making a script... but i'm having trouble whit pokedex. Now, the basic script is:

#org $FirstPokemon
lock
faceplayer
message $talk1
$talk1 1 = Hello \v\h01.\nSince you're new in this area you\pwill need a PokeDex.\nHere, take it.
setflag 0x800
setflag 0x801
jingle
message $gotdex
$gotdex 1 = You recieved a PokeDex!
message $talk2
$talk2 1 = Now...
applymovement 0x0 $surprise
$surprise 1 ; #binary 0x62 0xFE
message $talk3
$talk2 3 = WHAT?!\n You didn't bring any pokemon?!\pWhat a buckethead... Well...\nI caught this Charizard LVL30 in Route 101\pTake it...
givepokemon 6 35 0
jingle
message $gotcharizard
$gotcharizard 1 = You recieved a lvl 30 Charizard!
message $talk4
$talk4 1 = In Route 101 you'll find\nReally nice pokemons. In order to \pcatch them you'll need pokeballs...\n...\p...\n...\pYou don't have any... well take 5.
-here goes the giveitem command, wich i dont understand-
message $talk5
$talk5 1 = Now, go ahead and talk to Richie\nHe will tell you where to go.
release
end

Help would be aprecciated thanks :D

EDIT: I'm using emerald
  #71   Link to this post, but load the entire thread.  
Old December 25th, 2007 (1:47 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
Quote:
Originally Posted by ~*Pikafan*~ View Post
Yeah, for the Turn, first of all, you have to put #binary after the ;.

Secondly, the reason why it doesn't appear is because the #raw 0x55 makes it disappear. So Entei disappears.

Third, You forgot a bunch of stuff to end the movements. You forgot a lot of 0xFE so it doesn't really work.

Fourth, cry isn't in poketscript. I think thethethethe put it in the Script Discussion thread because I asked him that. If I find it, I'll quote it.

I fixed it a little bit, try and see if it works. The only confusing thing is the nop that you put in the script. What's with that?

Code:
#org $start
lock
message $neck
$neck 1 = \v\h01: Mom's Neckalace. Take it?
boxset 5
compare LASTRESULT 1
if 1 goto $got
message $put
$put 1 = \v\h01 left it there.
boxset 6
release
end

#org $got
giveitem 0x6E 1
#raw 0x53 0x01 0x00
#raw 0x55 0x02 0x00
applymovement 0x02 $entei
pausemove 0
applymovement 0xFF $turn
$turn 1 ; #binary 0x2E 0x62 0xFE
pausemove 0
cry 0xF4
pause 0x28
message $scare
$scare 1 = \c\h01\h08\v\h01: AHHHHHH!!!!!!
boxset 6
applymovement 0x02 $jmp
$jmp 1 ; #binary 0x14 0x4E 0x4E 0x4E 0x4E 0x4E 0x4E 0xFE
pausemove 0
#raw 53
#raw 02
nop - What's with the nop?
message $have
$have 1 = \c\h01\h08\v\h01: You don't see that every\nday.\lI have to tell someone!
boxset 6
setflag 0x202
release
end

#org $entei
#raw 0x51 0x51 0x4F 0x4F 0x51 0x51 0x51 0x51 0x51 0xFE
Thanks but, I'm a Advanced scripter, and I know what I'm doing. Not to sound harsh but,
Quote:
Yeah, for the Turn, first of all, you have to put #binary after the ;.
You don't have to, It will work without it.
Quote:
Secondly, the reason why it doesn't appear is because the #raw 0x55 makes it disappear. So Entei disappears.
#raw 53 makes entei disappear, and #raw 55 makes it appear(but It has to be hidden) ;)And If you look at the hex tutorial, It clearly makes itself clear, xD
Quote:
Third, You forgot a bunch of stuff to end the movements. You forgot a lot of 0xFE so it doesn't really work.
You can write it the way I wrote it, so that you can have more than 15 movements.
Quote:
Fourth, cry isn't in poketscript. I think thethethethe put it in the Script Discussion thread because I asked him that. If I find it, I'll quote it.
Thanks, I didn't know that, because I never used it. lol
Quote:
I fixed it a little bit, try and see if it works. The only confusing thing is the nop that you put in the script. What's with that?
Nop is the same as #raw 0x00, and it is used to prevent freezing.
__________________

  #72   Link to this post, but load the entire thread.  
Old December 25th, 2007 (1:50 PM).
/Circa's Avatar
/Circa /Circa is offline
a face in the clouds.
 
Join Date: Nov 2007
Location: Melbourne, Victoria
Gender: Male
Nature: Quiet
Posts: 881
Here is a berry script for anyone that wants to use it.
If it works...

Code:
#org $oranberry
lock
faceplayer
checkflag 0x202
if b_true goto $alreadyhave
giveitem 0x8B 1
message $receive
boxset 0x6
setflag 0x202
release
end

#org $receive
= \v\h01 received an Oran Berry!
release
end

#org $alreadyhave
= Theres nothing here...
release
end
__________________
dragging himself, forw
ard again, the pain has
still not diminished. E
ventually though, he e
merges inside a v
ery large room w

here everything about

the house

suddenly

changes.
  #73   Link to this post, but load the entire thread.  
Old December 25th, 2007 (2:02 PM). Edited December 25th, 2007 by litium.
litium litium is offline
 
Join Date: Dec 2007
Posts: 26
i've tested my script (see avobe) and it works great (i had to ad boxset 6 under each message line, if not it wont talk haha. But still, NO DEX so NO POKEMON. In emerald wich flags do i have to activate to get the dex and the poke? thankssss :D

and also the 0x62 (which is supposed to bring a ! in Person #0 doesnt appears).

EDIT: This is how it looks on scripted...

'-----------------------
#org 0xE4110C
lock
faceplayer
msgbox 0x8E41168 '"Hello \v\h01.\nSince..."
callstd 0x6
setflag 0x800
setflag 0x801
jingle
msgbox 0x8E411B8 '"You recieved a PokeD..."
callstd 0x6
msgbox 0x8E411D0 '"Now......"
callstd 0x6
pause 0x40
applymovement 0x0 0x8E411D7
pause 0x40
msgbox 0x8E411D9 '"WHAT?!\n You didn't ..."
callstd 0x6
givepokemon 0x6 0x23 0x0
jingle
msgbox 0x8E41253 '"You recieved a lvl 3..."
callstd 0x6
msgbox 0x8E41274 '"In Route 101 you'll ..."
callstd 0x6
msgbox 0x8E41303 '"Now, go ahead and ta..."
callstd 0x6
release
end


'---------
' Strings
'---------
#org 0xE41168
= Hello \v\h01.\nSince you're new in this area you\pwill need a PokeDex.\nHere, take it.
#org 0xE411B8
= You recieved a PokeDex!
#org 0xE411D0
= Now...
#org 0xE411D9
= WHAT?!\n You didn't bring any pokemon?!\pWhat a buckethead... Well...\nI caught this Charizard in Route 101\pTake it...
#org 0xE41253
= You recieved a lvl 30 Charizard!
#org 0xE41274
= In Route 101 you'll find\nReally nice pokemons. In order to \pcatch them you'll need pokeballs...\n...\p...\n...\pYou don't have any... well take 5.
#org 0xE41303
= Now, go ahead and talk to Richie\nHe will tell you where to go.

'-----------
' Movements
'-----------
#raw 62 'mov62
#raw FE 'Exit

EDIT2: I've cheked and my person was #1 so, my bad... but 0x62 moves him foward... hehe.
  #74   Link to this post, but load the entire thread.  
Old December 25th, 2007 (2:13 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
Quote:
Originally Posted by Crashink View Post
Here is a berry script for anyone that wants to use it.
If it works...

Code:
#org $oranberry
lock
faceplayer
checkflag 0x202
if b_true goto $alreadyhave
giveitem 0x8B 1
message $receive
boxset 0x6
setflag 0x202
release
end

#org $receive
= \v\h01 received an Oran Berry!
release
end

#org $alreadyhave
= Theres nothing here...
release
end
There is more to a Berry Tree script than that, but oh well, you just made my life easier! thanks.

@litium: sorry if it seems like I'm ignoring you.
__________________

  #75   Link to this post, but load the entire thread.  
Old December 25th, 2007 (2:30 PM).
litium litium is offline
 
Join Date: Dec 2007
Posts: 26
No worries. I've just solved the giveitem and all that. The only problem i've got is that the Pokedex thingy is not working, either the givepokemon.
Closed Thread

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
Thread Tools

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:23 AM.