Welcome!
This is my XSE tutorial.
It will cover most all the commands.
Don't take this without my permission.
Credit to Darthatron for the overview and basic tut. on XSE.
Credit to -Hackmew- for making XSE.
Credit to everybody that supports XSE!
Part 1: Simple Script Components
First, I will teach you the basic parts.
Sample Script:
- Spoiler:
#dynamic 0xoffset #org @start lock faceplayer msgbox @text boxset 0x6 release end #org @text = Hello.\nI'm Seth.
OK so you probably have no idea what these words mean, right?
I will explain everything here:
- Spoiler:
#dynamic 0xoffset #Dynamic this tells the compiler where the offset is to start the search offset-- this is the number where XSE begins to search for free space for your script, generaly we use 800000 or similar. #org @start (The same goes for the org command, just put BEFORE EVERY pointer) @start-- This is what we call a pointer, a pointer is what tells the script where to go. lock This basically "locks" all the sprites, so you and the other people cannot move. faceplayer This command makes the sprite you are talking to, well, face you. msgbox @text message-- this tells the script that there is a message to be displayed. @text is a pointer, (description above) boxset 0x6 boxset-- (Also known as callstd) This is what tells the script what type of message the message is. # 6-- the boxset or callstd for a simple message. release This "undoes" the lock command we set earlier. end The script has to end somewhere right? This tells where the end of the script is.
"\" commands
\p-- Used to make a message go to a new box, skipping a line.
\n-- Used to make a message go to a new line
\h-- Used for hex symbols such as:
- 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=[u] 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=[u] F8=[d] F9=[l] FA=\l FB=\p FC=\c FD=\v FE=\n FF=\x
\l--Used to make a message go to a new line AFTER \n is used.
\c--Used for making a message colored, put it before the message with NO spaces
Here is a list of the colors for firered:
- Spoiler:
White - \c\h01\h00 Black - \c\h01\h02 Grey - \c\h01\h03 Red - \c\h01\h04 Orange - \c\h01\h05 Dark Green - \c\h01\h06 Cyan - \c\h01\h07 Blue - \c\h01\h08 Light Blue - \c\h01\h09
\v-- Used for displaying certain names, such as (rival) and (player) and var values that you set using setvar command, which I will explain later.
The commands that you cannot change are
(player)-- \v\h01
(rival)-- \v\h06
Part 2: Other Message Scripts
For this part of the tutorial, I will teach you some more message scripts.
How about we start with a yes or no message? Sounds good to me.
Here is an example:
- Spoiler:
#dynamic 0xoffset #org @start lock faceplayer msgbox @yesno boxset 0x5 if 0x1 goto @yes if 0x0 goto @no release end #org @yesno = Yes or no? #org @yes = You pressed Yes! #org @no = You pressed No.
Ok, a few new commands, eh? Well here are the explanations:
- Spoiler:
boxset 0x5 Assuming you know what boxset means, I'll go on. # 5-- The boxset # for a yes or no message. if 0x1 goto @yes This means "if you pressed yes goto @pointer if 0x0 got @no This means "if you pressed no goto @pointer
Well, that went well. I guess it's time I taught you about flags.
Flags
Flags are what tell the game if an event has happened or not.
Example Script:
- Spoiler:
#Dynamic 0xoffset #org @start lock faceplayer checkflag 0x(I will use 828) if 0x0 goto @give if 0x1 goto @sry release end #org @give givepokemon 0x1 0x10 0x0 0x0 0x0 0x0 fanfare 0x13E waitfanfare setflag 0x828 msgbox @yay boxset 0x6 release end #org @sry msgbox @sorry boxset 0x6 end #org @yay = You got Bulbasaur! #org @sorry = I can't give you anymore.
The new commands are right here:
- Spoiler:
checkflag-- this checks if a flag has been set setflag-- this sets a certain flag clearflag-- this clears a flag to be used again. fanfare 0x13E-- this is the music that is played when you get a pokemon. waitfanfare-- this makes the script wait until the fanfare is finished then continues givepokemon-- (I will explain this later)
Here is a list of commonly used flags (or flags built into the game, whatever you like to call them)
- Spoiler:
For all the Firered and Leafgreen Hackers: 0x820 - First Badge 0x821 - Second Badge 0x822 - Third Badge 0x823 - Fourth Badge 0x824 - Fifth Badge 0x825 - Sixth Badge 0x826 - Seventh Badge 0x827 - Eighth Badge 0x828 - Pokemon Menu 0x829 - Pokedex Menu 0x82F - Running Shoes For all you Ruby and Saphire hackers: 0x800 - Pokemon Menu 0x801 - Pokedex Menu 0x802 - Pokenav Menu 0x807 - First Badge 0x808 - Second Badge 0x809 - Third Badge 0x80A - Fourth Badge 0x80B - Fifth Badge 0x80C - Sixth Badge 0x80D - Seventh Badge 0x80E - Eighth Badge 0x860 - Running Shoes Emerald (not much is known for emerald because it can be glitchy at times): 0x860 - Pokemon Menu 0x861 - Pokedex Menu 0x862 - Pokenav Menu
That is it for flags. Let's talk about givepokemon and giveitem now. Sounds ok?
Part 4: Giving pokemon and items
It's about time. Anyways here are some commands you need to know before we get started:
givepokemon
It does what it says.
setflag 0x828
Activates the Pokemon menu
giveitem
Once again, It does what it says.
Example script:
- Spoiler:
#Dynamic 0xoffset #org @start lock faceplayer givepokemon 0x1 0x5 0x0 0x0 0x0 0x0 setflag 0x828 release end
That's the script in it's simplest form. But to get it to work once, look back at the Flag section.
Now, the givepokemon command is kinda weird looking, aint it?
Here is a detailed description:
givepokemon (the command) 0x(pokemon's pokedex number translated into hex) 0x(level) 0x(item number in hex) 0x0 0x0 0x0 (<--- you need these)
Now, here is a list of the pokemons' hex numbers:
- Spoiler:
BULBASAUR 1 IVYSAUR 2 VENUSAUR 3 CHARMANDER 4 CHARMELEON 5 CHARIZARD 6 SQUIRTLE 7 WARTORTLE 8 BLASTOISE 9 CATERPIE A METAPOD B BUTTERFREE C WEEDLE D KAKUNA E BEEDRILL F PIDGEY 10 PIDGEOTTO 11 PIDGEOT 12 RATTATA 13 RATICATE 14 (I will stop here for now, but I will come back to trans. more numbers into hex) SPEAROW 21 FEAROW 22 EKANS 23 ARBOK 24 PIKACHU 25 RAICHU 26 SANDSHREW 27 SANDSLASH 28 NIDORAN|w| 29 NIDORINA 30 NIDOQUEEN 31 NIDORAN|m| 32 NIDORINO 33 NIDOKING 34 CLEFAIRY 35 CLEFABLE 36 VULPIX 37 NINETALES 38 JIGGLYPUFF 39 WIGGLYTUFF 40 ZUBAT 41 GOLBAT 42 ODDISH 43 GLOOM 44 VILEPLUME 45 PARAS 46 PARASECT 47 VENONAT 48 VENOMOTH 49 DIGLETT 50 DUGTRIO 51 MEOWTH 52 PERSIAN 53 PSYDUCK 54 GOLDUCK 55 MANKEY 56 PRIMEAPE 57 GROWLITHE 58 ARCANINE 59 POLIWAG 60 POLIWHIRL 61 POLIWRATH 62 ABRA 63 KADABRA 64 ALAKAZAM 65 MACHOP 66 MACHOKE 67 MACHAMP 68 BELLSPROUT 69 WEEPINBELL 70 VICTREEBEL 71 TENTACOOL 72 TENTACRUEL 73 GEODUDE 74 GRAVELER 75 GOLEM 76 PONYTA 77 RAPIDASH 78 SLOWPOKE 79 SLOWBRO 80 MAGNEMITE 81 MAGNETON 82 FARFETCH'D 83 DODUO 84 DODRIO 85 SEEL 86 DEWGONG 87 GRIMER 88 MUK 89 SHELLDER 90 CLOYSTER 91 GASTLY 92 HAUNTER 93 GENGAR 94 ONIX 95 DROWZEE 96 HYPNO 97 KRABBY 98 KINGLER 99 VOLTORB 100 ELECTRODE 101 EXEGGCUTE 102 EXEGGUTOR 103 CUBONE 104 MAROWAK 105 HITMONLEE 106 HITMONCHAN 107 LICKITUNG 108 KOFFING 109 WEEZING 110 RHYHORN 111 RHYDON 112 CHANSEY 113 TANGELA 114 KANGASKHAN 115 HORSEA 116 SEADRA 117 GOLDEEN 118 SEAKING 119 STARYU 120 STARMIE 121 MR. MIME 122 SCYTHER 123 JYNX 124 ELECTABUZZ 125 MAGMAR 126 PINSIR 127 TAUROS 128 MAGIKARP 129 GYARADOS 130 LAPRAS 131 DITTO 132 EEVEE 133 VAPOREON 134 JOLTEON 135 FLAREON 136 PORYGON 137 OMANYTE 138 OMASTAR 139 KABUTO 140 KABUTOPS 141 AERODACTYL 142 SNORLAX 143 ARTICUNO 144 ZAPDOS 145 MOLTRES 146 DRATINI 147 DRAGONAIR 148 DRAGONITE 149 MEWTWO 150 MEW 151 CHIKORITA 152 BAYLEEF 153 MEGANIUM 154 CYNDAQUIL 155 QUILAVA 156 TYPHLOSION 157 TOTODILE 158 CROCONAW 159 FERALIGATR 160 SENTRET 161 FURRET 162 HOOTHOOT 163 NOCTOWL 164 LEDYBA 165 LEDIAN 166 SPINARAK 167 ARIADOS 168 CROBAT 169 CHINCHOU 170 LANTURN 171 PICHU 172 CLEFFA 173 IGGLYBUFF 174 TOGEPI 175 TOGETIC 176 NATU 177 XATU 178 MAREEP 179 FLAAFFY 180 AMPHAROS 181 BELLOSSOM 182 MARILL 183 AZUMARILL 184 SUDOWOODO 185 POLITOED 186 HOPPIP 187 SKIPLOOM 188 JUMPLUFF 189 AIPOM 190 SUNKERN 191 SUNFLORA 192 YANMA 193 WOOPER 194 QUAGSIRE 195 ESPEON 196 UMBREON 197 MURKROW 198 SLOWKING 199 MISDREAVUS 200 UNOWN 201 WOBBUFFET 202 GIRAFARIG 203 PINECO 204 FORRETRESS 205 DUNSPARCE 206 GLIGAR 207 STEELIX 208 SNUBBULL 209 GRANBULL 210 QWILFISH 211 SCIZOR 212 SHUCKLE 213 HERACROSS 214 SNEASEL 215 TEDDIURSA 216 URSARING 217 SLUGMA 218 MAGCARGO 219 SWINUB 220 PILOSWINE 221 CORSOLA 222 REMORAID 223 OCTILLERY 224 DELIBIRD 225 MANTINE 226 SKARMORY 227 HOUNDOUR 228 HOUNDOOM 229 KINGDRA 230 PHANPY 231 DONPHAN 232 PORYGON2 233 STANTLER 234 SMEARGLE 235 TYROGUE 236 HITMONTOP 237 SMOOCHUM 238 ELEKID 239 MAGBY 240 MILTANK 241 BLISSEY 242 RAIKOU 243 ENTEI 244 SUICUNE 245 LARVITAR 246 PUPITAR 247 TYRANITAR 248 LUGIA 249 HO-OH 250 CELEBI 251 TREECKO 277 GROVYLE 278 SCEPTILE 279 TORCHIC 280 COMBUSKEN 281 BLAZIKEN 282 MUDKIP 283 MARSHTOMP 284 SWAMPERT 285 POOCHYENA 286 MIGHTYENA 287 ZIGZAGOON 288 LINOONE 289 WURMPLE 290 SILCOON 291 BEAUTIFLY 292 CASCOON 293 DUSTOX 294 LOTAD 295 LOMBRE 296 LUDICOLO 297 SEEDOT 298 NUZLEAF 299 SHIFTRY 300 NINCADA 301 NINJASK 302 SHEDINJA 303 TAILLOW 304 SWELLOW 305 SHROOMISH 306 BRELOOM 307 SPINDA 308 WINGULL 309 PELIPPER 310 SURSKIT 311 MASQUERAIN 312 WAILMER 313 WAILORD 314 SKITTY 315 DELCATTY 316 KECLEON 317 BALTOY 318 CLAYDOL 319 NOSEPASS 320 TORKOAL 321 SABLEYE 322 BARBOACH 323 WHISCASH 324 LUVDISC 325 CORPHISH 326 CRAWDAUNT 327 FEEBAS 328 MILOTIC 329 CARVANHA 330 SHARPEDO 331 TRAPINCH 332 VIBRAVA 333 FLYGON 334 MAKUHITA 335 HARIYAMA 336 ELECTRIKE 337 MANECTRIC 338 NUMEL 339 CAMERUPT 340 SPHEAL 341 SEALEO 342 WALREIN 343 CACNEA 344 CACTURNE 345 SNORUNT 346 GLALIE 347 LUNATONE 348 SOLROCK 349 AZURILL 350 SPOINK 351 GRUMPIG 352 PLUSLE 353 MINUN 354 MAWILE 355 MEDITITE 356 MEDICHAM 357 SWABLU 358 ALTARIA 359 WYNAUT 360 DUSKULL 361 DUSCLOPS 362 ROSELIA 363 SLAKOTH 364 VIGOROTH 365 SLAKING 366 GULPIN 367 SWALOT 368 TROPIUS 369 WHISMUR 370 LOUDRED 371 EXPLOUD 372 CLAMPERL 373 HUNTAIL 374 GOREBYSS 375 ABSOL 376 SHUPPET 377 BANETTE 378 SEVIPER 379 ZANGOOSE 380 RELICANTH 381 ARON 382 LAIRON 383 AGGRON 384 CASTFORM 385 VOLBEAT 386 ILLUMISE 387 LILEEP 388 CRADILY 389 ANORITH 390 ARMALDO 391 RALTS 392 KIRLIA 393 GARDEVOIR 394 BAGON 395 SHELGON 396 SALAMENCE 397 BELDUM 398 METANG 399 METAGROSS 400 REGIROCK 401 REGICE 402 REGISTEEL 403 KYOGRE 404 GROUDON 405 RAYQUAZA 406 LATIAS 407 LATIOS 408 JIRACHI 409 DEOXYS 410 CHIMECHO 411
That's all for givepokemon. Now let's discuss giveitem.
0 komentar: