Go Back   The PokéCommunity Forums > ROM Hacking > ROM Hacking Hub

Notices
For all updates, view the main page.

ROM Hacking Hub General discussions about ROM Hacking and Emulation. Not sure where to start? This is the place for you.
Posting links to ROMs is illegal and is not tolerated anywhere on the forum.
New threads in this forum are to be approved by a moderator before they are displayed.



Closed Thread
Click here to go to the first staff post in this thread.  
Thread Tools
  #3876    
Old May 20th, 2010 (02:11 PM).
PEPITO1O1O's Avatar
PEPITO1O1O
~Saïx~
 
Join Date: Sep 2009
Location: Johto
Age: 20
Gender: Male
Nature: Calm
Send a message via AIM to PEPITO1O1O
So much information that is helpful. Thank you. But ver quickly would the car number need to be in the script somewhere?
__________________
Yusuke Urameshi


Spirit Detective
  #3877    
Old May 20th, 2010 (03:51 PM).
vietazn654's Avatar
vietazn654
A sound soul dwells within me
 
Join Date: Feb 2010
Location: Virginia
Age: 20
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to vietazn654 Send a message via Yahoo to vietazn654
Hi. New at scripting, and i TRIED to combine a givepokemon/applymovement script...
Game: Fire Red
Editor: XSE
Script:
Spoiler:
#dynamic 0x26D3B8

#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x2 @move
waitmovement 0x0
msgbox @2 0x6
release
end

#org @done
release
end

#org @move
#raw 0x11
#raw 0x12
#raw 0x01

#org @1
= Huh? Oh hello, \v\h01!

#org @2
= Since PROF. BIRCH doesn't have\ntime to give you a POKEMON, I got\la MUDKIP that I think you'll like!\pHere, \v\h01!
givepokemon 0x283 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @4 0x4
waitfanfare
closeonkeypress
setflag 0x1200
msgbox @5 0x6
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @6 0x6
release
end

#org @name
call 0x1A74EB
return

#org @4
= [black_fr]\v\h01 recieved a MUDKIP!

#org @5
= [black_fr]Would you like to give a nickname\nto MUDKIP?

#org @6
= Good luck on your adventure,\n\v\h01!


It freezes once the man i give the script to at Hi, [player]!
And yeah, if I did anything wrong, could you help correct it?
__________________

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
  #3878    
Old May 20th, 2010 (04:08 PM).
PeregrineFig's Avatar
PeregrineFig
Starting Pokémon Obsidian
 
Join Date: Feb 2010
Location: Michigan, USA
Age: 20
Gender: Male
Nature: Hardy
Quote originally posted by vietazn654:
Hi. New at scripting, and i TRIED to combine a givepokemon/applymovement script...
Game: Fire Red
Editor: XSE
Script:
Spoiler:
#dynamic 0x26D3B8

#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x2 @move
waitmovement 0x0
msgbox @2 0x6
release
end

#org @done
release
end

#org @move
#raw 0x11
#raw 0x12
#raw 0x01

#org @1
= Huh? Oh hello, \v\h01!

#org @2
= Since PROF. BIRCH doesn't have\ntime to give you a POKEMON, I got\la MUDKIP that I think you'll like!\pHere, \v\h01!
givepokemon 0x283 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @4 0x4
waitfanfare
closeonkeypress
setflag 0x1200
msgbox @5 0x6
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @6 0x6
release
end

#org @name
call 0x1A74EB
return

#org @4
= [black_fr]\v\h01 recieved a MUDKIP!

#org @5
= [black_fr]Would you like to give a nickname\nto MUDKIP?

#org @6
= Good luck on your adventure,\n\v\h01!


It freezes once the man i give the script to at Hi, [player]!
And yeah, if I did anything wrong, could you help correct it?
The problem is, you put additional commands after a text string. Nothing but text can go in those. After the msgbox @2 0x6, take this entire part:
Spoiler:

givepokemon 0x283 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @4 0x4
waitfanfare
closeonkeypress
setflag 0x1200
msgbox @5 0x6
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @6 0x6
release
end

and paste it in. That should fix it. I didn't thoroughly look for any other possible problems though, but I don't think you wrote anything else incorrectly.
__________________
Current Projects:
POKéMON AQUA SAPPHIRE
POKéMON OBSIDIAN

  #3879    
Old May 20th, 2010 (05:07 PM).
PEPITO1O1O's Avatar
PEPITO1O1O
~Saïx~
 
Join Date: Sep 2009
Location: Johto
Age: 20
Gender: Male
Nature: Calm
Send a message via AIM to PEPITO1O1O
Never mind I just figured it out by looking at the best tutorial so far:
Diego's.
So thank you Diego
__________________
Yusuke Urameshi


Spirit Detective
  #3880    
Old May 20th, 2010 (05:26 PM).
vietazn654's Avatar
vietazn654
A sound soul dwells within me
 
Join Date: Feb 2010
Location: Virginia
Age: 20
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to vietazn654 Send a message via Yahoo to vietazn654
Quote originally posted by PeregrineFig:
The problem is, you put additional commands after a text string. Nothing but text can go in those. After the msgbox @2 0x6, take this entire part:
Spoiler:

givepokemon 0x283 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @4 0x4
waitfanfare
closeonkeypress
setflag 0x1200
msgbox @5 0x6
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @6 0x6
release
end

and paste it in. That should fix it. I didn't thoroughly look for any other possible problems though, but I don't think you wrote anything else incorrectly.
i did that and it froze on the givepokemon script... do u think its the givepokemon script i messed up on? 0.O
__________________

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
  #3881    
Old May 20th, 2010 (05:31 PM).
PeregrineFig's Avatar
PeregrineFig
Starting Pokémon Obsidian
 
Join Date: Feb 2010
Location: Michigan, USA
Age: 20
Gender: Male
Nature: Hardy
Quote originally posted by vietazn654:
i did that and it froze on the givepokemon script... do u think its the givepokemon script i messed up on? 0.O
If that's the starter it's giving, a certain flag has to be set to activate the pokemon menu button first. Try setting flag 828 before the givepokemon command. If my off-the-top-of-my-head guess is wrong, decompile a starter script from a clean ROM and check what flags it uses.
__________________
Current Projects:
POKéMON AQUA SAPPHIRE
POKéMON OBSIDIAN

  #3882    
Old May 20th, 2010 (05:45 PM).
vietazn654's Avatar
vietazn654
A sound soul dwells within me
 
Join Date: Feb 2010
Location: Virginia
Age: 20
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to vietazn654 Send a message via Yahoo to vietazn654
Quote originally posted by PeregrineFig:
If that's the starter it's giving, a certain flag has to be set to activate the pokemon menu button first. Try setting flag 828 before the givepokemon command. If my off-the-top-of-my-head guess is wrong, decompile a starter script from a clean ROM and check what flags it uses.
yeah it is alright, so um, how do i "decompile" a starter script?
__________________

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
  #3883    
Old May 20th, 2010 (06:05 PM).
Chocos0's Avatar
Chocos0
Eclipse the Umbreon
 
Join Date: Apr 2010
Gender: Male
Hey everybody! One simple question.... (It's about scripting.. not the simple question thread)


You know when you press "Compile Script" The Log reads the script, but then the Buf Rit window won't appear (The window with the blue book to choose the ROM)
I can assure you, the script has no mistakes whatsoever.
I am using XSE.

Once I searched how to fix it, one of them said I needed to download the latest version of Buf Rit, is that a real file?
If so, can someone help me find it?
Google is no help when searching BufRit.
__________________


The more things change, the more they stay the same.

  #3884    
Old May 20th, 2010 (09:00 PM).
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL
Im comin' home...
Community Supporter Tier 1
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 22
Gender: Male
Nature: Gentle
Quote originally posted by Chocos0:
Hey everybody! One simple question.... (It's about scripting.. not the simple question thread)


You know when you press "Compile Script" The Log reads the script, but then the Buf Rit window won't appear (The window with the blue book to choose the ROM)
I can assure you, the script has no mistakes whatsoever.
I am using XSE.

Once I searched how to fix it, one of them said I needed to download the latest version of Buf Rit, is that a real file?
If so, can someone help me find it?
Google is no help when searching BufRit.
BufRit isn't part of the scripting scene anymore.
XSE doesn't need BufRit, that compile screen is the screen that tells you where you put your scripts.
(If you are using the NEWEST XSE, version you should be okay.)
Be sure you are scripting in eXtreme Script, instead of PokeScript or ScriptEd. (eXtreme Script is the name I've given XSE's Scripting language.)

To compile the script you right to a ROM, open XSE.
Then, click File --> Open
Open your GBA ROM.

Then, type (Or Copy/Paste) Your script into the XSE Script Box

At this point, I usually check my scripts over for errors by pressing the DEBUG button, if there is an error or revision I want to make, I make it.

Now, press the Compile Button. (The one with 2 Gears next to the Debug Button)

At this point, you should have the Compiler Log open.
The Compiler Log gives you the locations where your scripts were inserted at, as well as a detailed readout on your script(s).

Lets look at the Compiler Log shall we?
(Not posting an image, open up YOUR XSE, and look yourself.)
What you SHOULD see is a window, with 3 boxes in it. (As well as a Copy button)

The big box on top can BASICALLY be ignored as that doesn't seem to be your problem.
The 2nd box holds offset's "Dynamic Labels" and 3rd box holds the Compiled Scrip's Locations.

Now, find out which offset you need, by looking at your script.
(Most XSE scripters start their script with a big ol' :
#org @start )
If YOU did, that is PROBABLY what you want to select in the compiler log.

Now, click it in the log, and press the copy button.

NOW, open up A-Map, and find what you want to place the script on.
It goes in the box called "Script Offset" in A-Map

PROTIP
If you decide to reply to this post, dont quote the WHOLE post, that would be annoying and people won't like it.
__________________
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
  #3885    
Old May 21st, 2010 (06:39 AM).
Newpkmnhack
Beginning Trainer
 
Join Date: Mar 2008
Gender:
I've got into doing scripting and im doing quite well but i just want to seek someones advice.

Im using the pokemon fire red rom and im trying to do a script simular to when oak comes to the player when trying to leave pallet town with no pokemon. what im trying to do is when i stand on a script block i want a person to be seen and walk over to me. how ever i want him to be hidden like prof oak is before the script is activated ive tried to put the sprite as hidden in advancedmaps and when scripting use showsprite command but it just runs the script with the script hidden.

can anyone help

thanks
jon
  #3886    
Old May 21st, 2010 (04:06 PM). Edited June 5th, 2010 by SwirlyBirds.
SwirlyBirds's Avatar
SwirlyBirds
apparently not quite dead
Community Supporter
 
Join Date: May 2010
Nature: Lonely
Rom:Leafgreen
Event: Get Starter Pokemon
please help! I want to edit it so you don't have to try and go to route 1 for prof oak to give you a pokemon
does anyone know a script that can just put him in his lab at the first place?
__________________________________________________________________________________________________________
Quote originally posted by TheSandbox:
So, I'm hacking Ruby atm.
Is there any way to change where the character appears after coming out of the truck (in the beginning of the game)? And if so, how? Because I can't seem to find the script.
That's not scripting. You just need advancemap.
Find "Inside of Truck" on the list and edit the warps.
__________________
this is not a signature
  #3887    
Old May 21st, 2010 (04:16 PM).
vietazn654's Avatar
vietazn654
A sound soul dwells within me
 
Join Date: Feb 2010
Location: Virginia
Age: 20
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to vietazn654 Send a message via Yahoo to vietazn654
Alright, what's wrong with this one now?
Spoiler:
#dynamic 0x26D3B8

#org @start
checkflag 0x200
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x1 @move
waitmovement 0x0
msgbox @2 0x6
release
end

#org @done
release
end

#org @move
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x11
#org @1
= Wait, \v\h01!
#org @2
= I wanted to say good luck on your\nadventure!


It freezes right after: Wait, [PLAYER]!
To be more specific if freezes after the person walks to me.
__________________

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
  #3888    
Old May 21st, 2010 (04:53 PM).
destinedjagold's Avatar
destinedjagold
Oh Hai Thar~ 'ω'
Community Supporter
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
^ Simple...
You forgot the 0xFE command in your movement script.
Code:
#org @move
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x11
#raw 0xFE
Always remember to add 0xFE in every end of your movement command scripts.


edit...
by the way, for you to avoid the script to repeat, add the 'setflag' command...

Code:
#org @start
checkflag 0x200
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x1 @move
waitmovement 0x0
msgbox @2 0x6
setflag 0x200
release
end
__________________

3DS FC: 0061-1111-6462
TSV: 1364(X), 0790(OR)


  #3889    
Old May 21st, 2010 (04:58 PM).
vietazn654's Avatar
vietazn654
A sound soul dwells within me
 
Join Date: Feb 2010
Location: Virginia
Age: 20
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to vietazn654 Send a message via Yahoo to vietazn654
Quote originally posted by destinedjagold:
^ Simple...
You forgot the 0xFE command in your movement script.
Code:
#org @move
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x11
#raw 0xFE
Always remember to add 0xFE in every end of your movement command scripts.


edit...
by the way, for you to avoid the script to repeat, add the 'setflag' command...

Code:
#org @start
checkflag 0x200
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x1 @move
waitmovement 0x0
msgbox @2 0x6
setflag 0x200
release
end
oh man thanks! totally forgot about that part. thank u destinedjagold :]
__________________

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
  #3890    
Old May 21st, 2010 (05:11 PM).
PeregrineFig's Avatar
PeregrineFig
Starting Pokémon Obsidian
 
Join Date: Feb 2010
Location: Michigan, USA
Age: 20
Gender: Male
Nature: Hardy
Quote:
That's not scripting. You just need advancemap.
Find "Inside of Truck" on the list and edit the warps.
Incorrect. If you look at the truck's warps, they don't lead to Littleroot Town at all. There's data somewhere telling it what map bank, number, and coordinates to drop the player. There's a tool floating around that makes it easy to edit for people that are hexadecimally challenged, lazy, or some combination of the two.
__________________
Current Projects:
POKéMON AQUA SAPPHIRE
POKéMON OBSIDIAN

  #3891    
Old May 21st, 2010 (05:32 PM).
metapod23's Avatar
metapod23
Hardened Trainer
 
Join Date: Mar 2009
Gender: Male
Nature: Timid
Quote originally posted by Newpkmnhack:
I've got into doing scripting and im doing quite well but i just want to seek someones advice.

Im using the pokemon fire red rom and im trying to do a script simular to when oak comes to the player when trying to leave pallet town with no pokemon. what im trying to do is when i stand on a script block i want a person to be seen and walk over to me. how ever i want him to be hidden like prof oak is before the script is activated ive tried to put the sprite as hidden in advancedmaps and when scripting use showsprite command but it just runs the script with the script hidden.

can anyone help

thanks
jon
Set Prof. Oak's Person ID to 2C and just use showsprite and hidesprite command in the script.
__________________
  #3892    
Old May 21st, 2010 (06:17 PM). Edited May 21st, 2010 by SwirlyBirds.
SwirlyBirds's Avatar
SwirlyBirds
apparently not quite dead
Community Supporter
 
Join Date: May 2010
Nature: Lonely
help please!!!!
Rom: Leafgreen
Problem: Game Freeze
When you finish talking to this guy your game freezes. Please help!

Here's the script.

#org 0x719B18
checkflag 0x828
if 0x0 goto 0x88000BC
if 0x1 goto 0x8800154
end
lock
faceplayer

#org 0x8000BC
lock
msgbox 0x88000D2 '"Dad: Hey [player] how are you ? Yes I kn..."
callstd 0x6
applymovement 0x1 0x880014F
waitmovement 0x0
release
end

#org 0x800154
release
end


#org 0x80014F
#raw FE 'End of Movements


#org 0x8000D2
= Dad: Hey [player] how are you ? Yes I know\nyou can't wait to go to [Rival]'s house.\pOh yeah Prof. Logan wants to see you\n about something.
  #3893    
Old May 22nd, 2010 (12:03 AM).
Newpkmnhack
Beginning Trainer
 
Join Date: Mar 2008
Gender:
Quote originally posted by metapod23:
Set Prof. Oak's Person ID to 2C and just use showsprite and hidesprite command in the script.
I want to the script to happen simular to Oak but not to oak i want it to happen to another sprite. But if in advancemaps i put as hidden and i use the showsprite command in scripting it still wont unhide the sprite i need the sprite to be visable asoon as i stand on the script block

;]]

jon
  #3894    
Old May 22nd, 2010 (05:52 AM).
metapod23's Avatar
metapod23
Hardened Trainer
 
Join Date: Mar 2009
Gender: Male
Nature: Timid
Quote originally posted by Newpkmnhack:
I want to the script to happen simular to Oak but not to oak i want it to happen to another sprite. But if in advancemaps i put as hidden and i use the showsprite command in scripting it still wont unhide the sprite i need the sprite to be visable asoon as i stand on the script block

;]]

jon
Well, I can't make it any clearer. Don't set the sprite you want to be hidden to hidden. Just set its person ID to 2C. Any sprite with the person ID "2C" will be hidden on your map when you enter. Use showsprite in a script to show it and hidesprite to hide it again.
__________________
  #3895    
Old May 22nd, 2010 (07:08 AM).
vietazn654's Avatar
vietazn654
A sound soul dwells within me
 
Join Date: Feb 2010
Location: Virginia
Age: 20
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to vietazn654 Send a message via Yahoo to vietazn654
New error in this script <.<

Spoiler:
#dynamic 0x26D3B8

#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x1 @move
waitmovement 0x0
msgbox @2 0x6
setflag 0x200
release
end

#org @done
release
end

#org @move
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0xFE
#org @1
= Wait, \v\h01!
#org @2
= I want to say good luck on your\nPOKEMON adventure!


It works fine, but it keeps on repeating.
__________________

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
  #3896    
Old May 22nd, 2010 (07:44 AM).
Newpkmnhack
Beginning Trainer
 
Join Date: Mar 2008
Gender:
Quote originally posted by metapod23:
Well, I can't make it any clearer. Don't set the sprite you want to be hidden to hidden. Just set its person ID to 2C. Any sprite with the person ID "2C" will be hidden on your map when you enter. Use showsprite in a script to show it and hidesprite to hide it again.
Sorry it shows how newbish i am, this has worked much appriated.

Jon
  #3897    
Old May 22nd, 2010 (12:32 PM).
vietazn654's Avatar
vietazn654
A sound soul dwells within me
 
Join Date: Feb 2010
Location: Virginia
Age: 20
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to vietazn654 Send a message via Yahoo to vietazn654
nvm fixed meh script Anyways I want a script with the dad but messed up symbols pop out after the script. Is it because I need a special flag? Do I need to decompile a start script? :o becuz i dunno how
__________________

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
  #3898    
Old May 22nd, 2010 (12:50 PM). Edited May 22nd, 2010 by dizzyKitty.
dizzyKitty's Avatar
dizzyKitty
The Confuzzled Coding Cat
 
Join Date: May 2010
Location: Virginia
Age: 23
Gender: Female
Nature: Bold
Send a message via AIM to dizzyKitty Send a message via Windows Live Messenger to dizzyKitty Send a message via Yahoo to dizzyKitty
Mmk, this is a bit more of a general question and it could probably use more specifics, but:

Occasionally when I code dialogue scripts, I'll compile a script and open it again a few minutes later after opening and compiling others, and the old script will borrow text from a newer one and cut it off. This happens with people as well as signposts and they often mix and match, which kinda irritates me.

For example, I've placed a signpost script on a door that cannot be entered with the text, "The door is locked." (And there is probably a better way to display that script on a door, I'm willing to bet, but this is what I'm using for the time being. Pardon my newbieishness. :3) However, I checked one of my rocket grunts later on, who's script is "What are you looking at?" and it shows up as "What are you looking at?The door is l". At the moment I'm just going back and re-editing things when this happens, and I have a feeling this has something to do with... the offsets running into each other because they're too close together, or something (which doesn't make a lot of sense as there should be enough space for the text?), but I've tried skipping around with offsets as well and it still hiccups occasionally.

I also run into instances where the script will dump random characters ("\h0F \h7c \h80\h08\h09\h03\h02" and so on) at the end of lines. I thought this might be because of extra whitespace at the end of the code, but that doesn't seem to be it.

Little help please? I'm using score_under's PKSV by the way.
  #3899    
Old May 22nd, 2010 (01:13 PM).
vietazn654's Avatar
vietazn654
A sound soul dwells within me
 
Join Date: Feb 2010
Location: Virginia
Age: 20
Gender: Male
Nature: Adamant
Send a message via Windows Live Messenger to vietazn654 Send a message via Yahoo to vietazn654
Code:
#dynamic 0x26D46C

#org @start
checkflag 0x1200
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x2 @move
waitmovement 0x0
msgbox @2 0x6
msgbox @pokemon 0x6
setflag 0x1200
release
end

#org @done
release
end

#org @move
#raw 0x62
#raw 0x11
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x00
#raw 0xFE

#org @1= Oh, \v\h01!

#org @2= DAD: Since PROF. BIRCH said he\ncouldn't give you a POKEMON, I\lcaught a MUDKIP for you, \v\h01!\pHere's your MUDKIP!

#org @pokemon
givepokemon 0x283 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
release
end

#org @name
call 0x1A74EB
return

#org @3
= [black_fr]\v\h01 recieved a MUDKIP!

#org @4
= [black_fr]Would you like to give a nickname\nto MUDKIP?

#org @5
= Have fun taking care of the\nMUDKIP, \v\h01!
The problem is, it has gibberish words after he's about to give me a Pokemon. And yes, this is the strater Pokemon. :\
__________________

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
  #3900    
Old May 22nd, 2010 (05:15 PM).
destinedjagold's Avatar
destinedjagold
Oh Hai Thar~ 'ω'
Community Supporter
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Quote originally posted by vietazn654:
Spoiler:
Code:
#dynamic 0x26D46C

#org @start
checkflag 0x1200
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x2 @move
waitmovement 0x0
msgbox @2 0x6
msgbox @pokemon 0x6
setflag 0x1200
release
end

#org @done
release
end

#org @move
#raw 0x62
#raw 0x11
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x00
#raw 0xFE

#org @1= Oh, \v\h01!

#org @2= DAD: Since PROF. BIRCH said he\ncouldn't give you a POKEMON, I\lcaught a MUDKIP for you, \v\h01!\pHere's your MUDKIP!

#org @pokemon
givepokemon 0x283 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
release
end

#org @name
call 0x1A74EB
return

#org @3
= [black_fr]\v\h01 recieved a MUDKIP!

#org @4
= [black_fr]Would you like to give a nickname\nto MUDKIP?

#org @5
= Have fun taking care of the\nMUDKIP, \v\h01!
The problem is, it has gibberish words after he's about to give me a Pokemon. And yes, this is the strater Pokemon. :\

The problem in your script is in the part where you call the "pokemon" address.
In your main body script, you typed the command 'msgbox @pokemon 0x6', which you are telling the ROM that 'pokemon' is a text to be displayed, but down your script, the 'pokemon' you gave to your ROM is not a plain text, but a continuation of your script, which probably gave you that error.

Code:
#dynamic 0x26D46C

#org @start
checkflag 0x1200
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x2 @move
waitmovement 0x0
msgbox @2 0x6
call @pokemon
setflag 0x1200
release
end

#org @done
release
end

#org @move
#raw 0x62
#raw 0x11
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x00
#raw 0xFE

#org @1= Oh, \v\h01!

#org @2= DAD: Since PROF. BIRCH said he\ncouldn't give you a POKEMON, I\lcaught a MUDKIP for you, \v\h01!\pHere's your MUDKIP!

#org @pokemon
givepokemon 0x283 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
return

#org @name
call 0x1A74EB
return

#org @3
= [black_fr]\v\h01 recieved a MUDKIP!

#org @4
= [black_fr]Would you like to give a nickname\nto MUDKIP?

#org @5
= Have fun taking care of the\nMUDKIP, \v\h01!
__________________

3DS FC: 0061-1111-6462
TSV: 1364(X), 0790(OR)


Closed Thread
Quick Reply

Sponsored Links
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 12:04 PM.