• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Forum moderator applications are now open! Click here for details.
  • Welcome to PokéCommunity! Register now and join one of the best places on the 'net to talk Pokémon and more! Community members will not see the bottom screen advertisements.
  • Want to share your adventures playing Pokémon?
    Check out our new Travel Journals forum for sharing playthroughs of ROM Hacks, Fan Games, and other Pokémon content!
  • IMPORTANT: Following a takedown request, the following hacks have been delisted from PokéCommunity:

    • Pokémon Glazed
    • Pokémon: Giratina Strikes Back
    • Pokémon Flora Sky
    • Pokémon Stranded
    The downloads and discussion threads for these hacks will no longer be accessible, and staff will be unable to return questions regarding accessing this content.

Script Help Thread (DO NOT REQUEST SCRIPTS)

Status
Not open for further replies.
162
Posts
15
Years
Level Script. After Warren walks up to me and gives me pokemon nothing happens. He's supposed to walk away but stays there.

Spoiler:
 
Last edited:

tImE

It's still me, 44tim44 ;)
673
Posts
17
Years
Level Script. After Warren walks up to me and gives me pokemon nothing happens. He's supposed to walk away but stays there.

Spoiler:


Fixed is BOLD.

I hope it work's now ;)
 

wingzro17

......................... .....
46
Posts
16
Years
[SOLVED]

I have a script that works perfectly, exept @M8 doesn't work.
Why doesn't it work? xP

Spoiler:
 
Last edited:

пзо

zzirRusty
223
Posts
15
Years
  • Age 28
  • Seen Jun 2, 2010
I have a script that works perfectly, exept @M8 doesn't work.
Why doesn't it work? xP

Spoiler:


If you hadn't stolen the script from a tutorial somewhere Then you would be fully aware to
Update XSE and Know that it doesn't Use Boxset.

Fixes are in bold.


Don't know why M8 don't work, Because there's nothing wrong with it.
Try it on a clean ROM.

 
Last edited:

wingzro17

......................... .....
46
Posts
16
Years
If you hadn't stolen the script from a tutorial somewhere Then you would be fully aware to
Update XSE and Know that it doesn't Use Boxset.

Fixes are in bold.


Don't know why M8 don't work, Because there's nothing wrong with it.
Try it on a clean ROM.


Thnks. I will. (I knew boxset 6 isn't used anymore. I just didn't edit it.)
 

TB Pro

Old-timer
2,708
Posts
19
Years
@Wingzro17 - The reason @M8 dosen't work is because you have too many movements for that offset. 10 is the max, I believe.
 
162
Posts
15
Years
If 10 was max then M4 wouldn't work. He only said M8

EDIT: Now I need helps. The player is locked after walking onto the tile and the script doesn't do anything. Works fine if the flag is set though...

Edit again: I am a retard. Got it
 
Last edited:

TB Pro

Old-timer
2,708
Posts
19
Years
Game: FireRed
Type: Fanfare
Editor: XSE
Script:
Spoiler:

I just want to know if this is the correct usage of the fanfare command. Thanks.
 

Andryandrew

Italian Asm Hacker
117
Posts
16
Years
  • Age 30
  • Seen Jul 4, 2015
Game: Fire red
Type: Trigger
Editor: XSE
Script:
Spoiler:

the problem is, the second camera movement moves the person id 004, and the after battle parts won't work.
(I realize I'm in over my head xD)
the parts after the battle doesn't work because after a battle the script finish. you have to add a pointer in the battle command with the pointer of the continuation:
#dynamic 0x7266B8

#org @start
checkflag 0x1007
if 0x1 goto @done
lockall
special 0x113
applymovement 0x7F @move
waitmovement 0x0
special 0x114
releaseall
msgbox @text
boxset 0x6
applymovement 0x4 @move2
waitmovement 0x0
lockall
special 0x113
applymovement 0x7F @move3
waitmovement 0x0
special 0x114
releaseall
msgbox @text2
boxset 0x6
applymovement 0xFF @move4
waitmovement 0x0
givepokemon 0x17E 0x5 0x8B 0x0 0x0 0x0
msgbox @text3
boxset 0x6
applymovement 0xFF @move10
waitmovement 0x0
applymovement 0x4 @move5
waitmovement 0x0
trainerbattle 0x0 0x188 0x0 @before @after @start2

#org @start2
msgbox @beaten
boxset 0x6
applymovement 0x5 @move6
applymovement 0x3 @move7
waitmovement 0x0
applymovement 0x4 @move9
waitmovement 0x0
msgbox @beaten2
boxset 0x6
applymovement 0x4 @move8
waitmovement 0x0
msgbox @texty
boxset 0x6
setflag 0x1007
end

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

#org @text
= \c\h01\h08Boy: What are you doing with the\nprofessor's pokemon!?\p????: None of your business, kid!

#org @move2
#raw 0x62 0x02

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

#org @text2
= \c\h01\h08Boy: Hey you!\nTake the pokemon from my bag and help\l me out!

#org @move4
#raw 0x13 0x13 0x10 0x13 0x10 0x13 0x13 0xFE

#org @text3
= You got an \c\h01\h05Aron!

#org @move10
#raw 0x11 0x13 0x13 0xFE

#org @move5
#raw 0x03 0xFE

#org @before
= Let's do this!

#org @after
= Let's get out of here!

#org @beaten
= We failed....

#org @move6
#raw 0x13 0x13 0x13 0x13 0x13 0x11 0x11 0xFE

#org @move7
#raw 0x13 0x13 0x13 0x13 0x11 0x11 0x11 0xFE

#org @move9
#raw 0x00 0xFE

#org @beaten2
= \c\h01\h08Boy: Thanks for helping me,\nmy name is \c\h01\h06Damion.\c\h01\h08\lKeep the pokemon you found in the\lbag,\lits grown accustomed to you,\lI'll be following those two crooks,\lhelp if you would like.

#org @move8
#raw 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x11 0x11 0xFE

#org @texty
= \c\h01\h02\v\h01\: Maybe I will.....

#org @done
release
end

I don't know why the second move camera script doesn't work... It seems correct
 

Hiche..

 
979
Posts
15
Years
  • Seen Dec 27, 2014
Game: FireRed
Type: Fanfare
Editor: XSE
Script:
Spoiler:
I just want to know if this is the correct usage of the fanfare command. Thanks.

Yes, I believe this how you use it.
 

iTeruri

iAm
277
Posts
17
Years
Game: Fire Red
Type: Map Script (the one you set in a-map) guess it's called level script here
Editor: XSE
Script:
Spoiler:


What this should do is: after a certain event move the 4 person's blocking the road to certain spots on the map. However: the sprites won't move.
If I add setflag after the movesprite and enter the flag number in a map (like you do with hidesprite), the sprites dissapears.

What should I do to make the sprite move?
 

Andryandrew

Italian Asm Hacker
117
Posts
16
Years
  • Age 30
  • Seen Jul 4, 2015
Game: Fire Red
Type: Map Script (the one you set in a-map) guess it's called level script here
Editor: XSE
Script:
Spoiler:


What this should do is: after a certain event move the 4 person's blocking the road to certain spots on the map. However: the sprites won't move.
If I add setflag after the movesprite and enter the flag number in a map (like you do with hidesprite), the sprites dissapears.

What should I do to make the sprite move?
I'm not sure but for my experience i notice that applymovement and movesprite won't work if the people are in a range of two tiles over the screen
 

Megiddo-san

Barium - Summer '12 Return?
1,308
Posts
16
Years
[SOLVED]
Game:
FireRed
Type: Person Check
Editor: XSE
Script: This person is supposed to check for a meditite, but it won't go there when I have one.
Spoiler:

 
Last edited:

Hiche..

 
979
Posts
15
Years
  • Seen Dec 27, 2014
megiddo, Meditate is not 0x14C, it's 0x164. So, it would be:

setvar 0x8004 0x164
special2 0x800D 0x17C
 

MarineMechX2

From Chouta Town - 0 Badge(s)
2
Posts
15
Years
  • Seen Jan 27, 2009
Gangway, Noob coming through!

Alright, I'm gonna ask this question; I've dug through as many pages as I could but couldn't find the answer, so here goes:

I'm using Pokemon Emerald, so I know it's possible...
Has anyone found out how to make a partnered battle? Where you've got a teamate who uses his three and you use you're three. (Ex. Player&Steven vs. Team Magma @ Mossdeep City)

I know that the certain types of battles are Wild, Trainer/Rebattle and Gym/Rebattle... but based on what I've seen, it might be a 'Special' event... and anyone help out?

Here's the code right before, during and after the battle...
Spoiler:


...anyone got any ideas?
 

Andryandrew

Italian Asm Hacker
117
Posts
16
Years
  • Age 30
  • Seen Jul 4, 2015
Gangway, Noob coming through!

Alright, I'm gonna ask this question; I've dug through as many pages as I could but couldn't find the answer, so here goes:

I'm using Pokemon Emerald, so I know it's possible...
Has anyone found out how to make a partnered battle? Where you've got a teamate who uses his three and you use you're three. (Ex. Player&Steven vs. Team Magma @ Mossdeep City)

I know that the certain types of battles are Wild, Trainer/Rebattle and Gym/Rebattle... but based on what I've seen, it might be a 'Special' event... and anyone help out?

Here's the code right before, during and after the battle...
Spoiler:


...anyone got any ideas?
due to the battle is a special event, it isn't reproducible...
 

пзо

zzirRusty
223
Posts
15
Years
  • Age 28
  • Seen Jun 2, 2010
Help.

I hate this place. I always come here!
Anyways.. This video is of a glitch, that occurs after a LEVEL script occurs.
Any Ideas?

Keep Watching the Left of the video, The border seems to follow you..

Video:
http://uk.youtube.com/watch?v=l_S5KB_TcuA

Edit heres the Level Script that Causes this.

#dynamic 0x800000

#org @begin
Checkflag 0x200
if 0x1 goto @end
lockall
special 0x113
applymovement 0x7F @movecamera1
waitmovement 0x0
special 0x114
msgbox @wheresplayer 0x2
playsong 0x13B 0x0
special 0x113
applymovement 0x01 @thereyouare
applymovement 0x7F @movecamera2
waitmovement 0x01
special 0x114
applymovement 0xFF @theresrival
waitmovement 0x0
msgbox @hello 0x02
applymovement 0x01 @gone
waitmovement 0x0
fadesong 0x12C
hidesprite 0x01
setvar 0x7000 0x1
setflag 0x200
Releaseall
goto @end

#org @movecamera1
#raw 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x20 0xFE

#org @wheresplayer
= [Black_fr][rival]: I think thats about right..\n5 Pokéballs.. 1 Poké--

#org @thereyouare
#raw 0x65 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x02 0xFE

#org @movecamera2
#raw 0x1F 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE

#org @theresrival
#raw 0x62 0x03 0xFE

#org @hello
= [Black_fr][rival]: Hey [player]!\nToday, is the day I go on my\lQuest, To become a awesome\n[blue_fr]Pokémon Trainer.\l[black_fr]Im also taking my pet Pokémon,\n[red_fr]CHARMANDER.\l[green_fr][player]: I wish I had a Pokemon..\p[black_fr][rival]: I'd bet! Its like the coolest\nthing ever! Well I'd better go now.\lSeeya!

#org @gone
#raw 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0xFE

#org @end
end
 
Last edited:

~Teh Panda~

Back in hacktion
918
Posts
16
Years
  • Seen Jul 20, 2022
Everything in my script works fine but the warp. The parameters are correct but it warps me to the POkemon Center. Why does it do the wrong map?

Code:
'---------------
#org 0x7B0000
lock
faceplayer
checkflag 0x829
if 0x0 goto 0x87B0025
msgbox 0x87B0056 MSG_NORMAL '"Your room apparently is not\nready..."
applymovement MOVE_PLAYER 0x87B00C7
warp 0x3 0x51 0x00 0x3 0x9
release
end

'---------------
#org 0x7B0025
msgbox 0x87B0030 MSG_NORMAL '"Talk to the lady at the desk\nfirs..."
release
end


'---------
' Strings
'---------
#org 0x7B0056
= Your room apparently is not\nready. While your waiting you can\lteleport to the training rooms.\lYou want to. Ok.

#org 0x7B0030
= Talk to the lady at the desk\nfirst.
 

TB Pro

Old-timer
2,708
Posts
19
Years
Game: FireRed
Type: Headbutt Tree(Signpost)
Editor: XSE
Script:
Spoiler:

Problem: The script works perfectly, but when you say no, it displays @mayhar, and just that. It treats you as if you don't have the Iron Helmet.
 

Andryandrew

Italian Asm Hacker
117
Posts
16
Years
  • Age 30
  • Seen Jul 4, 2015
Everything in my script works fine but the warp. The parameters are correct but it warps me to the POkemon Center. Why does it do the wrong map?

Code:
'---------------
#org 0x7B0000
lock
faceplayer
checkflag 0x829
if 0x0 goto 0x87B0025
msgbox 0x87B0056 MSG_NORMAL '"Your room apparently is not\nready..."
applymovement MOVE_PLAYER 0x87B00C7
warp 0x3 0x51 0x00 0x3 0x9
release
end

'---------------
#org 0x7B0025
msgbox 0x87B0030 MSG_NORMAL '"Talk to the lady at the desk\nfirs..."
release
end


'---------
' Strings
'---------
#org 0x7B0056
= Your room apparently is not\nready. While your waiting you can\lteleport to the training rooms.\lYou want to. Ok.

#org 0x7B0030
= Talk to the lady at the desk\nfirst.
what's map 3.81? Remember that 0x51 means 81 in decimal...
 
Status
Not open for further replies.
Back
Top