• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Script Help Thread (DO NOT REQUEST SCRIPTS)

Status
Not open for further replies.
Okay my script is done and it works perfectly except that once the event is over I can't move my character, help?

'---------------
#org 0x800B2A
checkflag 0x200
if 0x1 goto 0x8800A12
playsong 0x110 0x33
msgbox 0x8800B88 MSG_NORMAL '"BRENDAN: Wait!"
applymovement MOVE_PLAYER 0x80131B
waitmovement 0x0
showsprite 0x3
applymovement 0x3 0x81A75DB
waitmovement 0x0
pause 0x70
msgbox 0x8800B99 MSG_NORMAL '"BRENDAN: What do you think you're ..."
applymovement 0x3 0x871C3D0
applymovement MOVE_PLAYER 0x8801307
waitmovement 0x0
pause 0x50
msgbox 0x8800C6D MSG_NORMAL '"BRENDAN: The lab is straight ahead..."
applymovement 0x3 0x8800909
waitstate
setflag 0x200
releaseall
end
 
Hmm, after reading foullump's post, I agree with him, a random would work... but it would make the tides go in and out at random, not like on a schedule, like in Ruby/Sapphire/Emerald...


If you would want to use a clock, you would need to use R/S/E...

But before you do any of this, you may want to start with the basics.
Go to the toolbox section of the site, and download HackMew's XSE tool.
(Found in the thread called HackMew's Toolbox.)
Get that, open it up, and read the guide that comes with it.
It is an extensive guide on many of the things you need to know to become an intermediate scripter.
It might seem boring at first, reading from begining to end, but trust me, knowing all of the terms, and the way the tools are used, really helps out in the end.

I mean, it would be much better to learn how to script for yourself, and be able to think, "Wow, I just made this all on my own, I feel proud of myself."
Wouldn't that be nice? ^_^
And I don't suggest using PokeScript.


Okay, thanbks for the advice. I have made a few scripts myself, but I was using PokeScript. Personally, I find it easier to understand, but I'll try using XSE. Thanks for the advice. I had already downloaded XSE, just not used it much, I'll go read that guide now. (:
 
Okay, thanbks for the advice. I have made a few scripts myself, but I was using PokeScript. Personally, I find it easier to understand, but I'll try using XSE. Thanks for the advice. I had already downloaded XSE, just not used it much, I'll go read that guide now. (:

Good, and in reality, there are not many differences between PokeScript, and XSE, except XSE has MORE commands, and some commands are either spelled differently now, or have new functions, or both!

Trust me on this, reading that guide will help you a lot on learning XSE. Once you ahve that down, try learning more stuff from the tutorials around the forums in the Documents and Tutorials section. With that scripting knowledge you get from the guide, learning more stuff will get easier!
 
After reading this comment I managed to make Prof. OAK give me the National Dex ASAP.
Decompile the prof. script and see where it gives you the Pokédex. Then all you have to do is to make a new script and add the proper commands to enabled the National Dex.
Now I didn't understand why you needed to make a new script when you could just add the Special 0x16F flag in where the old one was. After [re]compiling the script everything worked fine except for one thing, the textbox look wonky (See Signature, though I had to repost because it wasn't showing up before =/). I was wondering how can one fix this?

I'm also wondering about the fact that if I have to make a new script to do the same thing, would this script work.

Spoiler:
 
Well when I had the same problem I just recompiled the script to a different offset.

What's the script for this, MSG_KEEPOPEN? Like what i the 0x thing, 0x???, 0x4,
 
Last edited:
I just finished an attempt at a level script and it isn't working quite right. It plays through the first half, warps me to the map, then the script ends, it never goes through the second part of the script that is supposed to be the level script.

On top of the second part not working, the special 0x136 is not working either, it should shake the screen with an earthquake, but it doesn't

First part of the script. Set on a tile in A-map. Unknown 003 Var Number 4050

Spoiler:

Second Part of the script. Used this tut to add it to the Map script
https://www.pokecommunity.com/posts/4414826/

Spoiler:

Third script. Decompiled and compiled using this tutorial
https://www.pokecommunity.com/posts/4414826/

Spoiler:
 
Well when I had the same problem I just recompiled the script to a different offset.
Hm....I'll try that.

What's the script for this, MSG_KEEPOPEN? Like what i the 0x thing, 0x???, 0x4,
That was from the original Prof. Oak script, specifically the part where's he give you the Pokedex. I believed a comment somewhat that mention taking that part out and compiling it into a new script (with adjustment, etc..).
 
Spoiler:
 
Last edited:
Ok, this is my first script, but it doesn't do anything when I step on the script tile. Made in XSE

Spoiler:


It's meant to make Darkrai move off the bottom of the screen then talk, then warp to your house (dream)

EDIT: Ok, I've inserted it again, and now it freezes...
 
Last edited:
I NEED HELP! :(
It should work this way: When you pick yes, you'll get you Pokemon and the text will go off. When you talk to the guy who gave you the pokes, he will say........................................................go away....... but instead when i pick yes, this happens:


#dynamic 0x800000
#org @main
lock
faceplayer
msgbox @textdata 0x5
compare LASTRESULT 0x1
if 0x1 goto @Yes 0x3
msgbox @No 0x2
end
#org @Yes
msgbox @Yes2 0x2
checkflag 0x1019
if 0x3 call @nomore
givepokemon 94 8 0 0 0 0
setflag 0x1019
end
#org @textdata
= I hate this Pokemon.\nDo you want it?
#org @No
= I knew you wouldn't want it...
#org @Yes2
= Thanks for taking it...
#org @nomore
msgbox @msg 0x4
end
#org @msg
= ............\n...............\n.....................\n...go away...

obviously it's a ruby hack
 
I just finished an attempt at a level script and it isn't working quite right. It plays through the first half, warps me to the map, then the script ends, it never goes through the second part of the script that is supposed to be the level script.

On top of the second part not working, the special 0x136 is not working either, it should shake the screen with an earthquake, but it doesn't

First part of the script. Set on a tile in A-map. Unknown 003 Var Number 4050

Spoiler:

Second Part of the script. Used this tut to add it to the Map script
https://www.pokecommunity.com/posts/4414826/

Spoiler:

Third script. Decompiled and compiled using this tutorial
https://www.pokecommunity.com/posts/4414826/

Spoiler:


*tsks*
*fixes*
Level scripts don't need flags.
 
Hey im just wondering if you can fix this hackmew. It doesn't activate when I want it to and it freezes when it does activate. Anywho here it is.
Spoiler:
 
Is there something wrong with my script?
Code:
#org $begin
$begin; warp 0x33x2x0
end
 
Well, I'm a little new at scripting...But anyway, can anyone help me with my script? The text doesn't work....
Game: FireRed
Script program: XSE
Script:
Code:
#dynamic 0x800032

#org @start
checkflag 0x828
if 0x1 call @Given
msgbox @need 0x2
fanfare 0x172
givepokemon 0x25 0x5 0x0 0x0 0x0 0x0
waitfanfare
setflag 0x828
end

#org @Given
msgbox @how 0x2
end

#org @need
= Hello! Welcome to the /nPOKéMON WATER CENTER! /pWe give away WATER /pPOKéMON's to TRAINERS /nwho need to SURF over to /pother towns! /pHere you go, It's a /nTotodile!

#org @how
= Hello [PLAYER]!
 
sorry, but I can't find any error.
Try the debug option of xse.
And did you compile the script in the game allredy?
 
sorry, but I can't find any error.
Try the debug option of xse.
And did you compile the script in the game allredy?
I mean the text is kinda weird in the game...It says something like: We /ngive 4R#Hello! Welcome !w /p
 
It could be that your overwriting a other script
then i think you have to use FSF to find a new free space.
And then compile it again.
 
Waaaaah my first script doesn't work!
Game: FireRed
Script program: XSE
Script:
#dynamic 0x26D37C

#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @no1 0x6
applymovement 0x04 @move
waitmovement 0x0
applymovement 0xFF @move2
pause 0x30
msgbox @no2 0x6
applymovement 0x04 @move3
applymovement 0xFF @move3
waitmovement 0x0
release
end

#org @done
release
end

#org @move
#raw 0x62
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @move2
#raw 0x02
#raw 0xFE

#org @move3
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0xFE
#org @no1

= Hey! Wait!
#org @no2

= There are wild POKeMON ahead!\pThey could hurt you\nif you don't have your own.
It just freezes on the spot.

EDIT: Nvm, I fixed it.
 
Last edited:
If at all possible, can you help me? Im having trouble getting sprites to dissappear permanently. i talk to the person i have scripted, and they dissapear, but the second i walk away, it reappears. any help? heres my code for the person event, btw, im using XSE, which is a great platform ;)


'---------------
#org 0x8001BC
msgbox 0x880024C MSG_FACE '"Oh, Hello, I'm May.\lI just moved ..."
hidesprite LASTTALKED
end


'---------
' Strings
'---------
#org 0x80024C
= Oh, Hello, I'm May.\lI just moved here from\pa remote region. What's your\lname? [player]: My name is [player].\pYou look familiar. How long\lhave you lived here in\pAldenian? May: About a month,\pwe just got settled in.

Oh, im using FireRed as a base, sorry bout that, i aint slept in 33 hours
 
Last edited:
Status
Not open for further replies.
Back
Top