• 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 Conquest 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.

Sierra's MEGA-HUGE XSE Scripting Tutorial

Did you make sure that flag 0x405 is not set before stepping on the tile? Because if it's set, the script won't activate.

thanks but I found the problem. I was setting the var number/value to *0405* when it SHOULD HAVE BEEN *4050* now it works perfectly and I am quickly advancing in scripting.
 
At the OP:

For the Hex Codes for Characters table, Ææ is actually Œœ. Just thought I'd tell you.
 
are you able to take a pokemon out of your party with a script? like your give pokemon script, but in reverse :P pretty much at the beginning i want to be lent a pokemon to save the professer then he rewards you with a pokemon and you give the other one back xD
 
Last edited:
\h is used with hex values. Here's an example:
Quote:
Here's \hB7100!
That \hB7 is the currency sign of the Pokemon world.
So in this example, I'm going to use "$":
Quote:
Here's $100!
Here's a table of all the hex codes for each symbol:
Spoiler:
00=
01=À
02=Á
03=Â
04=Ç
05=È
06=É
07=Ê
08=Ë
09=Ì
0B=Î
0C=Ï
0D=Ò
0E=Ó
0F=Ô
10=Æ
11=Ù
12=Ú
13=Û
14=Ñ
15=ß
16=à
17=á
19=ç
1A=è
1B=é
1C=ê
1D=ë
1E=ì
20=î
21=ï
22=ò
23=ó
24=ô
25=æ
26=ù
27=ú
28=û
29=ñ
2A=º
2B=ª
2C=·
2D=&
2E=+
34=[Lv]
35==
36=;
51=¿
52=¡
53=[PK]
54=[MN]
55=[PO]
56=[Ke]
57=[BL]
58=[OC]
59=[K]
5A=Í
5B=%
5C=(
5D=)
68=â
6F=í
79=
7A=[D]
7B=[L]
7C=[R]
A1=0
A2=1
A3=2
A4=3
A5=4
A6=5
A7=6
A8=7
A9=8
AA=9
AB=!
AC=?
AD=.
AE=-
AF=·
B0=[...]
B1="
B2=["]
B3='
B4=[']
B5=[m]
B6=[f]
B7=$
B8=,
B9=[x]
BA=/
BB=A
BC=B
BD=C
BE=D
BF=E
C0=F
C1=G
C2=H
C3=I
C4=J
C5=K
C6=L
C7=M
C8=N
C9=O
CA=P
CB=Q
CC=R
CD=S
CE=T
CF=U
D0=V
D1=W
D2=X
D3=Y
D4=Z
D5=a
D6=b
D7=c
D8=d
D9=e
DA=f
DB=g
DC=h
DD=i
DE=j
DF=k
E0=l
E1=m
E2=n
E3=o
E4=p
E5=q
E6=r
E7=s
E8=t
E9=u
EA=v
EB=w
EC=x
ED=y
EE=z
EF=[>]
F0=:
F1=Ä
F2=Ö
F3=Ü
F4=ä
F5=ö
F6=ü
F7=
F8=[d]
F9=[l]
FA=\l
FB=\p
FC=\c
FD=\v
FE=\n
FF=\x
i so did not understand can anyone help
 
Spoiler:
i so did not understand can anyone help
(Make it a spoiler...)

So, in XSE, when you put in \hXX, it translates that directly into hex.

So, for example, when you put "w" in XSE, it actually inputs "EB" into the file.

But when you put "\hEB", it actually puts "EB" into the file.

So using that, you can put in all the weird symbols (like Æ, or ô) into the game without using a Unicode input table to find them first.
 
2 things hw do we make a spoiler and it is pretttty complicating though if i am makin a hack i will have a team so i ll hv to assign rite so i rll will not take this
 
great thanks this helped me sooo much
 
My script doesn't work, its meant to give you a Pokémon depending on your gender but the guy doesn't talk to me

The code is,
Spoiler:


Can anyone give me help
 
My script doesn't work, its meant to give you a Pokémon depending on your gender but the guy doesn't talk to me

The code is,
Spoiler:


Can anyone give me help
The problem is that you can't mix data types. Strings can only contain strings, and scripts can only contain scripts.
 
hi guys i made a script and i want the player to disappear after talking to him how can i do it?This is what i made with the guide

#dynamic 0x800000

#org @start
lock
faceplayer
message @1 0x6
applymovement 0x7 @move1
waitmovement 0x7
release
end

#org @1
= Hey [player].\nI am MITSOTAKIS.I traver.....

#org @move1
#raw 0x08
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x54
#raw 0xFE
 
hi guys i made a script and i want the player to disappear after talking to him how can i do it?This is what i made with the guide
(Add a spoiler, I guess?)

Spoiler:

Highlighted what I added.

xxxx is what the visibility flag of the sprite (check on Advance-Map) is.
 
I just started hacking today, can someone please help me get this script working properly?

#dynamic 0x71AA49

#org @start
lock
faceplayer
checkflag 0x3A
if 0x1 goto @done
msgbox @story 0x6
release
end

#org @story
msgbox @1 0x6
giveitem 0x1 0x1 0x0
msgbox @2 0x6
setflag 0x3A
release
end

#org @done
msgbox @3 0x6
release
end

#org @1
= Hey [player].\nHappy birthday honey :)\pI have a gift for you for your birthday!

#org @2
= I hope you make good use of it.\pBy the way,\nProf. Carbon wanted to see you!\nHe said it was important.\pI wonder what he could want?\nYou should go visit his lab\nat the bottom on this town.\pSee you later!

#org @3
= Prof. Carbon is waiting!
 
try this


#dynamic 0x71AA49

#org @start
lock
faceplayer
checkflag 0x3A
if 0x0 goto @story
if 0x1 goto @done


#org @story
msgbox @1 0x6
giveitem 0x1 0x1 0x0
msgbox @2 0x6
setflag 0x3A
release
end

#org @done
msgbox @3 0x6
release
end

#org @1
= Hey [player].\nHappy birthday honey :)\pI have a gift for you for your birthday!

#org @2
= I hope you make good use of it.\pBy the way,\nProf. Carbon wanted to see you!\nHe said it was important.\pI wonder what he could want?\nYou should go visit his lab\nat the bottom on this town.\pSee you later!

#org @3
= Prof. Carbon is waiting![/QUOTE]
 
I just started hacking today, can someone please help me get this script working properly?

Spoiler:


Changes in red.

Your 'story' pointer wasn't text for a message box like @1, @2 or @3, but a continuation of the script so I merged it with the first part. The lock and faceplayer commands aren't necessary if you use the 0x2 type message box as the NPC you are talking to will automatically turn towards you and lock their movements when they start to talk. It is also better to begin your free space search from an offset which is known to have plenty of space beyond it - In FR's case people generally start from 0x800000.
 
#dynamic 0x80000

#org @start 0x3BCD58
lockall
faceplayer
checkflag 0x824
= if 0x1 goto @end
msgbox @002 0x6
trainerbattle 0x1 0x3BCD58 0x0 @before @after
msgbox @beaten 0x6
end

#org @beforematch
= Hm,My name is Zane; but you can call me Z./n No more talking/n let's begin.
#org @aftermatch
= Wow, I didn't expect to be defeated.)
#org @later
msgbox @003 0x6
fanfare 0x13E
msgbox @004 0x4
waitfanfare
closeonkeypress
msgbox @005 0x6
setflag 0x824
releaseall
end

#org @done
msgbox @001 0x6
release
end

#org @001
= "Your next gym battle won't be so easy/n with that said good luck.

#org @002
= My name is Zane, but you can call me Z/n No more talking,/n let's begin.

#org @003
= You got the marshbadge

#org @004
= [Player] recieved marshbadge

#org @5
= Take this too!


Can someone please explain to me, what exactly it is that i'm doing wrong?
 
Last edited:
#dynamic 0x80000

#org @start 0x3BCD58
lockall
faceplayer
checkflag 0x824
= if 0x1 goto @end
msgbox @002 0x6
trainerbattle 0x1 0x3BCD58 0x0 @before @after @done
msgbox @beaten 0x6
end

#org @beforematch
= Hm,My name is Zane; but you can call me Z./n No more talking/n let's begin.
#org @aftermatch
= Wow, I didn't expect to be defeated.)

You are missing @beaten string.

#org @later end
msgbox @003 0x6
fanfare 0x13E
msgbox @004 0x4
waitfanfare
closeonkeypress
msgbox @005 0x6
setflag 0x824
releaseall
end

#org @done
msgbox @001 0x6
setflag 0x824
release
end

#org @001
= "Your next gym battle won't be so easy/n with that said good luck.

#org @002
= My name is Zane, but you can call me Z/n No more talking,/n let's begin.
You are using wrong slash. It's supposed to be \n not /n

#org @003
= You got the marshbadge

#org @004
= [Player] recieved marshbadge

#org @005
= Take this too!


Can someone please explain to me, what exactly it is that i'm doing wrong?
Huh... too many to explain o.O
Changes in red.
 
Spoiler:



Can someone please explain to me, what exactly it is that i'm doing wrong?

You have a lot of misplaced pointers and have input some incorrect/ unnecessary commands. Below should be a fully functioning script once you change/ delete some of the commands and their values.

Red = I have changed it/ you have to edit it depending on what you want. Blue = Delete it. Messages after '//' are my specific comments on what you should do.

Spoiler:


Try not to rush while making scripts and make sure that you study the structure of scripts already in the game. Alot of the mistakes in your script were quite simple and could be dealt with easily if you slowed down and took the time to comb through it :)
 
Last edited:
Back
Top