The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary Hack Tutorials (https://www.pokecommunity.com/forumdisplay.php?f=66)
-   -   Sierra's MEGA-HUGE XSE Scripting Tutorial (https://www.pokecommunity.com/showthread.php?t=164276)

Darkest Shade of Light March 27th, 2010 2:06 PM

Quote:

Originally Posted by Ash493 (Post 5649063)
1) Use dynamic ;)
2) Person keeps appearing 'cause you did not set flag.
You have to use setflag 0x(number) and the same number must be in ID bar of person. (You can edit that with A-Map)

dynamic?
I just recently read about the flag part, so I'm gonna set flag 0x7 for him, and put his people ID like that... Will that work?

Satoshi Ookami March 27th, 2010 11:36 PM

Quote:

Originally Posted by Darkest Shade of Light (Post 5657666)
dynamic?
I just recently read about the flag part, so I'm gonna set flag 0x7 for him, and put his people ID like that... Will that work?

dynamic is dynamic command :D
#dynamic 0x800000 for example ;)
And flag 0x7 is small flag... so it might be used in game...

Darkest Shade of Light March 28th, 2010 2:59 PM

Quote:

Originally Posted by Ash493 (Post 5659235)
dynamic is dynamic command :D
#dynamic 0x800000 for example ;)
And flag 0x7 is small flag... so it might be used in game...

Flag 0x7 isn't used. Just thought I'd letcha know. But, question: Would this work:
'---------------
#dynamic 0x777777
#org 0xABCDEF
msgbox 0x8ABCFED 0x2 '"[player] received a MEW!"
givepokemon 0x97 0x5 0x8D 0x0 0x0 0x0
closeonkeypress
msgbox 0x8111111 0x2 '"That is all, goodbye."
closeonkeypress
fadescreen 0x1
hidesprite 0xFE
fadescreen 0x0
setflag 0x7
end


'---------
' Strings
'---------
#org 0xABCFED
= [player] received a MEW!

#org 0x111111
= That is all, goodbye.



This would, of course, also have his people ID as 0007. So, would that work:? <-I like that smiley! (:?)

redeyes1357 April 2nd, 2010 4:18 PM

Apply Movement-- Don't get it...
 
So i made an apply movment script but when my guy steps on it nothing happens.
The one i made before made the bag from professor Birch's attack appear over and over and doesn't make the other sprite appear.

SCRIPT:
#dynamic 0x808455

#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x08 @move
waitmovement 0x0
pause 0x20
msgbox @2 0x6
release
end

#org @done
msgbox @3 0x6
showsprite 0x903
release
end

#org @move
#raw 0x01
#raw 0xFE
#org @1
= ???: Hmmmm...\nI see you defeated the gym leader\l...
#org @2
= ???: Theres something outside\nI think you should take a look\l...
#org @3
= ???: There's no way a novie like\nyou can resist a Rock Tomb\l...


I put everything where it's supposed, at least I'm pretty sure. I set the flags in the Person ID and made sure that the event numbers are what they should be.
What should I do?

Script Info Person Info Show Sprite Info
Unknown: 0300 Person Event Number: 8 Person Event Number:9
Var Number: 4050 Person ID: 0000 Person ID: 0903
Var Value: 0000
Unknown: 00 00

Irish Chameleon April 4th, 2010 12:56 PM

I've got this script for the starter part ( 1st beta ) of my game. When you activate the script everything works perfectly, you go into battle, when you win your rival goes off in a huff and then the script ends. Everything seems okay but as soon as you walk on the tile that initially started the script the game freezes up with the music continuing. Help appreciated :)

#dynamic 0x71D800

#org @qetuo
checkflag 0x201
if 0x0 goto @igdub21
if 0x1 goto @ftfbtdi
end

#org @igdub21
lock
applymovement 0x01 @abcdefg
waitmovement 0x0
msgbox @wtfdygap 0x6
trainerbattle 0x1 0x146 0x0 @GoJUKKK @aigmawls @aftertehbattle
end

#org @aftertehbattle
msgbox @woahuabmismpw 0x6
applymovement 0xFF @imoves
applymovement 0x01 @hemoves
waitmovement 0x0
hidesprite 0x01
setflag 0x201
release
end

#org @ftfbtdi
end

#org @abcdefg
#raw 0x12 0x12 0x12 0x12 0x12 0x12 0x11 0x11 0x12 0x62 0xFE

#org @wtfdygap
= [RIVAL]: Excuse me, your blocking\nmy path.\l...\lWHAT!!!\lYou got a pokemon!\lYou...you...your the new\lguy though. You just got here.\lKray dosen't even know you.\lYou're not ready, you've had no\lpreparation ... ... ...\lNo preparation makes for an easy\lwin. This battles mine!

#org @GoJUKKK
= [RIVAL]: Go my special pokemon!

#org @aigmawls
= [RIVAL]: But...but...my preparation...

#org @woahuabmismpw
= [RIVAL]: What!?!\nYou fluked a win!?!\lThis can't be.\lBeaten by the new kid.\lWell I'll train more and beat you\lnext time I see you.\lI'm off anyway.\lProffessor Kray has something for me.

#org @imoves
#raw 0x10 0x01 0xFE

#org @hemoves
#raw 0x23 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0xFE

Thanks in advance :D

Kryszajtys April 5th, 2010 10:17 AM

Can you add how to make a script. Like Where you have to chose hitmonlee or hitmonchan.
Because I really need help with that. So could you please add it to your tutorial :)

Binary April 5th, 2010 12:48 PM

Quote:

Originally Posted by Kryszajtys (Post 5685163)
Can you add how to make a script. Like Where you have to chose hitmonlee or hitmonchan.
Because I really need help with that. So could you please add it to your tutorial :)

In truth, it is already included in the tutorial. You'll just have to find out how to make the script.
And I'd also like to note that there is a thread for all your scripting problems.

Edit:
@Irish Chameleon:

Spoiler:
#dynamic 0x71D800

#org @qetuo
checkflag 0x201
if 0x1 goto @ftfbtdi
applymovement 0x01 @abcdefg
waitmovement 0x0
msgbox @wtfdygap 0x6
trainerbattle 0x1 0x146 0x0 @GoJUKKK @aigmawls @aftertehbattle
end

#org @aftertehbattle
msgbox @woahuabmismpw 0x6
applymovement 0xFF @imoves
applymovement 0x01 @hemoves
waitmovement 0x0
hidesprite 0x01
setflag 0x201
release
end

#org @ftfbtdi
release
end

#org @abcdefg
#raw 0x12 0x12 0x12 0x12 0x12 0x12 0x11 0x11 0x12 0x62 0xFE

#org @wtfdygap
= [RIVAL]: Excuse me, your blocking\nmy path.\l...\lWHAT!!!\lYou got a pokemon!\lYou...you...your the new\lguy though. You just got here.\lKray dosen't even know you.\lYou're not ready, you've had no\lpreparation ... ... ...\lNo preparation makes for an easy\lwin. This battles mine!

#org @GoJUKKK
= [RIVAL]: Go my special pokemon!

#org @aigmawls
= [RIVAL]: But...but...my preparation...

#org @woahuabmismpw
= [RIVAL]: What!?!\nYou fluked a win!?!\lThis can't be.\lBeaten by the new kid.\lWell I'll train more and beat you\lnext time I see you.\lI'm off anyway.\lProffessor Kray has something for me.

#org @imoves
#raw 0x10 0x01 0xFE

#org @hemoves
#raw 0x23 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0xFE


There's no need for the "if 0x0 goto..." the script simply continues in the same header if the flag isn't set
And you should make your pointers simple. They're way too confusing.

TehHepticOne April 6th, 2010 1:11 AM

Hey guys,

I was just wondering if there is anything wrong with my script. It keeps giving an error about an unknown error:

Unknown keyword "
setvar" at line 10.

Here is the script:

HTML Code:

#dynamic 0x800898

#org @start
lock
checkflag 0x200
if 0x1 goto @release
setvar 0x8004 0x3
setvar 0x8005 12
setvar 0x8006 12
setvar 0x8007 3
special 0x136
waitspecial
pause 0x40
apply movement 0xFF @move0
applymovement 0x1 @move1
waitmovement 0x1
applymovement 0x2 @move2
waitmovement 0x2
msgbox @Hey 0x6
applymovement 0x1 @move3
waitmovement 0x1
applymovement 0x2 @move4
waitmovement 0x2
applymovement 0xFF @move5
warp 0x3 0x0 0xFF 0x18 0x14
setflag 0x200
release
end

#org @release
release
end

#org @move0
#raw 0x65 0xFE

#org @move1
#raw 0x62 0x1E 0x1F 0x1F 0x1F 0x1F 0x1F 0x1E 0x1F 0x1F 0x1F 0x1F 0x1E 0x02 0xFE

#org @move2
#raw 0x1E 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x01 0xFE

@Hey
= Henry: Oi!\nGuys!\nWhat just happened?\nWas it an earthquake?\pPeter: It couldn't have been.\nWe don't get those around here\pHenry: Then what could it be?\pPeter: Let's go check it out.

#org @move3
#raw 0x1D 0x1D 0x1D 0x1F 0x1D 0x60 0xFE

#org @move4
#raw 0x1D 0x1D 0x1D 0x1D 0x60 0xFE

#org @move5
#raw 0x1D 0x1D 0x1D 0x1D 0x1D 0xFE



Line ten is "setvar 0x8007 3"
Any Ideas?? Greatly appreciated~

BTW I'm making an earthquake script

Irish Chameleon April 6th, 2010 2:02 AM

Thanks Binary helps a lot :)

and I make my pointers long and weird to make sure i never use it again by accident in another script :):):)
very helpful advice though :)

tinix April 6th, 2010 3:54 AM

Quote:

Originally Posted by TehHepticOne (Post 5687720)
Hey guys,

I was just wondering if there is anything wrong with my script. It keeps giving an error about an unknown error:

Unknown keyword "
setvar" at line 10.

Here is the script:

Code:

#dynamic 0x800898

#org @start
lock
checkflag 0x200
if 0x1 goto @release
setvar 0x8004 0x3
setvar 0x8005 0x12
setvar 0x8006 0x12
setvar 0x8007 0x3
special 0x136
waitspecial
pause 0x40
apply movement 0xFF @move0
applymovement 0x1 @move1
waitmovement 0x1
applymovement 0x2 @move2
waitmovement 0x2
msgbox @Hey 0x6
applymovement 0x1 @move3
waitmovement 0x1
applymovement 0x2 @move4
waitmovement 0x2
applymovement 0xFF @move5
warp 0x3 0x0 0xFF 0x18 0x14
setflag 0x200
release
end

#org @release
release
end

#org @move0
#raw 0x65 0xFE

#org @move1
#raw 0x62 0x1E 0x1F 0x1F 0x1F 0x1F 0x1F 0x1E 0x1F 0x1F 0x1F 0x1F 0x1E 0x02 0xFE

#org @move2
#raw 0x1E 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x01 0xFE

@Hey
= Henry: Oi!\nGuys!\nWhat just happened?\nWas it an earthquake?\pPeter: It couldn't have been.\nWe don't get those around here\pHenry: Then what could it be?\pPeter: Let's go check it out.

#org @move3
#raw 0x1D 0x1D 0x1D 0x1F 0x1D 0x60 0xFE

#org @move4
#raw 0x1D 0x1D 0x1D 0x1D 0x60 0xFE

#org @move5
#raw 0x1D 0x1D 0x1D 0x1D 0x1D 0xFE


Line ten is "setvar 0x8007 3"
Any Ideas?? Greatly appreciated~

BTW I'm making an earthquake script

IDK what causes unknown keyword (keyword=command) error here but try rewriting the line also i`ve noticed some missing 0xes i`ve written them in orange at quote

Darkest Shade of Light April 6th, 2010 12:45 PM

Quote:

Originally Posted by TehHepticOne (Post 5687720)
Hey guys,

I was just wondering if there is anything wrong with my script. It keeps giving an error about an unknown error:

Unknown keyword "
setvar" at line 10.

Here is the script:

HTML Code:

#dynamic 0x800898

#org @start
lock
checkflag 0x200
if 0x1 goto @release
setvar 0x8004 0x3
setvar 0x8005 0x12
setvar 0x8006 0x12
setvar 0x8007 0x3
special 0x136
waitspecial
pause 0x40
applymovement 0xFF @move0
applymovement 0x1 @move1
waitmovement 0x1
applymovement 0x2 @move2
waitmovement 0x2
msgbox @Hey 0x6
applymovement 0x1 @move3
waitmovement 0x1
applymovement 0x2 @move4
waitmovement 0x2
applymovement 0xFF @move5
warp 0x3 0x0 0xFF 0x18 0x14
setflag 0x200
release
end

#org @release
release
end

#org @move0
#raw 0x65 0xFE

#org @move1
#raw 0x62
#raw 0x1E
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1E
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1E
#raw 0x02
#raw 0xFE

#org @move2
#raw 0x1E
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x01
#raw 0xFE

@Hey
= Henry: Oi!\nGuys!\nWhat just happened?\nWas it an earthquake?\pPeter: It couldn't have been.\nWe don't get those around here\pHenry: Then what could it be?\pPeter: Let's go check it out.

#org @move3
#raw 0x1D 0x1D 0x1D 0x1F 0x1D 0x60 0xFE

#org @move4
#raw 0x1D 0x1D 0x1D 0x1D 0x60 0xFE

#org @move5
#raw 0x1D 0x1D 0x1D 0x1D 0x1D 0xFE


Line ten is "setvar 0x8007 3"
Any Ideas?? Greatly appreciated~

BTW I'm making an earthquake script

Look at tinix's post, and also, I fixed every problem I could see. Try just copy/pasting now.

TehHepticOne April 6th, 2010 2:54 PM

Thanks for the fixes guys, but the error moved onto line 12 "waitspecial". =.=

0m3GA ARS3NAL April 6th, 2010 2:58 PM

That is because waitspecial isn't a command... use waitstate
(A good way to tell if the command you are typing is correct... type the command and press space, if the yellow box saying "No Parameters Required" pops up, it is a command... waitspecial isn't one.)

Darkest Shade of Light April 7th, 2010 12:03 PM

Quote:

Originally Posted by TehHepticOne (Post 5687720)
Hey guys,

I was just wondering if there is anything wrong with my script. It keeps giving an error about an unknown error:

Unknown keyword "
setvar" at line 10.

Here is the script:

HTML Code:

#dynamic 0x800898

#org @start
lock
checkflag 0x200
if 0x1 goto @release
setvar 0x8004 0x3
setvar 0x8005 0x12
setvar 0x8006 0x12
setvar 0x8007 0x3
special 0x136
waitstate
pause 0x40
applymovement 0xFF @move0
applymovement 0x1 @move1
waitmovement 0x1
applymovement 0x2 @move2
waitmovement 0x2
msgbox @Hey 0x6
applymovement 0x1 @move3
waitmovement 0x1
applymovement 0x2 @move4
waitmovement 0x2
applymovement 0xFF @move5
warp 0x3 0x0 0xFF 0x18 0x14
setflag 0x200
release
end

#org @release
release
end

#org @move0
#raw 0x65
#raw 0xFE

#org @move1
#raw 0x62
#raw 0x1E
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1E
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1E
#raw 0x02
#raw 0xFE

#org @move2
#raw 0x1E
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x01
#raw 0xFE

@Hey
= Henry: Oi!\nGuys!\nWhat just happened?\nWas it an earthquake?\pPeter: It couldn't have been.\nWe don't get those around here\pHenry: Then what could it be?\pPeter: Let's go check it out.

#org @move3
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1D
#raw 0x60
#raw 0xFE

#org @move4
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x60
#raw 0xFE

#org @move5
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0xFE



There are no errors here anymore, I am about 99.999999... percent sure I got them all, including "waitspecial." Fixed all movements, and all that...

Binary April 7th, 2010 9:47 PM

Spoiler:
.
.
.
.
applymovement 0xFF @move0
applymovement 0x1 @move1
waitmovement 0x0
applymovement 0x2 @move2
waitmovement 0x0
msgbox @Hey 0x6
applymovement 0x1 @move3
waitmovement 0x0
applymovement 0x2 @move4
waitmovement 0x0
applymovement 0xFF @move5
waitmovement 0x0
.
.
.


Besides that part, everything's right.
Man, you guys should post in the script help thread -.-

iYesith April 18th, 2010 2:24 AM

Damn i read all this and the only thing i can do is make simple messages... I NEED HELP BIGTIME... my msn is [email protected] ... and i made a thread askin 4 help please help...please....T_T

pringles_king April 19th, 2010 10:26 AM

Hlp!
 
I made a script to get a guy to give you a pokemon as you walk out of pallet town and this is what i got
Spoiler:
#dynamic 0x71A5C4

#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x5 @1
pause 0x1
msgbox @3 0x6
givepokemon 0x139 0x5 0x0 0x0 0x0 0x0
msgbox @4 0x6
setflag 0x828
setflag 0x829

release
end

#org @done
end

#org @1
#raw 0x1F

#org @3
= You don't have a pokemon!\nHere!\pHave one I haven't battled with in\nawhile!

#org @4
= This too!= A Pokedex too!\nThere ya go! all set to go!



But when i do the game will freeze when he starts walkin toward me
or will freeze when he starts talking

i did the unknown and Var thing just like the pic showed but i cant get it

Binary April 19th, 2010 10:38 AM

@pringles_king:

Spoiler:
#dynamic 0x71A5C4

#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x2
applymovement 0x05 @1
waitmovement 0x0
msgbox @3 0x2
givepokemon 0x139 0x5 0x0 0x0 0x0 0x0
msgbox @4 0x2
setflag 0x828
setflag 0x829
release
end

#org @done
release
end

#org @1
#raw 0x1F 0xFE

#org @3
= You don't have a pokemon!\nHere!\pHave one I haven't battled with in\nawhile!

#org @4
= This too!= A Pokedex too!\nThere ya go! all set to go!

pringles_king April 19th, 2010 2:13 PM

@binary
omg ty
but i gotta ask
do i use 0xFE after EVERY raw or just the first one?

Konekodemon April 19th, 2010 3:09 PM

How do I tell what codes are for what area in the game and for what people?

Binary April 20th, 2010 2:12 AM

Quote:

Originally Posted by pringles_king (Post 5732962)
@binary
omg ty
but i gotta ask
do i use 0xFE after EVERY raw or just the first one?

At the very end.
Spoiler:
For example:
#raw 0x01 0x06 0xFE



Quote:

Originally Posted by Konekodemon (Post 5733131)
How do I tell what codes are for what area in the game and for what people?

Your question isn't clear.

Fr0z3n April 25th, 2010 2:15 AM

Hey, uhmm, whats the best offset to start searching for free space?

Binary April 25th, 2010 2:49 AM

@Fr0z3n: 0x800000 I suppose. Use FSF.

Binary April 25th, 2010 11:44 AM

@Pearlone: Script please and maybe you overwrote a used offset.

Pearlone April 25th, 2010 11:58 AM

#Dynamic 0x800010

#ORG @main
Lock
FacePlayer
Message @Speak
BoxSet 0x6
Release
End
release
end

#org @Speak
= Hi, I'm Andy.\n I came from Johto.


All times are GMT -8. The time now is 8:11 PM.


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.