• 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 Trading Card Game 2 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.

[Archive] Script help thread

Status
Not open for further replies.
Is bufferitem 0x<item number>, same as checkitem?
Also, the CMD_3E or something like that. I tried it in a script, and it acted like a pause command.
Is that it?

bufferitem puts the item name into a buffer and its actually bufferitem [buffer] [itemNumber]. checkitem checks if the player has a specific amount of an item.

Err, you used a random command without knowing what it does? CMD_3E is known anyway its a type of warp. You must have remembered the number incorrectly.
 
I was going to edit my post.
I only tested it though.
Thanks for the info.

Edit: I have a question. How do I change the text in Multi scripts? Like I was to change one island to Contest 1 for example.
 
Last edited:
what is the error in this script for XSE?
'-----------------------
#org 0x945621
lock
faceplayer
trainerbattle 0x0 0x1D 0x0 0x894563F 0x894564A
msgbox 0x8945655 '"Ciao"
callstd 0x6
setflag 0x1204
release
end


'---------
' Strings
'---------
#org 0x94563F
= Perderai!

#org 0x94564A
= Ho perso!

#org 0x945655
= Ciao

when script is active the people thet should fight with me do'speak but block the game

sorry for my orrible english
 
#dynamic 0x800000

#org @suicune
special 0x187
compare LASTRESULT 0x2
if 0x1 goto @s2
special 0x188
lock
faceplayer
startwildbattle 0xF5 0x32 0x0
checksound
cry 0xF5 0x2
msgbox2 @s7 '"GRRRR!"
waitmsgbox
waitcry
pause 0xA
playsong 0x156 0x0
waitkeypress
setflag 0x807
special 0x138
waitstate
clearflag 0x807
special2 LASTRESULT 0xB4
compare LASTRESULT 0x1
if 0x1 goto @s3
compare LASTRESULT 0x4
if 0x1 goto @s5
compare LASTRESULT 0x5
if 0x1 goto @s5
setflag 0x2BE
release
end

#org @s2
release
end

#org @s3
setflag 0x2BE
goto @s6
end

#org @s5
setvar 0x8004 0xF5
goto @s4
end

#org @s6
fadescreen 0x1
hidesprite LASTTALKED
fadescreen 0x0
release
end

#org @s4
fadescreen 0x1
hidesprite 0x807
fadescreen 0x0
msgbox @s8 '"The Suicune ran away!"
callstd 0x6
release
end

#org @s7
= GRRRR!

#org @s8
= The Suicune ran away!

This script works fine until I catch it and Suicune stays so I can battle it again and again. It only goes away when I run away from it. Please fix it and tell me what ID to give it in Advance Map. Thanks in advance!
 
Use special 0x0, for example:

fadescreen 0x1
special 0x0
fadescreen 0x0

Wait, is this for XSE or poke script (I use both) I'm sorry but if it's not too much to ask, can you put it in script form :nervous:?

(yeah, did you guys know you don't have to make XSE the default script editor on A-Map to make the script work?)
 
Last edited:
Wait, is this for XSE or poke script (I use both) I'm sorry but if it's not too much to ask, can you put it in script form :nervous:?

(yeah, did you guys know you don't have to make XSE the default script editor on A-Map to make the script work?)

This is an example:

Spoiler:

This is for XSE.
 
what is the error in this script for XSE?
'-----------------------
#org 0x945621
lock
faceplayer
trainerbattle 0x0 0x1D 0x0 0x894563F 0x894564A
msgbox 0x8945655 '"Ciao"
callstd 0x6
setflag 0x1204
release
end


'---------
' Strings
'---------
#org 0x94563F
= Perderai!

#org 0x94564A
= Ho perso!

#org 0x945655
= Ciao

when script is active the people thet should fight with me do'speak but block the game

sorry for my orrible english
__________________
 
what is the error in this script for XSE?
'-----------------------
#org 0x945621
lock
faceplayer
trainerbattle 0x0 0x1D 0x0 0x894563F 0x894564A
msgbox 0x8945655 '"Ciao"
callstd 0x6
setflag 0x1204
release
end


'---------
' Strings
'---------
#org 0x94563F
= Perderai!

#org 0x94564A
= Ho perso!

#org 0x945655
= Ciao

when script is active the people thet should fight with me do'speak but block the game

sorry for my orrible english
__________________

The release, lock, faceplayer and setflag 0x1204 are not necessary.
In advance map, did you tick the trainer box? and did you modify the View radius(or range)?
If not, then the script won't work.
 
#dynamic 0x800000

#org @s4
fadescreen 0x1
hidesprite 0x807
fadescreen 0x0
bufferpokemon 0x0 0x8004
msgbox @s8 '"The Suicune ran away!"
callstd 0x6
release
end

This script works fine until I catch it and Suicune stays so I can battle it again and again. It only goes away when I run away from it. Please fix it and tell me what ID to give it in Advance Map. Thanks in advance!

Try this don't know what it does but no harm trying

If you mean person ID by ID try anything above 99 (its not the minimun) i haven't tried anything lower b4.
 
Last edited:
thank you now go perfectly!

if i would substitude jinjle comand i must use fanfare for XSE?
 
Last edited:
thank you now go perfectly!

if i would substitute jingle command i must use fanfare for XSE?

Yes,
fanfare 0x<small jingle sound>
waitfanfare

The small jingle sound can be 0x13E or 0x100....
fanfare 0x13E, is used to play the music when you receive a Pokemon.
fanfare 0x100, is used to play the healing music.
 
what is command script for XSE substitute jingle command in poketscrpit?
 
Status
Not open for further replies.
Back
Top