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.


Closed Thread
Click here to go to the first staff post in this thread.  
Thread Tools
  #6326    
Old December 17th, 2011, 11:57 AM
The Fanciful Cerberus
Unhatched Egg
 
Join Date: Dec 2011
Gender: Male
Okay, I've been looking into editing the contest stats from JPAN'S hacked FR, but the code has kind of got me confused and I'm having trouble understanding what did what in the explanation in the manual. I'm still on the pretty basic level and am unfamiliar with a bunch of these commands, but I still tried working it out. Is this how the script for changing a Pokemon's Cuteness value (and not doing anything else) would be written?

Spoiler:
#org @start
Bufferpartypokemon 0x0 0x0
setvar 0x8004 0x0
special 0x6
setvar 0x8005 0x8
setvar 0x8006 0x01
special 0xf
special2 0x8006 0x7
  #6327    
Old December 18th, 2011, 01:32 PM
AustinWolff's Avatar
AustinWolff
has left
 
Join Date: Aug 2011
Location: LA, California
Age: 16
Gender: Male
Nature: Brave
Alright, I am using a ruby rom, but INSTEAD of pokescript I used XSE. Again, it is a script box problem. the point is when you step on it, a person moves 2 tiles left and ends the script. however, when i step on it nothing happens!

Spoiler:
#dynamic 0x6B0D88

#org @start
applymovement 0x3 @move
waitmovement 0x0
setflag 0x1201
release
end

#org @move
#raw 0x06
#raw 0x06
#raw 0xFE


I attached pics and here are the values:

Var Number: 0405
Var Value: 0000
Unknown: 0300
Attached Images
File Type: jpg problem.jpg‎ (92.6 KB, 9 views) (Save to Dropbox)
__________________
I have left. Feel free to disable my account.
  #6328    
Old December 18th, 2011, 06:42 PM
destinedjagold's Avatar
destinedjagold
Oh Hai Thar~ 'ω'
Community Supporter
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Quote:
Originally Posted by AustinWolff View Post
Alright, I am using a ruby rom, but INSTEAD of pokescript I used XSE. Again, it is a script box problem. the point is when you step on it, a person moves 2 tiles left and ends the script. however, when i step on it nothing happens!

Spoiler:
#dynamic 0x6B0D88

#org @start
applymovement 0x3 @move
waitmovement 0x0
setflag 0x1201
release
end

#org @move
#raw 0x06
#raw 0x06
#raw 0xFE


I attached pics and here are the values:

Var Number: 0405
Var Value: 0000
Unknown: 0300
try changing the var and unknown values into this...

Var number: 0004
Var value: 3000
unknown: 0000
__________________
3DS FC: 0061-1111-6462
SV: 1364 | Rock Safari: Dwebble, Corsola and Barbaracle
  #6329    
Old December 20th, 2011, 09:46 PM
Totaldile's Avatar
Totaldile
appeared! Totaldile used RAWR!
 
Join Date: Nov 2009
Location: My computer screen!
Gender: Female
Nature: Lonely
I'm having quite a bit of trouble compiling my script to my ROM. When I click the compile button, it should be written to the ROM, I'm pretty sure, but the script isn't written at all. But when this occurs, I would assume the game would freeze. The game doesn't freeze, it just plays the button click noise you normally hear when talkign to a person, so I'm inclined to belive the script is being compiled and I am merely typing my script wrong. Some help would be greatly appreciated ^-^!
I've had this problem in the past, and have solved it, but I cannot for the life of me quite remember how.
I'm using a FireRed ROM, and using XSE.

This is my script:
Spoiler:

#dynamic 0x3B4D84
#org @start
lock
faceplayer
msgbox @1 0x6
cry 0x6 0x0
release
end
#org @1
= Lulululu!
__________________
  #6330    
Old December 20th, 2011, 11:07 PM
DrFuji's Avatar
DrFuji
repeat repeat repeat
Community Supporter
 
Join Date: Sep 2009
Location: Upside-downia
Age: 21
Gender: Male
Nature: Jolly
Quote:
Originally Posted by Totaldile View Post
I'm having quite a bit of trouble compiling my script to my ROM. When I click the compile button, it should be written to the ROM, I'm pretty sure, but the script isn't written at all. But when this occurs, I would assume the game would freeze. The game doesn't freeze, it just plays the button click noise you normally hear when talkign to a person, so I'm inclined to belive the script is being compiled and I am merely typing my script wrong. Some help would be greatly appreciated ^-^!
I've had this problem in the past, and have solved it, but I cannot for the life of me quite remember how.
I'm using a FireRed ROM, and using XSE.

This is my script:
Spoiler:

#dynamic 0x3B4D84
#org @start
lock
faceplayer
msgbox @1 0x6
cry 0x6 0x0
release
end
#org @1
= Lulululu!
There isn't anything 'wrong' with your script that would stop it from working, but you could clean it up a bit and insert it in a far better offset. Hopefully it helps, but like I said, nothing in your script should be damaging enough to stop it from working.

Code:
#dynamic 0x800000 // A far better offset to begin inserting scripts

#org @start
msgbox @1 0x2 // Automatically uses the lock and faceplayer commands
cry 0x6 0x0
waitcry // The script will finish once the cry has ended
release
end

#org @1
= Lulululu!
  #6331    
Old December 20th, 2011, 11:38 PM
Totaldile's Avatar
Totaldile
appeared! Totaldile used RAWR!
 
Join Date: Nov 2009
Location: My computer screen!
Gender: Female
Nature: Lonely
Quote:
Originally Posted by DrFuji View Post
There isn't anything 'wrong' with your script that would stop it from working, but you could clean it up a bit and insert it in a far better offset. Hopefully it helps, but like I said, nothing in your script should be damaging enough to stop it from working.

Code:
#dynamic 0x800000 // A far better offset to begin inserting scripts
 
#org @start
msgbox @1 0x2 // Automatically uses the lock and faceplayer commands
cry 0x6 0x0
waitcry // The script will finish once the cry has ended
release
end
 
#org @1
= Lulululu!
Thanks - but that still doesn't quite solve my problem. Now, I can hear the cry of the pokemon, but the textbox refuses to show.
Any ideas?

Thanks in advance.
__________________
  #6332    
Old December 21st, 2011, 12:47 AM
Darthatron's Avatar
Darthatron
巨大なトロール。
Community Supporter Tier 2
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 22
Gender: Male
Nature: Modest
Quote:
Originally Posted by Totaldile View Post
Thanks - but that still doesn't quite solve my problem. Now, I can hear the cry of the pokemon, but the textbox refuses to show.
Any ideas?

Thanks in advance.
Are other textboxes in the game showing up alright? :\
__________________
あなた は しきしゃ です
わたし は ばか です
  #6333    
Old December 22nd, 2011, 08:32 AM
vasalpa's Avatar
vasalpa
Unhatched Egg
 
Join Date: Aug 2009
Ok guys I really need help here! First of all i am hacking firered. And use XSE scripter along with advance map and A-trainer. I make a trainer script. I'm almost sure that it is correct but when i talk to the trainer it doesn;t do anything! also i have one more major problem! there is grass near the trainer! when i encounter pokemon after the battle my character switches to the trainer! (i control the trainer istead of my character! Any help? Here is the script:
Spoiler:
#org 0x804C00
lockall
trainerbattle 0x1 0x15F 0x0 0x8804C31 0x8804CBE 0x8804CE2
givepokemon 0x2A 0xF 0x0 0x0 0x0 0x0
fadescreen 0x1
hidesprite 0x7
setflag 0x1003
fadescreen 0x0
fadedefault
releaseall
end

'---------------
#org 0x804CE2
msgbox 0x8804CEC MSG_NORMAL '"No way! Ok take this stupid pkmn!\..."
end


'---------
' Strings
'---------
#org 0x804C31
= You can't pass through me!\nUnless you defeat me!\pGuess what! I'm so sure that\nI'll win so if you win you can\ltake my Pokemon!\pLet's do it!

#org 0x804CBE
= No way! You can't take my Golbat!

#org 0x804CEC
= No way! Ok take this stupid pkmn!\pI don't want it anyway!\n I'll take my revenge\lFarewell.........
__________________
Scripter...
Current project------------> Pokemon Mutant! (hack owner)
ALPHA 2.0 IS OUT!!! 25/12/11!!!
  #6334    
Old December 22nd, 2011, 08:39 PM
masterquestmq's Avatar
masterquestmq
Enthusiastic Rom Hacker
 
Join Date: Nov 2010
Gender: Male
Quote:
Originally Posted by vasalpa View Post
Ok guys I really need help here! First of all i am hacking firered. And use XSE scripter along with advance map and A-trainer. I make a trainer script. I'm almost sure that it is correct but when i talk to the trainer it doesn;t do anything! also i have one more major problem! there is grass near the trainer! when i encounter pokemon after the battle my character switches to the trainer! (i control the trainer istead of my character! Any help? Here is the script:
Spoiler:
#org 0x804C00
lockall
trainerbattle 0x1 0x15F 0x0 0x8804C31 0x8804CBE 0x8804CE2
givepokemon 0x2A 0xF 0x0 0x0 0x0 0x0
fadescreen 0x1
hidesprite 0x7
setflag 0x1003
fadescreen 0x0
fadedefault
releaseall
end

'---------------
#org 0x804CE2
msgbox 0x8804CEC MSG_NORMAL '"No way! Ok take this stupid pkmn!\..."
end


'---------
' Strings
'---------
#org 0x804C31
= You can't pass through me!\nUnless you defeat me!\pGuess what! I'm so sure that\nI'll win so if you win you can\ltake my Pokemon!\pLet's do it!

#org 0x804CBE
= No way! You can't take my Golbat!

#org 0x804CEC
= No way! Ok take this stupid pkmn!\pI don't want it anyway!\n I'll take my revenge\lFarewell.........

Changes in BOLD
#org 0x804C00
lockall
checkflag 0x1003 (u need this so the script does not repeat)
if 0x0 goto @battle
if 0x1 goto @talk

#org @battle
trainerbattle 0x1 0x15F 0x0 0x8804C31 0x8804CBE 0x8804CE2
End

#org
0x8804CE2
givepokemon 0x2A 0xF 0x0 0x0 0x0 0x0
fadescreen 0x1
hidesprite 0x7
setflag 0x1003
fadescreen 0x0
fadedefault
releaseall
end

#org @talk
release
end


'---------
' Strings
'---------
#org 0x804C31
= You can't pass through me!\nUnless you defeat me!\pGuess what! I'm so sure that\nI'll win so if you win you can\ltake my Pokemon!\pLet's do it!

#org 0x804CBE
= No way! You can't take my Golbat!

#org 0x804CEC
= No way! Ok take this stupid pkmn!\pI don't want it anyway!\n I'll take my revenge\lFarewell........


this shud fix it. pm me if u need more help.
  #6335    
Old December 23rd, 2011, 01:17 AM
Totaldile's Avatar
Totaldile
appeared! Totaldile used RAWR!
 
Join Date: Nov 2009
Location: My computer screen!
Gender: Female
Nature: Lonely
Quote:
Originally Posted by Darthatron View Post
Are other textboxes in the game showing up alright? :\
Yeah, there appear to be no other problems.
Hrrrrmm.
I bet it's just one simple thing I'm missing.
Maybe I have a buggy verison of XSE.
I'll re-download it somewhere and try again.
__________________
  #6336    
Old December 23rd, 2011, 11:20 AM
Truality
Left for good
 
Join Date: Aug 2011
Gender: Male
Send a message via Windows Live Messenger to Truality Send a message via Skype™ to Truality
Totaldile, try adding a checksound command right before the cry one. Also, having the cry before the textbox helps (in which case, we do need a 0x6 textbox and lock/faceplayer).

Like this:
Code:
#dynamic 0x800000

#org @start
lock
faceplayer
checksound
cry 0x6 0x0
waitcry
msgbox @1 0x6
release
end

#org @1 = Lulululu!
__________________
This is my December . . .

Last edited by Truality; December 23rd, 2011 at 11:26 AM.
  #6337    
Old December 25th, 2011, 01:56 PM
AustinWolff's Avatar
AustinWolff
has left
 
Join Date: Aug 2011
Location: LA, California
Age: 16
Gender: Male
Nature: Brave
I have another scripting problem, this one includes the money commands.

I am using ruby and it is a script box script. The point is a guy walks up to you, gives you money, then walks away. however, here are the problems:

Spoiler:
1. the showmoney command doesnt work, meaning the money box never appears.

2. the person ID is 0211 in Amap, and in my script I setflag 0x211 but he doesnt disapear


Here is the script:

Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x212
if 0x1 goto @done
applymovement 0x3 @move
waitmovement 0x0
msgbox @1 0x6
showmoney 0x00 0x00 0x00
givemoney 0x1F4 0x00
updatemoney 0x00 0x00 0x00
hidemoney 0x00 0x00
msgbox @2 0x6
msgbox @3 0x6
applymovement 0x3 @move2
waitmovement 0x0
setflag 0x212
setflag 0x211
release
end

#org @move
#raw 0x56
#raw 0x0A
#raw 0x0A
#raw 0xFE

#org @move2
#raw 0x16
#raw 0x16
#raw 0x16
#raw 0x16
#raw 0x16
#raw 0x16
#raw 0x16
#raw 0xFE

#org @1
= Hi trainer! I feel the need\nto share my money!

#org @2
= [red_rs]\v\h01: Thanks!

#org @3
= [blue_rs]Savings Guy: No problem
!
__________________
I have left. Feel free to disable my account.
  #6338    
Old December 25th, 2011, 02:51 PM
riotorange
Beginning Trainer
 
Join Date: Jul 2011
Gender: Male
Hey, I'm new to rom hacking, but I'm trying to make a hack based off of ruby.

In pokemon ruby, you go through the intro talking to the professor, tell him your name and everything, and then you end up in the truck heading towards your house.

With my hack, I'm wanting the player to wake up in their bed after the introduction, instead of getting off of the moving truck. How can I do this?

I tried deleting the script in the moving truck's map. This caused me to start outside of a house in Petalburg directly after the intro. Don't want that xD

TL;DR how do you change your starting location in the game?
  #6339    
Old December 25th, 2011, 07:51 PM
Nate VonGrimm's Avatar
Nate VonGrimm
Mime Jr.
 
Join Date: Oct 2011
Location: Uxbridge
Age: 22
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by AustinWolff View Post
I have another scripting problem, this one includes the money commands.

I am using ruby and it is a script box script. The point is a guy walks up to you, gives you money, then walks away. however, here are the problems:

Spoiler:
1. the showmoney command doesnt work, meaning the money box never appears.

2. the person ID is 0211 in Amap, and in my script I setflag 0x211 but he doesnt disapear


Here is the script:

Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x212
if 0x1 goto @done
applymovement 0x3 @move
waitmovement 0x0
msgbox @1 0x6
showmoney 0x00 0x00 0x00
givemoney 0x1F4 0x00
updatemoney 0x00 0x00 0x00
hidemoney 0x00 0x00
msgbox @2 0x6
msgbox @3 0x6
applymovement 0x3 @move2
waitmovement 0x0
setflag 0x212
setflag 0x211
release
end

#org @move
#raw 0x56
#raw 0x0A
#raw 0x0A
#raw 0xFE

#org @move2
#raw 0x16
#raw 0x16
#raw 0x16
#raw 0x16
#raw 0x16
#raw 0x16
#raw 0x16
#raw 0xFE

#org @1
= Hi trainer! I feel the need\nto share my money!

#org @2
= [red_rs]\v\h01: Thanks!

#org @3
= [blue_rs]Savings Guy: No problem
!
I don't have the answer to your money issue as I haven't really used the command.
But I can solve your hidesprite.

To use hidesprite, you need to use the hidesprite command.
Your using setflag to hide the sprite which is only half the job. The setflag just makes sure the sprite stays hidden until you clear it.

This is what you want to use:
Code:
hidesprite 0xD3
setflag 0x[variable]
You also need to use HEX when writing scripts so instead of using 0x211, you need to turn that into HEX which is 0xD3.

XSE has a HEX calculator which can easily turn decimal numbers into HEX.

P.S I also noticed in your sig that you are wanting to learn about Level Scripts. I have a video tutorial on it if you would like to see it.


Quote:
Originally Posted by riotorange View Post
Hey, I'm new to rom hacking, but I'm trying to make a hack based off of ruby.

In pokemon ruby, you go through the intro talking to the professor, tell him your name and everything, and then you end up in the truck heading towards your house.

With my hack, I'm wanting the player to wake up in their bed after the introduction, instead of getting off of the moving truck. How can I do this?

I tried deleting the script in the moving truck's map. This caused me to start outside of a house in Petalburg directly after the intro. Don't want that xD

TL;DR how do you change your starting location in the game?


This is the main problem for all R/E/S hackers. There are programs out there that can change your starting location but they don't remove the truck sequence. Their are also ways of doing it via scripts but can be extremely buggy.
I have attempted it myself but with no luck.
Most hackers and hack players just ignore the truck sequence and pretend it never happens.

If you can ignore the entire truck sequence, then click here to download HackMew's SMCA (Start Map Chooser Advance)
__________________
Currently working on a new Pokemon Hack with an in-depth story line!
That's about as much as you're going to get for now...



Last edited by Nate VonGrimm; December 25th, 2011 at 08:00 PM. Reason: Your double post has been automatically merged.
  #6340    
Old December 25th, 2011, 08:49 PM
AustinWolff's Avatar
AustinWolff
has left
 
Join Date: Aug 2011
Location: LA, California
Age: 16
Gender: Male
Nature: Brave
Spoiler:
Quote:
P.S I also noticed in your sig that you are wanting to learn about Level Scripts. I have a video tutorial on it if you would like to see it.
yes please! also, for XSE (ruby rom) Is there anything wrong with this script? basically there are 3 tiles, and If you step on one, there is a different set of movements (this is in EVERY game and hack) but still keeps the same script event. this one is where if you don't have 2 or more pokemon you can't pass, but if you do, he battles you and walks away. since it is 3 tiles there is 3 different scripts:


Spoiler:
Spoiler:
#dynamic 0x800000

#org @start
setvar 0x4003 0x2
goto 0x866666
end

#org @script
checkflag 0x1201
if 0x1 goto @done
compare 0x4003 0x0
if 0x1 goto @leftile
compare 0x4003 0x1
if 0x1 goto @middletile
compare 0x4003 0x2
if 0x1 goto @rightile
end

#org @rightile
applymovement 0x2 @move
applymovement 0xFF @move2
waitmovement 0x0
goto @count
end

#org @leftile
applymovement 0x2 @move3
applymovement 0xFF @move2
waitmovement 0x0
goto @count
end

#org @middletile
applymovement 0x2 @move4
applymovement 0xFF @move2
waitmovement 0x0
goto @count
end

#org @count
msgbox @1 0x6
countpokemon
compare 0x800D 0x2
if 0x4 goto @battle
msgbox @2 0x6
applymovement 0x2 @move5
applymovement 0xFF @move6
waitmovement 0x0
compare 0x4003 0x0
if 0x1 got @left2
compare 0x4003 0x1
if 0x1 goto @middle2
compare 0x4003 0x2
if 0x1 goto @right2
end

#org @left2
release
end

#org @middle2
applymovement 0x2 @move7
waitmovement 0x0
release
end

#org @right2
applymovement 0x2 @move8
waitmovement 0x0
release
end

#org @battle
msgbox @3 0x6
trainerbattle 0x0 0x1111 0x0 @win
applymovement 0x2 @move9
waitmovement 0x0
setflag 0x1201
setflag 0x1202
release
end

#org @1
= Hold on, the trainers ahead\nspecialize in double battles.

#org @2
= since you don't have at\nleast 2 pokemon, I can't\llet you pass.

#org @3
= I'm gonna have to battle\nyou to see if you are strong\lenough to face them.

#org @win
= Good job. Looks like my shift is\nover. See you later!

#org @move.......... (too much movements to put into a post)

Spoiler:
#dynamic 0x800000

#org @start
setvar 0x4003 0x1
goto 0x866666
end

Spoiler:
#dynamic 0x800000

#org @start
setvar 0x4003 0x0
goto 0x866666
end
__________________
I have left. Feel free to disable my account.
  #6341    
Old December 26th, 2011, 02:14 PM
Rayson
Beginning Trainer
 
Join Date: Dec 2011
Gender: Male
Quote:
Quote:
Originally Posted by riotorange
Hey, I'm new to rom hacking, but I'm trying to make a hack based off of ruby.

In pokemon ruby, you go through the intro talking to the professor, tell him your name and everything, and then you end up in the truck heading towards your house.

With my hack, I'm wanting the player to wake up in their bed after the introduction, instead of getting off of the moving truck. How can I do this?

I tried deleting the script in the moving truck's map. This caused me to start outside of a house in Petalburg directly after the intro. Don't want that xD

TL;DR how do you change your starting location in the game?

This is the main problem for all R/E/S hackers. There are programs out there that can change your starting location but they don't remove the truck sequence. Their are also ways of doing it via scripts but can be extremely buggy.
I have attempted it myself but with no luck.
Most hackers and hack players just ignore the truck sequence and pretend it never happens.

If you can ignore the entire truck sequence, then click here to download HackMew's SMCA (Start Map Chooser Advance)
If you want to remove the truck scene use this tool:
www pokecommunity com/showthread.php?t=181369
(sry, can't post it properly cause i don't have 15 posts yet)
To choose the startmap, use SMCA or edit the truckmap.
  #6342    
Old December 27th, 2011, 07:52 PM
Roboto-kun's Avatar
Roboto-kun
is an Ace Trainer.
 
Join Date: Apr 2011
Gender: Male
Nature: Jolly
Ok, so I'm making a level script. Specifically in Professor Oak's lab. What happens is, there's a script, but it's not on the map. It warps the player to Professor Oak's lab. And that's where the script is supposed to start, right? So I got the script and the level script to work and all. But when the level script is supposed to be done, it repeats! Like, for example:

Blue: Lalalalalalal blah blah bleh, you know? Riiight? Lololrofloltrololol.
Player: ???
Blue: Take this Pokemon from the table. It's alright! Don't be shy!
-It's supposed to end here-


But instead.... it turns out like this:

Blue: Lalalalalalal blah blah bleh, you know? Riiight? Lololrofloltrololol.
Player: ???
Blue: Take this Pokemon from the table. It's alright! Don't be shy!
Blue: Lalalalalalal blah blah bleh, you know? Riiight? Lololrofloltrololol.
Player: ???
Blue: Take this Pokemon from the table. It's alright! Don't be shy!
-Repeats forever-


Help me? Here's my script btw:

Spoiler:
#dyn 0x740000
#org @main
lockall
message @talk
callstd MSG_NORMAL
applymovement PLAYER @shocked
pauseevent 0x0
message @txt
callstd MSG_NORMAL
applymovement 0x4 @walk
pauseevent 0x0
message @takethis
callstd MSG_NORMAL
setflag 0x200
setvar 0x6001 0x1
releaseall
end

#org @talk
= Insert some stuff here. Oh btw, after this message, the player will have ! on his head.

#org @txt
= Lololololol. You had a ! lololol.

#org @takethis
= Pew pew pew. I'm not showing my actual text script.

#org @shocked
m say_! end

#org @walk
m walk_right walk_right walk_right look_down end
__________________


l l

Last edited by Roboto-kun; December 28th, 2011 at 05:30 AM. Reason: Text Overload
  #6343    
Old December 29th, 2011, 11:29 PM
Megiddo-san's Avatar
Megiddo-san
Barium - Summer '12 Return?
 
Join Date: Dec 2007
Location: Where you least expect it
Age: 22
Gender: Male
Nature: Relaxed
Send a message via Windows Live Messenger to Megiddo-san
The script executes perfectly, unless the player decides to give their pokemon a nickname.
In that case, it calls the nickname script and comes up with a screen asking if I want
to give a nickname to question mark. Completing this results in the pokeball never disappearing,
and the real pokemon is not given a nickname.
Spoiler:
#org @begin
compare 0x4055 0x3
if 0x4 goto @done
cry 0x42 0x0
showpokepic 0x42 0xA 0x3
waitcry
msgbox @question 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
hidepokepic
release
end

#org @done
msgbox @notakey 0x2
release
end

#org @take
givepokemon 0x42 0xA 0x0 0x0 0x0 0x0
hidepokepic
addvar 0x4055 0x1
fanfare 0x13E
msgbox @received 0x4
waitfanfare
closeonkeypress
msgbox @nick 0x5
compare LASTRESULT 0x1
if 0x1 goto @name
hidesprite 0x5
setflag 0x206

release
end

#org @name
call 0x1A74EB
return


#org @question
= Would you like Machop, the\nmartial arts pokemon?

#org @received
= [player] received a Machop!

#org @nick
= Would you like to nickname your\nMachop?

#org @notakey
= It's best to leave the rest alone.
__________________

Hashire! Asu e tsudzuku shinka no micha wa
  #6344    
Old December 30th, 2011, 12:44 AM
Satoshi Ookami's Avatar
Satoshi Ookami
Memento Mori
Community Supporter
 
Join Date: Jul 2008
Location: Abyss of Time, Great Seal
Age: 21
Gender: Male
Nature: Calm
Quote:
Originally Posted by Megiddo-san View Post
The script executes perfectly, unless the player decides to give their pokemon a nickname.
In that case, it calls the nickname script and comes up with a screen asking if I want
to give a nickname to question mark. Completing this results in the pokeball never disappearing,
and the real pokemon is not given a nickname.
For some reason nicknaming pokemon with custom scripts always glitches up...
I'd suggest not using it for it can do some ugly things in the worst case...
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign
  #6345    
Old December 30th, 2011, 11:42 AM
AustinWolff's Avatar
AustinWolff
has left
 
Join Date: Aug 2011
Location: LA, California
Age: 16
Gender: Male
Nature: Brave
hello I'm trying to make a script where you cannot pass unless you have a certain pokemon. But I get stuck when I am transferring the buffer value to the setvar (have no idea what i just said) anyway here is what I have so far:

Spoiler:
#dynamic 0x800000

#org @start
applymovement 0x2 @move
waitmovement 0x0
msgbox @1 0x6
bufferpokemon 0x1
setvar 0x4004 0x1
compare 0x4004 0x1
if 0x1 goto @continue
................................


any idea of where to go from there?
__________________
I have left. Feel free to disable my account.
  #6346    
Old December 30th, 2011, 01:55 PM
SKRoy
Pokémon Hacker
 
Join Date: Mar 2010
Gender: Male
I have a script:

#dynamic 0x800000
#org @start
lock
faceplayer
msgbox @1 0x6
cry 0x6 0x0
wildbattle 0x6 0x1E 0x8B
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x200
release
end

#org @1
= CHARIZARD: Raaarrgghh!

But when I compress it than XSE say that wildbattle 0x6 0x1E 0x8B not good is.
How can I fix this? Please help!
  #6347    
Old December 30th, 2011, 08:44 PM
destinedjagold's Avatar
destinedjagold
Oh Hai Thar~ 'ω'
Community Supporter
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Quote:
Originally Posted by SKRoy View Post
I have a script:

Spoiler:
#dynamic 0x800000
#org @start
lock
faceplayer
msgbox @1 0x6
cry 0x6 0x0
wildbattle 0x6 0x1E 0x8B
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x200
release
end

#org @1
= CHARIZARD: Raaarrgghh!


But when I compress it than XSE say that wildbattle 0x6 0x1E 0x8B not good is.
How can I fix this? Please help!
Try this...
Code:
#dynamic 0x800000  

#org @start 
lock 
faceplayer 
cry 0x6 0x0 
msgbox @1 0x6 
wildbattle 0x6 0x1E 0x8B 
hidesprite lasttalked
fadescreen 0x0 
setflag 0x200 
release 
end  

#org @1 
= CHARIZARD: Raaarrgghh!
Also, just for safety of your hack, use the flags 1000 and above. 200 isn't really a safe flag to use, at least, in Ruby...

Some proof that it works...
Spoiler:
For Ruby...

For FireRed...
__________________
3DS FC: 0061-1111-6462
SV: 1364 | Rock Safari: Dwebble, Corsola and Barbaracle

Last edited by destinedjagold; December 30th, 2011 at 08:51 PM.
  #6348    
Old December 30th, 2011, 11:42 PM
colcolstyles's Avatar
colcolstyles
Yours truly
 
Join Date: May 2008
Location: The Bay Area
Gender: Male
Nature: Lonely
Quote:
Originally Posted by Megiddo-san View Post
The script executes perfectly, unless the player decides to give their pokemon a nickname.
In that case, it calls the nickname script and comes up with a screen asking if I want
to give a nickname to question mark. Completing this results in the pokeball never disappearing,
and the real pokemon is not given a nickname.
Spoiler:
#org @begin
compare 0x4055 0x3
if 0x4 goto @done
cry 0x42 0x0
showpokepic 0x42 0xA 0x3
waitcry
msgbox @question 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
hidepokepic
release
end

#org @done
msgbox @notakey 0x2
release
end

#org @take
givepokemon 0x42 0xA 0x0 0x0 0x0 0x0
hidepokepic
addvar 0x4055 0x1
fanfare 0x13E
msgbox @received 0x4
waitfanfare
closeonkeypress
msgbox @nick 0x5
compare LASTRESULT 0x1
if 0x1 call @name
hidesprite 0x5
setflag 0x206
release
end

#org @name
countpokemon
copyvar 0x8004 LASTRESULT
subvar 0x8004 1

call 0x1A74EB
return

#org @question
= Would you like Machop, the\nmartial arts pokemon?

#org @received
= [player] received a Machop!

#org @nick
= Would you like to nickname your\nMachop?

#org @notakey
= It's best to leave the rest alone.
You told the game to "goto" the naming script so the return command doesn't function correctly. If you change the "goto" to "call," it should work. Also, the question mark glitch is caused by not initializing variable 0x8004 to the number of the pokemon that you want to nickname. Changes are in bold.

Quote:
Originally Posted by AustinWolff View Post
hello I'm trying to make a script where you cannot pass unless you have a certain pokemon. But I get stuck when I am transferring the buffer value to the setvar (have no idea what i just said) anyway here is what I have so far:

Spoiler:
#dynamic 0x800000

#org @start
applymovement 0x2 @move
waitmovement 0x0
msgbox @1 0x6
bufferpokemon 0x1
setvar 0x4004 0x1
compare 0x4004 0x1

if 0x1 goto @continue
................................


any idea of where to go from there?
I'm not sure what you were hoping to accomplish here. The bold commands make the conditional completely useless because you set variable 0x4004 to 1 right before you compare it to 1. Therefore, the compare will always return true.
__________________

Brother of Vrai
  #6349    
Old December 31st, 2011, 01:14 AM
SKRoy
Pokémon Hacker
 
Join Date: Mar 2010
Gender: Male
Quote:
Originally Posted by destinedjagold View Post


Try this...
Code:
#dynamic 0x800000  

#org @start 
lock 
faceplayer 
cry 0x6 0x0 
msgbox @1 0x6 
wildbattle 0x6 0x1E 0x8B 
hidesprite lasttalked
fadescreen 0x0 
setflag 0x200 
release 
end  

#org @1 
= CHARIZARD: Raaarrgghh!
Also, just for safety of your hack, use the flags 1000 and above. 200 isn't really a safe flag to use, at least, in Ruby...

Some proof that it works...
Spoiler:
For Ruby...

For FireRed...
Thanks, but I forgot to say that it's for Pokémon FireRed...
When I do it with the program PokéTronic it works, but than I don't know how I must set the flags.

Last edited by SKRoy; December 31st, 2011 at 10:04 AM.
  #6350    
Old December 31st, 2011, 03:07 PM
DavidJCobb
RESIDENT RAAAAAAAAAAAAGEMASTER
 
Join Date: Jul 2010
Gender: Male
Nature: Lonely
Quote:
Originally Posted by SKRoy View Post
Thanks, but I forgot to say that it's for Pokémon FireRed...
My signature has a link to a list of every flag in FireRed and what it's used for. If you remove all of the default Nintendo scripts for a particular flag, then that flag will be safe to use in your custom scripts.
__________________
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 07:49 PM.


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.