The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Help with my XSE script

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old May 2nd, 2015 (8:38 AM). Edited May 3rd, 2015 by pikadude64.
pikadude64 pikadude64 is offline
 
Join Date: Apr 2012
Location: UK
Gender: Male
Posts: 9
Hey, I am currently playing around trying to make a Pokémon Hack and I have the code working for a trainer to give you a pokemon and then walk away. The issue I have is that I have wrote the hide sprite applymovement code but it still wont work. Here is my code if you could take a look and let me know what the issue is it would be greatly appreciated. Thanks in advanced!

'---------------
#org 0x71D112
checkflag 0x828
if 0x1 goto 0x871CBC6
msgbox 0x871CBD1 MSG_KEEPOPEN '"[black_fr]Stranger:[blue_fr]HEY! B..."
givepokemon 0x85 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x871CCA1 MSG_KEEPOPEN '"[black_fr]You've been given a Eeve..."
waitfanfare
closeonkeypress
setflag 0x828
msgbox 0x871CCC1 MSG_YESNO '"[black_fr]Do you want to give Eeve..."
compare LASTRESULT 0x1
if 0x1 call 0x871CBC9
msgbox 0x871CCEC MSG_NORMAL '"[black_fr]Stranger:[blue_fr]I'm su..."
applymovement 0x05 0x871CDFC
waitmovement 0x0
setflag 0x1202
release
end

'---------------
#org 0x71CBC6
release
end

'---------------
#org 0x71CBC9
fadescreen 0x1
special 0x9E
waitstate
return


'---------
' Strings
'---------
#org 0x71CBD1
= [black_fr]Stranger:[blue_fr]HEY! Bad people\nare after this Eevee and I need\lsomeone who won't stand out to\llook after it.\pYou look old enough to be a\nPokémon trainer. Will you take\lit?\p[black_fr][player]:[blue_fr]Sure... but who\nare you?

#org 0x71CCA1
= [black_fr]You've been given a Eevee!

#org 0x71CCC1
= [black_fr]Do you want to give Eevee a\nnickname?

#org 0x71CCEC
= [black_fr]Stranger:[blue_fr]I'm sure it will\nbe alot safer with you, just keep\la look out for people who say\ltheir with Team Dusk and dont get\linvolved with them. The names\lRocket and im sure we will meet\lagain.\p[black_fr][player]:[blue_fr]Rocket?\p[black_fr]Rocket:[blue_fr]Yeah, I better get\ngoing! See ya around!


'-----------
' Movements
'-----------
#org 0x71CDFC
#raw 0x4A 'Face Player
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x60 'Hide
#raw 0xFE 'End of Movements
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old May 2nd, 2015 (1:43 PM).
C me's Avatar
C me C me is offline
Creator of Pokemon League Of Legends
 
Join Date: Jan 2014
Age: 26
Gender: Male
Posts: 681
Use the hidesprite command 'hidesprite 0x(person number you want to hide)' before setflag, release,end. Personally, I didn't even know a hide applymovement even existed, I've never used it.
__________________
Check out my hack: Pokemon League of Legends.
Join the subreddit: https://www.reddit.com/r/PokemonLoL/
If you would like to give me money for no reason you can do so here
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old May 2nd, 2015 (7:17 PM).
Lance32497's Avatar
Lance32497 Lance32497 is offline
LanceKoijer of Pokemon_Addicts
 
Join Date: Aug 2014
Location: Criscanto town-Ginoa Region xD
Gender: Male
Nature: Adamant
Posts: 792
I think it's better to put hidesprite, anyway does the flag you set is the person number of the OW you want to disappear?
__________________
This signature has been disabled.
Scrollbar appears
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old May 2nd, 2015 (9:44 PM).
Deokishisu's Avatar
Deokishisu Deokishisu is offline
Mr. Magius
 
Join Date: Feb 2006
Location: If I'm online, it's a safe bet I'm at a computer.
Gender: Male
Nature: Relaxed
Posts: 984
The hide applymovement is good if you want to temporarily hide an NPC in the middle of a series of movements, but should always be followed up with the hidesprite command and a setflag, as pokenoobend suggests. And like Lance32497 says, make sure the person event in Advance Map is assigned the same flag you're setting in the script.
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old May 3rd, 2015 (3:51 AM).
pikadude64 pikadude64 is offline
 
Join Date: Apr 2012
Location: UK
Gender: Male
Posts: 9
Thanks you guys. It works perfectly as planned. I'm new to this programming stuff and tried to combine two script tutorials that I saw so I expected there to be errors. Thanks again :D
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

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

Forum Jump


All times are GMT -8. The time now is 9:10 AM.