• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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.
Alright, so after the third hidesprite command, the fourth doesn't work. The person event number is 10, so A in hex. I've used the exact same command, yet I fail to see what is wrong... I set the Person ID to 1003, just like the flag in the script.

Thanks in advance for any help.

Spoiler:
 
@Metroid Die
Have you tried just making it hidesprite 0x10? Sometimes XSE confuses me with its peculiarities.

I mean, I don't know if it'll work, it's just something I'd try.
 
@gl3500:
Spoiler:

Give it a try.

@Metroid Die:
Remove all the other setflags except for the 0x828 flag. Set the person ID to 0828 of every OW you want to hide.
 
Code:
#dynamic 0x2167D1

#org @start
checkflag 0x1001
if 0x1 goto @done
applymovement 0x05 @move
waitmovement 0x0
applymovement 0x06 @move0
waitmovement 0x0
msgbox @1 0x6
applymovement 0x05 @move1
waitmovement 0x0
msgbox @2 0x6
applymovement 0x05 @move2
waitmovement 0x0
applymovement 0x06 @move3
waitmovement 0x0
applymovement 0xFF @move4
waitmovement 0x0
msgbox @3 0x6
setflag 0x1001
release
end

#org @done
release
end

#org @1
= [red_rs]CHIMECHO: Oh look, a BUNEARY!\p[black_rs]\v\h01: Wh-what? My name is\n\v\h01!\p[red_rs]CHIMECHO: Oh, really? You look\nlike a normal BUNEARY to me.\p[blue_rs]PINECO: Sorry if we're bothering\nyou, \v\h01. CHIMECHO is always\lhyper.

#org @2
= [red_rs]CHIMECHO: I know! How about you\nbecome in an EXPLORATION TEAM with\lus?\p[black_rs]\v\h01: An EXPLORATION TEAM?\p[blue_rs]PINECO: An EXPLORATION TEAM is\nwhen POKEMON form a team where\lthey go on missions.\p[black_rs]\v\h01: Well... Um...\p[red_rs]CHIMECHO: Great! Let's go to the\nMarket!

#org @3
= [red_rs]CHANSEY: Why hello there\nguys!\pCHIMECHO: Can you call the GUILD\nMASTER to see if we can go to him\lfor a team recruitment?\pCHANSEY: No problem!\p[black_rs]BEEP-BEEP!\p[red_rs]CHANSEY: Hello? Ah yes, a team\nwill be coming to you today.\pYes, yes, alright.\p[black_rs]BEEP-BEEP!\p[red_rs]CHANSEY: You guys may now go.\pCHIMECHO: Thanks!

#org @move
#raw 0x56
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x07
#raw 0x07
#raw 0x00
#raw 0xFE

#org @move0
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0xFE

#org @move1
#raw 0x56
#raw 0xFE

#org @move2
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0xFE

#org @move3
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0xFE

#org @move4
#raw 0x56
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0x05
#raw 0xFE

None of the movement scripts work besides the player's... <.<
 
Urgently needing help on two things:

- Activating the Pokemon submenu in the menu. I have got my head around givepokemon, now I need to sort this out.

- How to get into a battle with a wild pokemon via activating a person based event with a pokemon sprite.


Thanks in advance.
 
Urgently needing help on two things:

- Activating the Pokemon submenu in the menu. I have got my head around givepokemon, now I need to sort this out.

- How to get into a battle with a wild pokemon via activating a person based event with a pokemon sprite.


Thanks in advance.

Use XSE and:

1. Put setflag 0x828 in your script (or 0x800 if you're using ruby)

2. Use the command wildbattle 0x(pokemon # in hex) 0x(level in hex) 0x(item in hex)
 
I am having a little trouble with a map script it works fine i game but at the end it brings up a message box saying "This is a test message. This is a signpost." and keeps repeating that message box. The settings in a-map are: Script type: 02 Validaes values, loads handler to 0x3000EB0.... Script offset: $6CDE6E Script offset 2: $DF840D Flag:7000 Value: 0000. I need help please and thank you

Here is the script it is in XSE:
'---------------
#org 0xDF840D
lock
setvar 0x7000 0x1
setflag 0x1500
hidesprite 0x6
checkflag 0x860
if 0x1 goto 0x8DF85F3
applymovement MOVE_PLAYER 0x8DF85EA
waitmovement 0x0
msgbox 0x8E5E50C MSG_NORMAL '"Prof. Elm: [player]! There you are..."
release
end

'---------------
#org 0xDF85F3
release
end


'---------
' Strings
'---------
#org 0xE5E50C
= Prof. Elm: [player]! There you are!\pI needed to ask you a favour.\pI have an acquaintance called Mr.\nPokémon.\pHe keeps on finding weird things and\nraving about his discoveries.\pAnyway, I just got an e-mail from him\nsaying that this time it's real.\pIt is intriguing, but we're busy with our\nPokémon research.\pCould you look into it for us?\pI'll give you a Pokémon for a partner.\pThey're all rare Pokémon that we just\nfound.\pGo on. Pick one!


'-----------
' Movements
'-----------
#org 0xDF85EA
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0xFE 'End of Movements
 
Last edited:
Thanx

@gl3500:
Spoiler:

Give it a try.

@Metroid Die:
Remove all the other setflags except for the 0x828 flag. Set the person ID to 0828 of every OW you want to hide.

Thanx 4 the help, ill give it a try and see what happens. :-)

Thanx the PC script does work, i still have a problem with this script though, any ideas?
Spoiler:


What i want to happen is have the sprite go through the door, have a slight delay, then the message "...." pops up and can only be closed with a. So far, i have tried the one above which i know will not bring up the "...." but thats not what i want, i want wat i sed above and i am not sure how to get this. Also, i only want the event to happen once.Any help appreciated. Thanx :-)
 
Last edited:
I want to know whether the Battle of Fire Red with music that can replace from Smaragt (without Sappy)?
 
Game: sapphire
Type:
Editor:
Script: xse

when i press yes it goes to no. ive been looking for an up-to-date xse tutorial but i cant find any that explain boxset 0x5 well
Spoiler:

Screenshots and/or Videos:
 
Alright, so after the third hidesprite command, the fourth doesn't work. The person event number is 10, so A in hex. I've used the exact same command, yet I fail to see what is wrong... I set the Person ID to 1003, just like the flag in the script.

Thanks in advance for any help.

Spoiler:

Check to make sure no other sprites on you map have an event # of 10 - if so, change them to a different #. Try troubleshooting by changing the person event # to a lower #, or swapping event #'s with a less significant sprite. Try deleting and reinserting the sprite. Try a different person ID, like 1004 and see if that works.
 
Fixed it :) thanks guys.

Now I have more of a question than a problem. How do I activate the national Pokedex at the beginning of the game? I'm using a FireRed ROM. Is there a certain flag to use, or do I have to call a script etc...?

Thanks for the help so far
 
Game: sapphire
Type:
Editor:
Script: xse

when i press yes it goes to no. ive been looking for an up-to-date xse tutorial but i cant find any that explain boxset 0x5 well
Spoiler:

Screenshots and/or Videos:


Dude, the guide that comes with XSE explains that so well. >.<
Anyways, then:

Turn this line:

compare LASTRESULT 0x0

to:

compare LASTRESULT 0x1.
 
Game: FireRed US
Editor: XSE
Version: 1.1.1

I'm trying to make the player say something after moving to a certain spot, but nothing happens and the game freezes.
Script:
Spoiler:


Please help, I have been full of frustration because of this script.
 
@trae329:
Are you using a script tile or an OW for the script?

Sorry, I went to sleep at that time.

I am using a script tile, this is exactly what I want it to do:

The player walks out of his bed and looks up down left and right.
Then he says, "That was a weird dream..."

Do I have to edit something on the tile?
 
Sorry, I went to sleep at that time.

I am using a script tile, this is exactly what I want it to do:

The player walks out of his bed and looks up down left and right.
Then he says, "That was a weird dream..."

Do I have to edit something on the tile?

You need to set a variable to the script tile, like 5000, where it says "var number" and put setvar 0x5000 0x1 at the end of your script so it will only happen once.
 
Status
Not open for further replies.
Back
Top