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
  #7626    
Old January 28th, 2013, 09:55 AM
butterflye's Avatar
butterflye
Dancing on the rainbow lane
 
Join Date: Nov 2012
Age: 19
Gender: Female
Nature: Calm
Yes, thank you, it finally works.

But I have another problem and I hope that my another request doesn't tire anybody. The same script is going to have one, a strange anomaly. If there is a choice of Yes / No, when I click Yes, the game takes it as click No, and I don't get Pokemon. Does anyone know and could cause me the reason? I totally am beginner in scripting...

Again, this is the script:
Spoiler:
#dynamic 0xD0052F

#org @start
lock
faceplayer
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x300D
if 0x1 goto @take
msgbox @2 0x6
release
end

#org @done
msgbox @6 0x6
release
end

#org @take
givepokemon 0x376 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
setflag 0x828
msgbox @5 0x6
release
end

#org @1
= You! Come here. Remember, what I\nsaid. Here, take this Absol. He\lseems to loved you, but I don't\lknow, how he can make it.

#org @2
= Humph. You have no heart.

#org @3
= [black_rs]You received an Absol!

#org @5
= Better not hurt him!

#org @6
= I hope Absol is fine.
__________________
Yes, I'm Polish.

Supports:
Spoiler:
| |

  #7627    
Old January 28th, 2013, 10:23 AM
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote:
Originally Posted by butterflye View Post
Yes, thank you, it finally works.

But I have another problem and I hope that my another request doesn't tire anybody. The same script is going to have one, a strange anomaly. If there is a choice of Yes / No, when I click Yes, the game takes it as click No, and I don't get Pokemon. Does anyone know and could cause me the reason? I totally am beginner in scripting...

Again, this is the script:
Spoiler:
#dynamic 0xD0052F

#org @start
lock
faceplayer
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x300D
if 0x1 goto @take
msgbox @2 0x6
release
end

#org @done
msgbox @6 0x6
release
end

#org @take
givepokemon 0x376 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
setflag 0x828
msgbox @5 0x6
release
end

#org @1
= You! Come here. Remember, what I\nsaid. Here, take this Absol. He\lseems to loved you, but I don't\lknow, how he can make it.

#org @2
= Humph. You have no heart.

#org @3
= [black_rs]You received an Absol!

#org @5
= Better not hurt him!

#org @6
= I hope Absol is fine.

It's var 0x800D, that is LASTRESULT. It's on line 10, you're checking the wrong var.
__________________

Paired with Simba
  #7628    
Old January 28th, 2013, 10:31 AM
SpadeEdge16's Avatar
SpadeEdge16
 
Join Date: May 2012
Gender: Male
Quote:
Originally Posted by karatekid552 View Post
It's var 0x800D, that is LASTRESULT. It's on line 10, you're checking the wrong var.
like i was saying, I get 300 and 800 mixed up sometimes haha. x3
but yeah, betterflye, if the 800D works for your script, then forget what i said about setting the compare to 0x0.
  #7629    
Old January 28th, 2013, 11:40 AM
thetripplenine's Avatar
thetripplenine
999
 
Join Date: Jan 2013
Location: California
Age: 16
Gender: Male
Nature: Bold
Quote:
Originally Posted by DrFuji View Post
It doesn't work because I accidentally misspelled Riolu on that dynamic pointer so it didn't know where to connect. After correcting that it compiled perfectly in my XSE
Ok ya so with the new xse it works better but I don't know why but i'm not receiving the pokemon.

Proof
  #7630    
Old January 28th, 2013, 11:45 AM
masterquestmq's Avatar
masterquestmq
Enthusiastic Rom Hacker
 
Join Date: Nov 2010
Gender: Male
Quote:
Originally Posted by thetripplenine View Post
Ok ya so with the new xse it works better but I don't know why but i'm not receiving the pokemon.

Proof

You actually have the pokemon BUT you didn't activate the pokemon party to appear on the menu
go back to the script and insert this line (I think you're using emerald right?)
setflag 0x860

and if u want the pokedex insert this line
setflag 0x861


hope this helps...
  #7631    
Old January 28th, 2013, 12:04 PM
thetripplenine's Avatar
thetripplenine
999
 
Join Date: Jan 2013
Location: California
Age: 16
Gender: Male
Nature: Bold
Quote:
Originally Posted by masterquestmq View Post
You actually have the pokemon BUT you didn't activate the pokemon party to appear on the menu
go back to the script and insert this line (I think you're using emerald right?)
setflag 0x860

and if u want the pokedex insert this line
setflag 0x861


hope this helps...
Ok thank you it worked...

And thanks to the other people that helped me
  #7632    
Old January 28th, 2013, 01:02 PM
kj3400's Avatar
kj3400
Wants a Magneton for a Charger
 
Join Date: Mar 2012
Gender: Male
Nature: Lax
Send a message via Skype™ to kj3400
Another question...
I have a script that involves someone moving to a particular spot, but as soon as I move out of eyeshot and come back, the person reverts back to where they initially were. How would I keep them from moving back, even after exiting and entering the map again?
  #7633    
Old January 28th, 2013, 02:18 PM
FBI agent
Imagine something beautiful
 
Join Date: Jan 2013
Location: Isle 4 - Dairy Products
Gender: Male
Quote:
Originally Posted by kj3400 View Post
Another question...
I have a script that involves someone moving to a particular spot, but as soon as I move out of eyeshot and come back, the person reverts back to where they initially were. How would I keep them from moving back, even after exiting and entering the map again?
This is actually a question that I'd be interested in too. The solution I think is a level script, similar to the one in the player's room in FireRed. It'd go like this:

movesprite2 0xPersonEventNumber 0xX-pos 0xY-pos
spritebehave 0xPersonEventNumber 0xBehaviourNumber

Behavior number is just what the person does (look down is 0x8 look around is 0x1...ect). This is for FireRed, though other gen III ROMs are likely similar if not the same.
__________________
...

Hacks I support:
http://www.pokecommunity.com/showthread.php?t=297199 --Legend of Anbuja
http://www.pokecommunity.com/showthread.php?t=200227 -- Pokemon Rose version

People whom I thank:
Comrade -- For helping me with my bad hack, and for being a good friend
Darthatron -- Helping me get into basic ASM, even though I'm hopeless. (He is heartless stay away).
Anbuja's_BlooDY -- Graphics help, and being a good friend
FBI -- For having the username I wanted
  #7634    
Old January 28th, 2013, 02:28 PM
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote:
Originally Posted by FBI agent View Post
This is actually a question that I'd be interested in too. The solution I think is a level script, similar to the one in the player's room in FireRed. It'd go like this:

movesprite2 0xPersonEventNumber 0xX-pos 0xY-pos
spritebehave 0xPersonEventNumber 0xBehaviourNumber

Behavior number is just what the person does (look down is 0x8 look around is 0x1...ect). This is for FireRed, though other gen III ROMs are likely similar if not the same.
Very close, it just doesn't need to be in a level script. It just has to go directly after the applymovement it is holding in place.
__________________

Paired with Simba
  #7635    
Old January 28th, 2013, 02:33 PM
kj3400's Avatar
kj3400
Wants a Magneton for a Charger
 
Join Date: Mar 2012
Gender: Male
Nature: Lax
Send a message via Skype™ to kj3400
So if I put that in, I can guarantee the particular ow's not going to move when I leave the map?
  #7636    
Old January 28th, 2013, 02:42 PM
FBI agent
Imagine something beautiful
 
Join Date: Jan 2013
Location: Isle 4 - Dairy Products
Gender: Male
Quote:
Originally Posted by karatekid552 View Post
Very close, it just doesn't need to be in a level script. It just has to go directly after the applymovement it is holding in place.
Really? I thought it would reset if you leave the map :O

Quote:
Originally Posted by kj3400 View Post
So if I put that in, I can guarantee the particular ow's not going to move when I leave the map?
Yes good Samaritan.
__________________
...

Hacks I support:
http://www.pokecommunity.com/showthread.php?t=297199 --Legend of Anbuja
http://www.pokecommunity.com/showthread.php?t=200227 -- Pokemon Rose version

People whom I thank:
Comrade -- For helping me with my bad hack, and for being a good friend
Darthatron -- Helping me get into basic ASM, even though I'm hopeless. (He is heartless stay away).
Anbuja's_BlooDY -- Graphics help, and being a good friend
FBI -- For having the username I wanted
  #7637    
Old January 28th, 2013, 02:43 PM
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote:
Originally Posted by kj3400 View Post
So if I put that in, I can guarantee the particular ow's not going to move when I leave the map?
If done properly, yes. If you don't care what direction it faces, then you don't need the sprite behave. I believe a basic list of behaviors is:

0 = face down
1 = face up
2 = face left
3 = face right

Not sure, but after a few tries you'll get it right.

Note: These behaviors will not line up with the ones in A-map, trust me, I've tried.

Quote:
Originally Posted by FBI agent View Post
Really? I thought it would reset if you leave the map :O
Depends, the command "movesprite" is not permanent. "Movesprite2" is permanent.

You do realize that there is a command database in XSE if you just hit F1, right? That is where I learned how to use half of these commands.

Also, level scripts are pretty much the same as regular scripts, they just activate when you enter the map, rather than activating on a person event or an s-tile.
__________________

Paired with Simba

Last edited by karatekid552; January 28th, 2013 at 02:47 PM. Reason: Your double post has been automatically merged.
  #7638    
Old January 28th, 2013, 02:50 PM
kj3400's Avatar
kj3400
Wants a Magneton for a Charger
 
Join Date: Mar 2012
Gender: Male
Nature: Lax
Send a message via Skype™ to kj3400
Ok, thanks guys, it'll be good to finally learn all the ins and outs of this scripting business
  #7639    
Old January 28th, 2013, 04:11 PM
FBI agent
Imagine something beautiful
 
Join Date: Jan 2013
Location: Isle 4 - Dairy Products
Gender: Male
For running shoes if I just set the flag 0x82F does it give them to me? What to do?
__________________
...

Hacks I support:
http://www.pokecommunity.com/showthread.php?t=297199 --Legend of Anbuja
http://www.pokecommunity.com/showthread.php?t=200227 -- Pokemon Rose version

People whom I thank:
Comrade -- For helping me with my bad hack, and for being a good friend
Darthatron -- Helping me get into basic ASM, even though I'm hopeless. (He is heartless stay away).
Anbuja's_BlooDY -- Graphics help, and being a good friend
FBI -- For having the username I wanted
  #7640    
Old January 28th, 2013, 04:22 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 FBI agent View Post
For running shoes if I just set the flag 0x82F does it give them to me? What to do?
Yeah, a few of the early things that look like items are actually activated by flags in FRLG (e.g the Pokedex). Just set the flag in a script and you should be able to run around in appropriate locations :P
  #7641    
Old January 28th, 2013, 04:22 PM
kj3400's Avatar
kj3400
Wants a Magneton for a Charger
 
Join Date: Mar 2012
Gender: Male
Nature: Lax
Send a message via Skype™ to kj3400
Quote:
Originally Posted by FBI agent View Post
For running shoes if I just set the flag 0x82F does it give them to me? What to do?
I don't see why it wouldn't.
  #7642    
Old January 28th, 2013, 04:26 PM
thetripplenine's Avatar
thetripplenine
999
 
Join Date: Jan 2013
Location: California
Age: 16
Gender: Male
Nature: Bold
DrFuji I do not understand the new xse, it's so much more different...
__________________
Hatch my eggs by clicking on them!
Don't let them die!



Fully Grown Dragons:
Spoiler:
  #7643    
Old January 28th, 2013, 04:30 PM
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote:
Originally Posted by thetripplenine View Post
DrFuji I do not understand the new xse, it's so much more different...
I felt the same way, don't worry. As you practice and get used to it you willfind it much easier to use and more powerful. Donmt worry, it just takes a little time.
__________________

Paired with Simba
  #7644    
Old January 28th, 2013, 04:45 PM
FBI agent
Imagine something beautiful
 
Join Date: Jan 2013
Location: Isle 4 - Dairy Products
Gender: Male
Not working D:
The variable 0x5004 is just a variable I was using to keep track of gender btw. There were not problems with the script outside running shoe (everything would work in the order/way I wanted, but running shoes were never given). After the end of the script I tried it out and I just can't run :(

This is FireRed.

Spoiler:

#dyn 0x740000
#org @start
lock
faceplayer
textcolor RED
checkflag 0x2A
if TRUE jump @got
msgbox @text
callstd MSG_NORMAL
release
end

#org @got
checkflag 0x82F
if TRUE jump @GL
compare 0x5004 0x1
if == call @bfine
compare 0x5004 0x0
if == jump @gfine
setflag FR_RUNNING_SHOES 'This is equivalent to setflag 0x82F
textcolor GRAY
fanfare 0x101
waitfanfare
msgbox @recieve
callstd MSG_NORMAL
end

#org @gfine
msgbox @fine
callstd MSG_NORMAL
return

#org @bfine
msgbox @boyfine
callstd MSG_NORMAL
return

#org @GL
textcolor BLUE
msgbox @heal
callstd MSG_NORMAL
release
end

#org @heal
= MOM: If you ever feel tired,\nyou can always rest in your bed.

#org @recieve
= \v\h01 recieved RUNNING SHOES!

#org @boyfine
= MOM: \v\h01 my dear son, I'm so\nproud of you. I remember when you\lused to get the lab chemicals all\lover your coat and when the PROF.-\pOh nevermind that, if you're going\lon a journey atleast take these\lwith you, they'll be helpful.

#org @fine
= MOM: \v\h01 my dear daughter, I'm so\nproud of you. I remember when you\lused to get the lab chemicals all\lover your coat and when the PROF.-\pOh nevermind that, if you're going\lon a journey atleast take these\lwith you, they'll be helpful.

#org @text
= MOM: PROF. CEDAR wanted to have a\nword with you, \v\h01. You should\lgo see what the kind man wants. He\lsaid he'd by near the storage room.
__________________
...

Hacks I support:
http://www.pokecommunity.com/showthread.php?t=297199 --Legend of Anbuja
http://www.pokecommunity.com/showthread.php?t=200227 -- Pokemon Rose version

People whom I thank:
Comrade -- For helping me with my bad hack, and for being a good friend
Darthatron -- Helping me get into basic ASM, even though I'm hopeless. (He is heartless stay away).
Anbuja's_BlooDY -- Graphics help, and being a good friend
FBI -- For having the username I wanted
  #7645    
Old January 28th, 2013, 04:50 PM
PoisonEmeralds's Avatar
PoisonEmeralds
Rookie ROM Hacker
 
Join Date: Jan 2013
Location: United Kingdom
Age: 18
Gender: Male
Nature: Calm
If i'm using pokemon ruby and i've made events using poketronic and advance map how do I make it so the event dissapears from the map once you've battled or captured the pokemon?
__________________
The one and only.
-PoisonEmeralds
  #7646    
Old January 28th, 2013, 05:01 PM
FBI agent
Imagine something beautiful
 
Join Date: Jan 2013
Location: Isle 4 - Dairy Products
Gender: Male
Quote:
Originally Posted by PoisonEmeralds View Post
If i'm using pokemon ruby and i've made events using poketronic and advance map how do I make it so the event dissapears from the map once you've battled or captured the pokemon?
You can't do it using Poketronic (I'm pretty sure). You gotta use a script editor.
__________________
...

Hacks I support:
http://www.pokecommunity.com/showthread.php?t=297199 --Legend of Anbuja
http://www.pokecommunity.com/showthread.php?t=200227 -- Pokemon Rose version

People whom I thank:
Comrade -- For helping me with my bad hack, and for being a good friend
Darthatron -- Helping me get into basic ASM, even though I'm hopeless. (He is heartless stay away).
Anbuja's_BlooDY -- Graphics help, and being a good friend
FBI -- For having the username I wanted
  #7647    
Old January 28th, 2013, 05:15 PM
PoisonEmeralds's Avatar
PoisonEmeralds
Rookie ROM Hacker
 
Join Date: Jan 2013
Location: United Kingdom
Age: 18
Gender: Male
Nature: Calm
Quote:
Originally Posted by FBI agent View Post
You can't do it using Poketronic (I'm pretty sure). You gotta use a script editor.
You can you just use the wild pokemon battle script inserter with poketronic then use free space finder
__________________
The one and only.
-PoisonEmeralds
  #7648    
Old January 28th, 2013, 05:17 PM
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Actually, you can. In the bottom, where it says flag, enter the flag. Then compile. Now, open up your script in XSE and delete the line that says clearflag 0x_____. Now, compile it again. Then, go take that flag number and set it as the person I.D. In A-map.

The person won't disappear right away, but you won't be able to battle again. Look about 5 posts above to find out how to make it dissapear on the spot. Remeber, if you add to a poketronic script, you must repoint.
__________________

Paired with Simba
  #7649    
Old January 28th, 2013, 05:18 PM
PoisonEmeralds's Avatar
PoisonEmeralds
Rookie ROM Hacker
 
Join Date: Jan 2013
Location: United Kingdom
Age: 18
Gender: Male
Nature: Calm
Quote:
Originally Posted by karatekid552 View Post
Actually, you can. In the bottom, where it says flag, enter the flag. Then compile. Now, open up your script in XSE and delete the line that says clearflag 0x_____. Now, compile it again. Then, go take that flag number and set it as the person I.D. In A-map.

The person won't disappear right away, but you won't be able to battle again. Look about 5 posts above to find out how to make it dissapear on the spot. Remeber, if you add to a poketronic script, you must repoint.
Okay cheers bro I'll keep that in mind
__________________
The one and only.
-PoisonEmeralds
  #7650    
Old January 28th, 2013, 05:23 PM
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote:
Originally Posted by PoisonEmeralds View Post
Okay cheers bro I'll keep that in mind
Cool, but I just remebered that the post was on the other help thread.

Just add this after the battle to make it dissapear:

fadescreen 0x1
hidesprite 0xsprite#
fadescreen 0x0

Remember to repoint.
__________________

Paired with Simba
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 05:53 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.