/Circa
a face in the clouds.
- 881
- Posts
- 17
- Years
- Melbourne, Victoria
- Seen Jul 22, 2023
ScriptEd Tutorial - By CheesePeow
Introduction: I decided to make a tutorial because many people are finding PokeScript troublesome (especially beginners) mainly because it is hard to find the requirements. Also, ScriptEd is much better because of one special thing, you can find your own offsets depending on how much space you need. So I found this very usefull, plus this tutorial will work greatly with XSE. Because it runs on the same sought of system. So hopefully some people will convert to ScriptEd or XSE in the future.
Lets get started shall we?
But before that, a few answers to some questions.
Q: Where can I download ScriptEd?
A: ScriptEd can be found in the EliteMap package, or downloaded at Studiopokemon.
Q: My script isn't working... Why?
A: You should go over the script for errors by yourself, and if it still isn't working, post it here.
Q: My PokeScript scripts don't work in ScriptEd?
A: ScriptEd scripts are much different to PokeScript.
Those are some of the main questions, but lets get started. (for real this time)
Basic Message:
Well, in ScriptEd, we need to start with an offset.
Basic offsets start with 0x and then depending on where your offset is.
For instance, for a basic message, we would need only a small offset, we don't want to put it all over the place right?
Lets go with 0x800000, because theres alot of free space after that.
So we start with #org 0x800000
We also need a lock and faceplayer command after that, why you ask? Because without these commands the hero, and the person your talking to will walk around while the text box is still there. We don't want that do we?.
Now we've got our main header.
Code:
#org 0x800000
lock
faceplayer
Now we need to add callstd, which is the boxset command.
There are a couple of callstd commands, here is a list I know.
Code:
1. callstd 0x6 - basic message box.
2. callstd 0x5 - used for yes and no scripts.
3. callstd 0x3 - signpost command.
Now, if we've got that, we need to end the script there. Put in release and end, which will release the players from lock and also end the script.
But where does the message go? The message goes after the main paragraph. This is what our message wants to look like.
Code:
Hi [player]!
How are you today?
So this is what it looks like:
Code:
#org 0x800100
= Hi \v\h01!\nHow are you today?
This is the command for the heroes name, if you want your rivals name use \v\h06.
So this is what our script looks like:
Code:
#org 0x800000
lock
faceplayer
msgbox 0x800100
callstd 0x6
release
end
#org 0x800100
= Hey \v\h01!\nHow are you today?
I'll go over yes/no scripts some other time, I want to show you guys some givepokemon and giveitem scripts, which you'll use alot :)!
Givepokemon
With a givepokemon script we only need a simple command, but wait, we have a problem, well two. Sometimes when creating givepokemon we get an error, where it says it cant register the command, thats because sometimes we need an ever bigger command. The normal command would be:
givepokemon 0x0 (pokemon number in hex) 0x0 (Pokemon level) 0x0 (item)
But in some cases we need it even bigger, but this is rare.
givepokemon 0x5 0x5 0x0 0x0 0x0 0xFFFFFF 0xFF
You probably wont get this problem though, so it doesn't matter.
But the other problem is getting the Pokemon repeadetly?
we need something called a flag, which can be set, removed or checked. Here is a larger explanation.
Code:
Setflag - Sets a flag for it to be checked, or removed.
Checkflag - Checks if a flag has been set.
Removeflag - removes a flag if it has been set
But lets get to the givepokemon command, here are a list of Pokemon.
You'll need to convert them into hex with your scientific calculator. (windows)
Spoiler:
Code:
BULBASAUR 1
IVYSAUR 2
VENUSAUR 3
CHARMANDER 4
CHARMELEON 5
CHARIZARD 6
SQUIRTLE 7
WARTORTLE 8
BLASTOISE 9
CATERPIE 10
METAPOD 11
BUTTERFREE 12
WEEDLE 13
KAKUNA 14
BEEDRILL 15
PIDGEY 16
PIDGEOTTO 17
PIDGEOT 18
RATTATA 19
RATICATE 20
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
Now to get into the command.
How about we get into yes/no with this aswell?
In ShinyGold there is a Pikachu script, which asks you yes or no, answer yes, you get a Pikachu level 10, answer no it just says Pika... :(.
So we need this command.
Code:
msgbox 0x800000
callstd 0x5
compare lastresult 0x1
if 0x1 goto 0x800100
So lets go over it, the commands go as below:
Code:
offset
lock
faceplayer
checkflag
if 0x1 goto
msgbox
callstd
compare lastresult
if 0x1 goto
msgbox
callstd
release
end
offset
lock
msgbox
callstd
givepokemon
setflag
release
end
messages go below:
Heres our final script:
Code:
#org 0x800000
lock
faceplayer
checkflag 0x200
if 0x1 goto 0x800100
msgbox 0x800200
callstd 0x5
compare lastresult 0x1
if 0x1 goto 0x800300
msgbox 0x800400
callstd 0x6
release
end
#org 0x800300
lock
msgbox 0x800500
callstd 0x6
givepokemon 0x19 0x5 0x0
setflag 0x200
release
end
#org 0x800200
= Pikachu?
#org 0x800400
= Pikachu :(
#org 0x800500
= Pika! :D
#org 0x800100
nop
release
end
Giveitem
Giveitem is the same as givepokemon, though all we need is:
giveitem 0x0(item number) 0x0(how many)
though in some cases the program will again unregister it, so we add a 0x1 at the end.
though in some cases the program will again unregister it, so we add a 0x1 at the end.
So we do the same sought of script, so theres really no point in me going over it all over, i'll just provide you with a list of items.
Spoiler:
Code:
Pokeballs:
[LEFT]MASTER BALL 0x1
[LEFT]ULTRA BALL 0x2
GREAT BALL 0x3
POKEBALL 0x4
SAFARI BALL 0x5
NET BALL 0x6
DIVE BALL 0x7
NEST BALL 0x8
REPEAT BALL 0x9
TIMER BALL = 0xA
LUXURY BALL = 0xB
PREMIER BALL = 0xC[/LEFT]
[LEFT]Healing Items:[/LEFT]
[LEFT]POTION = 0xD
ANTIDOTE = 0xE
BURN HEAL = 0xF
ICE HEAL = 0x10
AWAKENING = 0x11
PARLYZ HEAL = 0x12
FULL RESTORE = 0x13
MAX POTION = 0x14
HYPER POTION = 0x15
SUPER POTION = 0x16
FULL HEAL = 0x17
REVIVE = 0x18
MAX REVIVE = 0x19
FRESH WATER = 0x1A
SODA POP = 0x1B
LEMONADE = 0x1C
MOOMOO MILK = 0x1D
ENERGY POWDER = 0x1E
ENERGY ROOT = 0x1F
HEAL POWDER = 0x20
REVIVAL HERB = 0x21
ETHER = 0x22
MAX ETHER = 0x23
ELIXIR = 0x24
MAX ELIXIR = 0x25
LAVA COOKIE = 0x26
BLUE FLUTE = 0x27
YELLOW FLUTE = 0x28
RED FLUTE = 0x29
BLACK FLUTE = 0x2A
WHITE FLUTE = 0x2B
BERRY JUICE = 0x2C
SACRED ASH = 0x2D [/LEFT]
[LEFT]Misc. Items:[/LEFT]
[LEFT]SHOAL SALT = 0x2E
SHOAL SHELL = 0x2F
RED SHARD = 0x30
BLUE SHARD = 0x31
YELLOW SHARD = 0x32
GREEN SHARD = 0x33
HENTAI MAG = 0x34
NAME TAG = 0x35[/LEFT]
[LEFT]Stat Increasing Items:[/LEFT]
[LEFT]HP UP = 0x3F
PROTEIN = 0x40
IRON = 0x41
CARBOS = 0x42
CALCIUM = 0x43
RARE CANDY = 0x44
PP UP = 0x45
ZINC = 0x46
PP MAX = 0x47[/LEFT]
[LEFT]X Items:[/LEFT]
[LEFT]GUARD SPEC. = 0x49
DIRE HIT = 0x4A
X ATTACK = 0x4B
X DEFEND = 0x4C
X SPEED = 0x4D
X ACCURACY = 0x4E
X SPECIAL = 0x4F[/LEFT]
[LEFT]Repeling Items:[/LEFT]
[LEFT]POKEDOLL = 0x50
FLUFFY TAIL = 0x51
SUPER REPEL = 0x53
MAX REPEL = 0x54
ESCAPE ROPE = 0x55
REPEL = 0x56[/LEFT]
[LEFT]Stones:[/LEFT]
[LEFT]SUN STONE = 0x5D
MOON STONE = 0x5E
FIRE STONE = 0x5F
THUNDER STONE = 0x60
WATER STONE = 0x61
LEAF STONE = 0x62 [/LEFT]
[LEFT]Sell Items:[/LEFT]
[LEFT]TINY MUSHROOM = 0x67
BIG MUSHROOM = 0x68
PEARL = 0x6A
BIG PEARL = 0x6B
STAR DUST = 0x6C
STAR PIECE = 0x6D
NUGGET = 0x6E
HEART SCALE = 0x6F[/LEFT]
[LEFT]Mail:[/LEFT]
[LEFT]ORANGE MAIL = 0x79
HARBOR MAIL = 0x7A
GLITTER MAIL = 0x7B
MECH MAIL = 0x7C
WOOD MAIL = 0x7D
WAVE MAIL = 0x7E
BEAD MAIL = 0x7F
SHADOW MAIL = 0x80
TROPIC MAIL = 0x81
DREAM MAIL = 0x82
FAB MAIL = 0x83
RETRO MAIL = 0x84[/LEFT]
[LEFT]Berries:[/LEFT]
[LEFT]CHERRY BERRY = 0x85
PECHA BERRY = 0x87
RAWST BERRY = 0x88
ASPEAR BERRY = 0x89
LEPPA BERRY = 0x8A
ORAN BERRY = 0x8B
PERSIM BERRY = 0x8C
LUM BERRY = 0x8D
SITRUS BERRY = 0x8E
FIGY BERRY = 0x8F
WIKI BERRY = 0x90
MAGO BERRY = 0x91
AGUAV BERRY = 0x92
IAPAPA BERRY = 0x93
RAZZ BERRY = 0x94
BLUK BERRY = 0x95
NANAB BERRY = 0x96
WEPEAR BERRY = 0x97
PINAP BERRY = 0x98
POMEG BERRY = 0x99
KELPSY BERRY = 0x9A
QUALOT BERRY = 0x9B
HONEYDEW BERRY = 0x9C
GREPA BERRY = 0x9D
TOMATO BERRY = 0x9E
CORNN BERRY = 0x9F
MAGOST BERRY = 0xA0
RABUTA BERRY = 0xA1
NOMEL BERRY = 0xA2
SPELON BERRY = 0xA3
PAMTRE BERRY = 0xA4
WATEMEL BERRY = 0xA5
DURIN BERRY = 0xA6
BELUE BERRY = 0xA7
LICHEE BERRY = 0xA8
GANLON BERRY = 0xA9
SALAC BERRY = 0xAA
PETAYA BERRY = 0xAB
APRICOT BERRY = 0xAC
LANSAT BERRY = 0xAD
STARF BERRY = 0xAE
ENIGMA BERRY = 0xAF [/LEFT]
[LEFT]Hold Items:[/LEFT]
[LEFT]BRIGHT POWDER = 0xB3
WHITE HERB = 0xB4
MACHO BRACE = 0xB5
EXP.SHARE = 0xB6
QUICK CLAW = 0xB7
SOOTHE BELL = 0xB8
MENTAL HERB = 0xB9
CHOICE BAND = 0xBA
KINGS ROCK = 0xBB
SILVER POWDER = 0xBC
AMULET COIN = 0xBD
CLEANSE TAG = 0xBE
SOUL DEW = 0xBF
DEEP SEA TOOTH = 0xC0
DEEP SEA SCALE = 0xC1
SMOKE BALL = 0xC2
EVERSTONE = 0xC3
FOCUS BAND = 0xC4
LUCKY EGG = 0xC5
SCOPE LENS = 0xC6
METAL COAT = 0xC7
LEFTOVERS = 0xC8
DRAGON SCALE = 0xC9
LIGHT BALL = 0xCA
SOFT SAND = 0xCB
HARD STONE = 0xCC
MIRACLE SEED = 0xCD
BLACK GLASSES = 0xCE
BLACK BELT = 0xCF
MAGNET = 0xD0
MYSTIC WATER = 0xD1
SHARP BEAK = 0xD2
POISON BARB = 0xD3
NEVER MELT ICE = 0xD4
SPELL TAG = 0xD5
TWISTED SPOON = 0xD6
CHARCOAL = 0xD7
DRAGON FANG = 0xD8
SILK SCARF = 0xD9
UP-GRADE = 0xDA
SHELL BELL = 0xDB
SEA INCENSE = 0xDC
LAX INCENSE = 0xDD
LUCKY PUNCH = 0xDE
METAL POWDER = 0xDF
THICK CLUB = 0xE0
STICK = 0xE1
RED SCARF = 0xFE
BLUE SCARF = 0xFF
PINK SCARF = 0x100
GREEN SCARF = 0x101
YELLOW SCARF = 0x102 [/LEFT]
[LEFT]Key Items:[/LEFT]
[LEFT]SKATEBOARD1 = 0x103
COIN CASE = 0x104
ITEMFINDER = 0x105
OLD ROD = 0x106
GOOD ROD = 0x107
SUPER ROD = 0x108
S.S.TICKET = 0x109
CONTEST PASS = 0x10A
SQUIRT BOTTLE = 0x10C
AMULET = 0x10D
SOOT SACK = 0x10E
BASEMENT KEY = 0x10F
SKATEBOARD2 = 0x110
POROK CASE = 0x111
LETTER = 0x112
EON TICKET = 0x113
RED ORB = 0x114
BLUE ORB = 0x115
SCANNER = 0x116
GO GOGGLES = 0x117
METEORITE = 0x118
RM1 KEY = 0x119
RM2 KEY = 0x11A
RM4 KEY = 0x11B
RM6 KEY = 0x11C
STORAGE KEY = 0x11D
ROOT FOSSIL = 0x11E
CLAW FOSSIL = 0x11F
DEVON SCOPE = 0x120 [/LEFT]
[LEFT]TMs:[/LEFT]
[LEFT]TM01 = 0x121
TM02 = 0x122
TM03 = 0x123
TM04 = 0x124
TM05 = 0x125
TM06 = 0x126
TM07 = 0x127
TM08 = 0x128
TM09 = 0x129
TM10 = 0x12A
TM11 = 0x12B
TM12 = 0x12C
TM13 = 0x12D
TM14 = 0x12E
TM15 = 0x12F
TM16 = 0x130
TM17 = 0x131
TM18 = 0x132
TM19 = 0x133
TM20 = 0x134
TM21 = 0x135
TM22 = 0x136
TM23 = 0x137
TM24 = 0x138
TM25 = 0x139
TM26 = 0x13A
TM27 = 0x13B
TM28 = 0x13C
TM29 = 0x13D
TM30 = 0x13E
TM31 = 0x13F
TM32 = 0x140
TM33 = 0x141
TM34 = 0x142
TM35 = 0x143
TM36 = 0x144
TM37 = 0x145
TM38 = 0x146
TM39 = 0x147
TM40 = 0x148
TM41 = 0x149
TM42 = 0x14A
TM43 = 0x14B
TM44 = 0x14C
TM45 = 0x14D
TM46 = 0x14E
TM47 = 0x14F
TM48 = 0x150
TM49 = 0x151
TM50 = 0x152[/LEFT]
[LEFT]HMs:[/LEFT]
[LEFT]HM01 = 0x153
HM02 = 0x154
HM03 = 0x155
HM04 = 0x156
HM05 = 0x157
HM06 = 0x158
HM07 = 0x159
HM08 = 0x15A[/LEFT]
[/LEFT]
Thanks to TB Pro for letting me steal his item and poke list xP.
(I didn't want to get it off my other computer)
Thats all for now, i'll work on the tutorial when I can.
THANKYOU!
THANKYOU!
Last edited by a moderator: