The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Scripting Issue

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 27th, 2014 (7:55 AM).
CosmicBlazer's Avatar
CosmicBlazer CosmicBlazer is offline
Batman
 
Join Date: Jan 2013
Location: USA
Gender: Male
Posts: 190
I want my player to come downstairs and then the mom comes to me, gives the Running Shoes, and then goes back to her old position.

The problem is that she doesn't go back to her position and would i need to add a lock and faceplayer to the script for my player to look at her. Also for the script to activate I need to walk out of the script and then back into it for it to work. Would I need to do a level script in this situation for it activate once I go downstairs?

Heres my script

Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x82F
if 0x1 goto @dont
applymovement 0x1 @move
waitmovement 0x0
msgbox @hi 0x6
setflag 0x82F
applymovement 0x1 @do
setvar 0x4000 0x1
release
end

#org @dont
clearflag 0x82F
release
end

#org @move
#raw 0x62
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x4A
#raw 0xfe

#org @hi
= Hey hunny. Here are your \n Running shoes.

#org @do
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x2
#raw 0xfe
__________________
Pokemon Cosmic: A New Threat

For God so loved the world, that he gave his only begotten Son, that who ever believe in him should not perish, but have everlasting life. - John 3:16

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.[/sig-reason]
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old June 27th, 2014 (7:59 AM).
Mana's Avatar
Mana Mana is offline
 
Join Date: Jan 2009
Location: UK
Age: 31
Gender: Male
Posts: 10,075
Yes to level script.

You need another wait movement at the end.

Why not just include a facing motion in your movement?
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old June 27th, 2014 (8:17 AM).
CosmicBlazer's Avatar
CosmicBlazer CosmicBlazer is offline
Batman
 
Join Date: Jan 2013
Location: USA
Gender: Male
Posts: 190
Quote:
Originally Posted by Magic View Post
Yes to level script.

You need another wait movement at the end.

Why not just include a facing motion in your movement?
The mom has the face player motion but I'm talking about the player. So to clarify, I use level scripts when entering maps (like going downstairs or up, going to a new town or entering a gatehouse/ leaving, etc).
__________________
Pokemon Cosmic: A New Threat

For God so loved the world, that he gave his only begotten Son, that who ever believe in him should not perish, but have everlasting life. - John 3:16

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.[/sig-reason]
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old June 27th, 2014 (8:21 AM).
Mana's Avatar
Mana Mana is offline
 
Join Date: Jan 2009
Location: UK
Age: 31
Gender: Male
Posts: 10,075
Yeah you've got the right idea about level scripts :).

To move the player you can use applymovement 0xFF @string or you can use the spriteface command.
__________________
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old June 27th, 2014 (8:30 AM).
CosmicBlazer's Avatar
CosmicBlazer CosmicBlazer is offline
Batman
 
Join Date: Jan 2013
Location: USA
Gender: Male
Posts: 190
Quote:
Originally Posted by Magic View Post
Yeah you've got the right idea about level scripts :).

To move the player you can use applymovement 0xFF @string or you can use the spriteface command.
Alright thank you very much Magic ^_^
__________________
Pokemon Cosmic: A New Threat

For God so loved the world, that he gave his only begotten Son, that who ever believe in him should not perish, but have everlasting life. - John 3:16

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.[/sig-reason]
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old June 28th, 2014 (1:37 AM).
WildMellon WildMellon is offline
 
Join Date: Jun 2014
Gender: Male
Posts: 2
Hey, this is my first time making a hack rom and I've run into a couple issues with scripting
To start I went through littleroot and removed all events when i remastered the town but when i loaded up the rom on my emulator it went through the basic intor of setting the clock
Normally this wouldn't bother me but it keeps walking me into a wall and then my character gets stuck
Secondly I have used XSE and PKSVUI to build my scripts, but whenever I load them into AdvancedMap and then check to make sure they were imbedded the character has a blank script
This has been driving me crazy and I would would really appreciate some help.
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old June 28th, 2014 (12:27 PM).
CosmicBlazer's Avatar
CosmicBlazer CosmicBlazer is offline
Batman
 
Join Date: Jan 2013
Location: USA
Gender: Male
Posts: 190
Quote:
Originally Posted by WildMellon View Post
Hey, this is my first time making a hack rom and I've run into a couple issues with scripting
To start I went through littleroot and removed all events when i remastered the town but when i loaded up the rom on my emulator it went through the basic intor of setting the clock
Normally this wouldn't bother me but it keeps walking me into a wall and then my character gets stuck
Secondly I have used XSE and PKSVUI to build my scripts, but whenever I load them into AdvancedMap and then check to make sure they were imbedded the character has a blank script
This has been driving me crazy and I would would really appreciate some help.
I can't help you with that because i'm still learning the basics of scripting but make your topic about this issue not someone's thread.
__________________
Pokemon Cosmic: A New Threat

For God so loved the world, that he gave his only begotten Son, that who ever believe in him should not perish, but have everlasting life. - John 3:16

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.[/sig-reason]
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old June 28th, 2014 (4:24 PM).
machomuu's Avatar
machomuu machomuu is offline
Stuck in Hot Girl Summer
 
Join Date: Apr 2008
Location: Take a left, turn right at the next stop, bear left for a few mil
Gender: Female
Nature: Relaxed
Posts: 10,505
Quote:
Originally Posted by WildMellon View Post
Secondly I have used XSE and PKSVUI to build my scripts, but whenever I load them into AdvancedMap and then check to make sure they were imbedded the character has a blank script
Gonna agree with CB, be sure to make your own thread and not post these questions in threads made by other people.

But this specific thing is happening because you haven't chosen your script editor with Advance Map. It should either be in File or Options in A-Map (one of the top tabs). In one of the tabs there should be an option that says "Choose Script Editor" or something to that effect. Click it and then choose the editor that you're using.
Reply With Quote
  #9   Link to this post, but load the entire thread.  
Old July 1st, 2014 (2:30 AM).
saikhu's Avatar
saikhu saikhu is offline
 
Join Date: Feb 2014
Gender: Male
Posts: 3
i added another sprite and event in pokemon fire red using advance map, now i wanna add text using advance text editor but its asking me for the offset, but when i see the sprite in advancemap the offset is 000000000, how do i change the offset so that i can add text's?
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:09 AM.