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
  #376    
Old February 2nd, 2009 (10:31 PM).
Ninja Caterpie's Avatar
Ninja Caterpie
Sitting by the back window
 
Join Date: Mar 2008
Location: Best City OCE
Age: 19
Gender: Male
Nature: Bold
Quote originally posted by Eternal Finality:
I've looked into Advance Text, but i can't edit any part of the intro (the screen above and oaks intro) at all. Is there any way to remove it?
Rofl.

Use the Search function. It's there for a reason. =P
__________________
Brony represent.
  #377    
Old February 3rd, 2009 (04:41 AM).
Andryandrew
Italian Asm Hacker
 
Join Date: Mar 2007
Age: 21
Gender:
Nature: Timid
Quote originally posted by NeoNemesis:
Yes, it should be possible. Now I have a question of my own.

I've been trying to figure this out for ages but I just couldn't figure it out.
I want to learn how to make scripts that deal with Ruby's real time clock like check the time, and if its a certain time go do a certain command, or like the script on cycling road on the signpost that tells you how many collisions you had and how long it took you to finish the course. Can someone help me out here?
mmm... yeah, it's *quite* simply... colck's data is at 02024f47 (this is the address of minute's byte of the internal clock). Hour's byte is at 02024f46. If you know ASM, you can make a routine that checks the byte; However there's some scripting commands (like comparefarbytetovar and similar) that let you make it more simply.
__________________

Sorry for my bad English... I'm Italian
Anybody that is a GBA ASM hacker is cool!
I'm a GBA ASM hacker --> I'm cool :D

Made Day-Night Routine! You can find the thread HERE
  #378    
Old February 3rd, 2009 (05:23 AM).
darkmewham2's Avatar
darkmewham2
Cold's catch rate- 100%. D:
 
Join Date: Jan 2009
Location: In a certain place in my mind I like to call "the creative part".
Gender:
Nature: Docile
Quote originally posted by darkmewham2:
These 2 codes are meant to go together, and neither of which works...
Code:
#org @start
lock
faceplayer
countpokemon
#define compare 0x800D 0x1
#define if 0x1 goto @continue
if 0x0 goto @goaway
checktrainerflag 0x2e6
compare 0x800D 0x1 
if 0x1 call @alreadybattled
release
end

#org @continue
= trainerbattle 0x0 0x2e6 0x0 @intro @defeat
msgbox @msg 0x2
end

#org @intro
= Battle commencing.

#org @defeat
= Congradulations.

#org @msg
= Please go get your\nEEVEE returned to you.
cleartrainerflag 0x19E

#org @goaway
= POKeMON number does\nnot equal one. Try again after\nyou've talked to the man beside\nme.
Code:
dynamic 0x8013F7
#org @start
lock
faceplayer
countpokemon
compare 0x800D 0x1
if 0x1call @continue
if 0x0 call @please
checktrainerflag 0x2e6
compare 0x800D 0x1
if 0x1 goto @alreadybattled
release
end

#org @continue
checkflag 0x1019
if 0x1 call @nomore
givepokemon 0x175 0x50 0x0 0x0 0x0 0x0
setflag 0x1019
end

#org @nomore
msgbox @msg 0x2
end

#org @msg
= Please go battle my sim.

#org @alreadybatted
setvar 0x8008 0x8
call 0x1A8CAD
checkflag 0x1000
if 0x1 goto @how
msgbox @yesno 0x5
compare LASTRESULT 0x0
if 0x1 goto @too
call 0x1A8CBD
compare 0x8004 0x6
if 0x4 goto @too
call 0x1A8CC9
comparevars LASTRESULT 0x8009
if 0x5 goto @not
call 0x1A8CD9
msgbox @thanksalot 0x4
setflag 0x1000
release
end

#org @not
bufferpokemon 0x0 0x8009
msgbox @not2 0x4
release
end

#org @too
bufferpokemon 0x0 0x8009
msgbox @too2 0x4
release
end

#org @how
msgbox @old 0x4
release
end

#org @thanksalot
= Okay. Lets go.
warp 0x4 0x2 0x3 0x0 0x0
#org @not2
= My hack, not yours.

#org @too2
= Why are you messing with my hack?

#org @yesno
= Okay. I'll give you your\nEEVEE back and end the SIM.

#org @old
= I'm supprised your cheats work\n in my hack. o.o
Its logically impossible to not have the Pokemon in your party at this point in time, thats why the second code is kinda.. iffy... >.>

My script is basically 2 people.
Person 1 is the person who battles you.
Person 2 gives you a Pokemon, trades it to you with Eevee, and teleports you out of the SIM.

Person 2 gives you a SALAMENCE.
Person 1 battles you.
Person 2 realizes that you have battled person 1 because of the flag and trades you SALAMENCE with EEVEE.
Person 2 warps you out of the SIM.


Looks like a follow me script.
Sorry for bumping my post, but it got buried in other questions.
__________________
Extreme Code Lyoko Fanatic-- Make Way!
  #379    
Old February 3rd, 2009 (07:57 AM).
Eternal Finality
Beginning Trainer
 
Join Date: May 2008
Quote originally posted by Ninja Caterpie:
Rofl.

Use the Search function. It's there for a reason. =P
I know , ive tried searching for "change intro' and 'change intro text' But all I came up with was changing the palette of the player in the intro. And apparently the rom im hacking (LG) doesnt have the intro in Advance Text to edit.
  #380    
Old February 3rd, 2009 (08:05 AM).
Larsie13
Gone
 
Join Date: Oct 2006
Location: The Netherlands
Age: 24
Nature: Modest
Quote originally posted by Eternal Finality:
I know , ive tried searching for "change intro' and 'change intro text' But all I came up with was changing the palette of the player in the intro. And apparently the rom im hacking (LG) doesnt have the intro in Advance Text to edit.
Lol, he means the Search function in Advance Text
  #381    
Old February 3rd, 2009 (08:18 AM).
NatureKeeper
No longer active here.
 
Join Date: Jun 2008
Location: Somewhere.
Age: 17
Gender: Male
Nature: Hasty
Send a message via Windows Live Messenger to NatureKeeper Send a message via Skype™ to NatureKeeper
Guys, Excuse me but I need a script for Shade Mew:

This is how it goes:

Sorry, but the legendary Pokemon
Rayquaza lives here and I must test you in
a Lv.70 battle to pass. [Yes/No]

Yes= trainer battle
No= go 1 tile left

If the trainer battle's done, the flag is set for the script and the player can pass automatically.
  #382    
Old February 3rd, 2009 (11:34 AM).
Eternal Finality
Beginning Trainer
 
Join Date: May 2008
Quote originally posted by Larsie13:
Lol, he means the Search function in Advance Text
I see, I used that and no intro talk was found any other way to edit that text?
  #383    
Old February 3rd, 2009 (03:06 PM).
darkmewham2's Avatar
darkmewham2
Cold's catch rate- 100%. D:
 
Join Date: Jan 2009
Location: In a certain place in my mind I like to call "the creative part".
Gender:
Nature: Docile
Which game is this? It may have a special character. Also realize that it is case sensitive.
__________________
Extreme Code Lyoko Fanatic-- Make Way!
  #384    
Old February 3rd, 2009 (06:51 PM).
ckret2's Avatar
ckret2
usually pronounced "secret 2"
 
Join Date: Dec 2008
Location: You Are Here
Age: 24
Gender:
Nature: Rash
Send a message via AIM to ckret2
I'm working on the first script I've ever made, and I'm having trouble with XSE. I made one script and gave it a new offset I found with the FSF, compiled into my rom (at least I guess that's what I managed to do; you compile it just by clicking the button that looks like two blue gears, right?), went into the game and checked it out--it worked fine, the character talked just like he was supposed to. Except I'd messed up some of the dialogue and wanted to change it, so I went back into the script, changed the dialogue, and compiled it again.

But when I went back into the game it hadn't changed. I've tried several times. I've closed and opened XSE and compiled it again to see if it'd change, and saved in AdvanceMap after compiling to see if that would do any good. It hasn't.

What do I need to do to change a script once it's been compiled?
__________________

This one is my hack.


This one is the hack I part-time map for.

I got an Illumise?
Pretty awesome.
Glad I grabbed an egg I didn't recognize.
  #385    
Old February 3rd, 2009 (09:54 PM).
Ninja Caterpie's Avatar
Ninja Caterpie
Sitting by the back window
 
Join Date: Mar 2008
Location: Best City OCE
Age: 19
Gender: Male
Nature: Bold
Quote originally posted by Eternal Finality:
I see, I used that and no intro talk was found any other way to edit that text?
It's case sensitive. Type the exact text with the same capitals and stuff.
__________________
Brony represent.
  #386    
Old February 3rd, 2009 (10:05 PM).
Tyzer's Avatar
Tyzer
Ruby Destiny Player
 
Join Date: Jan 2009
Gender:
Nature: Calm
Can someone still help me with my script?
__________________


Working on Pokémon Darkness, the real darkness comes from within you....
(if somewone can make a banner for pokémon darkness, i would realy apreciate it!)
More info check
http://pkmndarkness.messageboard.be
  #387    
Old February 4th, 2009 (01:57 AM).
Eternal Finality
Beginning Trainer
 
Join Date: May 2008
Quote originally posted by Ninja Caterpie:
It's case sensitive. Type the exact text with the same capitals and stuff.
still nothing, the intro just isnt there. I seem to miss most of the sevii islands too.
  #388    
Old February 4th, 2009 (04:44 AM). Edited February 4th, 2009 by Andryandrew.
Andryandrew
Italian Asm Hacker
 
Join Date: Mar 2007
Age: 21
Gender:
Nature: Timid
Quote originally posted by ckret2:
I'm working on the first script I've ever made, and I'm having trouble with XSE. I made one script and gave it a new offset I found with the FSF, compiled into my rom (at least I guess that's what I managed to do; you compile it just by clicking the button that looks like two blue gears, right?), went into the game and checked it out--it worked fine, the character talked just like he was supposed to. Except I'd messed up some of the dialogue and wanted to change it, so I went back into the script, changed the dialogue, and compiled it again.

But when I went back into the game it hadn't changed. I've tried several times. I've closed and opened XSE and compiled it again to see if it'd change, and saved in AdvanceMap after compiling to see if that would do any good. It hasn't.

What do I need to do to change a script once it's been compiled?
Uh... Did you change offset of script in A.Map with the new one?

Quote originally posted by Tyzer:
Hey, I have writed a gymleader script for the 5ft gym and when i compile it into my rom and I open it from my rom, the script is whole changed...
Are there some faults in my script?

Here is my script
Code:
#org 0x816D54E
'-----------------------------------
setvar 0x8004 0x6
setvar 0x8005 0x2
special 0x174
trainerbattle 0x1 0x1A2 0x0 0x819832E 0x8198444 0x816D580
checkflag 0x259
if 0x0 jump 0x816D5A6 ' Smaller Than
msgbox 0x8198481 ' When a pokémon uses IRON TAIL,\nit changes it's tail to steel\nand hits the opponent!
callstd MSG_NOCLOSE ' Non-closing msg
release
end
#org 0x816D580
'-----------------------------------
setvar 0x8004 0x6
setvar 0x8005 0x1
special 0x173
clearflag 0x9F
setflag 0x4B4
setflag 0x824
setvar 0x8008 0x5
call 0x81A6B18
jump 0x816D5A6
#org 0x81A6B18
'-----------------------------------
copyvar 0x8000 0x8008
compare 0x8000 0x1
if 0x1 jump 0x81A6B76 ' Equal To
compare 0x8000 0x2
if 0x1 jump 0x81A6B7A ' Equal To
compare 0x8000 0x3
if 0x1 jump 0x81A6B81 ' Equal To
compare 0x8000 0x4
if 0x1 jump 0x81A6B8B ' Equal To
compare 0x8000 0x5
if 0x1 jump 0x81A6BA1 ' Equal To
compare 0x8000 0x6
if 0x1 jump 0x81A6BB4 ' Equal To
compare 0x8000 0x7
if 0x1 jump 0x81A6BCA ' Equal To
compare 0x8000 0x8
if 0x1 jump 0x81A6BE0 ' Equal To
end
#org 0x81A6B76
'-----------------------------------
cleartrainerflag 0x8E
return
#org 0x816D5A6
'-----------------------------------
msgbox 0x819850E ' Now that you have the STEELBADGE,\nthe DEFENSE of your POKéMON rises.\pIt also lets you SURF outside of\nbattle.\pAh!\nTake this, too!
callstd MSG_NOCLOSE ' Non-closing msg
checkitemamount 0x137 0x1
compare LASTRESULT 0x0
if 0x1 jump 0x816D5E7 ' Equal To
additem 0x137 0x1
msgbox 0x819858F ' \v\h01 received TM23\nfrom RUBEN.
copyvarifnotzero 0x8000 0x126
copyvarifnotzero 0x8001 0x1
copyvarifnotzero 0x8002 0x101
callstd 0x9 ' 
setflag 0x259
msgbox 0x81985AB ' This TM contains IRON TAIL,\nyou can teach it to each\npokémon that has a tail!
callstd MSG_NOCLOSE ' Non-closing msg
release
end
#org 0x816D5E7
'-----------------------------------
msgbox 0x819860D ' Make space for this, kid!
callstd MSG_NOCLOSE ' Non-closing msg
release
end
#org 0x81A6B7A
'-----------------------------------
cleartrainerflag 0x96
cleartrainerflag 0xEA
return
#org 0x81A6B81
'-----------------------------------
cleartrainerflag 0x8D
cleartrainerflag 0xDC
cleartrainerflag 0x1A7
return
#org 0x81A6B8B
'-----------------------------------
cleartrainerflag 0x84
cleartrainerflag 0x85
cleartrainerflag 0xA0
cleartrainerflag 0x109
cleartrainerflag 0x10A
cleartrainerflag 0x10B
cleartrainerflag 0x192
return
#org 0x81A6BA1
'-----------------------------------
cleartrainerflag 0x126
cleartrainerflag 0x127
cleartrainerflag 0x120
cleartrainerflag 0x121
cleartrainerflag 0x124
cleartrainerflag 0x125
return
#org 0x81A6BB4
'-----------------------------------
cleartrainerflag 0x118
cleartrainerflag 0x119
cleartrainerflag 0x11A
cleartrainerflag 0x11B
cleartrainerflag 0x1CE
cleartrainerflag 0x1CF
cleartrainerflag 0x1D0
return
#org 0x81A6BCA
'-----------------------------------
cleartrainerflag 0xB1
cleartrainerflag 0xB2
cleartrainerflag 0xB3
cleartrainerflag 0xB4
cleartrainerflag 0xD5
cleartrainerflag 0xD6
cleartrainerflag 0xD7
return
#org 0x81A6BE0
'-----------------------------------
cleartrainerflag 0x128
cleartrainerflag 0x129
cleartrainerflag 0x142
cleartrainerflag 0x143
cleartrainerflag 0x144
cleartrainerflag 0x188
cleartrainerflag 0x190
cleartrainerflag 0x191
return
 
#org 0x819832E
= RUBEN: Fwahahaha!\pA mere child like you dares to\nchallenge me?\pThe very idea makes me shiver\nwith mirth!\pWell then, if you wish,\nI'll show you the real, horrific\nstrengt of STEEL-TYPE POKéMON!\hFC\h0B\h56\h01
#org 0x8198444
= Humph!\nYou have proven your worth!\pHere!\nTake the STEELBADGE!
#org 0x8198481
= When a pokémon uses IRON TAIL,\nit changes it's tail to steel\nand hits the opponent!
#org 0x819850E
= Now that you have the STEELBADGE,\nthe DEFENSE of your POKéMON rises.\pIt also lets you SURF outside of\nbattle.\pAh!\nTake this, too!
#org 0x819858F
= \v\h01 received TM23\nfrom RUBEN.
#org 0x81985AB
= This TM contains IRON TAIL,\nyou can teach it to each\npokémon that has a tail!
#org 0x819860D
= Make space for this, kid!
I hope you can help me with that!
you have to compile the script with dynamicals offsets... Otherwise it delete some parts if you add instructions
__________________

Sorry for my bad English... I'm Italian
Anybody that is a GBA ASM hacker is cool!
I'm a GBA ASM hacker --> I'm cool :D

Made Day-Night Routine! You can find the thread HERE
  #389    
Old February 4th, 2009 (07:49 AM).
Mortar
Trainer
 
Join Date: May 2007
Location: Europe
Gender:
Nature: Adamant
Quote originally posted by PowerfulSquirtleKeeper:
Guys, Excuse me but I need a script for Shade Mew:

This is how it goes:

Sorry, but the legendary Pokemon
Rayquaza lives here and I must test you in
a Lv.70 battle to pass. [Yes/No]

Yes= trainer battle
No= go 1 tile left

If the trainer battle's done, the flag is set for the script and the player can pass automatically.
Code:
#dynamic 0x[your offset]

#org @check
checkflag 0x501
if b_false goto @start
release
end

#org @start
msgbox @test 0x5
compare LAST_RESULT 0x1
if b_true goto @battle
applymovement 0xFF @stepleft
end

#org @battle
trainerbattle 0x1 0x[trainer number] 0x0 @intro @victory @after
end

#org @after
setflag 0x501
end

#org @stepleft
#raw 0x12 0xFE

#org @test
= Sorry, but the legendary POKéMON\nRAYQUAZA lives here.\pI must test you in a lv. 70\nbattle before letting you in.

#org @intro
= Here we go!

#org @victory
= You have passed the test.
__________________



  #390    
Old February 4th, 2009 (01:44 PM).
Pokepal17's Avatar
Pokepal17
More cowbell~
 
Join Date: Oct 2008
Location: Steeltown
Age: 20
Gender: Male
Nature: Modest
I need help.

Game: Pokemon Fire Red
Script Editor: XSE
Script Type: Signpost

Script
Spoiler:

#dynamic 0x700000

#org @start
special 0x187
compare LASTRESULT 0x2
if 0x1 goto @end
special 0x188
compare 0x4025 0x1F4
if 0x0 call @tree
msgbox @berry 0x2
random 0x5
compare LASTRESULT 0x0
if 0x1 goto @oran
compare LASTRESULT 0x1
if 0x1 goto @pecha
compare LASTRESULT 0x2
if 0x1 goto @rawst
compare LASTRESULT 0x3
if 0x1 goto @leppa
compare LASTRESULT 0x4
if 0x1 goto @sitrus
special 0x197
end

#org @end
end

#org @tree
msgbox @berry 0x2
end

#org @berry
= It's a berry tree!

#org @oran
giveitem 0x8B 0x1 0x0
return

#org @pecha
giveitem 0x87 0x1 0x0
return

#org @rawst
giveitem 0x88 0x1 0x0
return

#org @leppa
giveitem 0x8A 0x1 0x0
return

#org @sitrus
giveitem 0x8E 0x1 0x0
return


The script is meant to check if the player has walked 500 steps and then give them a random berry and reset the the amount of steps the player has moved.

Instead it gives me a random berry, doesn't close the message box when the berry is given and doesn't reset the amount of steps, therefore letting me get a random berry continuously. Please help.
__________________
Pokémon Stardrop
  #391    
Old February 4th, 2009 (02:08 PM).
Andryandrew
Italian Asm Hacker
 
Join Date: Mar 2007
Age: 21
Gender:
Nature: Timid
Quote originally posted by Pokepal17:
I need help.

Game: Pokemon Fire Red
Script Editor: XSE
Script Type: Signpost

Script
Spoiler:

#dynamic 0x700000

#org @start
special 0x187
compare LASTRESULT 0x2
if 0x1 goto @end
special 0x188
compare 0x4025 0x1F4
if 0x0 goto @tree
msgbox @berry 0x2
random 0x5
compare LASTRESULT 0x0
if 0x1 goto @oran
compare LASTRESULT 0x1
if 0x1 goto @pecha
compare LASTRESULT 0x2
if 0x1 goto @rawst
compare LASTRESULT 0x3
if 0x1 goto @leppa
compare LASTRESULT 0x4
if 0x1 goto @sitrus
end

#org @end
end

#org @tree
msgbox @berry 0x2
end

#org @berry
= It's a berry tree!

#org @oran
giveitem 0x8B 0x1 0x0
goto @end2
end

#org @pecha
giveitem 0x87 0x1 0x0
goto @end2
end

#org @rawst
giveitem 0x88 0x1 0x0
goto @end2
end

#org @leppa
giveitem 0x8A 0x1 0x0
goto @end2
end

#org @sitrus
giveitem 0x8E 0x1 0x0
goto @end2
end

#org @end2
special 0x197
end


The script is meant to check if the player has walked 500 steps and then give them a random berry and reset the the amount of steps the player has moved.

Instead it gives me a random berry, doesn't close the message box when the berry is given and doesn't reset the amount of steps, therefore letting me get a random berry continuously. Please help.
Uhm... I deleted returns because you have to use "call" instead of "goto" if you want to return (but in my opinion it should work also with goto)...
__________________

Sorry for my bad English... I'm Italian
Anybody that is a GBA ASM hacker is cool!
I'm a GBA ASM hacker --> I'm cool :D

Made Day-Night Routine! You can find the thread HERE
  #392    
Old February 4th, 2009 (03:51 PM). Edited February 4th, 2009 by Robert Conley.
Robert Conley's Avatar
Robert Conley
GPXPlus.net/user/Robert+Conley
 
Join Date: Oct 2008
Location: The Anti Spiral Homeworld
Gender: Male
Nature: Docile
Two things:
1.is it possible to make a script where a person will ask you for a meteorite and if you have one take it(the meteorite) and give you a deoxys/if you dont have one say something like "Dont have one huh? OK come see me when you do"?

2.How do I make a script so you cant access a certain area until after the elite four?
really need help so far the only thing ive done successfully is make simple talking scripts.
  #393    
Old February 4th, 2009 (05:29 PM).
hot_kage's Avatar
hot_kage
I am like a rose cute and calm
 
Join Date: Oct 2008
Location: Long Beach , California
Age: 21
Gender:
Nature: Naughty
lol sorry guys..
Code:
#dynamic 0x2DD4E4

#org @start
checkflag 0x2045
if 0x1 goto @end
fadesong 0x13B
setflag 0x2045
special 0x113
applymovement 0x7F @move
waitmovement 0x0
msgbox @1 0x6
special 0x114
applymovement 0x11 @move2
applymovement 0x12 @move2
special 0x113
applymovement 0x7F @move4
special 0x114
applymovement 0x11 @move3
msgbox @2 0x6
applymovement 0x11 @move5
applymovement 0x12 @move6
fadedefault 
release
setflag 0x205
setflag 0x206
end

#org @move
#raw 0x11 0x11 0x11 0x11 0x11 0xFE

#org @1
= [blue_fr]JUAN:[black_fr] Hhmm..\nIt Appears There Was A Rockslide..\l[red_fr]RYAN:[black_fr] Yes..\lSo It Seems.\lI Guess The Road to [green_fr]Azure Summit\l[black_fr] Is Closed Off For Now..

#org @move2
#raw 0x00 0x62 0xFE

#org @move4
#raw 0x10 0x10 0x10 0x10 0x10 0xFE

#org @move3
#raw 0x10 0x10 0x10 0x10 0x13 0x10 0x10 0x12 0x10 0x4A 0xFE

#org @2
= [blue_fr]Juan:[black_fr] Hello Citzen.\nI'm Officer Juan, Isis Region\lPolice. It Appears The Road To\l[green_fr]Azure Summit [black_fr] Is Closed.\lSorry.= [blue_fr]Juan:[black_fr] Hello Citzen.\nI'm Officer Juan, Isis Region\lPolice. It Appears The Road To\l[green_fr]Azure Summit [black_fr] Is Closed.\lSorry.

#org @move5
#raw 0x1F 0x1D 0x4E 0x1F 0x1F 0x60 0xFE

#org @move6
#raw 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1D 0x4E 0x1F 0x1F 0x60 0xFE

#org @end
end
the move camera is f'd so is the movement that follows and the return camera...in other words i suck a move camera
  #394    
Old February 5th, 2009 (07:14 AM).
Eternal Finality
Beginning Trainer
 
Join Date: May 2008
Quote originally posted by Eternal Finality:
I see, I used that and no intro talk was found any other way to edit that text?
Does anyone know?
Or do i need to switch to FR?
  #395    
Old February 5th, 2009 (09:26 AM).
Lyzo's Avatar
Lyzo
On vacation
 
Join Date: Mar 2007
Location: The Netherlands
Age: 20
Gender: Male
Nature: Bold
Send a message via Windows Live Messenger to Lyzo
Ok... The problem with this script is that it starts and works, until the 8th line (msgbox @Common 0x6) After that... the script just stops and you can move around, but after you do two steps the game restarts...??? Could someone tell me what's wrong?

Game: FireRed
Type: Trigger
Editor: XSE
Script:
Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x204
if 0x1 goto @Done
applymovement 0x1 @MoveGary
waitmovement 0x0
msgbox @Common 0x6
applymovement 0x1 @MoveGary2
applymovement 0xFF @MovePlayer
waitmovement 0x0
applymovement 0x1 @MoveGary3
applymovement 0xFF @MovePlayer2
waitmovement 0x0
special 0x113
applymovement 0x7F @MoveCamera
waitmovement 0x0
playsong 0x0 0x0
msgbox @There 0x6
applymovement 0x7F @MoveCamera2
waitmovement 0x0
applymovement 0x1 @MoveGary4
applymovement 0xFF @MovePlayer3
waitmovement 0x0
applymovement 0x3 @MovePokemon
waitmovement 0x0
msgbox @Okay 0x6
applymovement 0x5 @MoveDad
waitmovement 0x0
applymovement 0x5 @MoveDad2
waitmovement 0x0
msgbox @Heisokay 0x6
applymovement 0x6 @MoveGrunt
applymovement 0x4 @MoveGrunt
waitmovement 0x0
applymovement 0x6 @MoveGrunt2
applymovement 0x4 @MoveGrunt2
waitmovement 0x0
applymovement 0x1 @TurnAround
applymovement 0xFF @TurnAround
applymovement 0x5 @TurnAround
waitmovement 0x0
msgbox @FoundMe 0x6
trainerbattle 0x1 0x66 0x0 @Haha @DarnIt @AfterBattle
release
end

#org @TurnAround
#raw 0x03
#raw 0x62
#raw 0xFE

#org @AfterBattle
msgbox @Argh 0x6
hidesprite 0x4
hidesprite 0x6
fadescreen 0x0
msgbox @GoodJob 0x6
warp 0x4 0x3 0xFF 0x6 0x5
setflag 0x204
release
end

#org @GoodJob
= ???: Good Job!\nYou guys are good.\lNow lets get the proffesor back...

#org @Argh
= Grunt: Arrrgghh!\nYour stronger than you look!

#org @DarnIt
= Grunt: Darn it! Beaten by a kid!

#org @Haha
= Grunts: Haha, stupid kids!

#org @FoundMe
= ???: Darn! They found me!\n.........................................\lGrunt: We weren't looking for you,\lbut for the pokemon you just scared away!\lYou're going to pay for that!

#org @MoveGrunt2
#raw 0x10
#raw 0x12
#raw 0xFE

#org @MoveGrunt
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0xFE

#org @Heisokay
= ???: He's okay, we just need to get him\nback to the lab and fix him up.\l..................................................\pOh, right!\l\v\h01, \v\h06, you both probably don't know\lwho I am...\lI'll explain later but fir...

#org @MoveDad2
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x00
#raw 0xFE

#org @MoveDad
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0xFE

#org @Okay
= [blue_fr]\v\h06: Pffff... it's gone.

#org @MovePokemon
#raw 0x03
#raw 0x62
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0xFE

#org @MovePlayer3
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0xFE

#org @MoveGary4
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0x12
#raw 0x12
#raw 0xFE

#org @MoveCamera2
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x13

#org @There
= [blue_fr]\v\h06: There is Proffesor Mable!\nBut...\lWhat is that pokemon doing next to him?\lProffesor Mable looks hurt!\lWe should help him!

#org @MoveCamera
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0xFE

#org @MovePlayer2
#raw 0x11
#raw 0x11
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0xFE

#org @MoveGary3
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE

#org @MovePlayer
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE

#org @MoveGary2
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE

#org @Common
= [blue_fr]\v\h06: Come on \v\h01!\nWe have to find him!\lI think I heard something up ahead!

#org @MoveGary
#raw 0x10
#raw 0x10
#raw 0xFE

#org @Done
release
end

Screenshots and/or Videos: -
__________________


Thank you The Blueprint !!!
  #396    
Old February 5th, 2009 (11:41 AM).
Andryandrew
Italian Asm Hacker
 
Join Date: Mar 2007
Age: 21
Gender:
Nature: Timid
Quote originally posted by hot_kage:
lol sorry guys..
Code:
#dynamic 0x2DD4E4

#org @start
checkflag 0x2045
if 0x1 goto @end
fadesong 0x13B
setflag 0x2045
special 0x113
applymovement 0x7F @move
waitmovement 0x0
msgbox @1 0x6
special 0x114
applymovement 0x11 @move2
applymovement 0x12 @move2
special 0x113
applymovement 0x7F @move4
special 0x114
applymovement 0x11 @move3
msgbox @2 0x6
applymovement 0x11 @move5
applymovement 0x12 @move6
fadedefault 
release
setflag 0x205
setflag 0x206
end

#org @move
#raw 0x11 0x11 0x11 0x11 0x11 0xFE

#org @1
= [blue_fr]JUAN:[black_fr] Hhmm..\nIt Appears There Was A Rockslide..\l[red_fr]RYAN:[black_fr] Yes..\lSo It Seems.\lI Guess The Road to [green_fr]Azure Summit\l[black_fr] Is Closed Off For Now..

#org @move2
#raw 0x00 0x62 0xFE

#org @move4
#raw 0x10 0x10 0x10 0x10 0x10 0xFE

#org @move3
#raw 0x10 0x10 0x10 0x10 0x13 0x10 0x10 0x12 0x10 0x4A 0xFE

#org @2
= [blue_fr]Juan:[black_fr] Hello Citzen.\nI'm Officer Juan, Isis Region\lPolice. It Appears The Road To\l[green_fr]Azure Summit [black_fr] Is Closed.\lSorry.= [blue_fr]Juan:[black_fr] Hello Citzen.\nI'm Officer Juan, Isis Region\lPolice. It Appears The Road To\l[green_fr]Azure Summit [black_fr] Is Closed.\lSorry.

#org @move5
#raw 0x1F 0x1D 0x4E 0x1F 0x1F 0x60 0xFE

#org @move6
#raw 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1D 0x4E 0x1F 0x1F 0x60 0xFE

#org @end
end
the move camera is f'd so is the movement that follows and the return camera...in other words i suck a move camera
I think camera have to return to the original position BEFORE putting "special 0x114"...
__________________

Sorry for my bad English... I'm Italian
Anybody that is a GBA ASM hacker is cool!
I'm a GBA ASM hacker --> I'm cool :D

Made Day-Night Routine! You can find the thread HERE
  #397    
Old February 5th, 2009 (01:03 PM).
Robert Conley's Avatar
Robert Conley
GPXPlus.net/user/Robert+Conley
 
Join Date: Oct 2008
Location: The Anti Spiral Homeworld
Gender: Male
Nature: Docile
Quote originally posted by hildetorr:
Two things:
1.is it possible to make a script where a person will ask you for a meteorite and if you have one take it(the meteorite) and give you a deoxys/if you dont have one say something like "Dont have one huh? OK come see me when you do"?

2.How do I make a script so you cant access a certain area until after the elite four?
really need help so far the only thing ive done successfully is make simple talking scripts.

So does anyone know how I can do these things?
  #398    
Old February 6th, 2009 (09:40 AM).
mew999
Beginning Trainer
 
Join Date: Jun 2007
Nature: Adamant
Hey could some one tell me how to creat a script were you want to go in to another room but another charactoe stops you and says you need to have beaten the pokemon league? (im usig XSE)
  #399    
Old February 6th, 2009 (01:56 PM).
ckret2's Avatar
ckret2
usually pronounced "secret 2"
 
Join Date: Dec 2008
Location: You Are Here
Age: 24
Gender:
Nature: Rash
Send a message via AIM to ckret2
Game: FireRed
Type: two Person events
Editor: XSE
Script: I've got two scripts, a character and an itemball. You get your first Pokémon from the itemball. The itemball isn't supposed to disappear after you click on it. I have a flag so that if you click the character or the itemball after clicking the itemball once, they will say different things. The flag works, but if I leave the room and come back in, it seems to be reset: the character will say his first, pre-flag script again, and the itemball will give you a second Pokémon. What am I doing wrong?

The character's script:
Spoiler:
#dynamic 0x71C033
#org @start
lock
faceplayer
checkflag 0x7
if 0x1 goto @afterrattata
if 0x0 goto @beforerattata

#org @beforerattata
msgbox @beforerattatatext 0x6
release
end

#org @beforerattatatext
= \c\h01\h08\v\h06: Come on, come on,\ncome on, come on!!\pThey said I can't get my POKÈMON\nuntil you get yours!\pWhy?\nI guess it's because you gave your\pname before I did.\pStupid bureaucracy...

#org @afterrattata
msgbox @afterrattatatext 0x6
release
end

#org @afterrattatatext
= Fun. My very own RATTATA...\pSigh...\pTrust me, \v\h01! We'll find\nsome POKÈMON that are\pway better than Rattata.\pWe didn't graduate at the top of\nour TRAINEE class for nothing!


The itemball's script:
Spoiler:
#dynamic 0x71BD7B
#org @start
lock
checkflag 0x7
if 0x0 goto @getrat
if 0x1 goto @havearat
release
end

#org @getrat
showpokepic 0x13 0x0A 0x03
msgbox @getrat1 0x5
if 0x1 goto @yesrat
if 0x0 goto @norat

#org @getrat1
= This POKÈMON is very...\n...\pUh, it's a RATTATA.\nDo you want it or not?

#org @norat
msgbox @yesrat1 0x6
hidepokepic
fanfare 0x13E
waitfanfare
givepokemon 0x13 0x3 0x0 0x0 0x0 0x0
setflag 0x828
setflag 0x7
msgbox @yesrat2 0x6
applymovement 0xFF @move
waitmovement 0x0
applymovement 0x9 @move2
waitmovement 0x0
release
end

#org @move
#raw 0x20
#raw 0x03
#raw 0xFE

#org @move2
#raw 0x20
#raw 0x00
#raw 0xFE

#org @yesrat
msgbox @yesrat1 0x6
hidepokepic
fanfare 0x13E
waitfanfare
givepokemon 0x13 0x3 0x0 0x0 0x0 0x0
setflag 0x828
setflag 0x7
msgbox @yesrat2 0x6
applymovement 0xFF @move
waitmovement 0x0
applymovement 0x9 @move2
waitmovement 0x0
release
end

#org @norat1
= Too bad. Here it is anyway.\p\c\h01\h08\v\h06: Psst, \v\h01!\nDon't get too attached, okay?\pYou don't need to give RATTATA\na nickname or anything like that.\pWe're gonna get a way better\nPOKÈMON soon.\pYou've got \v\h06's word!\n

#org @yesrat1
= \c\h01\h08\v\h06: Psst, \v\h01!\nDon't get too attached, okay?\pYou don't need to give RATTATA\na nickname or anything like that.\pWe're gonna get a way better\nPOKÈMON soon.\pYou've got \v\h06's word!\n

#org @yesrat2
= Congratulations!\n\v\h01 received RATTATA!\p\c\h01\h02SCIENTIST: Next!\n\v\h01, move over.\p\v\h06, keep the line moving.

#org @havearat
msgbox @havearat1 0x6
release
end

#org @havearat1
= I shouldn't take this RATTATA.\nIt's for \v\h06.\pI may be a POKÈMON thief, but I\nwon't steal from my own partner!


(In addition, I also don't know how to make a script that can give a Pokémon a nickname--which is why I tried to avoid the issue altogether in the dialogue above--because I haven't found any instructions on how to do that in any tutorials so far. I've gone through several looking for just that. So if anyone could just tell me what that bit of script is, I'd be grateful.)

Screenshots and/or Videos: I don't have any, and in any case, I think this is a simple problem. The flag just seemingly removes itself if I leave the room and come back into it.
__________________

This one is my hack.


This one is the hack I part-time map for.

I got an Illumise?
Pretty awesome.
Glad I grabbed an egg I didn't recognize.
  #400    
Old February 6th, 2009 (02:09 PM).
darkmewham2's Avatar
darkmewham2
Cold's catch rate- 100%. D:
 
Join Date: Jan 2009
Location: In a certain place in my mind I like to call "the creative part".
Gender:
Nature: Docile
Game: FireRed
Type: BPRE (I think)
Editor: XSE
Script:
Spoiler:
#org @start


lock


faceplayer


countpokemon


#define compare 0x800D 0x1


#define if 0x1 goto @continue


if 0x0 goto @goaway


checktrainerflag 0x2e6


compare 0x800D 0x1


if 0x1 call @alreadybattled


release


end





#org @continue


= trainerbattle 0x0 0x2e6 0x0 @intro @defeat


msgbox @msg 0x2


end





#org @intro


= Battle commencing.





#org @defeat


= Congradulations.





#org @msg


= Please go get your\nEEVEE returned to you.


cleartrainerflag 0x19E





#org @goaway


= POKeMON number does\nnot equal one. Try again after\nyou've talked to the man beside\nme.
Spoiler:



dynamic 0x8013F7


#org @start


lock


faceplayer


countpokemon


compare 0x800D 0x1


if 0x1call @continue


if 0x0 call @please


checktrainerflag 0x2e6


compare 0x800D 0x1


if 0x1 goto @alreadybattled


release


end





#org @continue


checkflag 0x1019


if 0x1 call @nomore


givepokemon 0x175 0x50 0x0 0x0 0x0 0x0


setflag 0x1019


end





#org @nomore


msgbox @msg 0x2


end





#org @msg


= Please go battle my sim.





#org @alreadybatted


setvar 0x8008 0x8


call 0x1A8CAD


checkflag 0x1000


if 0x1 goto @how


msgbox @yesno 0x5


compare LASTRESULT 0x0


if 0x1 goto @too


call 0x1A8CBD


compare 0x8004 0x6


if 0x4 goto @too


call 0x1A8CC9


comparevars LASTRESULT 0x8009


if 0x5 goto @not


call 0x1A8CD9


msgbox @thanksalot 0x4


setflag 0x1000


release


end





#org @not


bufferpokemon 0x0 0x8009


msgbox @not2 0x4


release


end





#org @too


bufferpokemon 0x0 0x8009


msgbox @too2 0x4


release


end





#org @how


msgbox @old 0x4


release


end





#org @thanksalot


= Okay. Lets go.


warp 0x4 0x2 0x3 0x0 0x0


#org @not2


= My hack, not yours.





#org @too2


= Why are you messing with my hack?





#org @yesno


= Okay. I'll give you your\nEEVEE back and end the SIM.





#org @old


= I'm supprised your cheats work\n in my hack. o.o

[spoiler]

These two scripts work back-to-back. One of them gives you the Pokemon you need for the battle and one of them battles you. It says there is an "error 13" on line 7 of one of them, a type mismatch. I thought it was the word "goto" or "call", but I can't figure out whats wrong with it. I looked in tutorials and these were the exact lines used in those tutorials!

__________________
Extreme Code Lyoko Fanatic-- Make Way!
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 03:32 PM.