The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Emulation & ROM Hacking
Register New Account FAQ/Rules Chat 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
Thread Tools
  #3726  
Unread April 29th, 2010, 07:58 PM
NarutoActor's Avatar
NarutoActor
The rocks cry out to me
 
Join Date: Jan 2009
Location: Brooklyn/Marlboro
Age: 19
Gender: Female
Nature: Bashful
Send a message via AIM to NarutoActor Send a message via Windows Live Messenger to NarutoActor
Depends on what your buffering, you can always copy bytes and store them in temporary vars then use copy var and copy the data to a different var.
__________________
~Paired to Full Metal
Reply With Quote
  #3727  
Unread April 29th, 2010, 08:06 PM
locoroco's Avatar
locoroco
Ginga Densetsu Weed ANIME PWNS
 
Join Date: Oct 2009
Location: Manati, Puerto rico
Age: 17
Gender: Male
Nature: Relaxed
Send a message via Windows Live Messenger to locoroco
how would i go to make a script that allows me to collect 8 badges in 4 different regions and register does badges per region?
also how to make it so it recognizes that iv'e collected 32 badges for pokemon fire red
__________________
Warning icon
This signature has been disabled.
Signature needs to be kept to a 600px x 400px area. Your long line of text pushes it over the limit. Put a few enters there and you will be able to get it inside the limits.
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
  #3728  
Unread April 29th, 2010, 08:51 PM
Binary's Avatar
Binary
え?
 
Join Date: Aug 2007
Age: 18
@locoroco: You don't actually script that. In fact, I think it's not possible for 4 regions in a hack. You could give and check the badges using 'setflag' and 'checkflag'.
__________________
Reply With Quote
  #3729  
Unread April 30th, 2010, 01:45 AM
shiny quagsire's Avatar
shiny quagsire
I'm pixular!
 
Join Date: May 2009
Location: In a House, duh!
Age: 15
Gender: Male
Nature: Jolly
Is there any way to display a variable in a message box without a buffer? I've tried to combine buffers, but it doesn't work.
__________________



Reply With Quote
  #3730  
Unread April 30th, 2010, 02:09 AM
NarutoActor's Avatar
NarutoActor
The rocks cry out to me
 
Join Date: Jan 2009
Location: Brooklyn/Marlboro
Age: 19
Gender: Female
Nature: Bashful
Send a message via AIM to NarutoActor Send a message via Windows Live Messenger to NarutoActor
buffer string. so place your variables in the order of 8000-800A and buffer that string of data. Hope that helped.
__________________
~Paired to Full Metal
Reply With Quote
  #3731  
Unread April 30th, 2010, 12:13 PM
Collen
I have returned.
 
Join Date: Jul 2009
Ok... I need help with a trainer.
When I talk to him from the side it works...
But if I go in front of him, he walks up to me and the screen turns red and freezes.

I checked "Trainer", wrote veiw radius "0003" made Unknown "0003", everythioing, but it still freezes!
Also, after I beat him he sees me again and it freezes.

Here is my script:
Spoiler:
'---------------
#org 0x805B57
textcolor 0x0
trainerbattle 0x0 0x1E 0x0 0x8805B72 0x8805BAF
msgbox 0x8805BC2 MSG_NORMAL '"I still need to train, though!"
release
end


'---------
' Strings
'---------
#org 0x805B72
= I study at Smogen University!\nMy Pokémon are really smart!

#org 0x805BAF
= Nooo! Not again!

#org 0x805BC2
= I still need to train, though!
__________________

Reply With Quote
  #3732  
Unread April 30th, 2010, 01:37 PM
locoroco's Avatar
locoroco
Ginga Densetsu Weed ANIME PWNS
 
Join Date: Oct 2009
Location: Manati, Puerto rico
Age: 17
Gender: Male
Nature: Relaxed
Send a message via Windows Live Messenger to locoroco
well i think your problem is the unknown value set it back to 0000 and the text color thing dont use it i pretty much copied/pasted your script the only difference is that i dint put the unknown value and the text color try it and tell me oh and it work flawlessly
__________________
Warning icon
This signature has been disabled.
Signature needs to be kept to a 600px x 400px area. Your long line of text pushes it over the limit. Put a few enters there and you will be able to get it inside the limits.
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
  #3733  
Unread April 30th, 2010, 04:06 PM
Nikolai Fox's Avatar
Nikolai Fox
Smoochum
 
Join Date: Mar 2010
Gender: Male
I think my head is going to explode! I've been trying to get this ONE script to work for hours now. Little help please?

First here is the script:

-----------------------------
'---------------
#org 0x8001FD
lock
faceplayer
msgbox 0x880021E MSG_KEEPOPEN '"My name is Red. Let's battle[.]"
trainerbattle 0x3 0x1 0x0 0x880023E
fadescreen 0x1
fadescreen 0x0
hidesprite LASTTALKED
setflag 0x2000
release
end


'---------
' Strings
'---------
#org 0x80021E
= My name is Red. Let's battle[.]

#org 0x80023E
= [.]

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


Now the problem:

What I want to happen is: Battle the trainer, trainer disappears, jobs a good 'un.
Here's what happens: Battle the trainer, trainer disappears, leave area, come back and he's there again.

Also, sometimes he doesn't even show up first time. Sometimes I can enter where he is (viridian forest) and he's not there (on a new game), then I can leave and come back and he's there. Strange...

Person event number 12 and Person ID 2000, if that helps...

Last edited by Nikolai Fox; April 30th, 2010 at 04:08 PM. Reason: Missed out info.
Reply With Quote
  #3734  
Unread April 30th, 2010, 05:39 PM
locoroco's Avatar
locoroco
Ginga Densetsu Weed ANIME PWNS
 
Join Date: Oct 2009
Location: Manati, Puerto rico
Age: 17
Gender: Male
Nature: Relaxed
Send a message via Windows Live Messenger to locoroco
i think you forgot checkflag
checkflag 0x2000
if 0x1 goto @battled or watever pointer u wanna use
And in @battled or watever you just do this
#org @????
release
end

and find something to clear the sprite not hide it and that should help you a bit also that person id 2000 is kind of freaky but i dont know im not a expert scripter butttt i hope i helped a bit
__________________
Warning icon
This signature has been disabled.
Signature needs to be kept to a 600px x 400px area. Your long line of text pushes it over the limit. Put a few enters there and you will be able to get it inside the limits.
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
  #3735  
Unread April 30th, 2010, 05:57 PM
AlexAhnon's Avatar
AlexAhnon
Lurking around.
 
Join Date: Feb 2008
Location: Norway
Age: 16
Gender: Male
Nature: Brave
Quote:
Originally Posted by Nikolai Fox View Post
I think my head is going to explode! I've been trying to get this ONE script to work for hours now. Little help please?
Spoiler:

First here is the script:

-----------------------------
'---------------
#org 0x8001FD
lock
faceplayer
msgbox 0x880021E MSG_KEEPOPEN '"My name is Red. Let's battle[.]"
trainerbattle 0x3 0x1 0x0 0x880023E
fadescreen 0x1
fadescreen 0x0
hidesprite LASTTALKED
setflag 0x2000
release
end


'---------
' Strings
'---------
#org 0x80021E
= My name is Red. Let's battle[.]

#org 0x80023E
= [.]

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


Now the problem:

What I want to happen is: Battle the trainer, trainer disappears, jobs a good 'un.
Here's what happens: Battle the trainer, trainer disappears, leave area, come back and he's there again.

Also, sometimes he doesn't even show up first time. Sometimes I can enter where he is (viridian forest) and he's not there (on a new game), then I can leave and come back and he's there. Strange...

Person event number 12 and Person ID 2000, if that helps...
You need to add this after faceplayer or at the start of the script
Code:
checkflag 0x2000
if 0x1 goto @end
Then add this somewhere in the script
Code:
#org @end
release
end
Then it won't repeat itself.

And if you want the trainer to disappear in the fadescreen, you gotta have the hidesprite LASTTALKED between the fadescreen scripts.
__________________
You must be very jelly of this awesome signature of mine.
Reply With Quote
  #3736  
Unread April 30th, 2010, 06:15 PM
Nikolai Fox's Avatar
Nikolai Fox
Smoochum
 
Join Date: Mar 2010
Gender: Male
Thanks Alex. It worked perfectly but...Then I left the area, came back, he's still gone. Did the same about 5 more times and he just randomly re-appeared again?

'---------------
#org 0x8001E1
lock
faceplayer
checkflag 0x2000
if 0x1 goto 0x880020B
msgbox 0x880021E MSG_KEEPOPEN '"My name is Red. Battle me[.]"
trainerbattle 0x3 0x1 0x0 0x880023E
fadescreen 0x1
hidesprite LASTTALKED
fadescreen 0x0
setflag 0x2000
release
end

'---------------
#org 0x80020B
release
end


'---------
' Strings
'---------
#org 0x80021E
= My name is Red. Battle me[.]

#org 0x80023E
= [.]


There's the updated script. I've also attached a picture of how the person script is set up in A-Map.
Attached Images
File Type: png A-Map.png‎ (183.1 KB, 6 views)
Reply With Quote
  #3737  
Unread April 30th, 2010, 06:47 PM
Collen
I have returned.
 
Join Date: Jul 2009
Quote:
Originally Posted by locoroco View Post
well i think your problem is the unknown value set it back to 0000 and the text color thing dont use it i pretty much copied/pasted your script the only difference is that i dint put the unknown value and the text color try it and tell me oh and it work flawlessly
Yeah, that worked.
Thanks!

@Nikolai Fox
After you talked to him, did you talk to anyone else?
You might have cleared the flag.
__________________

Reply With Quote
  #3738  
Unread April 30th, 2010, 06:56 PM
Nikolai Fox's Avatar
Nikolai Fox
Smoochum
 
Join Date: Mar 2010
Gender: Male
I hadn't, and when I tried it does the exact same thing. It's just behaving really strangely, and the same happens when I try to make the script from scratch again. Here's what happens in detail:

I get to the end of Viridian Forest and there's like a 50% he will be there. If I leave and come back in, he will either still be there or have vanished. If I leave then return same again. So sometimes he's there sometimes he's not. I don't get it

Edit: I'm uploading a youtube video of it now, it's going to take about an hour though, I have terrible up speed :/

Last edited by Nikolai Fox; April 30th, 2010 at 07:02 PM.
Reply With Quote
  #3739  
Unread April 30th, 2010, 07:22 PM
Binary's Avatar
Binary
え?
 
Join Date: Aug 2007
Age: 18
@Nikolai Fox: Did you set the 'person ID' correctly?
__________________
Reply With Quote
  #3740  
Unread April 30th, 2010, 07:25 PM
Nikolai Fox's Avatar
Nikolai Fox
Smoochum
 
Join Date: Mar 2010
Gender: Male
Edit: This problem has been solved. Thanks SwiftSign

Last edited by Nikolai Fox; April 30th, 2010 at 07:46 PM.
Reply With Quote
  #3741  
Unread April 30th, 2010, 07:39 PM
SwiftSign's Avatar
SwiftSign
Scary Fire Demon
 
Join Date: Jan 2009
Location: England
Age: 21
Gender: Male
Nature: Rash
Quote:
Originally Posted by Nikolai Fox View Post
I have no idea Binary. I have it set how it is in that picture I attached, I just named the person ID the same as the setflag. I got the event ID right I know that much :/

flag 0x2000 may be too high, change it to the 1000 region.
__________________
Reply With Quote
  #3742  
Unread April 30th, 2010, 08:00 PM
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL
Im comin' home...
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 20
Gender: Male
Nature: Gentle
Quote:
Originally Posted by SwiftSign View Post
flag 0x2000 may be too high, change it to the 1000 region.
Good clean flags range from 0x1000 to 0x3FFF, so I don't see why 0x2000 would be too high.
__________________
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
Reply With Quote
  #3743  
Unread April 30th, 2010, 08:15 PM
Nikolai Fox's Avatar
Nikolai Fox
Smoochum
 
Join Date: Mar 2010
Gender: Male
I'm not sure Omega, but changing it from 2000 to 1000 worked a treat
Reply With Quote
  #3744  
Unread April 30th, 2010, 10:57 PM
Ninja Caterpie's Avatar
Ninja Caterpie
Sonic Rainboom!
 
Join Date: Mar 2008
Location: The Sky, Equestria
Age: 17
Gender: Male
Nature: Bold
You don't need the checkflag stuff, either. It's a waste of space, seeing as after you set the flag to 1000, he's gone forever and you're not talking to him again.
__________________
Brony represent.
Reply With Quote
  #3745  
Unread May 1st, 2010, 06:33 PM
Nikolai Fox's Avatar
Nikolai Fox
Smoochum
 
Join Date: Mar 2010
Gender: Male
Quick question: How do you make it so a sprite starts off hidden, and becomes un-hidden when a script is activated? (A perfect example being Gary on S.S. Anne, I've looked at that script thoroughly and can't seem to find it :/)

Thanks.
Reply With Quote
  #3746  
Unread May 1st, 2010, 07:12 PM
NarutoActor's Avatar
NarutoActor
The rocks cry out to me
 
Join Date: Jan 2009
Location: Brooklyn/Marlboro
Age: 19
Gender: Female
Nature: Bashful
Send a message via AIM to NarutoActor Send a message via Windows Live Messenger to NarutoActor
set the sprite behavior to hidden. then in the beginning of the script applymovement @person @move

@move
#raw 0x61(show)
__________________
~Paired to Full Metal
Reply With Quote
  #3747  
Unread May 1st, 2010, 07:39 PM
Nikolai Fox's Avatar
Nikolai Fox
Smoochum
 
Join Date: Mar 2010
Gender: Male
Sorted :D please ignore this message.

Last edited by Nikolai Fox; May 1st, 2010 at 09:24 PM.
Reply With Quote
  #3748  
Unread May 2nd, 2010, 08:14 AM
dr4g0n12's Avatar
dr4g0n12
Δράκος
 
Join Date: May 2009
Location: The past
Age: 17
Gender: Male
Nature: Adamant
What is the special number for a move camera script in r\s?
__________________

DON’T LET THE SPIRIT OF ROCK DIE!!


Friend code: 0732 2275 5722

Pokemon Online Username: dr4g0n12
Reply With Quote
  #3749  
Unread May 2nd, 2010, 10:27 AM
Binary's Avatar
Binary
え?
 
Join Date: Aug 2007
Age: 18
Quote:
Originally Posted by dr4g0n12 View Post
What is the special number for a move camera script in r\s?
A move-camera script would look something like this.
Spoiler:

.
.
lockall
special 0x113
applymovement MOVE_CAMERA @mc2
waitmovement 0x0
special 0x114
releaseall
.
.
.

It's a portion of my script..
'lockall' locks all the OWs in the map. After 'lockall' you need special 0x113.
A special 0x114 after the movements, then 'releaseall'. Pretty simple, eh?
__________________
Reply With Quote
  #3750  
Unread May 2nd, 2010, 09:45 PM
Nikolai Fox's Avatar
Nikolai Fox
Smoochum
 
Join Date: Mar 2010
Gender: Male
Game: Fire Red(US)

Okay I'm back..now with a movement script problem. Here is my script:

Spoiler:
'---------------
#org 0x16069F
lock
checkflag 0x64
if 0x1 goto 0x81607FD
msgbox 0x816081D MSG_NORMAL '"[blue_fr]Dad: Hey, where are you g..."
applymovement 0xFF 0x816081B
release
end

'---------------
#org 0x1607FD
release
end


'---------
' Strings
'---------
#org 0x16081D
= [blue_fr]Dad: Hey, where are you going? I\ntold you I need to speak to you.


'-----------
' Movements
'-----------
#org 0x16081B
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements


I want the message box to show up when the player steps on a tile, then move up one. The message box shows up but the player doesn't move :/
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

Forum Jump


All times are UTC. The time now is 10:55 AM.


Style by Perdition Haze, artwork by Sa-Dui.
Like our Facebook Page Follow us on TwitterMessage Board Statistics | © 2002 - 2013 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2013 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 posts belong to the user.