The PokéCommunity Forums  

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

Notices

Emulation & ROM Hacking The center for the community emulation scene. Come and discuss all things emulation and develop your own hacks!


Reply
Click here to go to the first staff post in this thread.  
Thread Tools
  #7226    
Old August 21st, 2012, 05:34 AM
BigMastaWalrus
Beginning Trainer
 
Join Date: Aug 2012
Gender: Male
Game: FireRed BPRE
Type: Mining Script
Editor: XSE 1.1.1

Script:
Spoiler:
#dynamic 0x3B4DB2
#org @start
lock
checkitem 0x1 0x1
compare 0x800D 0x1
if 0x4 goto @mine
textcolour 0x02
msgbox @1 0x6
release
end

#org @1
= This crack looks like it might have\nsomething inside.

#org @mine
textcolor 0x02
msgbox @2 0x5
compare 0x800D 0x0
if 0x0 goto @no
random 0x09
compare 0x800D 0x0
if 0x1 goto @mine1
compare 0x800D 0x1
if 0x1 goto @mine2
compare 0x800D 0x2
if 0x1 goto @mine3
compare 0x800D 0x3
if 0x1 goto @mine4
compare 0x800D 0x4
if 0x1 goto @mine5
compare 0x800D 0x5
if 0x1 goto @mine6
compare 0x800D 0x6
if 0x1 goto @mine7
compare 0x800D 0x7
if 0x1 goto @mine8
compare 0x800D 0x8
if 0x1 goto @mine9
compare 0x800D 0x9
if 0x1 goto @mine10

#org @2
= This crack looks like it might have\nsomething inside. Would you like to\lmine it?

#org @3
= Mining...

#org @no
release
end

#org @nothing
= Nothing. Better luck next time!

#org @mine1
textcolor 0x02
msgbox @3 0x6
textcolor 0x02
msgbox @nothing 0x6
release
end

#org @mine2
textcolor 0x02
msgbox @3 0x6
textcolor 0x02
msgbox @nothing 0x6
release
end

#org @mine3
textcolor 0x02
msgbox @3 0x6
textcolor 0x02
msgbox @nothing 0x6
release
end

#org @mine4
textcolor 0x02
msgbox @3 0x6
textcolor 0x02
msgbox @nothing 0x6
release
end

#org @mine5
textcolor 0x02
msgbox @3 0x6
giveitem 0x1 0x1 0x1
release
end

#org @mine6
textcolor 0x02
msgbox @3 0x6
giveitem 0x1 0x1 0x1
release
end

#org @mine7
textcolor 0x02
msgbox @3 0x6
giveitem 0x1 0x1 0x1
release
end

#org @mine8
textcolor 0x02
msgbox @3 0x6
giveitem 0x2 0x1 0x1
release
end

#org @mine9
textcolor 0x02
msgbox @3 0x6
giveitem 0x2 0x1 0x1
release
end

#org @mine10
textcolor 0x02
msgbox @3 0x6
giveitem 0x3 0x1 0x1
release
end


The script executes itself, checks for the item, and sometimes gives me items as it should. It just never displays any messages that I've put in. I do get the jiggle and obtain when i do get an item, however. I'm fairly new to this, but I'm not new to message scripts. I've tried everything I can think of, and nothing works. If anyone could help it would be greatly appreciated.
Reply With Quote
  #7227    
Old August 21st, 2012, 11:41 AM
Darkrai87
Unhatched Egg
 
Join Date: Dec 2010
Gender: Male
Quote:
Originally Posted by NinjaLizzard View Post
I feel so noobish asking for help on this, but I've totally run out of patience and ideas to make this work. I'm brand new to scripting, and have just started to try to add script into the first town I've mapped in Advance Map. I've basically copied the coding from tutorials, but for some reason, when I add the script, there's no effect in the game, or the game will lock up. All I'm trying to do is get a NPC to say some stupid little thing like they do in all Pokemon games.

Script
Spoiler:
#dynamic 0x900000
#org @start
lock
faceplayer
msgbox @1 0x6
release
end

#org @1
= I love these flowers!


Then upon compiling, I copied the code listed in Dynamic Offsets, and inserted it into the map, saved, and booted it up. Upon talking to the person I'd listed the code for, no text or message box appeared, and I couldn't move my character anymore. Can someone help me please?
1st of all, make sure you're using XSE 1.1.1 (Go to Help > About and it should say XSE Version 1.1.1), if you aren't then you need to get that dl. 2nd, when you compile your code copy the offset next to start and in advance map paste that into "script offset" for the person event you want to have say "I love these flowers!".
__________________
Currently playing through: Pokemon Flora Sky
Reply With Quote
  #7228    
Old August 21st, 2012, 02:52 PM
NinjaLizzard's Avatar
NinjaLizzard
Beginning Trainer
 
Join Date: Aug 2012
Gender: Female
Quote:
Originally Posted by Darkrai87 View Post
1st of all, make sure you're using XSE 1.1.1 (Go to Help > About and it should say XSE Version 1.1.1), if you aren't then you need to get that dl. 2nd, when you compile your code copy the offset next to start and in advance map paste that into "script offset" for the person event you want to have say "I love these flowers!".
Quote:
Originally Posted by EHero70 View Post
Use Free SPace Finder to find a offset. Also when you compile and copy the offset are you pasting that into advanced map?
I took both of your advice, and downloaded XSE 1.1.1 and downloaded Free Space Finder. Using FSF, I found a free offset, and plugged it into the following code
Spoiler:
#dynamic 0x481E00
#org @start
lock
faceplayer
msgbox @1 0x6
release
end

#org @1
= I love these flowers!

Then I compiled the script, copied the @start offset into Advance Map, and booted the ROM. This time, I have no idea what's happening, but when I went to speak to the NPC, my character walked up one tile, and the screen turned black. Anyone have any help?
Reply With Quote
  #7229    
Old August 21st, 2012, 02:59 PM
Darkrai87
Unhatched Egg
 
Join Date: Dec 2010
Gender: Male
Quote:
Originally Posted by NinjaLizzard View Post
I took both of your advice, and downloaded XSE 1.1.1 and downloaded Free Space Finder. Using FSF, I found a free offset, and plugged it into the following code
Spoiler:
#dynamic 0x481E00
#org @start
lock
faceplayer
msgbox @1 0x6
release
end

#org @1
= I love these flowers!

Then I compiled the script, copied the @start offset into Advance Map, and booted the ROM. This time, I have no idea what's happening, but when I went to speak to the NPC, my character walked up one tile, and the screen turned black. Anyone have any help?
Hmm, it should be working just fine..... Though I don't know if it'll make any difference try compiling with the offset 0x800000 and try again. If that doesn't work, you'll have to wait for a more advanced coder to come on...
__________________
Currently playing through: Pokemon Flora Sky
Reply With Quote
  #7230    
Old August 21st, 2012, 03:13 PM
NinjaLizzard's Avatar
NinjaLizzard
Beginning Trainer
 
Join Date: Aug 2012
Gender: Female
Quote:
Originally Posted by Darkrai87 View Post
Hmm, it should be working just fine..... Though I don't know if it'll make any difference try compiling with the offset 0x800000 and try again. If that doesn't work, you'll have to wait for a more advanced coder to come on...
Just got stranger... I tried switching the offset to 0x800000, and upon talking to my NPC, I got slot machines, where apparently I've run out of coins. Could this be a rom problem, or do I have a faulty XSE or Advance Map? Everything looks like it should be working, but I keep getting the strangest results.
Reply With Quote
  #7231    
Old August 21st, 2012, 04:38 PM
EHero70's Avatar
EHero70
 
Join Date: Jul 2012
Location: Connecticut
Gender: Male
Nature: Bold
Quote:
Originally Posted by NinjaLizzard View Post
Just got stranger... I tried switching the offset to 0x800000, and upon talking to my NPC, I got slot machines, where apparently I've run out of coins. Could this be a rom problem, or do I have a faulty XSE or Advance Map? Everything looks like it should be working, but I keep getting the strangest results.
Ok in free space finder make sure you load your rom and click search from begining of rom. Then copy the offset it gives you and paste it into your code. If your script still isn't working then you mave have a corrupted rom
Reply With Quote
  #7232    
Old August 21st, 2012, 07:09 PM
ElusionM
Beginning Trainer
 
Join Date: Jul 2007
Nature: Adamant
Trying to make a tile warp, but when I compile, PokeScript gets an error "has stopped working" and closes:

Quote:
#dyn @start
lock
warp 0x3 0x66 0xFF 0x10 0x24
waitspecial
release
end
What's wrong there?
Reply With Quote
  #7233    
Old August 21st, 2012, 10:26 PM
SpadeEdge16's Avatar
SpadeEdge16
 
Join Date: May 2012
Gender: Male
Quote:
Originally Posted by ElusionM View Post
Trying to make a tile warp, but when I compile, PokeScript gets an error "has stopped working" and closes:



What's wrong there?
I'm not sure if something is wrong with your Pokescript, but as far as the script goes, it seems pretty simple. If anything just make sure your bank and map numbers are in hex.
Reply With Quote
  #7234    
Old August 22nd, 2012, 08:09 AM
marcin's Avatar
marcin
Beginning Trainer
 
Join Date: Jun 2009
Location: Behind you
Gender: Male
Nature: Modest
[QUOTE=RetroRoller;7308411]The dynamic offset you're using might have run out of free space, but that's just a guess.
Probably wrong though

Alright thanks.I'll try a different ofset then.
__________________


Sceptile is the absolute best Pokemon of all time.
Reply With Quote
  #7235    
Old August 22nd, 2012, 08:13 AM
Satoshi Ookami's Avatar
Satoshi Ookami
Memento Mori
 
Join Date: Jul 2008
Location: Abyss of Time, Great Seal
Age: 21
Gender: Male
Nature: Calm
Quote:
Originally Posted by marcin View Post
Alright thanks.I'll try a different ofset then.
Use offset 800000 or something bigger.
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign
Reply With Quote
  #7236    
Old August 22nd, 2012, 09:04 AM
EHero70's Avatar
EHero70
 
Join Date: Jul 2012
Location: Connecticut
Gender: Male
Nature: Bold
Quote:
Originally Posted by EHero70 View Post
Ok i need help with my script. It is a level script and for some reason at the end of the script there japanese text starts popping up when the script is just supposed to end!
Here is my script:
Code:
#dynamic 0x6D2A3C
#org @start
setvar 0x4033 0x1
setflag 0x201
applymovement 0x3 @move
waitmovement 0x0
msgbox @1 0x6
applymovement 0x3 @move2
applymovement 0xFF @move2
waitmovement 0x0
msgbox @2 0x6
applymovement 0x3 @move3
applymovement 0xFF @move3
waitmovement 0x0
msgbox @3 0x6
applymovement 0x3 @move4
applymovement 0xFF @move4
waitmovement 0x0
msgbox @4 0x6
applymovement 0x3 @move5
waitmovement 0x0
msgbox @5 0x6
applymovement 0x3 @move6
waitmovement 0x0
fadescreen 0x1
fadescreen 0x0
release
end
#org @move
#raw 0x08
#raw 0x08
#raw 0xFE
#org @move2
#raw 0x01
#raw 0x03
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x01
#raw 0xFE
#org @move3
#raw 0x02
#raw 0x0A 
#raw 0x0A 
#raw 0x0A 
#raw 0x0A 
#raw 0x0A 
#raw 0x0A 
#raw 0x0A 
#raw 0x0A 
#raw 0x01
#raw 0x09 
#raw 0x09 
#raw 0x09 
#raw 0x09 
#raw 0x09 
#raw 0x02
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x01
#raw 0x09
#raw 0x09 
#raw 0x09 
#raw 0x01
#raw 0xFE
#org @move4
#raw 0x03
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x01
#raw 0x09
#raw 0x09
#raw 0x09
#raw 0x09
#raw 0x09
#raw 0x09
#raw 0x03
#raw 0x0B 
#raw 0x0B 
#raw 0x0B 
#raw 0x00
#raw 0x08 
#raw 0x08 
#raw 0x08 
#raw 0x08 
#raw 0x03
#raw 0x0B
#raw 0x0B
#raw 0x01
#raw 0xFE
#org @move5
#raw 0x56
#raw 0x02
#raw 0xFE
#org @move6
#raw 0x02
#raw 0x17
#raw 0x17
#raw 0x17
#raw 0x01
#raw 0x16
#raw 0x16
#raw 0x02
#raw 0x17
#raw 0x17
#raw 0x17
#raw 0x00
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x02
#raw 0x17 
#raw 0x17 
#raw 0x17 
#raw 0x17 
#raw 0x17 
#raw 0x17 
#raw 0x17 
#raw 0x17 
#raw 0xFE
#org @1
= [PLAYER]! It's me dad!\pBefore you say anything abut my\nhair! The hair dresser screwed up\land gave me this emo cut!\pAnyway, i'm back! It is so nice to\nsee you [PLAYER]!\pI don't have much time but let me\nshow you around a little bit!\pFollow me.
#org @2 
= This in front of us is the\nPokemart.\pIn here you can buy and sell\nthings.\pThere is one of theese in almost\nevery town, city, or villige.
#org @3 
= This is the Pokemon Center.\pHere you can heal up all of your\ntired or fainted Pokemon back to\lfull health.\pIn the upstairs part of the\nPokemon center you can trade and\lconnect with people world wide!
#org @4 
= Right in front of us is a Pokemon\nGym.\pGym's consit of trainers that you\nmust battle to challenge the Gym\lLeader.\pThe Gym leader is a very powerful\ntrainer.\pEach gym usses a different type.\pFor example a gym might only use\nFighting types.\pOr a gym might use all electric\ntypes.\pWhen you beat a gym leader they\nwill usually give you a new TM.\lAnd shall always give you a badge\lto show you beat them.\pWhen you get all 8 badges you can\nenter the Pokemon League.\pThere you can battle the Elite 4\nand the champion.\pThey are the strongest trainers in\nall of the Arorian Region.\pIf you can beat the Elite 4 and\nthe champion without losing all\lyour Pokemon then your are truely\lthe Pokemon champion.
#org @5
= Will you look at the time!\pI have to go [PLAYER]!\nI'll see you soon.\lBye
Ok does anyone know how to fix this?
Reply With Quote
  #7237    
Old August 22nd, 2012, 09:18 AM
thanethane98's Avatar
thanethane98
Self Proclaimed Expert
 
Join Date: Jun 2012
Nature: Relaxed
Quote:
Originally Posted by EHero70 View Post
Ok does anyone know how to fix this?
Was there a lot of space at the offset you used? If not, there's a chance that the script may of run over into other data, and so it's putting that in the message box as well.
__________________
Back and ROM hacking again!
Reply With Quote
  #7238    
Old August 22nd, 2012, 09:27 AM
EHero70's Avatar
EHero70
 
Join Date: Jul 2012
Location: Connecticut
Gender: Male
Nature: Bold
Quote:
Originally Posted by thanethane98 View Post
Was there a lot of space at the offset you used? If not, there's a chance that the script may of run over into other data, and so it's putting that in the message box as well.
Ok I'll try a different offst
Reply With Quote
  #7239    
Old August 22nd, 2012, 09:32 AM
ElusionM
Beginning Trainer
 
Join Date: Jul 2007
Nature: Adamant
Ok, I updated the tile warp script, and now it's better, but as soon as I step on the tile the game freezes.

Quote:
#dyn 0x740000
#org @start
lock
warp 0x3 0x66 0xFF 0x10 0x24
waitspecial
release
end
Reply With Quote
  #7240    
Old August 22nd, 2012, 10:27 AM
Satoshi Ookami's Avatar
Satoshi Ookami
Memento Mori
 
Join Date: Jul 2008
Location: Abyss of Time, Great Seal
Age: 21
Gender: Male
Nature: Calm
Quote:
Originally Posted by ElusionM View Post
Ok, I updated the tile warp script, and now it's better, but as soon as I step on the tile the game freezes.
Does it have Unknown and Var set?
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign
Reply With Quote
  #7241    
Old August 22nd, 2012, 11:06 AM
EHero70's Avatar
EHero70
 
Join Date: Jul 2012
Location: Connecticut
Gender: Male
Nature: Bold
Quote:
Originally Posted by EHero70 View Post
Ok I'll try a different offst
Using a different offset doesn't work
Reply With Quote
  #7242    
Old August 22nd, 2012, 11:15 AM
iLoveHate's Avatar
iLoveHate
Hmmmmmm.... :D
 
Join Date: Aug 2012
Location: Holland :D
Gender: Male
Nature: Modest
Send a message via Skype™ to iLoveHate
Hmm Haia, I got a question, i hope you someone of you can aswer it.
Ive been scripting for a while now and almost made my home town complete, I need to resue some1 and he gives me a pokemon bla bla bla. but my question is what if i die in that first battle? is my whole game screwed up? and im planning to make a battle against my rival with lvl 5 pokes, what is he/she defeats me? what do i have to do to prevent this?
It would be nice if i can rebattle or something but doing the whole conversation again.

Thanks in advance all.
Reply With Quote
  #7243    
Old August 22nd, 2012, 12:53 PM
robosllim's Avatar
robosllim
Unhatched Egg
 
Join Date: Jan 2012
Gender: Male
I'm a bit new to scripting and I'm having trouble with this one.
I'm writing in XSE for a FireRed hack. The script is fired off by a trigger/"green S" tile.

What I want to happen is, after the right flags are set, have a person walk toward the player, say something, then initiate a battle. I've looked at the scripts for the Giovanni Silph Co. battle as well as the Pokemon Tower rival battle for comparison but can't see where the important differences are. My script is below (the overuse of #raw 62 is just filler from debugging).

The trigger behaves well enough before I have the flag set, so that works, at least. But once I set the flag, everything just freezes. Nobody moves, and no battle begins. I tried attaching the script to a person event, but that makes the person move without initiating the battle.

Spoiler:
Code:
'-----------------------
#org 0x8004F8
checkflag 0x1000
if 0x0 goto @end
checkflag 0x1010
if 0x1 goto @end
lock
applymovement MOVE_PLAYER 0x88004F6
applymovement 0x1 0x880036E
waitmovement 0x0
pause 0x5
msgbox 0x8800374 '"asdf..."
callstd 0x4
setvar LASTTALKED 0x1
trainerbattle 0x3 0x1 0x0 0x88003DF
msgbox 0x88003F4 '"asdf..."
callstd 0x4
closeonkeypress
fadescreen 0x1
setflag 0x1010
hidesprite 0x1
hidesprite 0x2
hidesprite 0x3
fadescreen 0x0
release
end

'-----------------------
#org @end
release
end


'-----------
' Movements
'-----------
#org 0x8004F6
#raw 62 'Exclamation Mark (!)

#org 0x80036E
#raw 62 'Exclamation Mark (!)
#raw D 'Step Up (Slow)
#raw F 'Step Right (Slow)
#raw 1 'Face Up
#raw 62 'Exclamation Mark (!)


'---------
' Strings
'---------
#org 0x800374
= asdf

#org 0x8003DF
= asdf

#org 0x8003F4
= asdf
Reply With Quote
  #7244    
Old August 22nd, 2012, 02:42 PM
Jambo51's Avatar
Jambo51
Glory To Arstotzka
 
Join Date: Jun 2009
Gender: Male
Nature: Quiet
This is a question for all you Emerald hackers on the site.

What I want to do is move the camera during an event, then move it back. I am well aware that (in FR at least) this requires a special "lock" and "release" command, as well as the standard applymovement 0x7F.

Does anybody know if Emerald requires these "lock" and "release" specials, and if so, which specials they are?

ETA: Never mind, I found out which specials they are. In Emerald, it's special 0x116 and 0x117 instead of 0x113 and 0x114 like on RS and FRLG.
__________________
Placeholder Temporary Signature

Last edited by Jambo51; August 23rd, 2012 at 03:50 PM. Reason: Found answer
Reply With Quote
  #7245    
Old August 22nd, 2012, 06:35 PM
NinjaLizzard's Avatar
NinjaLizzard
Beginning Trainer
 
Join Date: Aug 2012
Gender: Female
Yay, I failed at a basic script again This time I tried following a youtube tut (Hack Tutorials: Script Lesson One). I followed the tutorial exactly using Pokescript (I know its outdated, but i've been having no more luck with XSE, so I'm willing to try anything. Instead of getting a message box that says hello, I'm getting a choice between "buy" or "quit", neither of which I can select, and I can't back away either. Does anyone know what I'm doing wrong? I'm fairly sure it isn't my rom, I downloaded a new one to try this on.

Notepad Code

Spoiler:
#org $script
lock
faceplayer
message $talk
$talk 1 = Hello.
boxset 6
release
end
Reply With Quote
  #7246    
Old August 22nd, 2012, 10:43 PM
iLoveHate's Avatar
iLoveHate
Hmmmmmm.... :D
 
Join Date: Aug 2012
Location: Holland :D
Gender: Male
Nature: Modest
Send a message via Skype™ to iLoveHate
Quote:
Yay, I failed at a basic script again This time I tried following a youtube tut (Hack Tutorials: Script Lesson One). I followed the tutorial exactly using Pokescript (I know its outdated, but i've been having no more luck with XSE, so I'm willing to try anything. Instead of getting a message box that says hello, I'm getting a choice between "buy" or "quit", neither of which I can select, and I can't back away either. Does anyone know what I'm doing wrong? I'm fairly sure it isn't my rom, I downloaded a new one to try this on.

Notepad Code

Spoiler:

#org $script
lock
faceplayer
message $talk
$talk 1 = Hello.
boxset 6
release
end
NinjaLizzard i read you are using pokescript cuz you dont have more luck with XSE, but i can tell you this: downloads XSE 1.1.1 and look for any helpin the Diegoisawesome mega-huge xse tutorial, im kinda beginner but that tutorial helped me a lot. then the script would be:
Spoiler:

#dynamic 0x800000

#org @script
lock
faceplayer
msgbox @talk 0x6
release
end

#org @talk
= Haia


isnt this easier, the 0x6 is the same as boxset 6. it is al explained in the tutorial. if you sdont know how to get xse 1.1.1 pm me oki? REally XSE is far more easier

Can some1 help me?
My problem: Over and over again battling with a Weedle.
Its like this: You start, walk somewhere and then you have to rescue prof oak by killing the weedle. he says thank you and its done. but it can also happen if you you fail against the weedle. then you go back to you mommy and go to prof oak again over and over again until you defeat that weedle. my problem is when i killed the weedle and walk over the tile again its okej, no worries. But when i walk in house and go out again and walk over the tile again it starts the battle again.

I hope you guys understand me. I also made a video for the problem and i put the scripts in the disription, i also will put the script here.

Video: i cant post url yet but the video link is in my Visitor message so you only have to press on my name and the link will show up i guess

Script for starter and killing weedle:
Spoiler:
#dynamic 0x800000

#org @start
setvar 0x5002 0x2
goto @script
end

#org @script
checkflag 0x5005
if 0x1 goto @done
compare 0x5002 0x0
if 0x1 goto @lefttile
compare 0x5002 0x1
if 0x1 goto @middletile
compare 0x5002 0x2
if 0x1 goto @righttile
end

#org @final
msgbox @finally 0x4
closeonkeypress
setflag 0x5006
release
end

#org @finally
= Thank you for saving me!

#org @done
release
end

#org @lefttile
applymovement 0x02 @movetotheleft
waitmovement 0x0
goto @cont
end

#org @middletile
applymovement 0x02 @movetothemiddle
waitmovement 0x0
goto @cont
end

#org @righttile
applymovement 0x02 @movetotheright
waitmovement 0x0
goto @cont
end

#org @cont
msgbox @help 0x4
closeonkeypress
setflag 0x5005
goto @choose
end

#org @help
= Help me please, a wild weedle is\nattacking me. Take one of my\lpoke


#org @choose
msgbox @3starters 0x4
closeonkeypress
goto @bulba
end

#org @3starters
= You can choose Bulbasaur,\nCharmander or Squirtle. Give it a\lname if you want and fight that\lweedle!

#org @bulba
hidepokepic
showpokepic 0x1 0x0A 0x03
msgbox @bulbasaur 0x5
compare LASTRESULT 0x1
if 0x0 goto @char
hidepokepic
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @gotbu 0x4
waitfanfare
closeonkeypress
msgbox @nick1 0x5
compare LASTRESULT 0x1
if 0x1 goto @callpok
setflag 0x828
goto @further
end

#org @char
hidepokepic
showpokepic 0x4 0x0A 0x03
msgbox @charmander 0x5
compare LASTRESULT 0x1
if 0x0 goto @squir
hidepokepic
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @gotch 0x4
waitfanfare
closeonkeypress
msgbox @nick2 0x5
compare LASTRESULT 0x1
if 0x1 goto @callpok
setflag 0x828
goto @further
end

#org @squir
hidepokepic
showpokepic 0x7 0x0A 0x03
msgbox @squirtle 0x5
compare LASTRESULT 0x1
if 0x0 goto @bulba
hidepokepic
givepokemon 0x7 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @gotsq 0x4
waitfanfare
closeonkeypress
msgbox @nick3 0x5
compare LASTRESULT 0x1
if 0x1 goto @callpok
setflag 0x828
goto @further
end

#org @further
msgbox @lol 0x4
closeonkeypress
msgbox @cry 0x6
cry 0xD 0x0
wildbattle 0xD 0x3 0x0
goto @final
end

#org @cry
= Wee-ee-eedlee

#org @lol
= Now attack that weedle!

#org @squirtle
= Your last choice is a Squirtle, do\nyou want a Squirtle?

#org @gotsq
= You received a Squirtle!

#org @nick3
= Do you want to give Squirtle a\nnickname?

#org @charmander
= Maybe the Charmander?

#org @gotch
= You received a Charmander!

#org @nick2
= Do you want to give Charmander a\nnickname?

#org @callpok
call 0x1A74EB
setflag 0x828
goto @further
end

#org @bulbasaur
= Take the Bulbasaur?

#org @gotbu
= You received a Bulbasaur!

#org @nick1
= Do you want to give Bulbasaur a\nnickname?

#org @movetotheleft
#raw 0x6
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x4
#raw 0x1D
#raw 0x6
#raw 0x1F
#raw 0x1F
#raw 0x4
#raw 0x1D
#raw 0x6
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x4
#raw 0x1D
#raw 0x1D
#raw 0xFE

#org @movetothemiddle
#raw 0x6
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x4
#raw 0x1D
#raw 0x6
#raw 0x1F
#raw 0x1F
#raw 0x4
#raw 0x1D
#raw 0x6
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x4
#raw 0x1D
#raw 0x1D
#raw 0xFE

#org @movetotheright
#raw 0x6
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x4
#raw 0x1D
#raw 0x6
#raw 0x1F
#raw 0x1F
#raw 0x4
#raw 0x1D
#raw 0x6
#raw 0x1F
#raw 0x1F
#raw 0x4
#raw 0x1D
#raw 0x1D
#raw 0xFE


And the script for when you didnt kill the weedle:
I think something is wrong in this one:
Spoiler:
#dynamic 0x800000

#org @start
lock
checkflag 0x5006
if 0x1 goto @end
checkflag 0x828
if 0x1 goto @battle
release
end

#org @end
release
end

#org @battle
msgbox @weedle 0x4
closeonkeypress
msgbox @cry 0x6
cry 0xD 0x0
wildbattle 0xD 0x3 0x0
goto 0x801C4A (That is @final in script 1)
end

#org @weedle
= Make it quick plz

#org @cry
= Wee-ee-edle



Thanks in advance, could you pm/vp me the solution?

Last edited by iLoveHate; August 23rd, 2012 at 06:02 AM. Reason: Your double post has been automatically merged.
Reply With Quote
  #7247    
Old August 23rd, 2012, 09:28 AM
EHero70's Avatar
EHero70
 
Join Date: Jul 2012
Location: Connecticut
Gender: Male
Nature: Bold
Quote:
Originally Posted by EHero70 View Post
Ok i need help with my script. It is a level script and for some reason at the end of the script there japanese text starts popping up when the script is just supposed to end!
Here is my script:
Code:
#dynamic 0x6D2A3C
#org @start
setvar 0x4033 0x1
setflag 0x201
applymovement 0x3 @move
waitmovement 0x0
msgbox @1 0x6
applymovement 0x3 @move2
applymovement 0xFF @move2
waitmovement 0x0
msgbox @2 0x6
applymovement 0x3 @move3
applymovement 0xFF @move3
waitmovement 0x0
msgbox @3 0x6
applymovement 0x3 @move4
applymovement 0xFF @move4
waitmovement 0x0
msgbox @4 0x6
applymovement 0x3 @move5
waitmovement 0x0
msgbox @5 0x6
applymovement 0x3 @move6
waitmovement 0x0
fadescreen 0x1
fadescreen 0x0
release
end
#org @move
#raw 0x08
#raw 0x08
#raw 0xFE
#org @move2
#raw 0x01
#raw 0x03
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x01
#raw 0xFE
#org @move3
#raw 0x02
#raw 0x0A 
#raw 0x0A 
#raw 0x0A 
#raw 0x0A 
#raw 0x0A 
#raw 0x0A 
#raw 0x0A 
#raw 0x0A 
#raw 0x01
#raw 0x09 
#raw 0x09 
#raw 0x09 
#raw 0x09 
#raw 0x09 
#raw 0x02
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x01
#raw 0x09
#raw 0x09 
#raw 0x09 
#raw 0x01
#raw 0xFE
#org @move4
#raw 0x03
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x01
#raw 0x09
#raw 0x09
#raw 0x09
#raw 0x09
#raw 0x09
#raw 0x09
#raw 0x03
#raw 0x0B 
#raw 0x0B 
#raw 0x0B 
#raw 0x00
#raw 0x08 
#raw 0x08 
#raw 0x08 
#raw 0x08 
#raw 0x03
#raw 0x0B
#raw 0x0B
#raw 0x01
#raw 0xFE
#org @move5
#raw 0x56
#raw 0x02
#raw 0xFE
#org @move6
#raw 0x02
#raw 0x17
#raw 0x17
#raw 0x17
#raw 0x01
#raw 0x16
#raw 0x16
#raw 0x02
#raw 0x17
#raw 0x17
#raw 0x17
#raw 0x00
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x02
#raw 0x17 
#raw 0x17 
#raw 0x17 
#raw 0x17 
#raw 0x17 
#raw 0x17 
#raw 0x17 
#raw 0x17 
#raw 0xFE
#org @1
= [PLAYER]! It's me dad!\pBefore you say anything abut my\nhair! The hair dresser screwed up\land gave me this emo cut!\pAnyway, i'm back! It is so nice to\nsee you [PLAYER]!\pI don't have much time but let me\nshow you around a little bit!\pFollow me.
#org @2 
= This in front of us is the\nPokemart.\pIn here you can buy and sell\nthings.\pThere is one of theese in almost\nevery town, city, or villige.
#org @3 
= This is the Pokemon Center.\pHere you can heal up all of your\ntired or fainted Pokemon back to\lfull health.\pIn the upstairs part of the\nPokemon center you can trade and\lconnect with people world wide!
#org @4 
= Right in front of us is a Pokemon\nGym.\pGym's consit of trainers that you\nmust battle to challenge the Gym\lLeader.\pThe Gym leader is a very powerful\ntrainer.\pEach gym usses a different type.\pFor example a gym might only use\nFighting types.\pOr a gym might use all electric\ntypes.\pWhen you beat a gym leader they\nwill usually give you a new TM.\lAnd shall always give you a badge\lto show you beat them.\pWhen you get all 8 badges you can\nenter the Pokemon League.\pThere you can battle the Elite 4\nand the champion.\pThey are the strongest trainers in\nall of the Arorian Region.\pIf you can beat the Elite 4 and\nthe champion without losing all\lyour Pokemon then your are truely\lthe Pokemon champion.
#org @5
= Will you look at the time!\pI have to go [PLAYER]!\nI'll see you soon.\lBye
Can somebody please Help me with this!?!?
Reply With Quote
  #7248    
Old August 23rd, 2012, 09:34 AM
marcin's Avatar
marcin
Beginning Trainer
 
Join Date: Jun 2009
Location: Behind you
Gender: Male
Nature: Modest
Quote:
Originally Posted by Ash493 View Post
Use offset 800000 or something bigger.


I used offset 830000.Now the view radius works correctly,but instead of saying something,the screen turns red and the game freezes.
I have XSE 1.0.0,so I'm going to try downloading XSE 1.1.1 and then tell you guys what happens.
__________________


Sceptile is the absolute best Pokemon of all time.
Reply With Quote
  #7249    
Old August 23rd, 2012, 02:07 PM
NinjaLizzard's Avatar
NinjaLizzard
Beginning Trainer
 
Join Date: Aug 2012
Gender: Female
I'm back to my second problem I was having with my basic script. I have XSE 1.1.1, and using FSF, I found an offset. Using this offset in my script (in the spoiler below), I compile it, and copy the offset into Advance Map. Then when I test my ROM, my character walks up one tile and then the whole screen goes black, when all I'm trying to do is talk to an NPC. Is there anyone who has any idea what I'm doing wrong, and what I can do to fix it?

Spoiler:
#dynamic 0x481E00
#org @start
lock
faceplayer
msgbox @1 0x6
release
end

#org @1
= I love these flowers!


EDIT: I think I may have discovered part of the problem, even if I don't know the solution. Is the script offset # suppose to change when you switch back and forth between maps? Like, if I switch to a different map, and then come back, the code is different.

Last edited by NinjaLizzard; August 23rd, 2012 at 07:34 PM.
Reply With Quote
  #7250    
Old August 23rd, 2012, 08:39 PM
miksy91's Avatar
miksy91
A GB/C Rom Hacker since 2010
 
Join Date: Oct 2008
Location: A small country in the North
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by NinjaLizzard View Post
I'm back to my second problem I was having with my basic script. I have XSE 1.1.1, and using FSF, I found an offset. Using this offset in my script (in the spoiler below), I compile it, and copy the offset into Advance Map. Then when I test my ROM, my character walks up one tile and then the whole screen goes black, when all I'm trying to do is talk to an NPC. Is there anyone who has any idea what I'm doing wrong, and what I can do to fix it?

Spoiler:
#dynamic 0x481E00
#org @start
lock
faceplayer
msgbox @1 0x6
release
end

#org @1
= I love these flowers!


EDIT: I think I may have discovered part of the problem, even if I don't know the solution. Is the script offset # suppose to change when you switch back and forth between maps? Like, if I switch to a different map, and then come back, the code is different.
The #dynamic 0x481E00 there means that the script editor tries to calculate free space in ROM where to input your script data starting at offset 0x481E00. Best way to understand what it means is by having a backup of the original rom file and a hex editor (any hex editor will do, there are plenty of them around).

Compile your script data and open that offset it shows with a hex editor in both compiled rom and your backup rom. That way, you can see what the XSE did while compiling the script, and where #dynamic 0x481E00 lead the script data.

Otherwise, I believe your problem is the fact that XSE thinks you've found free space for inserting the script data in rom, and put it there although there wasn't free space for it. There is a of free space in the end of the rom; starting somewhere at 0x730000 (this is also something you may want to check with a hex editor to see what the rom looks like and all the room you've left for inserting your own data without replacing any existing data) I believe but can't remember for sure as I never hack FR.

So after doing all this, start with your backup rom and compile the script in free rom area.
__________________
My Rom Hack



Hacks I support





Learn how to hack GB/C games:

Check my GameBoy/Color hacking videos in Youtube
-The video set uses Pokemon Silver (U) rom for demonstrations
Reply With Quote
Reply
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 06:30 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.