The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Script Help Thread (DO NOT REQUEST SCRIPTS) (https://www.pokecommunity.com/showthread.php?t=163576)

Andryandrew January 17th, 2009 6:12 AM

Quote:

Originally Posted by MarineMechX2 (Post 4287289)
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:
'-----------------------
....
#org 0x223FDA
applymovement LASTTALKED 0x827259E
waitmovement 0x0
msgbox 0x82247FF '"STEVEN: [player]\v\h05!\nYou're goi..."
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x822400C
msgbox 0x8224854 '"STEVEN: Then, hurry!\nGet ready qui..."
callstd 0x4
closeonkeypress
applymovement LASTTALKED 0x82725AA
waitmovement 0x0
releaseall
end
'-----------------------

Jumping to 22400C******

'-----------------------
#org 0x22400C
applymovement LASTTALKED 0x82725AA
waitmovement 0x0
special 0x28
fadescreen 0x1
special 0x2A
waitstate
compare LASTRESULT 0x0
if 0x5 goto 0x8224032
special 0x29
goto 0x8223FDA
special 0xFB
setvar 0x8004 0x2
setvar 0x8005 0x4
special 0xEA
setvar 0x8004 0x8
setvar 0x8005 0x0
special 0xEF
waitstate
setvar 0x8004 0x6
special 0xEA
special 0x29
copyvar 0x8000 LASTRESULT
compare 0x8000 0x1
if 0x1 goto 0x8224071
fadescreen 0x1
special 0xCB
waitstate
msgbox 0x82248C2 '"MAXIE: We failed to make the volcan..."
....
'-----------------------

Jumping to 224032******

'-----------------------
#org 0x224032
special 0xFB
setvar 0x8004 0x2
setvar 0x8005 0x4
special 0xEA
setvar 0x8004 0x8
setvar 0x8005 0x0
special 0xEF
waitstate
setvar 0x8004 0x6
special 0xEA
special 0x29
copyvar 0x8000 LASTRESULT
compare 0x8000 0x1
if 0x1 goto 0x8224071
fadescreen 0x1
special 0xCB
waitstate
msgbox 0x82248C2 '"MAXIE: We failed to make the volcan..."
....
'-----------------------


...anyone got any ideas?

due to the battle is a special event, it isn't reproducible...

пзо January 17th, 2009 3:16 PM

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

~Teh Panda~ January 17th, 2009 4:32 PM

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 January 17th, 2009 6:49 PM

Game: FireRed
Type: Headbutt Tree(Signpost)
Editor: XSE
Script:
Spoiler:
#dynamic 0x800000

#ORG @begin
lock
signmsg
message @mayhar 0x6
normalmsg
checkitem 280 1
if 0x1 goto @continue
release
end

#ORG @mayhar
= This tree looks like it could\nharbor a Pokémon.

#ORG @continue
signmsg
message @wouldyou 0x5
compare 0x800D 0x1
if 0x1 goto @continue2
message @nnope 0x6
normalmsg
release
end

#ORG @continue2
signmsg
message @puton 0x6
normalmsg
applymovement 0xFF @runfor
waitmovement 0
sound 13
random 19
compare 0x800D 0x0
if 0x1 goto @none
compare 0x800D 0x1
if 0x1 goto @caterpie
compare 0x800D 0x2
if 0x1 goto @weedle
compare 0x800D 0x3
if 0x1 goto @none
compare 0x800D 0x4
if 0x1 goto @aipom
compare 0x800D 0x5
if 0x1 goto @cascoon
compare 0x800D 0x6
if 0x1 goto @none
compare 0x800D 0x7
if 0x1 goto @slakoth
compare 0x800D 0x8
if 0x1 goto @ledyba
compare 0x800D 0x9
if 0x1 goto @metapod
compare 0x800D 0xA
if 0x1 goto @none
compare 0x800D 0xB
if 0x1 goto @wurmple
compare 0x800D 0xC
if 0x1 goto @kakuna
compare 0x800D 0xD
if 0x1 goto @caterpie
compare 0x800D 0xE
if 0x1 goto @silcoon
compare 0x800D 0xF
if 0x1 goto @spinarak
compare 0x800D 0x10
if 0x1 goto @weedle
compare 0x800D 0x11
if 0x1 goto @wurmple
compare 0x800D 0x12
if 0x1 goto @pineco
release
end

#ORG @wouldyou
= Would you like to headbutt it?

#ORG @nnope
= \v\h01 did not headbutt the tree.

#ORG @puton
= \v\h01 put the Iron Helmet on.

#ORG @runfor
#raw 0x4F 0x4E 0x2E 0xFE

#ORG @none
signmsg
message @nothing 0x6
normalmsg
release
end

#ORG @caterpie
wildbattle 10 5 0
release
end

#ORG @weedle
wildbattle 13 5 0
release
end

#ORG @aipom
wildbattle 190 5 0
release
end

#ORG @cascoon
wildbattle 293 5 0
release
end

#ORG @slakoth
wildbattle 364 5 0
release
end

#ORG @ledyba
wildbattle 165 5 0
release
end

#ORG @metapod
wildbattle 11 5 0
release
end

#ORG @wurmple
wildbattle 290 5 0
release
end

#ORG @kakuna
wildbattle 14 5 0
release
end

#ORG @silcoon
wildbattle 291 5 0
release
end

#ORG @spinarak
wildbattle 167 5 0
release
end

#ORG @pineco
wildbattle 204 5 0
release
end

#ORG @nothing
= There was nothing there.

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 January 18th, 2009 2:55 AM

Quote:

Originally Posted by TehTehTehTeh (Post 4288924)
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...

пзо January 18th, 2009 6:46 AM

I have this Script.
 
I have this Script. And it stuffs up at the last Move camera.
It don't go all the way back to the Player.
Its kinda Weird. This is a Level Script.

Compiled.
Spoiler:
'---------------
#org 0x71ABB4
#raw 0x2
#raw pointer 0x871ABBA
#raw 0x0

'---------------
#org 0x71ABBA
#raw word 0x8000
#raw word 0x0
#raw pointer 0x8800F41
#raw word 0x0

'---------------
#org 0x800F41
checkflag 0x200
if 0x1 goto 0x8801072
lockall
special 0x113
applymovement MOVE_CAMERA 0x8800FA5
waitmovement 0x0
special 0x114
msgbox 0x8800FB0 MSG_FACE '"[black_fr]???: Stupid Pokémon. Why..."
playsong 0x153 0x0
special 0x113
applymovement 0x1 0x8801003
applymovement MOVE_CAMERA 0x8801014
waitmovement 0x1
special 0x114
applymovement MOVE_PLAYER 0x880101F
waitmovement 0x0
msgbox 0x8801022 MSG_FACE '"[green_fr][player]:What was that a..."
fadesong 0x12C
hidesprite 0x1
setvar 0x8000 0x1
setflag 0x200
releaseall
goto 0x8801072

'---------------
#org 0x801072
end


'---------
' Strings
'---------
#org 0x800FB0
= [black_fr]???: Stupid Pokémon. Why can't you\njust win for a change.\lGet out of my face!

#org 0x801022
= [green_fr][player]:What was that all about. Huh?!\nThat Pokémon is hurt! I have to\lhelp it.


'-----------
' Movements
'-----------
#org 0x800FA5
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x20 'Step Right (Fast)
#raw 0xFE 'End of Movements

#org 0x801003
#raw 0x65 'Double Exclamation Mark (!!)
#raw 0x1 'Face Up
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0xFE 'End of Movements

#org 0x801014
#raw 0x1F 'Step Left (Fast)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x80101F
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements


Non-compiled.
Spoiler:
#dynamic 0x800000

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

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

#org @wheresplayer
= [Black_fr]???: Stupid Pokémon. Why can't you just\nwin for a change. Get out of my\lface!

#org @thereyouare
#raw 0x65 0x01 0x1D 0x1D 0x1D 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1D 0x1D 0x1D 0x1D 0xFE

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

#org @theresrival
#raw 0x62 0xFE

#org @hello
= [green_fr][player]:What was that all about. Huh?!\nThat Pokémon is hurt! I have to\lhelp it.

#org @end
end


Please Help.

Andryandrew January 18th, 2009 6:51 AM

Quote:

Originally Posted by пзо (Post 4290631)
I have this Script. And it stuffs up at the last Move camera.
It don't go all the way back to the Player.
Its kinda Weird. This is a Level Script.

Compiled.
Spoiler:
'---------------
#org 0x71ABB4
#raw 0x2
#raw pointer 0x871ABBA
#raw 0x0

'---------------
#org 0x71ABBA
#raw word 0x8000
#raw word 0x0
#raw pointer 0x8800F41
#raw word 0x0

'---------------
#org 0x800F41
checkflag 0x200
if 0x1 goto 0x8801072
lockall
special 0x113
applymovement MOVE_CAMERA 0x8800FA5
waitmovement 0x0
special 0x114
msgbox 0x8800FB0 MSG_FACE '"[black_fr]???: Stupid Pokémon. Why..."
playsong 0x153 0x0
special 0x113
applymovement 0x1 0x8801003
applymovement MOVE_CAMERA 0x8801014
waitmovement 0x1
special 0x114
applymovement MOVE_PLAYER 0x880101F
waitmovement 0x0
msgbox 0x8801022 MSG_FACE '"[green_fr][player]:What was that a..."
fadesong 0x12C
hidesprite 0x1
setvar 0x8000 0x1
setflag 0x200
releaseall
goto 0x8801072

'---------------
#org 0x801072
end


'---------
' Strings
'---------
#org 0x800FB0
= [black_fr]???: Stupid Pokémon. Why can't you\njust win for a change.\lGet out of my face!

#org 0x801022
= [green_fr][player]:What was that all about. Huh?!\nThat Pokémon is hurt! I have to\lhelp it.


'-----------
' Movements
'-----------
#org 0x800FA5
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x20 'Step Right (Fast)
#raw 0xFE 'End of Movements

#org 0x801003
#raw 0x65 'Double Exclamation Mark (!!)
#raw 0x1 'Face Up
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0xFE 'End of Movements

#org 0x801014
#raw 0x1F 'Step Left (Fast)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x80101F
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements


Non-compiled.
Spoiler:
#dynamic 0x800000

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

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

#org @wheresplayer
= [Black_fr]???: Stupid Pokémon. Why can't you just\nwin for a change. Get out of my\lface!

#org @thereyouare
#raw 0x65 0x01 0x1D 0x1D 0x1D 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1D 0x1D 0x1D 0x1D 0xFE

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

#org @theresrival
#raw 0x62 0xFE

#org @hello
= [green_fr][player]:What was that all about. Huh?!\nThat Pokémon is hurt! I have to\lhelp it.

#org @end
end


Please Help.

the scrips seems correct, but i made some modify... maybe it run:
Spoiler:
#dynamic 0x800000

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

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

#org @wheresplayer
= [Black_fr]???: Stupid Pokémon. Why can't you just\nwin for a change. Get out of my\lface!

#org @thereyouare
#raw 0x65 0x01 0x1D 0x1D 0x1D 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1D 0x1D 0x1D 0x1D 0xFE

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

#org @theresrival
#raw 0x62 0xFE

#org @hello
= [green_fr][player]:What was that all about. Huh?!\nThat Pokémon is hurt! I have to\lhelp it.

#org @end
end

(i cancelled the first special 0x114 and the second special 0x113... you usually have to return at normal position before doing special 0x114)

TMASTER1 January 18th, 2009 9:08 AM

I have a slight problem with a script I've made. It's for a hack of FireRed.
Code:

#org $ begin
lock
faceplayer
message $poke
$poke 1 = \v\h01, long time, no see.\nPROF.ELM asked me to find you.\pHe has another favor to ask.
boxset 6
message $poke1
$poke1 1 = Would you take the Pokémon Egg?
boxset 5
compare LASTRESULT 1
if 1 goto $get
message $toobad
$toobad 1 = B-but... PROF.ELM asked for you...
boxset 6
release
end

#org $get
lock
message $get1
$get1 1 = \v\h01 received EGG.
boxset 6
#raw 0x7A 0xAF 0x00
message $received
$received 1 = We discovered that a POKéMON will not\nhatch until it grows in the EGG.\pIt also has to be with other active\nPOKéMON to hatch.\p\v\h01, you're the only person\nwe can rely on.\pPlease return to ELM's LAB when that\nEGG hatches!
boxset 6
applymovement 0x05 $move
pausemove 0
release
end

#org $move
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x60
#raw 0xFE


The person I've tried to make move just won't move. Everything else works in the script. He just won't move for some reason. I've even tried switching the 0x05 to 0xFF to make sure that it wasn't the fact that I had the wrong person selected but the player didn't move as well. Does anyone know what I'm doing wrong? Someone suggested that the lock might be a problem so I moved the release above the applymovement and the person moved but then when I went to give him 2 more movements (the #raw 0x10 and the #raw 0x60) he didn't do those 2, he just does the first 4 and then stops. Also the person will move back to where he originally was after I reload that map. Is there a way to make him stay disappeared?
Thanks in advance.
EDIT
I've figured out my problems, no need for help.

hot_kage January 18th, 2009 12:08 PM

in XSE, i set a flag in one script and check it in another but it's not working
here are my scripts
This is the scrip that sets the flag
Code:

dynamic 0x2DD220

#org @start
lock
faceplayer
checkflag 0x28E
if 0x1 goto @end
setflag 0x7
setflag 0x28E
msgbox @talk 0x6
setflag 0x828
givepokemon 0x85 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @eevee 0x6
msgbox @dex 0x6
fanfare 0x13E
setflag 0x829
msgbox @dex2 0x6
msgbox @balls 0x6
giveitem 0x4 0x5 0x0
msgbox @care 0x6
release
end

#org @talk
= [blue_fr]If You Want To Leave CLEARWATER\nTOWN You need a POKéMON. Here Take\lThis EEVEE. It Will Come In\lHanding On Your Journey.

#org @eevee
= [red_fr][PLAYER] Recived EEVEE!

#org @dex
= [blue_fr]To Keep Info On The POKéMON You've\nSeen and Captured, You'll Need\lThis POKéDEX Too.

#org @dex2
= [red_fr][PLAYER] Recived POKéDEX From OFFICER.

#org @balls
= [blue_fr]To Capture WILD P0KéMON, You'll\nAlso Need POKéBALLS.\l

#org @care
= [blue_fr]Take Care on Your Journey [PLAYER]!

#org @end
release
end


and clears it:
Code:

#dynamic 0x71BBE1

#org @start
lock
faceplayer
checkflag 0x7
if 0x0 goto @poke
release
end

#org @poke
= [red_fr]You Should Get A POKéMON Before\nEntering The POKéGARDEN.

#org @end
release
end


any ideas?

Ki77y666 January 18th, 2009 8:52 PM

i STILL need help bad!
i will edit this when i no longer need help
so pleaz help.

Game: Fire Red
System: XSE
Type: 1st: Script
2nd: Person event
3rd: Script

i need...

1st script:
my attempt...

'---------------
#org 0x17922E
lockall
msgbox 0x82E9217 MSG_NORMAL '"[grey_fr]Hang on a second\nI have ..."
closeonkeypress
applymovement MOVE_PLAYER 0x81E80DF
waitmovement 0x0
msgbox 0x81E8C07 MSG_NORMAL '"[grey_fr]Where was that again?"
closeonkeypress
releaseall
end


'---------
' Strings
'---------
#org 0x2E9217
= [grey_fr]Hang on a second\nI have to go see [rival].

#org 0x1E8C07
= [grey_fr]Where was that again?


'-----------
' Movements
'-----------
#org 0x1E80DF
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements

Problem:
Does do deactivate

What i want it to do: Bring up first message then move player down then bring up second message. but not do this after seeing rival.

2nd script: The rival
my attempt...

'---------------
#org 0x1C5BA1
lock
faceplayer
checkflag 0x1126
if 0x1 call 0x81792E8
checkflag 0x1127
if 0x1 call 0x81792E9
release
end

'---------------
#org 0x1792E8
msgbox 0x8E89217 0X6
end

#org 0xE89217
= Hi [player].\nWhat do you meen that\nevery thing looks different?\p...\pOh! I see well I will help\n you find out.

'---------------
#org 0x1792E9
msgbox 0xE99217 0X6
end

#org 0xE99217
= What have you found out\nso far\p...\pI see...\nI will keep an ear out\nand let you know if i hear\nany thing.

Problem: when you talk to him it freezes the game and the script dose not open

What i want it to do: The first message box opens the closes when you talk to him again the second message box opens. Then when you talk to him again the second message box opens. and so on

Help would be greatly appreciated. Thanx

3rd script:

What i want it to do: Not let me past until get a pokemon and the pokedex. By not letting me past i want i to move me back.

The Abyss January 19th, 2009 12:37 AM

For the first Script in A-Map you need the var Number 4050 or 5040 and unknown at 0003. That makes it move a sprite. I'm not sure what it is with the 2nd...I'm bad with compiled commands

Andryandrew January 19th, 2009 5:39 AM

Quote:

Originally Posted by hot_kage (Post 4291506)
in XSE, i set a flag in one script and check it in another but it's not working
here are my scripts
This is the scrip that sets the flag
Code:

dynamic 0x2DD220

#org @start
lock
faceplayer
checkflag 0x28E
if 0x1 goto @end
setflag 0x7
setflag 0x28E
msgbox @talk 0x6
setflag 0x828
givepokemon 0x85 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @eevee 0x6
msgbox @dex 0x6
fanfare 0x13E
setflag 0x829
msgbox @dex2 0x6
msgbox @balls 0x6
giveitem 0x4 0x5 0x0
msgbox @care 0x6
release
end

#org @talk
= [blue_fr]If You Want To Leave CLEARWATER\nTOWN You need a POKéMON. Here Take\lThis EEVEE. It Will Come In\lHanding On Your Journey.

#org @eevee
= [red_fr][PLAYER] Recived EEVEE!

#org @dex
= [blue_fr]To Keep Info On The POKéMON You've\nSeen and Captured, You'll Need\lThis POKéDEX Too.

#org @dex2
= [red_fr][PLAYER] Recived POKéDEX From OFFICER.

#org @balls
= [blue_fr]To Capture WILD P0KéMON, You'll\nAlso Need POKéBALLS.\l

#org @care
= [blue_fr]Take Care on Your Journey [PLAYER]!

#org @end
release
end


and clears it:
Code:

#dynamic 0x71BBE1

#org @start
lock
faceplayer
checkflag 0x7
if 0x0 goto @poke
release
end

#org @poke
= [red_fr]You Should Get A POKéMON Before\nEntering The POKéGARDEN.

#org @end
release
end


any ideas?

simply flag #0x7 is too low... those flag (under 200 and between 800 and 850) are already used from the game... qhy don't you try with setflag 0x1050 for example?

Quickster January 21st, 2009 1:24 PM

this is in fire red with xse.

#dynamic 0x8000E0

#org @start
msgbox @talk
boxset 0x2
end

#org @talk
= Wow, your Pokegear is impressive!\nDid your mom get it for you?

i try to compile but a error pops up that says too less parameters on line 4.the correct number is 2.

how do i fix that?

пзо January 21st, 2009 2:34 PM

Line four
 
@Quickster.

#dynamic 0x8000E0

#org @start
msgbox @talk 0x2
end

#org @talk
= Wow, your Pokegear is impressive!\nDid your mom get it for you?

Fixes in bold.

hot_kage January 22nd, 2009 5:21 AM

Code:

#dynamic 0x2D511B

#org @start
lock
faceplayer
checkflag 0x1050
if 0x0 goto @cont
if 0x1 goto @end
setflag 0x1050
release
end

#org @cont
msgbox @havarna 0x5
if 0x1 goto @yes
if 0x0 goto @end
applymovement 0xFF @up
waitmovement 0x0
release
end

#org @yes
msgbox @havarna2 0x6
giveitem 0x170 0x1 0x1
msgbox @pass 0x6
fanfare 0x13E
closeonkeypress
msgbox @shoes 0x6
giveitem 0x104 0x1 0x1
msgbox @bike 0x6
fanfare 0x13E
closeonkeypress
msgbox @set 0x6
special 0x13D
playsong 0x136 0x0
msgbox @737 0x6
msgbox @enjoy 0x6
playsong 0x14D 0x0
warpmuted 0x3 0x0 0x0 0x1 0x1
special 0x17B
msgbox @location 0x6
release
end

#org @havarna
= [blue_fr]Are You Planing To Go To HAVARNA\nACADEMY?

#org @up
#raw 0x01 0xFE

#org @havarna2
= If Your Going You'll Need a\nRAINBOW PASS.

#org @pass
= [red_fr][player] Recieved RAINBOW PASS.                             

#org @shoes
= You'll Also Need This BIKE.

#org @bike
= [red_fr][PLAYER] Recieved The MACH BIKE.

#org @set
= Okay Your All Set, The HAVARANA\nSHUTTLE Will Be Here Soon.

#org @737
= [blue_fr]HAVARNA SHUTTLE 737 Docked.

#org @enjoy
= Please Enjoy The Trip.

#org @location
= [lightgreen_fr]Planned Location Of Arrival:\nHAVARANA HARBOUR.

#org @end
release
end


when i go on the script tile all it does it the yes or no question then ends? and ideas?

Medo0 January 22nd, 2009 6:43 AM

Guys I Need This XSE Script To Make the wild Snorlax Shiny
Code:

'--------------------
#dynamic 0x802C7C

#org @start
lock
faceplayer
msgbox @2 0x6
msgbox @1 0x6
cry 0x6 0x0
wildbattle 0x8F 0xf 0x0
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x200
release
end
#org @2
= A Wild Snorlax Appeared
#org @1
= SNORLAX: Snooooooooooooorlax Snoor!


Could Someone help please

Pokepal17 January 22nd, 2009 7:45 AM

Quote:

Originally Posted by Medo0 (Post 4302455)
Guys I Need This XSE Script To Make the wild Snorlax Shiny
Code:

'--------------------
#dynamic 0x802C7C

#org @start
lock
faceplayer
msgbox @2 0x6
msgbox @1 0x6
cry 0x6 0x0
wildbattle 0x8F 0xf 0x0
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x200
release
end
#org @2
= A Wild Snorlax Appeared
#org @1
= SNORLAX: Snooooooooooooorlax Snoor!


Could Someone help please

You'll need Mastermind X's shiny hack tool.

Larsie13 January 22nd, 2009 8:31 AM

About the Yes/No messagebox: like this, it means, that if you chose Yes, it'll go to @yes, and if you chose No, it'll go to @end. But, there's no way to do the applymovement part below. So, I'm not quite sure what the script should do exactly...
Quote:

Originally Posted by hot_kage (Post 4302365)
Code:

#dynamic 0x2D511B

#org @start
lock
faceplayer
checkflag 0x1050
if 0x0 goto @cont
if 0x1 goto @end
setflag 0x1050
release
end

#org @cont
msgbox @havarna 0x5
compare LASTRESULT 0x1
if 0x1 goto @yes
goto @end
applymovement 0xFF @up
waitmovement 0x0
release
end

#org @yes
msgbox @havarna2 0x6
giveitem 0x170 0x1 0x1
msgbox @pass 0x6
fanfare 0x13E
waitfanfare
closeonkeypress
msgbox @shoes 0x6
giveitem 0x104 0x1 0x1
msgbox @bike 0x6
fanfare 0x13E
waitfanfare
closeonkeypress
msgbox @set 0x6
special 0x13D
playsong 0x136 0x0
msgbox @737 0x6
msgbox @enjoy 0x6
playsong 0x14D 0x0
warpmuted 0x3 0x0 0x0 0x1 0x1 'After a warp, the script ends. So put the special and msgbox in front of it.
special 0x17B
msgbox @location 0x6
release
end

#org @havarna
= [blue_fr]Are You Planing To Go To HAVARNA\nACADEMY?

#org @up
#raw 0x01 0xFE

#org @havarna2
= If Your Going You'll Need a\nRAINBOW PASS.

#org @pass
= [red_fr][player] Recieved RAINBOW PASS.                             

#org @shoes
= You'll Also Need This BIKE.

#org @bike
= [red_fr][PLAYER] Recieved The MACH BIKE.

#org @set
= Okay Your All Set, The HAVARANA\nSHUTTLE Will Be Here Soon.

#org @737
= [blue_fr]HAVARNA SHUTTLE 737 Docked.

#org @enjoy
= Please Enjoy The Trip.

#org @location
= [lightgreen_fr]Planned Location Of Arrival:\nHAVARANA HARBOUR.

#org @end
release
end


when i go on the script tile all it does it the yes or no question then ends? and ideas?


hot_kage January 22nd, 2009 12:59 PM

Quote:

Originally Posted by Larsie13 (Post 4302609)
About the Yes/No messagebox: like this, it means, that if you chose Yes, it'll go to @yes, and if you chose No, it'll go to @end. But, there's no way to do the applymovement part below. So, I'm not quite sure what the script should do exactly...

thank you very much
okay i'll find a way to add the applymovment

Medo0 January 23rd, 2009 12:03 AM

Quote:

Originally Posted by Pokepal17 (Post 4302543)
You'll need Mastermind X's shiny hack tool.

ًًًWhere to get it?
Is It An EXE?

ShakawBR January 23rd, 2009 10:00 AM

I want to make a script for a rival in fire red just like Brendan/May in ruby & sapphire, or Carlos in Shiny Gold.

if you chose a male character in the beginning of the game, Blue will appear sometimes, and she will have the starter weaker against yours (Green have the stronger one), and if you chose a female character, Red will appear then...

Is it possible??

Andryandrew January 23rd, 2009 12:22 PM

Quote:

Originally Posted by ShakawBR (Post 4304916)
I want to make a script for a rival in fire red just like Brendan/May in ruby & sapphire, or Carlos in Shiny Gold.

if you chose a male character in the beginning of the game, Blue will appear sometimes, and she will have the starter weaker against yours (Green have the stronger one), and if you chose a female character, Red will appear then...

Is it possible??

It is possible, but you have to configure tha various battles with A-Trainer and you have to put a level script in each map with Blue/Red that make them vanish/reappear... to check if you are Male or Female, use this command:
checkgender
it strores in LASTRESULT 1 if you are a Female, 0 if you are a male

hot_kage January 24th, 2009 2:55 PM

once again i have another script
(im a bad scripter xD)
Code:

#dynamic 0x26D9C0

#org @start
lock
faceplayer
msgbox @hello
boxset 0x6
msgbox @go
boxset 0x5
if 0x0 goto @go2
if 0x1 goto @end
applymovement 0x10 @move2
applymovement 0xFF @move3
applymovement 0xFF @move
waitmovement 0x0
fadescreen 0x0
warp 0x3 0x1 0x0 0x23 0x11
release
end

#org @hello
= Hello [PLAYER].\nThis [blue_fr]UNDERWATER TUNNEL[black_fr]Leads To\lThe Underwater Haven of\l[blue_fr]OCEANIA CITY.\l

#org @go
= [PLAYER], Would You Like To Vist\n[blue_fr]OCEANIA CITY[black_fr] via [blue_fr]UNDERWATER\lTUNNEL?

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

#org @move3
#raw 0x1D 0xFE

#org @go2
= Okay!\nTake This [blue_fr]DIVING GEAR[black_fr]and..\lDIVE!\l

#org @move
#raw 0x66 0x1E 0x15 0x60 0xFE

#org @end
release
end


Problem: Once It Reaches The boxset 0x5
if 0x0 goto @go2
if 0x1 goto @end
it just stops when you press yes or no
(and btw which is which; is 0x0 yes and 0x1 no?)

TB Pro January 24th, 2009 3:09 PM

Quote:

Originally Posted by iPro. (Post 4289228)
Game: FireRed
Type: Headbutt Tree(Signpost)
Editor: XSE
Script:
Spoiler:
#dynamic 0x800000

#ORG @begin
lock
signmsg
message @mayhar 0x6
normalmsg
checkitem 280 1
if 0x1 goto @continue
release
end

#ORG @mayhar
= This tree looks like it could\nharbor a Pokémon.

#ORG @continue
signmsg
message @wouldyou 0x5
compare 0x800D 0x1
if 0x1 goto @continue2
message @nnope 0x6
normalmsg
release
end

#ORG @continue2
signmsg
message @puton 0x6
normalmsg
applymovement 0xFF @runfor
waitmovement 0
sound 13
random 19
compare 0x800D 0x0
if 0x1 goto @none
compare 0x800D 0x1
if 0x1 goto @caterpie
compare 0x800D 0x2
if 0x1 goto @weedle
compare 0x800D 0x3
if 0x1 goto @none
compare 0x800D 0x4
if 0x1 goto @aipom
compare 0x800D 0x5
if 0x1 goto @cascoon
compare 0x800D 0x6
if 0x1 goto @none
compare 0x800D 0x7
if 0x1 goto @slakoth
compare 0x800D 0x8
if 0x1 goto @ledyba
compare 0x800D 0x9
if 0x1 goto @metapod
compare 0x800D 0xA
if 0x1 goto @none
compare 0x800D 0xB
if 0x1 goto @wurmple
compare 0x800D 0xC
if 0x1 goto @kakuna
compare 0x800D 0xD
if 0x1 goto @caterpie
compare 0x800D 0xE
if 0x1 goto @silcoon
compare 0x800D 0xF
if 0x1 goto @spinarak
compare 0x800D 0x10
if 0x1 goto @weedle
compare 0x800D 0x11
if 0x1 goto @wurmple
compare 0x800D 0x12
if 0x1 goto @pineco
release
end

#ORG @wouldyou
= Would you like to headbutt it?

#ORG @nnope
= \v\h01 did not headbutt the tree.

#ORG @puton
= \v\h01 put the Iron Helmet on.

#ORG @runfor
#raw 0x4F 0x4E 0x2E 0xFE

#ORG @none
signmsg
message @nothing 0x6
normalmsg
release
end

#ORG @caterpie
wildbattle 10 5 0
release
end

#ORG @weedle
wildbattle 13 5 0
release
end

#ORG @aipom
wildbattle 190 5 0
release
end

#ORG @cascoon
wildbattle 293 5 0
release
end

#ORG @slakoth
wildbattle 364 5 0
release
end

#ORG @ledyba
wildbattle 165 5 0
release
end

#ORG @metapod
wildbattle 11 5 0
release
end

#ORG @wurmple
wildbattle 290 5 0
release
end

#ORG @kakuna
wildbattle 14 5 0
release
end

#ORG @silcoon
wildbattle 291 5 0
release
end

#ORG @spinarak
wildbattle 167 5 0
release
end

#ORG @pineco
wildbattle 204 5 0
release
end

#ORG @nothing
= There was nothing there.

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.

Quoting as I didn't get an answer. ^_^

Madridista January 24th, 2009 11:59 PM

Game: FireRed (U) [ BPRE]
Type: Trigger
Editor: eXtreme Script Editor
Script:
Spoiler:
'---------------
#org 0x800000
lock
checkflag 0x1000
if 0x0 goto 0x8800018
if 0x1 goto 0x8800016
setflag 0x1000
release
end

'---------------
#org 0x800018
msgbox 0x8800022 MSG_NORMAL '"Where...\pWhere am I...?"
end

'---------------
#org 0x800016
end


'---------
' Strings
'---------
#org 0x800022
= Where...\pWhere am I...?

Problem: As you can probably see, I want the vent to happen only once (instead of that, it goes straight to 0x800018 every time I step on the "S".


All times are GMT -8. The time now is 2:55 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.