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
  #2551    
Old November 29th, 2009, 06:51 AM
BlitŻ's Avatar
BlitŻ
guahh my dog is so cute
 
Join Date: Feb 2009
Location: Bay Area, Califronia.
Age: 19
Gender: Male
Nature: Jolly
Quote:
Originally Posted by Pokepal17 View Post
Hmm, I don't believe there is so I think you'd have to use ASM.
Actually there is no ASM involved actually. On advance map, simply check the trainer box, specify how many spaces should the trainer be able to see you, and insert your script. So whenever the trainer sees you... I'm not sure after that. I haven't tested it out yet, because just thought it up in theory. I'm going to do a lot of testing today, so I'll edit this post when I've found out..
__________________
Reply With Quote
  #2552    
Old November 29th, 2009, 06:55 AM
Pokepal17's Avatar
Pokepal17
More cowbell~
 
Join Date: Oct 2008
Location: Steeltown
Age: 19
Gender: Male
Nature: Modest
Quote:
Originally Posted by BlitŻ View Post
Actually there is no ASM involved actually. On advance map, simply check the trainer box, specify how many spaces should the trainer be able to see you, and insert your script. So whenever the trainer sees you... I'm not sure after that. I haven't tested it out yet, because just thought it up in theory. I'm going to do a lot of testing today, so I'll edit this post when I've found out..
Doesn't work, been there and tried it. So again, ASM would be the way to go.
__________________
Pokémon Stardrop
Reply With Quote
  #2553    
Old November 29th, 2009, 07:03 AM
BlitŻ's Avatar
BlitŻ
guahh my dog is so cute
 
Join Date: Feb 2009
Location: Bay Area, Califronia.
Age: 19
Gender: Male
Nature: Jolly
Quote:
Originally Posted by Pokepal17 View Post
Doesn't work, been there and tried it. So again, ASM would be the way to go.
Oh, I see.. but why wouldn't it work, would it be that there' has to be a trainer battle in the script? Or maybe for the fact that the event comes to you..
__________________
Reply With Quote
  #2554    
Old November 29th, 2009, 07:06 AM
Pokepal17's Avatar
Pokepal17
More cowbell~
 
Join Date: Oct 2008
Location: Steeltown
Age: 19
Gender: Male
Nature: Modest
Quote:
Originally Posted by BlitŻ View Post
Oh, I see.. but why wouldn't it work, would it be that there' has to be a trainer battle in the script? Or maybe for the fact that the event comes to you..
The trainerbattle has to be there first, I think the trainer box was designed only for trainerbattles, so normal scripts won't work. I remeber what happens, your game will either freeze or reset.
__________________
Pokémon Stardrop
Reply With Quote
  #2555    
Old November 29th, 2009, 07:21 AM
HackMew's Avatar
HackMew
Mewtwo Strikes Back
 
Join Date: Jun 2006
Quote:
Originally Posted by Ash493 View Post

Anyways here's my problem.
After I patched ROM with Shinyzer I wanted to make trainer battle with trainer who has shiny pokemon but nothing happens when I talk to NPC and also freeze the game.

Code:
#dynamic 0xA000000
#org @start
setvar 0x8003 0xC05 (It's same llike HackMew has in his tut)
trainerbattle 0x0 0x1 0x0 @before @in 
msgbox @after
callstd 0x6
release
end
What happens if you remove the setvar?


Quote:
Originally Posted by Pokepal17 View Post
The trainerbattle has to be there first, I think the trainer box was designed only for trainerbattles, so normal scripts won't work. I remeber what happens, your game will either freeze or reset.
The Trainer checkbox should be used for actual trainers only, indeed. Otherwhise the game won't make it work properly.
__________________
Reply With Quote
  #2556    
Old November 29th, 2009, 09:36 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 HackMew View Post
What happens if you remove the setvar?
It's okay now
I found a way to get it to work
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign
Reply With Quote
  #2557    
Old November 29th, 2009, 09:40 AM
HackMew's Avatar
HackMew
Mewtwo Strikes Back
 
Join Date: Jun 2006
Quote:
Originally Posted by Ash493 View Post
It's okay now :)
I found a way to get it to work :)
I guess you used a walkable script tile. Anyway, it would nice if you edit your post so that if someone is having the same problem, he/she could see your reply and solve the problem as well.
__________________
Reply With Quote
  #2558    
Old November 29th, 2009, 10:35 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 HackMew View Post
I guess you used a walkable script tile. Anyway, it would nice if you edit your post so that if someone is having the same problem, he/she could see your reply and solve the problem as well.
Well... in fact I guess problem was with ASM offset.
I patched different ROM and it worked even with the script I posted.
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign
Reply With Quote
  #2559    
Old November 30th, 2009, 04:01 PM
~Teh Panda~'s Avatar
~Teh Panda~
Sea of Dreams - Redux
 
Join Date: Aug 2007
SOLVED

Spoiler:
Alright, the script works up until the end of the message, then the message repeats instead of the giveitem message for some reason... I have no clue whats wrong... ALso it gives the running shoes but not the item

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

Code:
  '---------------
#org 0x9A3000
lock
checkflag 0x82F
if 0x1 goto 0x89A3044
applymovement 0x1 0x89A3047
applymovement 0x2 0x89A3047
waitmovement 0x0
applymovement 0xFF 0x89A304B
waitmovement 0x0
textcolor 0x1
msgbox 0x89A304F 0x6 '"DAD: Hey there [player]!\nYou have..."
giveitem 0x161 0x1 0x3
setflag 0x82F
release
end

'---------------
#org 0x9A3044
release
end


'---------
' Strings
'---------
#org 0x9A304F
= DAD: Hey there [player]!\nYou have been sleeping for a quite\la while. Your mother and I were\lwondering if you could deliver\lthis package of goodies to our\lretailer in SAFFRON at Silph Co's\lMegaMart.\lMOM: Here are some running shoes\lto help you on your journey!


'-----------
' Movements
'-----------
#org 0x9A3047
#raw 0x62 'Exclamation Mark (!)
#raw 0x3 'Face Right
#raw 0xFE 'End of Movements

#org 0x9A304B
#raw 0x63 'Question Mark (?)
#raw 0x2 'Face Left
#raw 0xFE 'End of Movements
__________________




Mystic still in work to let you know...

Last edited by ~Teh Panda~; November 30th, 2009 at 04:06 PM.
Reply With Quote
  #2560    
Old November 30th, 2009, 04:46 PM
Pokepal17's Avatar
Pokepal17
More cowbell~
 
Join Date: Oct 2008
Location: Steeltown
Age: 19
Gender: Male
Nature: Modest
Quote:
Originally Posted by Ash493 View Post
Cirnos Servant : It might have something to do with showsprite command... since if OW is hidden in FR it might sometimes be very buggy.

Anyways here's my problem.
After I patched ROM with Shinyzer I wanted to make trainer battle with trainer who has shiny pokemon but nothing happens when I talk to NPC and also freeze the game.
Code:
#dynamic 0xA000000
#org @start
setvar 0x8003 0xC05 (It's same llike HackMew has in his tut)
trainerbattle 0x0 0x1 0x0 @before @in 
msgbox @after
callstd 0x6
release
end
You should update your version of XSE, since you are using a version that has been outdatet since Christmas. I can tell because the "msgbox" command now has the "callstd" value as a third parameter. Please read the first post next time as it clearly states that you need to be using the latest version of XSE. :3
__________________
Pokémon Stardrop
Reply With Quote
  #2561    
Old November 30th, 2009, 05:15 PM
~Teh Panda~'s Avatar
~Teh Panda~
Sea of Dreams - Redux
 
Join Date: Aug 2007
@Ash493

Your offset A000000 is not an ingame offset.
The hex in the GBA rom is from 000000 to FFFFFF
You might be wanting A00000
__________________




Mystic still in work to let you know...
Reply With Quote
  #2562    
Old November 30th, 2009, 05:34 PM
/Circa's Avatar
/Circa
a face in the clouds.
 
Join Date: Nov 2007
Location: Melbourne, Victoria
Gender: Male
Nature: Quiet
Code:
'---------------
#org 0x298D2A
checkflag 0x202
if 0x1 goto 0x8298D6F
lock
faceplayer
msgbox 0x8298D90 MSG_NORMAL '"Hold on kiddo!"
applymovement MOVE_PLAYER 0x8298D72
waitmovement 0x0
applymovement 0x4 0x298D75
waitmovement 0x0
msgbox 0x8298DA1 MSG_NORMAL '"Where the hell did you come from?\..."
applymovement 0x4 0x8298D83
waitmovement 0x0
setflag 0x202
release
end

'---------------
#org 0x298D6F
release
end


'---------
' Strings
'---------
#org 0x298D90
= Hold on kiddo!

#org 0x298DA1
= Where the hell did you come from?\nI saw that statue glow,\pthen you just pop out of nowhere!\nHmph... Ill figure it out.


'-----------
' Movements
'-----------
#org 0x298D72
#raw 0x2 'Face Left
#raw 0xFE 'End of Movements

#org 0x298D75
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x55 'Jump in Place (Facing Right)
#raw 0xFE 'End of Movements

#org 0x298D83
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0xFE 'End of Movements
The person doesn't come to the player, it's not the person number cause on the tile two tiles away it works just fine, same everything except for two extra movements.
__________________
dragging himself, forw
ard again, the pain has
still not diminished. E
ventually though, he e
merges inside a v
ery large room w

here everything about

the house

suddenly

changes.
Reply With Quote
  #2563    
Old November 30th, 2009, 06:36 PM
Samike360's Avatar
Samike360
Lover of May
 
Join Date: Mar 2009
Location: ATL
Gender:
Nature: Bold
I usually try to figure things out on my own, but I've been having a lot of trouble with the scripts on this map, and this one baffles me the most. I don't want to spoil the scripting, but I'll post it so you guys maybe could help me out.

Anyway, when the player steps on the tile, nothing at all happens. I thought is was a flag issue (I would have a checkflag if 0x1 goto script at the begginning, but I took it out until I get it to work), but it still happens. I've tried many settings (0300 4050, 0003 4050, 0003 4057, 0003 4051 0002 among others) but it still doesn't happen. I would really appreciate some help, as this script is important.

By the way, this is firered, for Johto Adventures, and I'm using XSE.


Spoiler:
'---------------
#org 0x808449
msgbox 0x88082F2 MSG_NORMAL (Text)
applymovement 0x1 0x88082EE
applymovement 0x6 0x88082EE
applymovement MOVE_PLAYER 0x88082EB
waitmovement 0x0
msgbox 0x8808262 MSG_NORMAL '(Text)
msgbox 0x8808303 MSG_NORMAL (Text)
msgbox 0x880802D MSG_NORMAL '(Text)
hidesprite 0x6
applymovement 0x1 0x8807A6E
waitmovement 0x0
release
end


'---------
' Strings
'---------
#org 0x8082F2
= (Text)

#org 0x808262
= (Text)

#org 0x808303
= (Text)

#org 0x80802D
= (Text)


'-----------
' Movements
'-----------
#org 0x8082EE
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements

#org 0x8082EB
#raw 0x64 'Cross (X)
#raw 0xFE 'End of Movements

#org 0x807A6E
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements
__________________





Please warm my eggs...I'll be sure to return the favor

From now one, if you haven't contacted me yet....I will not accept hacks unless they are at least in progressing hacks. So if you want my help, get some screenshots first.
Reply With Quote
  #2564    
Old November 30th, 2009, 06:51 PM
Pokepal17's Avatar
Pokepal17
More cowbell~
 
Join Date: Oct 2008
Location: Steeltown
Age: 19
Gender: Male
Nature: Modest
Quote:
Originally Posted by Samike360 View Post
I usually try to figure things out on my own, but I've been having a lot of trouble with the scripts on this map, and this one baffles me the most. I don't want to spoil the scripting, but I'll post it so you guys maybe could help me out.

Anyway, when the player steps on the tile, nothing at all happens. I thought is was a flag issue (I would have a checkflag if 0x1 goto script at the begginning, but I took it out until I get it to work), but it still happens. I've tried many settings (0300 4050, 0003 4050, 0003 4057, 0003 4051 0002 among others) but it still doesn't happen. I would really appreciate some help, as this script is important.

By the way, this is firered, for Johto Adventures, and I'm using XSE.


Spoiler:
'---------------
#org 0x808449
msgbox 0x88082F2 MSG_NORMAL (Text)
applymovement 0x1 0x88082EE
applymovement 0x6 0x88082EE
applymovement MOVE_PLAYER 0x88082EB
waitmovement 0x0
msgbox 0x8808262 MSG_NORMAL '(Text)
msgbox 0x8808303 MSG_NORMAL (Text)
msgbox 0x880802D MSG_NORMAL '(Text)
hidesprite 0x6
applymovement 0x1 0x8807A6E
waitmovement 0x0
release
end


'---------
' Strings
'---------
#org 0x8082F2
= (Text)

#org 0x808262
= (Text)

#org 0x808303
= (Text)

#org 0x80802D
= (Text)


'-----------
' Movements
'-----------
#org 0x8082EE
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements

#org 0x8082EB
#raw 0x64 'Cross (X)
#raw 0xFE 'End of Movements

#org 0x807A6E
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements
What's the var VALUE (not number) of the script tile?

@Panda, ash's script has been fixed, I was just informing him that he was using an old version of XSE.
__________________
Pokémon Stardrop
Reply With Quote
  #2565    
Old December 1st, 2009, 05:45 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 ~Teh Panda~ View Post
Your offset A000000 is not an ingame offset.
The hex in the GBA rom is from 000000 to FFFFFF
You might be wanting A00000
As Pokepal stated I've already fixed it
And the offset... I just misspelled it :D

Quote:
Originally Posted by Pokepal17 View Post
You should update your version of XSE, since you are using a version that has been outdatet since Christmas. I can tell because the "msgbox" command now has the "callstd" value as a third parameter. Please read the first post next time as it clearly states that you need to be using the latest version of XSE. :3
well I'm used to callstd so I don't mind it :D
But I guess I'll update it anyway :D
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign
Reply With Quote
  #2566    
Old December 1st, 2009, 02:58 PM
Samike360's Avatar
Samike360
Lover of May
 
Join Date: Mar 2009
Location: ATL
Gender:
Nature: Bold
Quote:
Originally Posted by Pokepal17 View Post
What's the var VALUE (not number) of the script tile?
I have it on 0000....should I change it? I've never really messed around with that before
__________________





Please warm my eggs...I'll be sure to return the favor

From now one, if you haven't contacted me yet....I will not accept hacks unless they are at least in progressing hacks. So if you want my help, get some screenshots first.
Reply With Quote
  #2567    
Old December 1st, 2009, 02:59 PM
Haku.'s Avatar
Haku.
(FLAME)...H....A...K..U
 
Join Date: Jan 2008
Location: Singapore :D
Gender: Male
Nature: Quiet
Send a message via Windows Live Messenger to Haku.
It must be 0300.
If not, it wont work
__________________

Reply With Quote
  #2568    
Old December 1st, 2009, 03:05 PM
NarutoActor's Avatar
NarutoActor
The rocks cry out to me
Community Supporter Tier 2
 
Join Date: Jan 2009
Location: Brooklyn/Marlboro
Age: 20
Gender: Female
Nature: Bashful
Send a message via AIM to NarutoActor Send a message via Windows Live Messenger to NarutoActor
var number means the varibles number so 4050 is var 0x4050 if you ever set a var 0x4050 0x1 that means the var value is 0x1. setting it to 0x300, 0x400 or 0x200 will come out with the same result(un less acorse you used it somewhere 0x4050 0x200) so I am not sure if 0x300 will fix the problem but if it dose, note that it dose not have to be exactly 0x300 to work.
__________________
~There are those people who understand hex, F the rest
Reply With Quote
  #2569    
Old December 1st, 2009, 03:12 PM
Samike360's Avatar
Samike360
Lover of May
 
Join Date: Mar 2009
Location: ATL
Gender:
Nature: Bold
Edit: Never mind, I finally fixed the problem. After experimenting with different values, I found that 0300 as the unknown, 4060 for the var number, and 0000 for the var value works fine. Thanks for your help.
__________________





Please warm my eggs...I'll be sure to return the favor

From now one, if you haven't contacted me yet....I will not accept hacks unless they are at least in progressing hacks. So if you want my help, get some screenshots first.

Last edited by Samike360; December 1st, 2009 at 03:18 PM.
Reply With Quote
  #2570    
Old December 1st, 2009, 04:30 PM
HackMew's Avatar
HackMew
Mewtwo Strikes Back
 
Join Date: Jun 2006
Quote:
Originally Posted by Samike360 View Post
Edit: Never mind, I finally fixed the problem. After experimenting with different values, I found that 0300 as the unknown, 4060 for the var number, and 0000 for the var value works fine. Thanks for your help.
Everything is fine except the Unknown. It should be 0003. Don't listen to anyone else suggesting you to put it as 0300. That was for AM 1.82 and older. Since AdvanceMap 1.90 (thanks to my suggestion) the values were properly handled as a single value. Hence way now with the newest AM you have to type 0003.
__________________
Reply With Quote
  #2571    
Old December 2nd, 2009, 05:47 PM
Haku.'s Avatar
Haku.
(FLAME)...H....A...K..U
 
Join Date: Jan 2008
Location: Singapore :D
Gender: Male
Nature: Quiet
Send a message via Windows Live Messenger to Haku.
Quote:
Originally Posted by HackMew View Post
Everything is fine except the Unknown. It should be 0003. Don't listen to anyone else suggesting you to put it as 0300. That was for AM 1.82 and older. Since AdvanceMap 1.90 (thanks to my suggestion) the values were properly handled as a single value. Hence way now with the newest AM you have to type 0003.

I tried using 0003 but it only works if i walk up to it, not walking down/right/left.
Im using a-map 1.90 btw.
__________________

Reply With Quote
  #2572    
Old December 3rd, 2009, 10:41 AM
bigtukker
 
Join Date: Mar 2009
Gender:
How can I make a trade script in ruby with xse?

example: I want a script where you can trade a hitmonlee for an electrode
Reply With Quote
  #2573    
Old December 3rd, 2009, 11:24 AM
Haku.'s Avatar
Haku.
(FLAME)...H....A...K..U
 
Join Date: Jan 2008
Location: Singapore :D
Gender: Male
Nature: Quiet
Send a message via Windows Live Messenger to Haku.
Quote:
Originally Posted by bigtukker View Post
How can I make a trade script in ruby with xse?

example: I want a script where you can trade a hitmonlee for an electrode
http://www.pokecommunity.com/showthread.php?t=198705

Use the tool.
__________________

Reply With Quote
  #2574    
Old December 3rd, 2009, 02:04 PM
bigtukker
 
Join Date: Mar 2009
Gender:
thanks it helped, is there also a way to create new "trainer's eyes"
Reply With Quote
  #2575    
Old December 3rd, 2009, 03:28 PM
The-Great-Falkner's Avatar
The-Great-Falkner
There just that damn good!
 
Join Date: Sep 2009
Location: Violet City
Gender: Male
Nature: Relaxed
I was wondering if this script is correct to use in a game I'm making

Spoiler:
#dynamic 0x800000
#org @start
checkflag 0x828
lock
faceplayer
end
#org @giveme
givepokemon 0x77 0x10 0x0 0x0 0x0 0x0
lock
msgbox @give
boxset 0x6
applymovement 0x04 @back
waitmovement 0x0
release
end
#org @give
= Here take this Pokemon because \n Prof. Oak isn't in.
#org @back
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x62
#raw 0x63
#raw 0xFE
#org @end
release
end


Im trying to make a script that you walk up to him from your house entrance 3 steps down and he gives you a pokemon but I wasn't sure if it was right
__________________
Today, I was at a bar. A fat guy looks at me for a while and sits down next to me. He turns and I expect that he'll hit on me. He then buttons down his shirt, presses his man boobs together and say to his friends “Look, I’ve got bigger tits than than the girl next to me!" His friends agreed. FML
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 05:56 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.