Sierra's MEGA-HUGE XSE Scripting Tutorial Page 16

Started by Sierraffinity December 26th, 2008 6:55 PM
  • 776138 views
  • 1232 replies

Darkest Shade of Light

Pokémon Midnight Sun

Age 26
Male
In the empty void they call my soul
Seen November 10th, 2015
Posted November 10th, 2015
298 posts
13.6 Years
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

Memento Mori

Age 30
Male
Abyss of Time, Great Seal
Seen August 5th, 2018
Posted July 3rd, 2018
14,253 posts
14.8 Years
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...
ROM hacking FAQ - Read before asking how to play a hack.

Anime List | PSN Trophy List

Darkest Shade of Light

Pokémon Midnight Sun

Age 26
Male
In the empty void they call my soul
Seen November 10th, 2015
Posted November 10th, 2015
298 posts
13.6 Years
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! (:?)
Seen March 23rd, 2014
Posted March 17th, 2011
2 posts
15.1 Years
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
Male
Ireland
Seen November 5th, 2013
Posted October 12th, 2013
10 posts
13.1 Years
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
Age 28
Seen April 7th, 2014
Posted April 2nd, 2014
3,977 posts
15.8 Years
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.
Age 27
Male
Australia
Seen March 12th, 2023
Posted April 21st, 2011
7 posts
13.3 Years
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:

#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
Credits to DryRu


Games that I support: ^^



Just Gotta Love Sceptiles~~

tinix

PearlShipper & C Programmer

Age 26
Male
Bratislava, Slovakia
Seen June 19th, 2021
Posted December 31st, 2012
86 posts
13.2 Years
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:

#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
Pokémon games I own:
Pokémon Diamond
Pokémon Platinum
Pokémon Ranger: Shadows of Almia
Pokémon HeartGold Version

Darkest Shade of Light

Pokémon Midnight Sun

Age 26
Male
In the empty void they call my soul
Seen November 10th, 2015
Posted November 10th, 2015
298 posts
13.6 Years
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:

#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.

0m3GA ARS3NAL

Im comin' home...

Age 30
Male
Superjail Penitentiary
Seen February 25th, 2023
Posted September 12th, 2013
1,816 posts
15.3 Years
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.)
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>

Darkest Shade of Light

Pokémon Midnight Sun

Age 26
Male
In the empty void they call my soul
Seen November 10th, 2015
Posted November 10th, 2015
298 posts
13.6 Years
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:

#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...
Age 28
Seen April 7th, 2014
Posted April 2nd, 2014
3,977 posts
15.8 Years
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

Moderate Scripter(Expert Soon)

Age 26
Male
Evergrande City
Seen March 3rd, 2021
Posted May 31st, 2013
8 posts
13.1 Years
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
You only live twice. Once when you are born and once when you look death in the face. -- iY







Click here to feed me a Rare Candy!
Male
Seen July 25th, 2012
Posted November 26th, 2010
29 posts
13.1 Years
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
Age 28
Seen April 7th, 2014
Posted April 2nd, 2014
3,977 posts
15.8 Years
@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!

Konekodemon

The Master of Pokemon Breeding

Age 38
Female
NC
Seen August 21st, 2022
Posted February 14th, 2022
2,061 posts
16.1 Years
How do I tell what codes are for what area in the game and for what people?

Please check out my InuYasha fanfiction and tell me what you think.
Sign up for the Tokyo Crate and get tons of Japanese Snacks delivered straight to your door monthly, mostly Pokemon snacks: http://fbuy.me/mc6Yk
Age 28
Seen April 7th, 2014
Posted April 2nd, 2014
3,977 posts
15.8 Years
@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



How do I tell what codes are for what area in the game and for what people?
Your question isn't clear.
Seen May 14th, 2010
Posted May 9th, 2010
53 posts
14.2 Years
Hey, uhmm, whats the best offset to start searching for free space?
To be or not to be is a question asked by many... But many do not know what the answer is to this question.



75% of Pokemon gamers use cheats and specially made codes to make their pokemon battle-worthy. If you are one of the 25% percent that level their Pokemon up legally, put this in your signature.