PDA

View Full Version : [Tutorial] ScriptEd Tutorial


/Circa
March 27th, 2008, 04:57 PM
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.
#org 0x800000
lock
faceplayerWhat do we use for a message command like in PokeScript? In ScriptEd we use msgbox as the main command, i'm not too sure, but I think message works aswell. But theres a catch, after each msgbox command, we need an offset for the message. So be careful about that, offsets should have 100 between them just to be safe. If you want to find yourself an offset, open up your hex editor and search for some free space.

Now we need to add callstd, which is the boxset command.
There are a couple of callstd commands, here is a list I know.

1. callstd 0x6 - basic message box.
2. callstd 0x5 - used for yes and no scripts.
3. callstd 0x3 - signpost command.These are the ones you'll need most.

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.

Hi [player]!
How are you today?But!, we need to set that out accordingly. To make a new line use \n straight after the text, for a new box use \p. Which is used after \n. I think you get it >.<

So this is what it looks like:

#org 0x800100
= Hi \v\h01!\nHow are you today?But wait, whats \v\h01?
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:

#org 0x800000
lock
faceplayer
msgbox 0x800100
callstd 0x6
release
end

#org 0x800100
= Hey \v\h01!\nHow are you today?Happy? You made your first script!
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.

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 setFlags are used in many scripts, and there are many left over flags in the game.

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)



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.

msgbox 0x800000
callstd 0x5
compare lastresult 0x1
if 0x1 goto 0x800100When getting the Pikachu we need a new paragraph, and many more offsets.
So lets go over it, the commands go as below:

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:Get it?
Heres our final script:

#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
endTheres our final script, if we want the Pikachu to dissapear we need to add some #raw commands, but i'll describe that with the applymovement.

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.

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.


Pokeballs:
MASTER BALL 0x1
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

Healing Items:

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

Misc. Items:

SHOAL SALT = 0x2E
SHOAL SHELL = 0x2F
RED SHARD = 0x30
BLUE SHARD = 0x31
YELLOW SHARD = 0x32
GREEN SHARD = 0x33
HENTAI MAG = 0x34
NAME TAG = 0x35

Stat Increasing Items:


HP UP = 0x3F
PROTEIN = 0x40
IRON = 0x41
CARBOS = 0x42
CALCIUM = 0x43
RARE CANDY = 0x44
PP UP = 0x45
ZINC = 0x46
PP MAX = 0x47

X Items:

GUARD SPEC. = 0x49
DIRE HIT = 0x4A
X ATTACK = 0x4B
X DEFEND = 0x4C
X SPEED = 0x4D
X ACCURACY = 0x4E
X SPECIAL = 0x4F

Repeling Items:

POKEDOLL = 0x50
FLUFFY TAIL = 0x51
SUPER REPEL = 0x53
MAX REPEL = 0x54
ESCAPE ROPE = 0x55
REPEL = 0x56

Stones:

SUN STONE = 0x5D
MOON STONE = 0x5E
FIRE STONE = 0x5F
THUNDER STONE = 0x60
WATER STONE = 0x61
LEAF STONE = 0x62

Sell Items:

TINY MUSHROOM = 0x67
BIG MUSHROOM = 0x68
PEARL = 0x6A
BIG PEARL = 0x6B
STAR DUST = 0x6C
STAR PIECE = 0x6D
NUGGET = 0x6E
HEART SCALE = 0x6F

Mail:

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

Berries:

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

Hold Items:

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

Key Items:

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

TMs:

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

HMs:

HM01 = 0x153
HM02 = 0x154
HM03 = 0x155
HM04 = 0x156
HM05 = 0x157
HM06 = 0x158
HM07 = 0x159
HM08 = 0x15A




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!

cam911
March 28th, 2008, 06:52 PM
I have a quiestion i used this way to give a pokemon from officer in fire red when i answer yes i get the pokemon but when i talk to him again he asks the same question how do i make it so he just askes after ive recieved the pokemo. Hows it doing?

/Circa
March 28th, 2008, 08:05 PM
Just put in a setflag and a checkflag, so at the beginning of your script add this: (after #org)

checkflag 0x???
if 0x1 goto 0x??????

And then write yourself another paragraph:

#org 0x??????
lock
faceplayer
msgbox 0x??????
callstd 0x6
release
end

And write in your message :).

Hopefully you get that.

liuyanghejerry
March 28th, 2008, 09:05 PM
good job!
Seems that not only the*4 and zel still use it

[enter name here]
March 29th, 2008, 06:12 AM
how do you compile scripts on script-ed

Binary
March 29th, 2008, 08:30 AM
Wow, nice tutorial. I hope you add some more commands, and this should probably be very useful.
Too bad I don't use scriptED, but I might try xD. But nice work!

TB Pro
March 29th, 2008, 08:49 AM
Nice tut man! I recently began looking at/testing out ScriptED, just for fun. It is surprisingly simple. The only thing I dislike is having to type out the offsets(I'm lazy:P). I do believe I'll stick to Pokescript, though. I wish I'd have seen this when I decided to get into it:P Hey! I never said you could use my lists! Nah, JK! Anyways, BOL! P.S. Does this mean you're switching over to ScriptED?

/Circa
March 29th, 2008, 03:13 PM
;3445848']how do you compile scripts on script-ed

When you have your offsets all written out and your script, just click the compile button and type the offset into the script offset box in Advance Map.

Wow, nice tutorial. I hope you add some more commands, and this should probably be very useful.
Too bad I don't use scriptED, but I might try xD. But nice work!

Thanks for the comments, i'll be adding some more commands, and hopefully get into biggers ones like setmaptile and variables.
(which confused me for a while :P)

Nice tut man! I recently began looking at/testing out ScriptED, just for fun. It is surprisingly simple. The only thing I dislike is having to type out the offsets(I'm lazy:P). I do believe I'll stick to Pokescript, though. I wish I'd have seen this when I decided to get into it:P Hey! I never said you could use my lists! Nah, JK! Anyways, BOL! P.S. Does this mean you're switching over to ScriptED?

You should start using scriptEd nearing the end of a hack, so you get to choose your offsets and how much space you need. (even though it takes some time, PokeScript just looks straight for a bunch of FF's and takes that space. All you need is a hex editor)
I only stole borrowed them :).
I'm switching over to ScriptEd yes, but some more complex scripts I'll have to use PokeScript of XSE :P.

I'll write up more when i'm able too.
I'm too busy working on my hacks story and other minor things.

[enter name here]
March 30th, 2008, 12:51 AM
brillant tutorial :)
thank you for uploading it

cooley
March 30th, 2008, 05:26 AM
ScriptED I don't use because It takes too much space:
#org 0x800000
lock
faceplayer
message 0x800100 'Already 100 bytes?
callstd 0x6
release
end

Sometimes it doesn't work, like the compile button, and the decompiling sucks (so does pokescripts)
And mainly because you need extra stuff like Pokeroms.ini

XSE is similar to pokescript because it mainly replaces some commands with different names
and you use "@" instead of "$".
When XSE decompiles, it looks like scriptED

Finally ScriptED is too time consuming, unlless you have "Free Space Finder"
You or anyone else might not care what I've just said, but hey I had to say it somewhere.
I have to admit, when I was starting off, I tried to script with ScriptED, but it never worked.

If this tutorial was around then, maybe I would've changed my mind!

/Circa
March 30th, 2008, 02:28 PM
Like I mentioned, using a hex editor and a free space finder, you might only use the exact bytes :). Even though it is too time consuming you choose where your scripts go. Because PokeScript doesn't always determine the right amount. It will leave some spaces in your rom, and of course when you are close to finishing your hack, will waste all the space. (probably) While ScriptEd you can choose what offsets. What I do is I open my hex editor and write down three categories on a piece of paper. Small, Medium, Large. Then I right offsets underneath them :). Cross them off as I go.

But hey, you cant win everyone with that.

KIRA-DIABLO
March 31st, 2008, 05:17 AM
how to edit the pokedex? thx hope you'll answer

emman1234
April 2nd, 2008, 10:53 PM
hi Cheese Peow!! finally a tutorial for scriptEd. thanks for the basic info but i have some questions, would you kindly answer them?

1. after the script have been typed in the Rubikon ScriptEd, what's next?
2. How can i know the offsets to be used??
3. how will i PUT them in the rom (ruby)???
4. what's the compile button for????
5. how to make them work in the rom??>>?

i have used pokescript and bufrite and learned to do those things except for number 5. after BURNing the script inside the ruby rom and i tried to play it, and talk to the sprite with the intended script, i either: a. freeze the game, b. a message box comes up and the sprite keeps talking nonsense letters continuously, or c. nothing happens.

i've tried to change the commands so many times but thesame results happen. there are MANY script tutorials here BUT NOT ALL, A FEW ONLY, discuss on how to finish the script and put inside the rom with the proper offsets. and WORKS...so they say. can i really create a script for POKEMON RUBY?>?>?

PLSSSSSSSSSSS

/Circa
April 3rd, 2008, 12:21 AM
hi Cheese Peow!! finally a tutorial for scriptEd. thanks for the basic info but i have some questions, would you kindly answer them?

1. after the script have been typed in the Rubikon ScriptEd, what's next?
2. How can i know the offsets to be used??
3. how will i PUT them in the rom (ruby)???
4. what's the compile button for????
5. how to make them work in the rom??>>?

i have used pokescript and bufrite and learned to do those things except for number 5. after BURNing the script inside the ruby rom and i tried to play it, and talk to the sprite with the intended script, i either: a. freeze the game, b. a message box comes up and the sprite keeps talking nonsense letters continuously, or c. nothing happens.

i've tried to change the commands so many times but thesame results happen. there are MANY script tutorials here BUT NOT ALL, A FEW ONLY, discuss on how to finish the script and put inside the rom with the proper offsets. and WORKS...so they say. can i really create a script for POKEMON RUBY?>?>?

PLSSSSSSSSSSS

I've noticed sometimes aswell that the script comes out strange, but thats for the creator to find out, if you truly want to be a good scripter.

When you finish the script in scriptEd click compile, but make sure all your offsets are there. The offsets themselves are used like this: 0x??????. You need to find the offsets yourself, and use them yourself. The compile button is to insert scripts into your rom, but when you insert it, you need to go to Advance Map and change the offset for the script to your own.

emman1234
April 3rd, 2008, 03:13 PM
hi again cheesePeow! thanks for replying, i forgot to tell you that everytime i click COMPILE and choose the rom i want to insert the script and click save, an error occurs "Run-time error '53' File Not Found".
what can i do?? thats the reason why i tried to use poketscript. Can i use Elite Map instead of Advance map when inserting the offsets?? the advance map takes too long to load.
im also using free space finder.

thanks again.

emman1234
April 3rd, 2008, 03:17 PM
i'm not an expert in poke hack but you might want to try DEXTER program to edit the pokedex info of pokemons. though i can't recall if i got the program along with Elite map, but i once tried to edit it using DEXTER, until my hopes of creating a pokehaack fall when i cant create a working event script.

anyway try DEXTER.

[enter name here]
April 4th, 2008, 07:35 AM
when i click compile it says
"Loading command database...
Empty command database detected. Program halted."

thank you in advance

VxOsx
April 11th, 2008, 04:28 AM
The "Compile" button is greyed out for me.. I can't even click it.. -.-
and I followed everything you said to do.. O_O

Pheya
April 11th, 2008, 06:11 AM
I have a problem when I try to compile it, I used your givepokemon script to test it, but when I try to compite it, this message shows up:

Rubikon 1.3 by Kyoufu Kawa
--------------------------------------------------------------
Loading command database...
Empty command database detected. Program halted.


My ROM's name is pkmnruby.gba by the way.

matmold
April 14th, 2008, 05:38 PM
#org 0x800000
lock
faceplayer
msgbox 0x800100
callstd 0x6
release
end

#org 0x800100
= welcome \v\h01!\nare you new?

Loading command database...
Empty command database detected. Program halted.
and

Run-time error '53' File Not Found.

appears alot when compiling.

i think i need help.
p.s. i have only just started scripting

dragonarche
April 17th, 2008, 05:40 AM
do you know the green scqares with the yellow s in advance map
whell i was wondering what type of scripts are they

Dr Gregory House
April 18th, 2008, 12:07 AM
hi,
i made a script using scriptED where a man gives you a totodile.
When i load the rom, i get a white screen.
What's wrong?
here's the script:

#org 0x811111
Lock
FacePlayer
MsgBox Hi \v\h01\! Take this\nTotodile!
BoxSet 0x6
GivePokemon 0x208 0x7 0x0
Release
End

#org 0x
= Thanks \v\h01\
Release
End

0m3GA ARS3NAL
April 22nd, 2008, 08:16 PM
ok, I have tried everything I can think of to compile this .rbc file onto my rom, and I just cant

will someone please tell me how to compile the scripts to my game?
(compile is to put in)

Tropical Sunlight
April 23rd, 2008, 04:56 AM
The "Compile" button is greyed out for me.. I can't even click it.. -.-
and I followed everything you said to do.. O_O

The same happened to me........................

Qwerty-117
April 24th, 2008, 12:39 AM
when i save the compile it sais:
Loading command database...
Empty command database detected. Program halted.
what do i do?

Perfect_Palkia_10
April 26th, 2008, 08:08 PM
i've done the script but i don't understand how to put it into a rom. what do i do now?

master morty
May 6th, 2008, 02:07 PM
i'm just an amatuer at scripting but I do know that you have to
save a script to the elite map folder because thats where the command database is
but after that for me the rbcklog pops up with blah blah blah cleaning file closing something and the script never gets compiled what do I do?
note I am not an amatuer any more I'm really quite good (not too brag though XD) I switched over to XSE and I love it everyone else should to

Jawash
May 6th, 2008, 08:39 PM
i'm just an amatuer at scripting but I do know that you have to
save a script to the elite map folder because thats where the command database is
but after that for me the rbcklog pops up with blah blah blah cleaning file closing something and the script never gets compiled what do I do?

Lemme tell ya what i do.
if you have ScriptED [|P]
you just make you script with notepad, whatever it may be, then save is as 'all files' and then for example; givepoemonscript.rbc... should be in the name file selection. name it what you want, then put [period]rbc
[i'm sure you knew that.]

save it to desktop, like me ^-^ or make a script folder on your desktop too.
then go to the script, right-click, then click 'compile script.' [second option]
it's be easy.

then when the (Buf Rite) box pops up, click the blue book and load your rom.
after that, click the flashlight and when it finds those weird looking 'words' click the first one. i always do.
then assign.
[i normally have to click the check box then reserve for trainer scripts o,0]
but after you hit your button
it goes back to the blue book screen, click file-->burn
then the offset you began you script with, write it down or copy/cut it.
then paste it IN A-MAP on the sprite you want.
tis easy.
i really hope i helped.
it works for fire red, ruby, emerald.
i haven't tried it with any other game.
so eh.
but i recommend a-map man, for mostly everything/ish.
but DL Elite map anyway for the tools =D
[i know you have already.]
happy hacking?
it's easier than it looks.
i just really haven't grasped hold completely of making trainer scripts that well anywhoozer.
but you should use a base script and add to it when needed...
O,O, sorry for the long post >,<

cloudffvii2696
May 7th, 2008, 05:10 PM
So none of the pokescript codes will work with this?
and is pokescript better for beginners, or is this?

Jawash
May 8th, 2008, 08:46 PM
So none of the pokescript codes will work with this?
and is pokescript better for beginners, or is this?


personally, i think scriptED is the way to go.
i've kinda tickled my way through pokescript and didn't like it.
...
but that is just the voice of one person.
and a 'n00b' at that.
=]
but an awesome one!!!
xD




Oh wait! Scooze me but USE >>scriptED<< CG.... IS TEH BEST!! I can't remember who made it but I so wish I could remember to deliver cred.

dragonarche
May 9th, 2008, 04:02 AM
how do you make scripts only happen onece
iam using the green squares with the "S" in it
please help i cano't complete my hack with out it:cool:

otterdude
May 19th, 2008, 04:29 PM
Whenever I try to open a script I've made from scripted, It loads an endless string of what appears to be nothing but random commands and numbers. It does this even when I haven't even done anything to said event yet. Also, when I try to open an event directly from Advance Map, all it seems to do is slow down my entire computer. Is there something I'm doing wrong here?

PikachuEX
May 25th, 2008, 07:06 AM
When I try to compile a script this pops up:
Empty command database detected. Program halted.

What's the problem?

Platinum Lucario
May 25th, 2008, 07:23 AM
When I try to compile a script this pops up:

What's the problem?
Make sure you have the script like this:
#org $begin
lock
faceplayer
message $howareyou
$howareyou 1 = Hey \v\h01!\nHows your journey going?
boxset 6
release
end
Write it on the Notepad then save as a .rbc file.
Ether that or you might have to re-install Pokéscript.

PikachuEX
May 25th, 2008, 08:36 AM
I'm not using PokéScript, I'm using ScriptEd.

master morty
May 25th, 2008, 01:55 PM
thanks Jawash that really helped
I'm grounded for the summer for no reason
but I can still get on at the apple store XD
not grounded anymore though XDXD. My parents know who's boss over the computer

master morty
May 29th, 2008, 12:57 PM
can someone please make a hex table for all the pokemon? my script wont work!
#org 0x6B0A0C
lock
message 6B0A0D
giveitem 0x1 0x1
WildBattle 0x83 0x63 0x1
release
end
#org 0x6B0A0D
= now you will be
facing my level 63 farfetched
duck prepare yourself!

~Teh Panda~
June 3rd, 2008, 03:46 PM
Great, this actually helped me a lot with XSE, the decompiled scripts on it look almost identical! Thanks for this ;)

The-Fox
June 4th, 2008, 01:32 AM
Thanks for helping me out, If I need any help I will be back soon.

Hammered
June 12th, 2008, 01:01 PM
uhh, nice walkthrough but you never told us how to put it in advance map and from the first step, the first step being creating a person event, i think...

master morty
June 17th, 2008, 05:47 AM
hey I tried to make a script where there two nightingales (my custom trainers) standing and when you step on a tile the one to the left moves up but before that the right one says halt
after that the right one challenges you to a battle after that the second one but when I compiled the script the game freezes when I stand on the script tile what did I do wrong? here is the script note I did not put in setflag and checkflag because this is a script test


#org 0x76ECF0
message 0x800000
boxset 0x6
applymovement 0x5 0x800100
pause 0x20
#raw 0x5C
trainerbattle 0x0 0x46 0x0 0x76ED30 0x76ED60
#raw 0x5C
trainerbattle 0x0 0x46 0x0 0x800200 0x800300
release
end
#org 0x800000
= Halt!
#org 0x800100
#raw 0x09
#raw 0x09
#raw 0xFE
#org 0x76ED30
= before you battle our leader,
you must defeat us in a match
#org 0x76ED60
= how did you beat me!?!
#org 0x800200
= she was weak now it's my turn!
#org 0x800300
= I stand in awe at your skill
actually I fixed it all I needed to do was assign the script to an npc

master morty
June 18th, 2008, 03:46 AM
gaaaaaaahhhhhaaaaaarrrrrrrgh! if it says loading command database empty command database loaded program halted the put your rom in the elite map folder if it says run time error 53 file not found the rename it to something like this (rubyhack.gba) no spaces or symbols just letters. if the compile button is greyd then put a rom in the elite map folder and rename it apropriatly then it should work.
to compile just click compile and find your rom in the folder double click it and say yes to replacing it then the command database and rubikon log will pop up close it then open diamond cutter and type the name of your rom in the folder my example is rubyhack.gba after you type that click rubide.rbc and uncheck the boxes at the bottom
after that click o.k. and the log will pop up again close it and open advance map and type the offset at the very beggining of the script #org 0x800000 or whatever in the offset box of a person or a new person you made and test it it should work stop complaining it is driving me crazy!!!

DPP Rival
July 1st, 2008, 02:13 PM
Yeah, mine won't let me compile, any help for me? the button can't be pressed, whats the problem?

master morty
July 1st, 2008, 04:44 PM
Yeah, mine won't let me compile, any help for me? the button can't be pressed, whats the problem?


Your rom must be in the elite map folder and must have ONLY letters in the name e.g.

pokemonruby.gba

antiman
July 23rd, 2008, 06:19 AM
thats realy usefull:)
I will use that!
tnx

Chibi Robo
September 21st, 2008, 04:08 PM
I have a question does any body knows how to insert the script on a windows vista....

mrpwnageisme
September 24th, 2008, 03:14 PM
How do i compile???i've tried but nothing happened

AutumnBreeze
August 28th, 2009, 03:38 PM
How do you compile? It won't let me for some reason. I'm trying the Give Pokemon script.

Pokepal17
September 7th, 2009, 02:28 PM
I have a question does any body knows how to insert the script on a windows vista....

How do i compile???i've tried but nothing happened

How do you compile? It won't let me for some reason. I'm trying the Give Pokemon script.

Make sure your ROM names has no spaces in it and it only made up of letters and numbers. Place it into the same folder as ScriptEd. Then load up your script and click compile and it will compile into the ROM.

ShaQuL
January 9th, 2011, 05:57 AM
my script still doesn't work...
this is what it looks like...
i want a policeman to say that but in the game when i go up to him and press a he doesn't say anything...why??
#org 0x800000
lock
faceplayer
msgbox 0x800100
callstd 0x6
release
end

#org 0x800100
= Hey \v\h01!\nHow are you today?

colcolstyles
January 9th, 2011, 05:53 PM
ShaQul, please use the Script Help Thread for scripting questions. I'm going to close this thread because, although revival is permitted here, your post isn't constructive and ScriptEd is outdated.

Closed