The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > ROM Hacking > ROM Hacking Hub
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

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.


Advertise here

Closed Thread
Click here to go to the first staff post in this thread.  
Thread Tools
  #1101    
Old May 23rd, 2009, 01:08 PM
HackChu's Avatar
HackChu
I need a haircut...
Community Supporter Tier 1
 
Join Date: Jan 2007
Location: Bankrupt Amerika
Age: 21
Gender: Male
Nature: Modest

Advertise here
Well said Pokepal17,people should post the script there using,or even better they need to read the rules...
__________________
Join us!

My 'learning how to combine battle scripts' thread:
http://www.pokecommunity.com/showthread.php?t=183001

SoulSilver FC:1162 1864 5409
Name: Ethan

Black FC: 2666 1354 4379
Name: Ashton

White 2 FC: 1120 8065 3049
Name: Nate

3DS Friend Code: 1349-4646-2412
Name: tysonrss
  #1102    
Old May 23rd, 2009, 01:19 PM
RaycrowX's Avatar
RaycrowX
Beginning ROM Hacker
 
Join Date: Apr 2009
Location: Jenison, MI
Gender:
Ash493: Just wondering, why does your script begin with offset 0x980000?

-------------------------------------------------------------------------

Quote:
Originally Posted by tyson View Post
Sorry Raycrow,but the script you gave me worked(the one you did the first time)but when I go back to the tile,he keeps saying "Say hi to PROF.OAK for me",I thought the setflag shoulda made it go once,and nothing else after that.
Quote:
Originally Posted by notbob View Post
Same thing happens with me.
Hey, just as a disclaimer right now, I fixed your scripts so they ran, not necessarily so they do exactly what you want, because I don't know exactly what you want. It's generally your responsibility to figure out how to make a script do exactly what you want; I was mainly correcting syntax errors or telling you how to use a specific function. That's a far cry writing a script for you. I fixed your scripts in hope you would learn from them and be able to write your own. tyson, notbob; what you guys are requesting requires the understanding and use of flags/variables, something that is half common sense and half obtainable from tutorials. You need this knowledge before you're going to be able to write any complicated scripts on your own. I myself just learned scripting a few weeks ago (though I have a programming background).

notbob, what you're asking is not really a "slight" request, it's a request, and honestly I don't have time to do it right now.

tyson, take a look at the flags and structure of my script. I'm not surprised it's doing that as that is what I intended it to do. Try to understand why it's doing that by going through it step by step, and then VM me for additional help.

Both of you should take a look at XSE's F2 guide if you haven't already, especially the sections on flags and vars, and flip through ALL the commands on XSE's F1 command help, so you know what options are available to you.
  #1103    
Old May 23rd, 2009, 01:31 PM
notbob's Avatar
notbob
ZE ULTIMATE POWA
 
Join Date: Apr 2009
Location: Woodridge, IL
Gender:
Nature: Mild
Quote:
Originally Posted by RaycrowX View Post
Ash493: Just wondering, why does your script begin with offset 0x980000?

-------------------------------------------------------------------------





Hey, just as a disclaimer right now, I fixed your scripts so they ran, not necessarily so they do exactly what you want, because I don't know exactly what you want. It's generally your responsibility to figure out how to make a script do exactly what you want; I was mainly correcting syntax errors or telling you how to use a specific function. That's a far cry writing a script for you. I fixed your scripts in hope you would learn from them and be able to write your own. tyson, notbob; what you guys are requesting requires the understanding and use of flags/variables, something that is half common sense and half obtainable from tutorials. You need this knowledge before you're going to be able to write any complicated scripts on your own. I myself just learned scripting a few weeks ago (though I have a programming background).

notbob, what you're asking is not really a "slight" request, it's a request, and honestly I don't have time to do it right now.

tyson, take a look at the flags and structure of my script. I'm not surprised it's doing that as that is what I intended it to do. Try to understand why it's doing that by going through it step by step, and then VM me for additional help.

Both of you should take a look at XSE's F2 guide if you haven't already, especially the sections on flags and vars, and flip through ALL the commands on XSE's F1 command help, so you know what options are available to you.
You don't have to make the script right now, just fix the first one to make the script not be a repeating loop by adding in the text after you talk to Oak the first time.

This won't work, it doesn't display the message that you get after talking with him:
Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x828
if B_FALSE goto @hey!
if B_TRUE goto @goout
end 'Nothing special in @end...

#org @hey!
lock
msgbox @icant MSG_NORMAL
applymovement 0x04 @face
waitmovement 0x0
goto @ask

#org @icant
= OAK: I don't believe this.\nHe took all of the Pokemon...

#org @face
#raw 0x00
#raw 0xFE

#org @ask
msgbox @can MSG_YESNO
compare LASTRESULT B_YES
if B_== goto @ty
goto @please

#org @goout
lock
msgbox @gomsg MSG_NORMAL
release
end

#org @ty
msgbox @tymsg MSG_NORMAL
setflag FR_RUNNINGSHOES
release
end

#org @gomsg
= OAK: Go out and get back the\nPokemon!

#org @tymsg
= OAK: Thank you. Here's some\nrunning shoes.

#org @can
= OAK: Can you retrieve the\nstolen Pokemon for me?

#org @please
msgbox @pleasemsg MSG_NORMAL
goto @ask

#org @pleasemsg
= OAK: Please, I'm begging you!
__________________
My Newest Hack, Pokemon Dark Shadow Version:
http://www.pokecommunity.com/showthread.php?t=179246



Last edited by notbob; May 23rd, 2009 at 02:06 PM. Reason: Your double post has been automatically merged.
  #1104    
Old May 23rd, 2009, 02:09 PM
Xatoku's Avatar
Xatoku
Game Developer
 
Join Date: Feb 2009
Location: Canada
Gender: Male
I want to add a sethealing place to this script so that when you fight the trainer, if you lose you'll be teleported to bank 4 and map number 1. Could somebody tell me how or do it for me?

Spoiler:
#dynamic 0x800000

#org @start
lockall
checkflag 0x361
if 0x1 goto @end
special 0x187
msgbox @text6 0x6
trainerbattle 0x9 0x2E6 0x0 @text1 @text2
msgbox @text3 0x6
applymovement 0x1 @move1
waitmovement 0x0
hidesprite 0x1
showsprite 0x6
applymovement 0x6 @move2
waitmovement 0x0
msgbox @text4 0x6
applymovement 0x6 @move1
applymovement MOVE_PLAYER @move3
waitmovement 0x0
warp 0x4 0x0 0x0 0x0 0x0
hidesprite 0x6
setflag 0x361
releaseall
end

#org @end
releaseall
end

#org @text6
= [Player]: Hey Will, how about a quick\nbattle for training purposes?\pWill: Okay but where is the other\nbrat, y'know, your roomate?\p[Player]: Oh you mean Blue? She's\ntraining with Karren down at the\lTraining Facility.\pWill: Karren? My Karren! That\ncannot be! I must go stop them!\p[Player]: Hey what about our battle?\pWill: Oh...right. It will be over\nsoon enough so I suppose one\lquick battle can't hurt.

#org @text1
= Argh!

#org @text2
= Good job Natu!

#org @text3
= Will:Whatever, now I must go stop\nKarren!

#org @text4
= Blue:Alright phase one complete.\nNow let's get out of here.

#org @move1
#raw 0x10
#raw 0x10
#raw 0x60
#raw 0xFE

#org @move2
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x17
#raw 0x13
#raw 0x01
#raw 0xFE

#org @move3
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE
  #1105    
Old May 23rd, 2009, 02:17 PM
HackChu's Avatar
HackChu
I need a haircut...
Community Supporter Tier 1
 
Join Date: Jan 2007
Location: Bankrupt Amerika
Age: 21
Gender: Male
Nature: Modest
Well ive read the tuts many times,idk maybe Im just a slow learner,I know more than the basic for sure.....
__________________
Join us!

My 'learning how to combine battle scripts' thread:
http://www.pokecommunity.com/showthread.php?t=183001

SoulSilver FC:1162 1864 5409
Name: Ethan

Black FC: 2666 1354 4379
Name: Ashton

White 2 FC: 1120 8065 3049
Name: Nate

3DS Friend Code: 1349-4646-2412
Name: tysonrss
  #1106    
Old May 23rd, 2009, 02:38 PM
Pokepal17's Avatar
Pokepal17
More cowbell~
 
Join Date: Oct 2008
Location: Steeltown
Age: 19
Gender: Male
Nature: Modest
Quote:
Originally Posted by tyson View Post
Well said Pokepal17,people should post the script there using,or even better they need to read the rules...
Thank, finally somebody with some common sense.

Quote:
Originally Posted by Xatoku View Post
I want to add a sethealing place to this script so that when you fight the trainer, if you lose you'll be teleported to bank 4 and map number 1. Could somebody tell me how or do it for me?

Spoiler:
#dynamic 0x800000

#org @start
lockall
checkflag 0x361
if 0x1 goto @end
special 0x187
msgbox @text6 0x6
trainerbattle 0x9 0x2E6 0x0 @text1 @text2
msgbox @text3 0x6
applymovement 0x1 @move1
waitmovement 0x0
hidesprite 0x1
showsprite 0x6
applymovement 0x6 @move2
waitmovement 0x0
msgbox @text4 0x6
applymovement 0x6 @move1
applymovement MOVE_PLAYER @move3
waitmovement 0x0
warp 0x4 0x0 0x0 0x0 0x0
hidesprite 0x6
setflag 0x361
releaseall
end

#org @end
releaseall
end

#org @text6
= [Player]: Hey Will, how about a quick\nbattle for training purposes?\pWill: Okay but where is the other\nbrat, y'know, your roomate?\p[Player]: Oh you mean Blue? She's\ntraining with Karren down at the\lTraining Facility.\pWill: Karren? My Karren! That\ncannot be! I must go stop them!\p[Player]: Hey what about our battle?\pWill: Oh...right. It will be over\nsoon enough so I suppose one\lquick battle can't hurt.

#org @text1
= Argh!

#org @text2
= Good job Natu!

#org @text3
= Will:Whatever, now I must go stop\nKarren!

#org @text4
= Blue:Alright phase one complete.\nNow let's get out of here.

#org @move1
#raw 0x10
#raw 0x10
#raw 0x60
#raw 0xFE

#org @move2
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x17
#raw 0x13
#raw 0x01
#raw 0xFE

#org @move3
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE
There are 20 sethealingplaces in FR which will warp you to a set map. Adding more or changing the warp location is ASM
__________________
Pokémon Stardrop
  #1107    
Old May 23rd, 2009, 03:14 PM
Xatoku's Avatar
Xatoku
Game Developer
 
Join Date: Feb 2009
Location: Canada
Gender: Male
Quote:
Originally Posted by Pokepal17 View Post
Thank, finally somebody with some common sense.



There are 20 sethealingplaces in FR which will warp you to a set map. Adding more or changing the warp location is ASM
What's the script for sethealing place in palet town?
  #1108    
Old May 23rd, 2009, 03:15 PM
notbob's Avatar
notbob
ZE ULTIMATE POWA
 
Join Date: Apr 2009
Location: Woodridge, IL
Gender:
Nature: Mild
This won't compile:
Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x1
if 0x0 goto @hey!
goto @goout
end

#org @hey!
lock
msgbox @icant MSG_NORMAL
applymovement 0x04 @face
waitmovement 0x0
goto @ask

#org @icant
= OAK: I don't believe this.\nHe took all of the Pokemon...

#org @face
#raw 0x00
#raw 0xFE

#org @ask
msgbox @can MSG_YESNO
if 0x1 goto @ty
goto @please

#org @goout
lock
msgbox @gomsg MSG_NORMAL
checkitem 0x15D 0x1
compare 0x800D 0x1
if 0x1 goto @takeitem
release
end

#org @ty
msgbox @tymsg MSG_NORMAL
setflag 0x1
release
end

#org @takeitem
msgbox @takeitmmsg MSG_YESNO
if 0x1 goto @tyreward
goto @plz
release
end

#org @plz
msgbox @plzmsg MSG_NORMAL
goto @takeitem
release
end

#org @tyreward
removeitem 0x15D 0x1
msgbox @tyrewardmsg MSG_NORMAL
msgbox @reward MSG_NORMAL
fanfare 0x13E
waitfanfare
closeonkeypress
setflag 0x829
giveitem 0x4 0x5
release
end

#org @tyrewardmsg
= OAK: Thank you, here's a\nPokedex.\pOh! Also, here's some Pokeballs!

#org @reward
= \v\h01 got five Pokeballs and a\n Pokedex!

#org @plzmsg
= OAK: Please, I need them for\nother trainers.

#org @takeitmmsg
= OAK: You have the Pokemon! Can\nyou give them to me?

#org @gomsg
= OAK: Go out and get back the\nPokemon!

#org @tymsg
= OAK: Thank you. I will repay you\nin some way.

#org @can
= OAK: Can you retrieve the\nstolen Pokemon for me?

#org @please
msgbox @pleasemsg MSG_NORMAL
goto @ask

#org @pleasemsg
= OAK: Please, I'm begging you!
__________________
My Newest Hack, Pokemon Dark Shadow Version:
http://www.pokecommunity.com/showthread.php?t=179246


  #1109    
Old May 23rd, 2009, 04:27 PM
BlitŻ's Avatar
BlitŻ
guahh my dog is so cute
 
Join Date: Feb 2009
Location: Bay Area, Califronia.
Age: 19
Gender: Male
Nature: Jolly
I post this scirpt before, and raycrow fixed a problem with it
but here i am again with another problem

this is based on a fire red rom and imusing XSE.

Spoiler:

#dynamic 0x802204

#org @start
checkflag 0x1005
if 0x1 goto @done
setflag 0x1005
applymovement 0x03 @move
waitmovement 0x0
applymovement 0x02 @move1
waitmovement 0x0
applymovement 0x03 @move
waitmovement 0x0
applymovement 0x03 @move3
waitmovement 0x0
msgbox @1 0x6
applymovement 0x03 @move4
applymovement 0xFF @move4
waitmovement 0x0
msgbox @2 0x6
applymovement 0x02 @move5
waitmovement 0x0
msgbox @3 0x6
hidesprite 0x03
setflag 0x1006
warp 0x3 0x10 0xFF 0x0D 0x10

#org @move
#raw 0x24
#raw 0xFE

#org @move1
#raw 0x23
#raw 0xFE

#org @move3
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0xFE

#org @move4
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @move5
#raw 0x22
#raw 0xFE

#org @1
= Hey \v\h01, aren't you excited?\nI can't wait to tell you the\lsurprise.I have the tickets,\lso let's get on the boat.

#org @2
= We would like to go now, Captain.

#org @3
= All aboard!

#org @done
release
end


everything is going great, the spirte is talking way and then when it's time for them to warp, i warp...to five island,
so im like WTF.
the prolem was before with this script was that the special(seagallop animation) led me to vermillion city, and that made sense and also raycrow said it was coded into the game.

so my speculations are that maybe the map which it is supposed to warp to is wrong, but i dont think that is it because the map in decimal is 20, which is 10 in hex
but maybe that leads me to five island

well that sums up my problems

any help is appreciated.
__________________
  #1110    
Old May 23rd, 2009, 05:11 PM
HackChu's Avatar
HackChu
I need a haircut...
Community Supporter Tier 1
 
Join Date: Jan 2007
Location: Bankrupt Amerika
Age: 21
Gender: Male
Nature: Modest
Im THINKING its because you have two setflags in there,idk not quite sure...
__________________
Join us!

My 'learning how to combine battle scripts' thread:
http://www.pokecommunity.com/showthread.php?t=183001

SoulSilver FC:1162 1864 5409
Name: Ethan

Black FC: 2666 1354 4379
Name: Ashton

White 2 FC: 1120 8065 3049
Name: Nate

3DS Friend Code: 1349-4646-2412
Name: tysonrss
  #1111    
Old May 23rd, 2009, 05:47 PM
PlatniumPiano's Avatar
PlatniumPiano
You are now breathing manually
 
Join Date: Dec 2008
Location: Yesterday
Gender: Male
Nature: Lax
So I have a givepokemon script and OMG IT WORKED.
Everything works great, except that when I open up start my screen doesn't even show a pokemon option, even though when I battle, it sends out the charmander.

Is this because I don't have a PokeDex? Or does the menu option become available once I get a flag set?

The script in case there is something wrong with it...
(Ruby version)
Spoiler:

'-----------------------
#org 0x2916B1
lock
faceplayer
checkflag 0x123
if 0x0 goto 0x8291777
if 0x1 goto 0x82918DB
release
end
'-----------------------
#org 0x291777
msgbox 0x82917BB '"How did you get in\nhere?\pOh, you ..."
callstd 0x6
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x8291923 '"You received a Charmander!"
callstd 0x4
waitfanfare
setflag 0x123
msgbox 0x8291949 '"Would you like to give a\nnickname ..."
callstd 0x5
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x829189E '"Good luck, son.\pThat cave up ahead..."
callstd 0x6
release
end
'-----------------------
#org 0x2918DB
msgbox 0x82918E6 '"Good luck, son.\pThat cave up ahead..."
callstd 0x6
release
end
'-----------------------
#org 0x1A74EB
fadescreen 0x1
special 0x9E
waitstate
return

'---------
' Strings
'---------
#org 0x2917BB
= How did you get in\nhere?\pOh, you have a pass?\pHmm... ...\n... ... ...\n... ... ...\pWell this says you're\nsupposed to go to\nthe next town?\pThat means that you need a POKéMON!\pHere, it's not much\nbut it'll have to\ndo.
#org 0x291923
= You received a Charmander!
#org 0x291949
= Would you like to give a\nnickname to Charmander?
#org 0x29189E
= Good luck, son.\pThat cave up ahead seems\nawfully wierd...
#org 0x2918E6
= Good luck, son.\pThat cave up ahead seems\nawfully wierd...
__________________

If you choose not to decide, you still have made a choice.
  #1112    
Old May 23rd, 2009, 06:01 PM
notbob's Avatar
notbob
ZE ULTIMATE POWA
 
Join Date: Apr 2009
Location: Woodridge, IL
Gender:
Nature: Mild
Quote:
Originally Posted by PlatniumPiano View Post
So I have a givepokemon script and OMG IT WORKED.
Everything works great, except that when I open up start my screen doesn't even show a pokemon option, even though when I battle, it sends out the charmander.

Is this because I don't have a PokeDex? Or does the menu option become available once I get a flag set?

The script in case there is something wrong with it...
(Ruby version)
Spoiler:

'-----------------------
#org 0x2916B1
lock
faceplayer
checkflag 0x123
if 0x0 goto 0x8291777
if 0x1 goto 0x82918DB
release
end
'-----------------------
#org 0x291777
msgbox 0x82917BB '"How did you get in\nhere?\pOh, you ..."
callstd 0x6
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x8291923 '"You received a Charmander!"
callstd 0x4
waitfanfare
setflag 0x123
msgbox 0x8291949 '"Would you like to give a\nnickname ..."
callstd 0x5
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x829189E '"Good luck, son.\pThat cave up ahead..."
callstd 0x6
release
end
'-----------------------
#org 0x2918DB
msgbox 0x82918E6 '"Good luck, son.\pThat cave up ahead..."
callstd 0x6
release
end
'-----------------------
#org 0x1A74EB
fadescreen 0x1
special 0x9E
waitstate
return

'---------
' Strings
'---------
#org 0x2917BB
= How did you get in\nhere?\pOh, you have a pass?\pHmm... ...\n... ... ...\n... ... ...\pWell this says you're\nsupposed to go to\nthe next town?\pThat means that you need a POKéMON!\pHere, it's not much\nbut it'll have to\ndo.
#org 0x291923
= You received a Charmander!
#org 0x291949
= Would you like to give a\nnickname to Charmander?
#org 0x29189E
= Good luck, son.\pThat cave up ahead seems\nawfully wierd...
#org 0x2918E6
= Good luck, son.\pThat cave up ahead seems\nawfully wierd...
You need to put in a setflag.
__________________
My Newest Hack, Pokemon Dark Shadow Version:
http://www.pokecommunity.com/showthread.php?t=179246


  #1113    
Old May 23rd, 2009, 06:07 PM
PlatniumPiano's Avatar
PlatniumPiano
You are now breathing manually
 
Join Date: Dec 2008
Location: Yesterday
Gender: Male
Nature: Lax
Quote:
Originally Posted by notbob View Post
You need to put in a setflag.
Okay thanks I figured that out a little after I posted lol.
__________________

If you choose not to decide, you still have made a choice.
  #1114    
Old May 23rd, 2009, 06:16 PM
destinedjagold's Avatar
destinedjagold
Oh Hai Thar~ 'ω'
Community Supporter
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Quote:
Originally Posted by notbob View Post
This won't compile:
Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x1
if 0x0 goto @hey!
goto @goout
end

#org @hey!
lock
msgbox @icant MSG_NORMAL
applymovement 0x04 @face
waitmovement 0x0
goto @ask
end

#org @icant
= OAK: I don't believe this.\nHe took all of the Pokemon...

#org @face
#raw 0x00
#raw 0xFE

#org @ask
msgbox @can MSG_YESNO
if 0x1 goto @ty
goto @please

#org @goout
lock
msgbox @gomsg MSG_NORMAL
checkitem 0x15D 0x1
compare 0x800D 0x1
if 0x1 goto @takeitem
release
end

#org @ty
msgbox @tymsg MSG_NORMAL
setflag 0x1
release
end

#org @takeitem
msgbox @takeitmmsg MSG_YESNO
if 0x1 goto @tyreward
goto @plz
release
end

#org @plz
msgbox @plzmsg MSG_NORMAL
goto @takeitem
release
end

#org @tyreward
removeitem 0x15D 0x1
msgbox @tyrewardmsg MSG_NORMAL
msgbox @reward 0x4
fanfare 0x13E
waitfanfare
closeonkeypress
setflag 0x829
giveitem 0x4 0x5 MSG_OBTAIN
release
end

#org @tyrewardmsg
= OAK: Thank you, here's a\nPokedex.\pOh! Also, here's some Pokeballs!

#org @reward
= \v\h01 got five Pokeballs and a\n Pokedex!

#org @plzmsg
= OAK: Please, I need them for\nother trainers.

#org @takeitmmsg
= OAK: You have the Pokemon! Can\nyou give them to me?

#org @gomsg
= OAK: Go out and get back the\nPokemon!

#org @tymsg
= OAK: Thank you. I will repay you\nin some way.

#org @can
= OAK: Can you retrieve the\nstolen Pokemon for me?

#org @please
msgbox @pleasemsg MSG_NORMAL
goto @ask

#org @pleasemsg
= OAK: Please, I'm begging you!
Red means you have to remove it...
Blue means you need to add it...
Purple means I replaced it...

I don't hack FR, so I am not so sure...
  #1115    
Old May 23rd, 2009, 06:20 PM
notbob's Avatar
notbob
ZE ULTIMATE POWA
 
Join Date: Apr 2009
Location: Woodridge, IL
Gender:
Nature: Mild
Why doesn't anybody listen to me?!? I NEED help with this script:
Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x1
if 0x0 goto @hey!
goto @goout
end

#org @hey!
lock
msgbox @icant MSG_NORMAL
applymovement 0x04 @face
waitmovement 0x0
goto @ask

#org @icant
= OAK: I don't believe this.\nHe took all of the Pokemon...

#org @face
#raw 0x00
#raw 0xFE

#org @ask
msgbox @can MSG_YESNO
if 0x1 goto @ty
goto @please

#org @goout
lock
msgbox @gomsg MSG_NORMAL
checkitem 0x15D 0x1
compare 0x800D 0x1
if 0x1 goto @takeitem
release
end

#org @ty
msgbox @tymsg MSG_NORMAL
setflag 0x1
release
end

#org @takeitem
msgbox @takeitmmsg MSG_YESNO
if 0x1 goto @tyreward
goto @plz
release
end

#org @plz
msgbox @plzmsg MSG_NORMAL
goto @takeitem
release
end

#org @tyreward
removeitem 0x15D 0x1
msgbox @tyrewardmsg MSG_NORMAL
setflag 0x829
giveitem 0x4 0x5 MSG_OBTAIN
release
end

#org @tyrewardmsg
= OAK: Thank you, here's a\nPokedex.\pOh! Also, here's some Pokeballs!

#org @reward
= \v\h01 got five Pokeballs and a\n Pokedex!

#org @plzmsg
= OAK: Please, I need them for\nother trainers.

#org @takeitmmsg
= OAK: You have the Pokemon! Can\nyou give them to me?

#org @gomsg
= OAK: Go out and get back the\nPokemon!

#org @tymsg
= OAK: Thank you. I will repay you\nin some way.

#org @can
= OAK: Can you retrieve the\nstolen Pokemon for me?

#org @please
msgbox @pleasemsg MSG_NORMAL
goto @ask

#org @pleasemsg
= OAK: Please, I'm begging you!
__________________
My Newest Hack, Pokemon Dark Shadow Version:
http://www.pokecommunity.com/showthread.php?t=179246


  #1116    
Old May 23rd, 2009, 06:34 PM
PlatniumPiano's Avatar
PlatniumPiano
You are now breathing manually
 
Join Date: Dec 2008
Location: Yesterday
Gender: Male
Nature: Lax
I have a Script tile (not a person event) that is supposed to display a message, then warp me to a map. However, when I step on the tile in the game, the game freezes.

Did I script something wrong?

Ruby Script:
Spoiler:

'-----------------------
#org 0x2919FC
checkflag 0x900
if 0x0 goto 0x8292DC1
if 0x1 goto 0x8292E00
end
'-----------------------
#org 0x292DC1
msgbox 0x8292DD6 '"You feel a strange\nforce pulling y..."
callstd 0x6
setflag 0x900
warp 0x1 0x5 0x0 0x0 0x0
end
'-----------------------
#org 0x292E00
end

'---------
' Strings
'---------
#org 0x292DD6
= You feel a strange\nforce pulling you...
  #1117    
Old May 23rd, 2009, 06:55 PM
Ninja Caterpie's Avatar
Ninja Caterpie
Sitting by the back window
 
Join Date: Mar 2008
Location: Best City OCE
Age: 18
Gender: Male
Nature: Bold
First off, get an updated XSE.

Secondly, two if _ goto _ won't work.

Try this -

Code:
#dynamic 0x200000

#org @start
checkflag 0x900
if 0x0 goto 0x8292DC1
release
end

#org @snippet1
msgbox @string1 '"You feel a strange\nforce pulling y..." 0x6
setflag 0x900
warp 0x1 0x5 0x0 0x0 0x0
end

#org @string1
= You feel a strange\nforce pulling you...
And did you set the Unknown and Var value?
__________________
Brony represent.
  #1118    
Old May 23rd, 2009, 07:03 PM
PlatniumPiano's Avatar
PlatniumPiano
You are now breathing manually
 
Join Date: Dec 2008
Location: Yesterday
Gender: Male
Nature: Lax
I did not set an unknow or var value. why?
And I get an error when I try to compile ur script:

"Too less parameters on line 10" (thats the msgbox @string1 line)"The correct number is 2"

Last edited by PlatniumPiano; May 23rd, 2009 at 07:08 PM.
  #1119    
Old May 23rd, 2009, 10:46 PM
Pheya's Avatar
Pheya
Is very excited about HH & SS.
 
Join Date: Apr 2008
Gender:
PlatinumPiano:

Place 0x6 before "text"

And in Advance Map you must set the unknown to 0003/00|03 and the var. number to 4050 (if you have used that already, use 4F00 or something)
__________________

  #1120    
Old May 24th, 2009, 03:05 AM
PaulH
Beginning Trainer
 
Join Date: May 2009
Gender:
I'm going to post this here again, since as I suspected, I wasn't going to get help from the simple questions thread due to it being a scripting question.

I'm attempting to get a level script working, but no matter how hard I try it just won't work. I'm using a clean ROM of Fire-Red, and trying to use Cooley's tutorial on it.

I do exactly as he says, I even copied his script to use for it. But a host of problems happen, namely:

1) No message appears despite the fact that the script is meant to show a message.
2) On rare attempts, a message of complete gibberish appears, and when I try to use Cooley's method of fixing it, the decompile shows only one line saying what the #org number is.
3) Also if I use the Open Script button in Advance Map, it shows the same thing as 2).

I honestly cannot get my head around this, it is utterly perplexing and infuriating to try and do. Can someone help me out?
  #1121    
Old May 24th, 2009, 03:41 AM
notbob's Avatar
notbob
ZE ULTIMATE POWA
 
Join Date: Apr 2009
Location: Woodridge, IL
Gender:
Nature: Mild
I slightly fixed the script, but I can't overwrite the old one:
Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x1
if 0x0 goto @hey
goto @goout
end

#org @hey
lock
msgbox @icant MSG_NORMAL
applymovement 0x04 @face
waitmovement 0x0
goto @ask
end

#org @icant
= OAK: I don't believe this.\nHe took all of the Pokemon...

#org @face
#raw 0x00
#raw 0xFE

#org @ask
msgbox @can MSG_YESNO
if 0x1 goto @ty
goto @please
end

#org @goout
lock
msgbox @gomsg MSG_NORMAL
checkitem 0x15D 0x1
compare 0x800D 0x1
if 0x1 goto @takeitem
release
end

#org @ty
msgbox @tymsg MSG_NORMAL
setflag 0x1
release
end

#org @takeitem
msgbox @takeitmmsg MSG_YESNO
if 0x1 goto @tyreward
goto @plz
release
end

#org @plz
msgbox @plzmsg MSG_NORMAL
goto @takeitem
release
end

#org @tyreward
removeitem 0x15D 0x1
msgbox @tyrewardmsg MSG_NORMAL
closeonkeypress
setflag 0x829
giveitem 0x4 0x5 MSG_OBTAIN
release
end

#org @tyrewardmsg
= OAK: Thank you, here's a\nPokedex.\pOh! Also, here's some Pokeballs!

#org @plzmsg
= OAK: Please, I need them for\nother trainers.

#org @takeitmmsg
= OAK: You have the Pokemon! Can\nyou give them to me?

#org @gomsg
= OAK: Go out and get back the\nPokemon!

#org @tymsg
= OAK: Thank you. I will repay you\nin some way.

#org @can
= OAK: Can you retrieve the\nstolen Pokemon for me?

#org @please
msgbox @pleasemsg MSG_NORMAL
goto @ask

#org @pleasemsg
= OAK: Please, I'm begging you!
__________________
My Newest Hack, Pokemon Dark Shadow Version:
http://www.pokecommunity.com/showthread.php?t=179246


  #1122    
Old May 24th, 2009, 04:22 AM
destinedjagold's Avatar
destinedjagold
Oh Hai Thar~ 'ω'
Community Supporter
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Quote:
Originally Posted by notbob View Post
I can't overwrite the old one:
if you want to overwrite the old one, then open your hex editor and go to the offset of the old one and delete it, if you wish to save space in your ROM, that is...
__________________
  #1123    
Old May 24th, 2009, 04:35 AM
BlitŻ's Avatar
BlitŻ
guahh my dog is so cute
 
Join Date: Feb 2009
Location: Bay Area, Califronia.
Age: 19
Gender: Male
Nature: Jolly
Im THINKING its because you have two setflags in there,idk not quite sure...

well the first is fr that scipt, the second one is for the hidesprite, but ill try taking it out

the question regarding my previous script has been solved, thanks guys
__________________

Last edited by BlitŻ; May 24th, 2009 at 04:56 AM. Reason: Your double post has been automatically merged.
  #1124    
Old May 24th, 2009, 07:08 AM
Toon Link's Avatar
Toon Link
POKEMON TRAINER
 
Join Date: May 2009
Could someone please fix this script? I use it in ruby and it makes the screen go red.
Spoiler:
#dynamic 0x600000

#org @start
trainerbattle 0x0 0x267 0x0 @before @after
msgbox @beaten 0x6
release
end

#org @before
= I will win!

#org @after
= You're good!

#org @beaten
= Caterpie is my\nfavorite Pokémon!
  #1125    
Old May 24th, 2009, 07:49 AM
Nintendoman58
Beginning Trainer
 
Join Date: May 2009
Can someone help me? I'm trying to make a Script for my Firered hack that makes the Professor walk away and disapear, and he dosen't appear in his lab until you talk to him.
Code:
#org $begin
lock
faceplayer
checkflag 0x200
if b_true goto $move
applymovement 0x1 $move
message $hello
$hello 1 =Hello!\nYou were looking for me?\pOh yes A Pokemon!\nI'll be at my Lab.
boxset 6
applymovement 0x1 $going
pausemove 0
setflag 0x200
release
end
#org $move
#raw 0x04
#raw 0xFE
#org $going
#raw 0x0A
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0xFE
Closed Thread
Quick Reply

Sponsored Links


Advertise here
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 02:37 AM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.