The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Scripting trouble

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
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old August 11th, 2014 (10:05 AM).
Jepniels Jepniels is offline
 
Join Date: Aug 2014
Posts: 9
So, I have a script, and I don't know what's wrong with it, but I seem to get an error. Can you guys fix it for me?

'---------------
#org 0x800036
#org $start
lock
faceplayer
checkflag 0x828
if 0x01 goto $done
#raw 0x76
#raw 0x75 0x01 0x00 0x0A 0x03
message $grass
$grass 1 = Psst, hey kid. Do you want a\nPOKéMON? Do you want Bulbasaur?

boxset 5
compare 0x800D 0x0001
if 0x00 goto $start1
#raw 0x76
givepokemon 1 5 0x8B
setflag 0x828
release
end

#org $start1
#raw 0x76
#raw 0x75 0x07 0x00 0x0A 0x03
message $water
$water 1 = Do you like Squirtle?
boxset 5
compare 0x800D 0x0001
if 0x00 goto $start2
#raw 0x76
givepokemon 7 5 0x8B
setflag 0x828
release
end

#org $start2
#raw 0x76
#raw 0x75 0x04 0x00 0x0A 0x03
message $fire
$fire 1 = Do you like charmander?
boxset 5
compare 0x800D 0x0001
if 0x00 goto $start
#raw 0x76
givepokemon 4 5 0x8B
setflag 0x828
release
end

#org $done
message $given
$given 1 = Hey I am only allowed to give you \none Pokemon.
boxset 6
release
end

Thanks
Jepniels
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old August 11th, 2014 (10:37 AM).
GoGoJJTech's Avatar
GoGoJJTech GoGoJJTech is offline
(☞゚ヮ゚)☞ http://GoGoJJTech.com ☜(゚ヮ゚☜)
 
Join Date: Nov 2012
Location: Earth
Age: 24
Gender: Female
Nature: Jolly
Posts: 2,475
Quote:
Originally Posted by Jepniels View Post
So, I have a script, and I don't know what's wrong with it, but I seem to get an error. Can you guys fix it for me?

'---------------
#org 0x800036
#org $start
lock
faceplayer
checkflag 0x828
if 0x01 goto $done
#raw 0x76
#raw 0x75 0x01 0x00 0x0A 0x03
message $grass
$grass 1 = Psst, hey kid. Do you want a\nPOKéMON? Do you want Bulbasaur?

boxset 5
compare 0x800D 0x0001
if 0x00 goto $start1
#raw 0x76
givepokemon 1 5 0x8B
setflag 0x828
release
end

#org $start1
#raw 0x76
#raw 0x75 0x07 0x00 0x0A 0x03
message $water
$water 1 = Do you like Squirtle?
boxset 5
compare 0x800D 0x0001
if 0x00 goto $start2
#raw 0x76
givepokemon 7 5 0x8B
setflag 0x828
release
end

#org $start2
#raw 0x76
#raw 0x75 0x04 0x00 0x0A 0x03
message $fire
$fire 1 = Do you like charmander?
boxset 5
compare 0x800D 0x0001
if 0x00 goto $start
#raw 0x76
givepokemon 4 5 0x8B
setflag 0x828
release
end

#org $done
message $given
$given 1 = Hey I am only allowed to give you \none Pokemon.
boxset 6
release
end

Thanks
Jepniels
Please Please PLEASE use XSE
https://www.dropbox.com/s/0t2wylmh4juzvux/Unofficial_XSE.zip
Basically it's better, easier, and more updated and no bugs.
If you switch over I can help you :D
But read diegoisawesome's mega-huge scripting tutorial to learn XSE
__________________
I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this into your signature.
The HGSS Music Patch - The BW/2 Music Patch - ASM: Switch Music Based on Seasons
Romhack.me Profile - Pokecommunity Profile - Youtube Channel

Support me at my site!
Pokémon Platinum Red and Blue
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old August 11th, 2014 (11:22 AM).
Jepniels Jepniels is offline
 
Join Date: Aug 2014
Posts: 9
Quote:
Originally Posted by GoGoJJTech View Post
Please Please PLEASE use XSE
Basically it's better, easier, and more updated and no bugs.
If you switch over I can help you :D
But read diegoisawesome's mega-huge scripting tutorial to learn XSE
Can you please rewrite it for me in XSE?
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old August 11th, 2014 (12:23 PM).
iv0's Avatar
iv0 iv0 is offline
 
Join Date: Mar 2014
Gender: Male
Posts: 145
Use it http://www.pokecommunity.com/showthread.php?t=164276 to rewrite.
__________________

Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old August 13th, 2014 (5:14 PM).
Soupreme's Avatar
Soupreme Soupreme is offline
 
Join Date: Aug 2014
Gender: Male
Posts: 15
USE XSE, it IS LIFE. lol.
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:21 AM.