mervyn797
What? I'm right here. >D
- 1,695
- Posts
- 16
- Years
- Seen Nov 28, 2011
Hmm..it still didnt work it just froze
Are you script settings in Advance Map correct? Try setting Unkown to 0003 like, this:
![[PokeCommunity.com] Script Help Thread (DO NOT REQUEST SCRIPTS) [PokeCommunity.com] Script Help Thread (DO NOT REQUEST SCRIPTS)](https://img268.imageshack.us/img268/5329/scri.png)
Hmm..it still didnt work it just froze
Do you mean the commands for the "move-camera" thing?Using Brock's script, where would i place camera movements? i understand what to use for it (thanks to your tut) but not where to place them. What I'm looking for is to enter the gym, as soon as I enter, the camera moves up to center on the gymleader (10 tiles up), who does their usual talking in the begining, battles, and the finishes with giving the badge and TM, then recenters the camera on the player, at which time you can then leave the gym. I'm also wanting this to happen only BEFORE you beat the leader.
I'm still learning scripting and understand this may be out of my current abilities, I'm not asking for a script, just an explanation as to how i would go about doing this.
I'm going to take a guess and say no. This is just hypothetical, but if there was such a command on XSE, it should be in here. I'm not saying it's not impossible, though. But, it wouldn't happen to be in a raw command on XSE.One small thing, my question, is there a command in XSE to open up multiple picture boxes at once (like showpokepic but opening up more than one)?
Normal script, i think. I'm not for sure how to explain it. here's what i have set up/would like to do.Do you mean the commands for the "move-camera" thing?
If no, then I think you mean a level script; something that activates as soon as you enter the map.
If not a level script, then a normal script? If so, then you'd probably place the move camera after all of your locks and preparation (checkflags and whatnot). In the game, it would appear first since it doesn't visually show you it is checking the flags. id I get it? :3
One small thing, my question, is there a command in XSE to open up multiple picture boxes at once (like showpokepic but opening up more than one)?
What command does the Elite Four use to repeat a battle?
"It's like an encyclopedia, but the pages are blank"
#dynamic 0x71AB00
#org @start
lock
faceplayer
Message @speak1 0x6
checkflag 0x1200
if 0x1 goto @gotPKMN
release
end
#org @gotPKMN
Message @speak2 0x6
applymovement 0x3 @move
Message @speak4 0x6
applymovement 0x3 @move2
faceplayer
setflag 0x1211
release
end
#org @speak1
= COMEBACKLATER
#org @speak2
= DONEEVENTMSG
#org @speak4
= PICK A STONE!
#org @move
#raw 0x13
#raw 0x13
#raw 0x0
#org @move2
#raw 0x12
#raw 0x12
Well, first of all, your script doesn't seem messy at all.First off, Hi there PokéCommunity! First post here!
I recently(days) started scripting and I have encountered a problem.
Just to confirm things, I have tried search button, but the phrases I was searching for did not find me what I wanted. Call me lazy, but I did not want to go through 200 pages looking for something that might help me.
I figured this would be more efficient.
Anyway, for the problem:
In my script(s) I have designed Oak to say something(@speak1) and send you away unless you have completed an event(flag 0x1200). After that he will talk for some time, then move abit and release you. Basics.
The first event script works fine. However, when I try to talk to Oak, he keeps saying:
My script:Code:"It's like an encyclopedia, but the pages are blank"
(NOTE: the messages are ofc "placeholders" that will eb replaced with proper dialogue later. I do this for the purpose of testing my script before adding text)Code:#dynamic 0x71AB00 #org @start lock faceplayer Message @speak1 0x6 checkflag 0x1200 if 0x1 goto @gotPKMN release end #org @gotPKMN Message @speak2 0x6 applymovement 0x3 @move Message @speak4 0x6 applymovement 0x3 @move2 faceplayer setflag 0x1211 release end #org @speak1 = COMEBACKLATER #org @speak2 = DONEEVENTMSG #org @speak4 = PICK A STONE! #org @move #raw 0x13 #raw 0x13 #raw 0x0 #org @move2 #raw 0x12 #raw 0x12
My script might also look very "messy" so if you have any tips for me I would appreciate them as well ;)
In A-map, you need to do this:Hey! Can i just say when I use a script box, I write the script, I do everything right.(vars & stuff) But when i step on the box it's as if it wasnt even there?!
thanks.
Scripting is an integral part of rom hacking. A script is just like a set of instructions for the game to perform certain functions. For example,Um... Forgive me if this is a completely "n00bish" question, but...
I'm new to ROM hacking, and, to be honest, I have little to no idea what a script is, or what it does. Help, please...?
'---------------
#org 0x16582F
msgbox 0x817D80D MSG_FACE '"Technology is incredible!\pYou can..."
end
#org 0x17D80D
= Technology is incredible!\pYou can now store and recall items\nand POKéMON as data via PC.
In A-map, you need to do this:
Thanks But it still doesn't work.. is there anything else i can do?
#dynamic 0x800000
#org @start
lock
checkflag 0x5
if 0x1 goto @done
msgbox @buggy 0x4
setflag 0x5
release
end
#org @done
release
end
#org @buggy
= Hi!\pI won't work as expected!
Is there a way i can erase the content connected to an offset and use it for something else? Like so that the offset will show up in FSF later on?
when i tried to edit the pallet town sign scripts, they started pushing everything around. the end of Oak's lab sign ended up on the players house and overwrote it. so i decided to just write new ones, with new offsets, but I want to be able to use those offsets later on, it just seems like a waste to have them filled and not used.
I'm not going to tell you what it is, that would defeat the purpose of learning it for yourself now wouldn't it?
But I WILL tell you how to find the information you are looking for.
If you're using XSE, then luckily, there are 2 commands in XSE that, depending on the one you use, can erase the main portion of a script, and leave behind text, movements, etc etc, OR erase the ENTIRE script at the offset you give it.
These 2 commands are located in the Comprehensive XSE Guide, that comes with XSE.
Open XSE, and press F2.
The open the "What makes a Script" section, and select "Preprocessing Directives"
In this section is a list of every command you can give XSE, that isn't a command that is used in the ROM, like #dynamic, or #define.
Have fun!
I'm taking that this is it?
#erase
Overwrites a certain amount of bytes with the free space-byte value set, starting from the specified offset.
Usage:
#erase lOffset aValue
Example:
#erase 0x720000 0x64
0x64 (100) bytes from offset 0x720000 got overwritten with free space.
one quick thing, since this says 0x64 (100) bytes... How do i determine how many bytes a script takes? i understand that the number is in hexadecimal, and i can convert from decimal to hexadecimal (thanks to XSE's converter calculater thing) but i don't know where to find the number to convert to erace the proper amount.