The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Invisible hero bugs

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 June 18th, 2016 (9:52 AM).
Scarlet D.'s Avatar
Scarlet D. Scarlet D. is offline
The Eternal
 
Join Date: Dec 2015
Location: Greece
Gender: Male
Nature: Adamant
Posts: 66
So here is the scenarrio. the hero is joining a place (level script) with a warp, then the next thing happens is the camera going to the bad guy (invisible player walking to the bad guy), he makes a monologue, then more people coming in, and then the hero from the stairs. Problem is that after the "applymovement 3 @godown" the bad guy had to move with invisible player (camera) but it doesn't , after that the script also freezes. Any ideas what would be wrong?

here is the script ( i also tried without level scripting, with a script tile)

Code:
#dynamic 0x80A4AA 
#org @start
lock 
setflag 0x469 
applymovement 0xFF @hidesprite 
applymovement 3 @faceright 
pause 0x50
applymovement 3 @faceleft 
pause 0x60
applymovement 3 @discussup 
waitmovement 3 
msgbox @sec1 0x6
applymovement 0xFF @godown  
applymovement 3 @godown
waitmovement 0x0
sound 009 
showsprite 4 
applymovement 4 @comeimp
applymovement 3 @faceleft
waitmovement 0x0   
msgbox @imp0 0x6 
applymovement 4 @comeimp2
applymovement 3 @discussleft
msgbox @sec2 0x6
applymovement 0xFF @gotostairs 
waitmovement 0xFF
applymovement 0xFF @showsprite 
waitmovement 0xFF 
applymovement 3 @surp 
applymovement 4 @surp 
applymovement 0xFF @gotoevil 
waitmovement 0x0
msgbox @sec3 0x6 
applymovement 4 @discussright
waitmovement 4 
msgbox @imp1 0x6 
applymovement 4 @facedown 
applymovement 0xFF @discussup 
waitmovement 0x0 
msgbox @hero1 0x6 
applymovement 4 @discussright
waitmovement 4
msgbox @imp2 0x6 
applymovement 4 @facedown 
applymovement 3 @discussdown 
waitmovement 0x0 
msgbox @sec4 0x6 
applymovement 4 @discussleft  
waitmovement 3
msgbox @imp3 0x6
applymovement 4 @facedown 
applymovement 0xFF @discussup 
msgbox @hero2 0x6
waitmovement 0x0 
applymovement 4 @discussdown 
waitmovement 4 
msgbox @imp4 0x6 
applymovement 0xFF @discussup 
waitmovement 0xFF
msgbox @hero3 0x6 
applymovement 3 @discussdown 
waitmovement 3  
msgbox @sec5 0x6
applymovement 0xFF @discussup 
waitmovement 0xFF
msgbox @hero4 0x6 
showsprite 2
applymovement 0xff @faceright 
applymovement 2 @stepleft 
waitmovement 0x0  
msgbox @rival1 0x6 
applymovement 0xFF @discussright  
waitmovement 0xFF
msgbox @hero5 0x6
applymovement 0xFF @faceup 
applymovement 3 @discussdown 
waitmovement 0x0 
msgbox @sec6 0x6 
applymovement 4 @discussright
waitmovement 4 
msgbox @imp5 0x6
applymovement 3 @discussleft
waitmovement 3 
msgbox @sec7 0x6
applymovement 4 @discussright
waitmovement 4 
msgbox @imp6 0x6
applymovement 0xff @gobattle 
applymovement 2 @gobattle 
waitmovement 0x0
showsprite 5
cry 0x92 0x0
msgbox @moltres 0x6
pause 0x20 
showsprite 6
cry 0x90 0x0
trainerbattle 0x1 0xBF 0x0 @articuno @defeat @after 

#org @after 
fadescreen 0x1 
hidesprite 6
cry 0x90 0x1 
sound 0x000E 
fadescreen 0x0
pause 0x20
applymovement 3 @faceleft 
applymovement 4 @discussdown 
waitmovement 0x0 
msgbox @imp7 0x6 
applymovement 2 @discussup 
waitmovement 2
msgbox @rival2 0x6 
applymovement 3 @discussdown 
waitmovement 3 
msgbox @secattack 0x6 
applymovement 5 @attack
waitmovement 5 
applymovement 2 @goback
waitmovement 2 
msgbox @rivalafter 0x6 
applymovement 0xFF @discussright
waitmovement 0xFF
msgbox @hero6 0x6 
hidesprite 5 
applymovement 3 @gotoplayer
trainerbattle 0x1 0x0C0 0x0 @begin @defeat2 @later2

#org @later2 
applymovement 3 @defeated
waitmovement 3
msgbox @ericrash 0x6 
hidesprite 6
hidesprite 3 
showsprite 7 
applymovement 7 @discussleft 
waitmovement 7 
msgbox @sec9 0x6
applymovement 4 @discussdown
waitmovement 4 
msgbox @imp9 0x6
applymovement 2 @surprise 
applymovement 0xFF @surprise 
waitmovement 0x0 
applymovement 7 @ericlooks
waitmovement 0x0 
applymovement 2 @discussup 
waitmovement 2
msgbox @rival3 0x6 
applymovement 7 @discussup 
waitmovement 7
msgbox @sec10 0x6
applymovement 4 @discussdown
waitmovement 4
msgbox @imp10 0x6
applymovement 0xFF @discussright
applymovement 7 @faceleft 
waitmovement 0x0
msgbox @hero8 0x6
applymovement 2 @discussup 
applymovement 7 @facedown 
waitmovement 0x0
msgbox @rival4 0x6 
applymovement 7 @discussup 
waitmovement 7
msgbox @sec11 0x6
applymovement 4 @discussdown
applymovement 0xff @faceup 
waitmovement 4
msgbox @imp11 0x6
applymovement 0xFF @discussup 
waitmovement 0xFF
msgbox @hero9 0x6
applymovement 0xFF @gotoimp
pause 0x10 
fadescreen 0x1 
hidesprite 7 
hidesprite 4 
clearflag 470 
fadescreen 0x0 
pause 0x30 
applymovement 0xFF @facedown 
msgbox @hero10 0x6 
applymovement 2 @discussup 
waitmovement 2 
msgbox @rival5 0x6 
applymovement 0xFF @gotorival 
waitmovement 0xFF 
msgbox @hero11 0x6
applymovement 2 @discussup 
waitmovement 2 
msgbox @rival6 0x6 
applymovement 0xFF @discussdown 
waitmovement 0xFF
msgbox @hero12 0x6
applymovement 0xFF @discussdown 
waitmovement 0xFF
msgbox @hero13 0x6
applymovement 2 @discussup 
waitmovement 2 
msgbox @rival7 0x6 
applymovement 0xFF @discussdown 
waitmovement 0xFF
msgbox @hero14 0x6
applymovement 2 @discussup 
waitmovement 2 
msgbox @rival8 0x6 
applymovement 0xFF @discussdown 
waitmovement 0xFF
msgbox @hero15 0x6
applymovement 2 @discussup 
waitmovement 2 
msgbox @rival0 0x6 
applymovement 0xFF @discussdown 
waitmovement 0xFF
msgbox @hero16 0x6
applymovement 2 @discussup 
waitmovement 2 
msgbox @rival0 0x6 
applymovement 0xFF @discussdown 
waitmovement 0xFF
msgbox @hero17 0x6
applymovement 2 @discussup 
waitmovement 2 
msgbox @rival11 0x6 
applymovement 0xFF @discussdown 
waitmovement 0xFF
msgbox @hero18 0x6
applymovement 2 @discussup 
waitmovement 2 
msgbox @rival12 0x6 
applymovement 0xFF @discussdown 
waitmovement 0xFF
msgbox @hero19 0x6
applymovement 2 @discussup 
waitmovement 2 
msgbox @rival13 0x6 
applymovement 0xFF @discussdown 
waitmovement 0xFF
msgbox @hero20 0x6
applymovement 2 @discussup 
waitmovement 2 
msgbox @rival14 0x6 
applymovement 0xFF @discussdown 
waitmovement 0xFF
msgbox @hero21 0x6
applymovement 2 @discussup 
waitmovement 2 
msgbox @rival15 0x6 
applymovement 0xFF @discussdown 
waitmovement 0xFF
msgbox @hero22 0x6
applymovement 2 @discussup 
waitmovement 2 
msgbox @rival16 0x6 
applymovement 2 @facedown 
waitmovement 2 
msgbox @rival17 0x6
applymovement 2 @leaverival  
waitmovement 2
sound 0x009 
hidesprite 2 
setvar 0x17BC 0x1  

#org @hidesprite 
#raw 0x60
#raw 0x1D
#raw 0x1D
#raw 0xFF

#org @showsprite
#raw 0x61
#raw 0xFF

#org @gotosec 
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0xFF

#org @leaverival 
#raw 0x13
#raw 0x11
#raw 0xFF

#org @surprise 
#raw 0x62
#raw 0xFF

#org @gotorival 
#raw 0x13
#raw 0x13
#raw 0x10
#raw 0x10
#raw 0xFF

#org @gotoimp
#raw 0x1E
#raw 0x1E
#raw 0xFF

#org @ericlooks 
#raw 0x62
#raw 0x1C
#raw 0x2
#raw 0x1C
#raw 0x1C
#raw 0x0
#raw 0x1C
#raw 0x1C
#raw 0xFF

#org @defeated 
#raw 0x4C
#raw 0x20
#raw 0x3
#raw 0x4D
#raw 0xFF

#org @gotoplayer 
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0xFF

#org @goback
#raw 0x4C
#raw 0x1D
#raw 0x1
#raw 0x4D
#raw 0xFF

#org @attack 
#raw 0x1D
#raw 0x18
#raw 0x18
#raw 0x1E
#raw 0xFF

#org @gobattle 
#raw 0x12
#raw 0x1
#raw 0xFF

#org @stepleft 
#raw 0x12
#raw 0x1
#raw 0xFF

#org @gotoevil
#raw 0x12
#raw 0x12
#raw 0xFF 

#org @gotostairs
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x2
#raw 0xFF

#org @surp 
#raw 0x0
#raw 0x62
#raw 0x3
#raw 0xFF

#org @comeimp2
#raw 0x11
#raw 0x11
#raw 0x3
#raw 0xFF

#org @comeimp 
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0xFF 

#org @godown 
#raw 0x10 
#raw 0x10 
#raw 0x10 
#raw 0x10 
#raw 0x10 
#raw 0xFF 

#org @facedown 
#raw 0x0
#raw 0xFE

#org @faceup 
#raw 0x1
#raw 0xFE

#org @faceright 
#raw 0x3
#raw 0xFE

#org @faceleft 
#raw 0x2
#raw 0xFE

#org @discussdown 
#raw 0x21
#raw 0xFE

#org @discussup 
#raw 0x22
#raw 0xFE

#org @discussright 
#raw 0x24
#raw 0xFE

#org @discussleft 
#raw 0x23
#raw 0xFE
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old June 18th, 2016 (10:41 AM).
Vendily's Avatar
Vendily Vendily is offline
 
Join Date: Aug 2015
Nature: Calm
Posts: 1,604
Would it be easier to move the camera itself with applymovement 0x7F?
http://www.pokecommunity.com/showthread.php?t=141650
__________________
| VPP Stats

Common Errors (and How to Fix Them) in Essentials
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old June 18th, 2016 (11:04 AM).
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
^This

Also for some of your movements you've used #raw 0xFF instead of #raw 0xFE.
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old June 18th, 2016 (11:04 AM). Edited June 18th, 2016 by Scarlet D..
Scarlet D.'s Avatar
Scarlet D. Scarlet D. is offline
The Eternal
 
Join Date: Dec 2015
Location: Greece
Gender: Male
Nature: Adamant
Posts: 66
Quote:
Originally Posted by Vendily View Post
Would it be easier to move the camera itself with applymovement 0x7F?
http://www.pokecommunity.com/showthread.php?t=141650
to be honest i didn't know this command existed. Although as i see from the guide, you have to move the camera to the original position (in the same pointer i assume). I want my camera to change many positions and that action needs many pointers, would that it be alright?

Quote:
Originally Posted by C me View Post
^This

Also for some of your movements you've used #raw 0xFF instead of #raw 0xFE.
yyyyeah, so that was the whole problem about things freezing all this time... good news is the part with the invisible player works too! thanks a lot
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:08 AM.