| CM'z pokescripting tutorial | |
|
+5Amphy Gomlet X MunchingOrange manalord ChikoritaMudkipz 9 posters |
|
Author | Message |
---|
ChikoritaMudkipz
Posts : 91 Join date : 2009-06-30 Age : 29 Location : Canada
| Subject: CM'z pokescripting tutorial Tue Aug 11, 2009 6:33 pm | |
| Well with all the members that want to create epic hacks but don't know where to start, I'm here to try and help you guys out. the tutorial will be set up like so: SUBTITLE - Code:
-
example script explanation - Spoiler:
any list to help with the script
a video link I might post for that section so let's get started with the basics.Message Script - Code:
-
#org $start lock faceplayer message $1 boxset 6 release end
#org $1 $1 1 =Bill is awesome.\nHe made the box system I'll start from the top. #org $start is the beginning of the script. Lock makes it so the OW (over world) your interacting with, not walk around any more. faceplayer does it what it says, makes the OW face the player. message $1 will take it to #org $1. boxset 6 makes the text close after you press the key. there are more that one boxset however. boxset 5 gives a yes/no option. and boxset 4 doesn't close. release and end are straight forward, it releases the OW to what it was doing, and end ends the script. the /n will start a new line in the message box. there can only be 30 characters on a line. however if you put /n again, you won't see it. so you need to clear the box so your message to continue. for that, we use /p that's about all for now, let's move on to flags. Flagsflags are used if you only want something to happen once and more. there basically an invisible value that the hero takes with him. - Code:
-
#org $start lock faceplayer checkflag 0x501 if b_true goto $done message $1 boxset 6 setflag 0x501 release end
#org $done message $2 boxeset 6 release end
#org $1 $1 1 =hello.
#org $2 $2 1 =you've already talked to me alright so what's new here, well for starters, checkflag 0x501 that will check to see if you have flag 0x501. the next line says if that's true, go to $done. and if not, continue the script. you can also change true to false, which will make it so if you don't have the flag it goes to $done in $done, I have setflag 0x501, which will give you the flag 0x501. some flags the game hasn't already used are 0x501-0x79F and 0x200-0x29F but if you play around with it, you'll find more. also here's some impotant setflags - Spoiler:
Fire Red: 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
Ruby/Sapphire: 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: 0x860 - Pokemon Menu 0x861 - Pokedex Menu 0x862 - Pokenav Menu
well that's it for flags, next is give item. GiveItem - Code:
-
#org $start lock faceplayer checkflag 0x502 if b_true goto $done message $1 boxset 6 giveitem 13 1 setflag 0x502 release end
#org $start message $2 boxset 6 release end
#org $1 $1 1 =I work for the pokemart./n here's a sample. #org $2 $2 1 =enjoy your free sample. give item has 2 number's after it. The item number, and the amount. it basically appears like this. giveitem [potion][1] here's a list of items - Spoiler:
Master Ball 1 Ultra Ball 2 Great Ball 3 Poké Ball 4 Safari Ball 5 Net Ball 6 Dive Ball 7 Nest Ball 8 Repeat Ball 9 Timer Ball 10 Luxury Ball 11 Premier Ball 12 Potion 13 Antidote 14 Burn Heal 15 Ice Heal 16 Awakening 17 Parlyz Heal 18 Full Restore 19 Max Potion 20 Hyper Potion 21 Super Potion 22 Full Heal 23 Revive 24 Max Revive 25 Fresh Water 26 Soda Pop 27 Lemonade 28 Moomoo Milk 29 Energypowder 30 Energy Root 31 Heal Powder 32 Revival Herb 33 Ether 34 Max Ether 35 Elixir 36 Max Elixir 37 Lava Cookie 38 Blue Flute 39 Yellow Flute 40 Red Flute 41 Black Flute 42 White Flute 43 Berry Juice 44 Sacred Ash 45 Shoal Salt 46 Shoal Shell 47 Red Shard 48 Blue Shard 49 Yellow Shard 50 Green Shard 51 HP Up 63 Protein 64 Iron 65 Carbos 66 Calcium 67 Rare Candy 68 PP Up 69 Zinc 70 PP Max 71 Guard Spec. 73 Dire Hit 74 X Attack 75 X Defend 76 X Speed 77 X Accuracy 78 X Special 79 Poké Doll 80 Fluffy Tail 81 Super Repel 83 Max Repel 84 Escape Rope 85 Repel 86 Sun Stone 93 Moon Stone 94 Fire Stone 95 Thunderstone 96 Water Stone 97 Leaf Stone 98 Tinymushroom 103 Big Mushroom 104 Pearl 106 Big Pearl 107 Stardust 108 Star Piece 109 Nugget 110 Heart Scale 111 Orange Mail 121 Harbor Mail 122 Glitter Mail 123 Mech Mail 124 Wood Mail 125 Wave Mail 126 Bead Mail 127 Shadow Mail 128 Tropic Mail 129 Dream Mail 130 Fab Mail 131 Retro Mail 132 Cheri Berry 133 Chesto Berry 134 Pecha Berry 135 Rawst Berry 136 Aspear Berry 137 Leppa Berry 138 Oran Berry 139 Persim Berry 140 Lum Berry 141 Sitrus Berry 142 Figy Berry 143 Wiki Berry 144 Mago Berry 145 Aguav Berry 146 Iapapa Berry 147 Razz Berry 148 Bluk Berry 149 Nanab Berry 150 Wepear Berry 151 Pinap Berry 152 Pomeg Berry 153 Kelpsy Berry 154 Qualot Berry 155 Hondew Berry 156 Grepa Berry 157 Tamato Berry 158 Cornn Berry 159 Magost Berry 160 Rabuta Berry 161 Nomel Berry 162 Spelon Berry 163 Pamtre Berry 164 Watmel Berry 165 Durin Berry 166 Belue Berry 167 Liechi Berry 168 Ganlon Berry 169 Salac Berry 170 Petaya Berry 171 Apicot Berry 172 Lansat Berry 173 Starf Berry 174 Enigma Berry 175 Brightpowder 179 White Herb 180 Macho Brace 181 Exp. Share 182 Quick Claw 183 Soothe Bell 184 Mental Herb 185 Choice Band 186 King's Rock 187 Silverpowder 188 Amulet Coin 189 Cleanse Tag 190 Soul Dew 191 Deepseatooth 192 Deepseascale 193 Smoke Ball 194 Everstone 195 Focus Band 196 Lucky Egg 197 Scope Lens 198 Metal Coat 199 Leftovers 200 Dragon Scale 201 Light Ball 202 Soft Sand 203 Hard Stone 204 Miracle Seed 205 Blackglasses 206 Black Belt 207 Magnet 208 Mystic Water 209 Sharp Beak 210 Poison Barb 211 Nevermeltice 212 Spell Tag 213 Twistedspoon 214 Charcoal 215 Dragon Fang 216 Silk Scarf 217 Up-grade 218 Shell Bell 219 Sea Incense 220 Lax Incense 221 Lucky Punch 222 Metal Powder 223 Thick Club 224 Stick 225 Red Scarf 254 Blue Scarf 255 Pink Scarf 256 Green Scarf 257 Yellow Scarf 258 Mach Bike 259 Coin Case 260 Itemfinder 261 Old Rod 262 Good Rod 263 Super Rod 264 S.S. Ticket 265 Contest Pass 266 Wailmer Pail 268 Devon Goods 269 Soot Sack 270 Basement Key 271 Acro Bike 272 PokéBlock Case 273 Letter 274 Eon Ticket 275 Red Orb 276 Blue Orb 277 Scanner 278 Go-goggles 279 Meteorite 280 Rm. 1 Key 281 Rm. 2 Key 282 Rm. 4 Key 283 Rm. 6 Key 284 Storage Key 285 Root Fossil 286 Claw Fossil 287 Devon Scope 288 TM01 289 TM02 290 TM03 291 TM04 292 TM05 293 TM06 294 TM07 295 TM08 296 TM09 297 TM10 298 TM11 299 TM12 300 TM13 301 TM14 302 TM15 303 TM16 304 TM17 305 TM18 306 TM19 307 TM20 308 TM21 309 TM22 310 TM23 311 TM24 312 TM25 313 TM26 314 TM27 315 TM28 316 TM29 317 TM30 318 TM31 319 TM32 320 TM33 321 TM34 322 TM35 323 TM36 324 TM37 325 TM38 326 TM39 327 TM40 328 TM41 329 TM42 330 TM43 331 TM44 332 TM45 333 TM46 334 TM47 335 TM48 336 TM49 337 TM50 338 HM01 339 HM02 340 HM03 341 HM04 342 HM05 343 HM06 344 HM07 345 HM08 346 Oak's Parcel 349 Poké Flute 350 Secret Key 351 Bike Voucher 352 Gold Teeth 353 Old Amber 354 Card Key 355 Lift Key 356 Helix Fossil 357 Dome Fossil 358 Silph Scope 359 Bicycle 360 Town Map 361 VS Seeker 362 Fame Checker 363 TM Case 364 Berry Pouch 365 Teachy TV 366 Tri-pass 367 Rainbow Pass 368 Tea 369 Mysticticket 370 Auroraticket 371 Powder Jar 372 Ruby 373 Sapphire 374
that's all I need to add on giveitem I think well that's all for now, later tonight I'll post some more on yes/no and give pokemon | |
|
| |
manalord
Posts : 306 Join date : 2009-06-13 Age : 34 Location : Somewere
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 6:38 pm | |
| Post A vid on how u put in the national dex script STEP by Step plz. No one can do it. | |
|
| |
ChikoritaMudkipz
Posts : 91 Join date : 2009-06-30 Age : 29 Location : Canada
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 6:39 pm | |
| - manalord wrote:
- Post A vid on how u put in the national dex script STEP by Step plz. No one can do it.
I've come up with a better one, I'll have a header on it also | |
|
| |
manalord
Posts : 306 Join date : 2009-06-13 Age : 34 Location : Somewere
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 7:37 pm | |
| Ok Because the one u put up b4 dosnt work when i insert it and a lot of Jhoto/Hoeen pokes are avilable in the beging, BTW do u want to script 4 my hack because i am REALLY bad at it because i have a hard time making people speak. lolz | |
|
| |
ChikoritaMudkipz
Posts : 91 Join date : 2009-06-30 Age : 29 Location : Canada
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 7:55 pm | |
| - manalord wrote:
- Ok Because the one u put up b4 dosnt work when i insert it and a lot of Jhoto/Hoeen pokes are avilable in the beging, BTW do u want to script 4 my hack because i am REALLY bad at it because i have a hard time making people speak. lolz
I made a video on the national dex thing I'll upload tonight. I'm scripting for 2 hacks right now, my personal one and the SOS one. so no. however this tutorial should help you. | |
|
| |
manalord
Posts : 306 Join date : 2009-06-13 Age : 34 Location : Somewere
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 8:01 pm | |
| ok thanxs anyway :-) hope the vid helps. Also be carfeul with moving traniers on the map because i am 99% postive that is what causes the sprite changer gift. in Emerald X that glitch happens and it only activates in places were i moved traniers | |
|
| |
ChikoritaMudkipz
Posts : 91 Join date : 2009-06-30 Age : 29 Location : Canada
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 8:10 pm | |
| - manalord wrote:
- ok thanxs anyway :-) hope the vid helps. Also be carfeul with moving traniers on the map because i am 99% postive that is what causes the sprite changer gift. in Emerald X that glitch happens and it only activates in places were i moved traniers
that's why I write my own trainer scripts if they don't work =P | |
|
| |
MunchingOrange
Posts : 352 Join date : 2009-04-08 Age : 29 Location : Puerto Rico
Characters CLASS: Wood Elf HP: (9001/9001) Tribe: Steelie
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 8:46 pm | |
| Awesome tutorial! I have a request: could you show me how to give away Pokemon. | |
|
| |
Gomlet X
Posts : 512 Join date : 2009-06-28 Age : 28 Location : In front of my comp
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 9:04 pm | |
| Coo tutorial, I'm too stupid for this crap though :P | |
|
| |
Gomlet X
Posts : 512 Join date : 2009-06-28 Age : 28 Location : In front of my comp
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 9:07 pm | |
| Coo tutorial, I'm too stupid for this crap though :P | |
|
| |
manalord
Posts : 306 Join date : 2009-06-13 Age : 34 Location : Somewere
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 9:25 pm | |
| these scripts will still help howeverm :-) | |
|
| |
ChikoritaMudkipz
Posts : 91 Join date : 2009-06-30 Age : 29 Location : Canada
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 9:29 pm | |
| - MunchingOrange wrote:
- Awesome tutorial!
I have a request: could you show me how to give away Pokemon. next I'll do yes/no and give pokemon | |
|
| |
manalord
Posts : 306 Join date : 2009-06-13 Age : 34 Location : Somewere
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 9:40 pm | |
| | |
|
| |
ChikoritaMudkipz
Posts : 91 Join date : 2009-06-30 Age : 29 Location : Canada
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 10:56 pm | |
| GivePokemon&Yes/No - Code:
-
#org $start checkflag 0x828 if b_true goto $done message $1 boxset 5 compare LASTRESULT 0x1 if b_true goto $take message $2 boxset 6 release end
#org $take givepokemon 83 10 339 fanfare 0x13E message $3 boxset 4 waitfanfare #raw 0x68 setflag 0x828 message $4 boxset 5 compare LASTRESULT 0x1 if b_true gosub $name message $5 boxset 6 release end
#org $name call 0x1A74EB return
#org $done message $6 boxset 6 release end
#org $1 $1 1 =I have this Farfetch'd, but it\n scares me! please take it?
#org $2 $2 1 =That's okay. I'm sure someone\nelse will take it.
#org $3 $3 1 =\c\h01\h02You received a Farfetch'd!
#org $4 $4 1 =\c\h01\h02Would you like to rename Farfetch'd?
#org $5 $5 1 =It has an HM on it also.
#org $6 $6 1 =I hope you're taking good care of\nFarfetch'd. alright so first thing new is boxset 5. this gives a yes/no option. compar result 0x1 checks if yes or no were pressed. the if b_true goto $take checks if it's true that yes was pressed, change it to false and it will check for no. next new thing is givepokemon. this isn't as convenient as giveitem, so we'll need to add some things ourself. but I'm skipping ahead, give pokemon has 3 values. pokemon/level/item held for the example I have [farfetch'd][level 10][holding HM01 CUT] next we have fanfare 0x13E this is the jingle that plays when you recieve something. after that is a message: you received farfetch'd but following that, is boxset 4. boxset 4 doesn't close. but then why did I use it? well there needs to be time for the jingle to play. so we put waitfanfare. but in order to make the box close we stick in this handy command #raw 0x68 this turns a boxset 4 into a boxset 6. then we setflag 0x828 which is the setflag that opens the pokemon option in the menu. next we have a another yes/no. this is for the nickname. I'm not to familiar with this but call 0x1A74EB return calls up the nickname screen and then returns back to the script. Where another message is displayed in the script ends. don't worry this script works. also, if they already have a pokemon, you should change the setflag. Oh I almost forgot, a list of pokemon. - Spoiler:
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 CHIMECHO 411
if you want to take out the yes/no option and just give them the pokemon, your going to need the change the first boxset to 6 and combine $take with $start. You should be able to do this yourself. Apply national dexI get A lot of questions about this. - Code:
-
#org $start checkflag 0x828 if b_false goto $done checkflag 0x500 if b_true goto $done applymovement 0x01 $move pausemove 0x0 message $1 boxset 6 special 0x16F applymovement 0x01 $move2 setflag 0x500 release end
#org $done release end
#org $move #raw 0x62 0x12 0x12 0x01 0xFE
#org $move2 #raw 0x13 0x13 0xFE
#org $1 $1 1 =Hold on\pI'm just going to Update\nyour pokedex.
I won't do to much explaining, although this is a good opportunity to explain special. the are in a way like flags, and at the same time, completely opposite. Maybe a list will help. - Spoiler:
special 0x0 - Heal Pokemon special 0x3C - Acess Bill's PC (FR/LG) special 0x98 - Going up to Mountain (R/S) special 0x9C - Wally Catch (R/S) special 0x9F - choose A Pokemon (R/S) special 0xE0 - Pokeblock Case (R/S) special 0x10F - Restart Game special 0x110 - Hall of Fame and Credits special 0x111 - Elevator Animation special 0x119 - Groudons Orb effect (R/S) special 0x131 - Earthquake (R/S) special 0x132 - Show Floors special 0x136 - Earthquake (FR/LG) special 0x137 - Lava Battle special 0x156 - Battle with Ghost (FR/LG) special 0x157 - Get on Bike (FR/LG) special 0x161 - Start Surfing (FR/LG) special 0x166 - Nickname special 0x16F - Activate National Dex (FR/LG) special 0x17B - Seagallop Animation special 0x191 - SS. Anne Leaving special 0x1F3 - Activate National Dex (Emerald)
they activate special things... depending on what you use, you'll have to use different codes to accompany them. but they all pretty much work on there own. as for the national dex script, this does NOT go on a person. I will be uploading a video tonight and I will add a link to this on how to apply it. Video: https://www.youtube.com/watch?v=_2YvzlI_dC0well that's all for now, tomorrow I'll do some apply movement and maybe trainer battle. remember anyone can do this. my sign up date is when I started learning. I've been doing this a little over a month and I'm only fourteen. it's the easiest type of script I've ever worked with. also if any one has requests, I'll try to do them
Last edited by ChikoritaMudkipz on Wed Aug 12, 2009 2:04 am; edited 2 times in total | |
|
| |
Gomlet X
Posts : 512 Join date : 2009-06-28 Age : 28 Location : In front of my comp
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 11:08 pm | |
| Wow, all the national dex stuff is what always confuzzled meh lol | |
|
| |
ChikoritaMudkipz
Posts : 91 Join date : 2009-06-30 Age : 29 Location : Canada
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 11:09 pm | |
| - Gomlet X wrote:
- Wow, all the national dex stuff is what always confuzzled meh lol
yeah I made a video, It should help A lot. | |
|
| |
manalord
Posts : 306 Join date : 2009-06-13 Age : 34 Location : Somewere
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 11:15 pm | |
| | |
|
| |
ChikoritaMudkipz
Posts : 91 Join date : 2009-06-30 Age : 29 Location : Canada
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 11:16 pm | |
| - manalord wrote:
- oit makes me confused
what does? | |
|
| |
manalord
Posts : 306 Join date : 2009-06-13 Age : 34 Location : Somewere
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 11:17 pm | |
| | |
|
| |
ChikoritaMudkipz
Posts : 91 Join date : 2009-06-30 Age : 29 Location : Canada
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 11:18 pm | |
| - manalord wrote:
- the national dex script
once again, the video should help | |
|
| |
Gomlet X
Posts : 512 Join date : 2009-06-28 Age : 28 Location : In front of my comp
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 11:23 pm | |
| I need to check out the video.
PS: CMZ check out the pokemon Gomenko Region section its manalords new hack :) | |
|
| |
manalord
Posts : 306 Join date : 2009-06-13 Age : 34 Location : Somewere
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 11:25 pm | |
| | |
|
| |
Gomlet X
Posts : 512 Join date : 2009-06-28 Age : 28 Location : In front of my comp
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 11:30 pm | |
| | |
|
| |
ChikoritaMudkipz
Posts : 91 Join date : 2009-06-30 Age : 29 Location : Canada
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 11:31 pm | |
| - Gomlet X wrote:
- manalord wrote:
- :-)
lol alright but this is a tutorial thread not msn so unless you have a request or a question, please stop posting =) | |
|
| |
manalord
Posts : 306 Join date : 2009-06-13 Age : 34 Location : Somewere
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 11:37 pm | |
| ok, can u give me the running shoes Script because Brock's town is third in my hack and i doubt people want to wait tell after they have beaten 3 gyms to get it.
BTW do u want to be a GYM Leader/ E4 member in my hack :-) | |
|
| |
ChikoritaMudkipz
Posts : 91 Join date : 2009-06-30 Age : 29 Location : Canada
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 11:38 pm | |
| - manalord wrote:
- ok, can u give me the running shoes Script because Brock's town is third in my hack and i doubt people want to wait tell after they have beaten 3 gyms to get it.
BTW do u want to be a GYM Leader/ E4 member in my hack :-) the flag for that is under the spoiler in flags | |
|
| |
manalord
Posts : 306 Join date : 2009-06-13 Age : 34 Location : Somewere
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 11:43 pm | |
| | |
|
| |
ChikoritaMudkipz
Posts : 91 Join date : 2009-06-30 Age : 29 Location : Canada
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 11:45 pm | |
| - manalord wrote:
- ???????????
0x82F activates the running shoes read the tutorial... | |
|
| |
manalord
Posts : 306 Join date : 2009-06-13 Age : 34 Location : Somewere
| Subject: Re: CM'z pokescripting tutorial Tue Aug 11, 2009 11:47 pm | |
| | |
|
| |
ChikoritaMudkipz
Posts : 91 Join date : 2009-06-30 Age : 29 Location : Canada
| Subject: Re: CM'z pokescripting tutorial Wed Aug 12, 2009 2:05 am | |
| | |
|
| |
Amphy
Posts : 868 Join date : 2009-04-30 Age : 27
| Subject: Re: CM'z pokescripting tutorial Wed Aug 12, 2009 9:03 am | |
| nice, we need a good tutorial | |
|
| |
ChikoritaMudkipz
Posts : 91 Join date : 2009-06-30 Age : 29 Location : Canada
| Subject: Re: CM'z pokescripting tutorial Thu Aug 13, 2009 1:44 am | |
| Well I guess I'll do a small one on apply movement ApplyMovementfor the example I'll use the national dex script - Code:
-
#org $start checkflag 0x828 if b_false goto $done checkflag 0x500 if b_true goto $done applymovement 0x01 $move pausemove 0x0 message $1 boxset 6 special 0x16F applymovement 0x01 $move2 setflag 0x500 release end
#org $done release end
#org $move #raw 0x62 0x12 0x12 0x01 0xFE
#org $move2 #raw 0x13 0x13 0xFE
#org $1 $1 1 =Hold on\pI'm just going to Update\nyour pokedex.
well, A lot of this is explained in the video, but I'll try and get more in depth. now, not as I originally thought as a programmer, but it doesn't rely on x and y axis. but let's get to the script. applymovement 0x01 $move will apply movement to the person in move with an event number of 1. if you want to apply movement to the hero, you put 0xFF pause move waits for the move the to finish. there is also a way to put the exact amount of time you want to wait, but that seems pointless, when pausemove calculates it automatically. under move you simply put #raw and then the movements you want, here's a list for you. FireRed/LeafGreen - Spoiler:
Face Down 0x00 Face Up 0x01 Face Left 0x02 Face Right 0x03 Step Down (Very Slow) 0x08 Step Up (Very Slow) 0x09 Step Left (Very Slow) 0x0A Step Right (Very Slow) 0x0B Step Down (Slow) 0x0C Step Up (Slow) 0x0D Step Left (Slow) 0x0E Step Right (Slow) 0x0F Step Down (Normal) 0x10 Step Up (Normal) 0x11 Step Left (Normal) 0x12 Step Right (Normal) 0x13 Jump Down 2 Squares 0x14 Jump Up 2 Squares 0x15 Jump Left 2 Squares 0x16 Jump Right 2 Squares 0x17 Step Down (Fast) 0x1D Step Up (Fast) 0x1E Step Left (Fast) 0x1F Step Right (Fast) 0x20 Step on the Spot Down 0x21 Step on the Spot Up 0x22 Step on the Spot Left 0x23 Step on the Spot Right 0x24 Step on the Spot Down (Fast) 0x25 Step on the Spot Up (Fast) 0x26 Step on the Spot Left (Fast) 0x27 Step on the Spot Right (Fast) 0x28 Step on the Spot Down (Very Fast) 0x29 Step on the Spot Up (Very Fast) 0x2A Step on the Spot Left (Very Fast) 0x2B Step on the Spot Right (Very Fast) 0x2C Face Down (Non-Instant) 0x2D Face Up (Non-Instant) 0x2E Face Left (Non-Instant) 0x2F Face Right (Non-Instant) 0x30 Slide Down 0x31 Slide Up 0x32 Slide Left 0x33 Slide Right 0x34 Slide Down On Right Foot 0x3D Slide Up On Right Foot 0x3E Slide Left On Right Foot 0x3F Slide Right On Right Foot 0x40 Slide Down On Left Foot 0x41 Slide Up On Left Foot 0x42 Slide Left On Left Foot 0x43 Slide Right On Left Foot 0x44 Face Player 0x4A Face Away from Player 0x4B Jump Down 1 Square 0x4E Jump Up 1 Square 0x4F Jump Left 1 Square 0x50 Jump Right 1 Square 0x51 Jump in Place (Facing Down) 0x52 Jump in Place (Facing Up) 0x53 Jump in Place (Facing Left) 0x54 Jump in Place (Facing Right) 0x55 Jump in Place (Facing Down->Up) 0x56 Jump in Place (Facing Up->Down) 0x57 Jump in Place (Facing Left->Right) 0x58 Jump in Place (Facing Right->Left) 0x59 Disappear 0x60 Reappear 0x61 "!" box popup 0x62 "?" box popup 0x63 "X" box popup 0x64 "!!" box popup 0x65 "^_^" box popup 0x66
Ruby/saphire - Spoiler:
0x54 ' Hide 0x55 ' Show 0x56 ' Alert 0x57 ' Question 0x58 ' Love 0x5A ' Pokeball 0x10 ' Delay0 0x11 ' Delay1 0x12 ' Delay2 0x13 ' Delay3 0x14 ' Delay4
' Step 0x00 ' Down0 0x01 ' Up0 0x02 ' Left0 0x03 ' Right0 0x04 ' Down1 0x05 ' Up1 0x06 ' Left1 0x07 ' Right1 0x08 ' Down2 0x09 ' Up2 0x0A ' Left2 0x0B ' Right2 0x17 ' Left3 0x18 ' Right3 0x15 ' Down3 0x16 ' Up3 0x2D ' Down4 0x2E ' Up4 0x2F ' Left4 0x30 ' Right4
' Running 0x35 ' RunDown 0x36 ' RunUp 0x37 ' RunLeft 0x38 ' RunRight 0x7E ' RunDown2 0x7F ' RunUp2 0x80 ' RunLeft2 0x81 ' RunRight2
' Hop & Jump 0x0C ' HopTileDown 0x0D ' HopTileUp 0x0E ' HopTileLeft 0x0F ' HopTileRight 0x3A ' HighHopDown 0x3B ' HighHopUp 0x3C ' HighHopLeft 0x3D ' HighHopRight 0x46 ' HopDown 0x47 ' HopUp 0x48 ' HopLeft 0x49 ' HopRight 0x4A ' HopDown180 0x4B ' HopUp180 0x4C ' HopLeft180 0x4D ' HopRight180 0x42 ' JumpDown 0x43 ' JumpUp 0x44 ' JumpLeft 0x45 ' JumpRight
' Straf (May have glitches) 0x19 ' StDown1 0x1A ' StUp1 0x1B ' StLeft1 0x1C ' StRight1 0x1D ' StDown2 0x1E ' StUp2 0x1F ' StLeft2 0x20 ' StRight2 0x21 ' StDown3 0x22 ' StUp3 0x23 ' StLeft3 0x24 ' StRight3 0x25 ' StDown4 0x26 ' StUp4 0x27 ' StLeft4 0x28 ' StRight4 0x6A ' StDown1i 0x6B ' StUp1i 0x6C ' StLeft1i 0x6D ' StRight1i 0x6E ' StDown5 0x6F ' StUp5 0x70 ' StLeft5 0x71 ' StRight5
'Special 0x31 ' SlideFaceDown 0x32 ' SlideFaceUp 0x33 ' SlideFaceLeft 0x34 ' SlideFaceRight 0x86 ' IceSlideDown 0x87 ' IceSlideUp 0x88 ' IceSlideLeft 0x89 ' IceSlideRight
' Glitchy 0x3E ' Up0A 0x3F ' Down0A 0x4E ' Down0B 0x63 ' Up0B 0x65 ' Right0A 0x66 ' RunStopLoopDown 0x67 ' RunStopLoopUp 0x68 ' RunStopLoopLeft 0x69 ' RunStopLoopRight 0x72 ' Down15 0x73 ' Up15 0x74 ' Left15 0x75 ' Right15 0x7A ' Down6 0x7B ' Up6 0x7C ' Left6 0x7D ' Right6 0x82 ' Down7 0x83 ' Up7 0x84 ' Left7 0x85 ' Right7
' EXIT 0xFE
and make sure you add 0xFE to end. well that's all for now, next time, trainer battles
Last edited by ChikoritaMudkipz on Mon Oct 12, 2009 5:19 pm; edited 1 time in total | |
|
| |
Scyther009
Posts : 32 Join date : 2009-08-31 Age : 28
| Subject: Re: CM'z pokescripting tutorial Sun Sep 20, 2009 7:30 am | |
| Yeh I'm only 13 and I think scripting like the tutourials are pretty easy but I still struggle at things like move camera scripts and creating my own Pokemart and editing the item it sells. Do you know how to do them? | |
|
| |
Gomlet X
Posts : 512 Join date : 2009-06-28 Age : 28 Location : In front of my comp
| Subject: Re: CM'z pokescripting tutorial Sun Sep 20, 2009 5:56 pm | |
| - ChikoritaMudkipz wrote:
- video link is up
where is the link then? | |
|
| |
ChikoritaMudkipz
Posts : 91 Join date : 2009-06-30 Age : 29 Location : Canada
| Subject: Re: CM'z pokescripting tutorial Sun Sep 20, 2009 6:35 pm | |
| - Scyther009 wrote:
- Yeh I'm only 13 and I think scripting like the tutourials are pretty easy but I still struggle at things like move camera scripts and creating my own Pokemart and editing the item it sells. Do you know how to do them?
age doesn't matter. I'm 14 and I learned all this in 2 months. I haven't tried move camera scripts and the mart script I also find challenging, but I'll put what I know | |
|
| |
Amphy
Posts : 868 Join date : 2009-04-30 Age : 27
| Subject: Re: CM'z pokescripting tutorial Tue Sep 29, 2009 2:18 pm | |
| how do you get it to say the players name in the script? | |
|
| |
ChikoritaMudkipz
Posts : 91 Join date : 2009-06-30 Age : 29 Location : Canada
| Subject: Re: CM'z pokescripting tutorial Tue Sep 29, 2009 8:06 pm | |
| - DenryuuSoul wrote:
- how do you get it to say the players name in the script?
good question \v\h01 is the player's name \v\h06 is the rival's name hope that helped | |
|
| |
ChikoritaMudkipz
Posts : 91 Join date : 2009-06-30 Age : 29 Location : Canada
| Subject: Re: CM'z pokescripting tutorial Sat Oct 03, 2009 9:14 pm | |
| GOOD NEWS I finally figured out remove sprite! this means that once I have figured it out in depth I will post a section of this tutorial explaining how to code a rival battle! | |
|
| |
Amphy
Posts : 868 Join date : 2009-04-30 Age : 27
| Subject: Re: CM'z pokescripting tutorial Mon Oct 12, 2009 4:54 pm | |
| we need a mod to sticky this thread. its sooooooo helpful. | |
|
| |
ChikoritaMudkipz
Posts : 91 Join date : 2009-06-30 Age : 29 Location : Canada
| Subject: Re: CM'z pokescripting tutorial Mon Oct 12, 2009 5:09 pm | |
| TRAINERBATTLE 0 - Code:
-
#org $start trainerbattle 0 0x001 $before $after message $beaten boxset 6 release end
#org $before $before 1 =Cory has taught me.
#org $after $after 1 =I guess I have more to learn.
#org $beaten $beaten 1 =Cory is my idle. The coolest thing about trainer battle, is that it doesn't require a flag, the game automatically recognizes if you have already battled the person. Alright so there a few types of trainer battles. The main one for ordinary trainers is trainerbattle 0 After that you need 3 things. First is the trainer ID which you can find in any trainer editor. Just put 0x(trainer Id) The next 2 are messages. Before is what they say right before they battle you, and after is what they say to you after, but still in the battle screen. Lastly, beaten is what they say to you if you talk to them after the battle has taken place. That's it for trainerbattle 0 TRAINERBATTLE 1 - Code:
-
#org $start lock faceplayer checkflag 0x821 if b_true goto $done message $2 boxset 6 trainerbattle 1 0x19F $before $after $later end
#org $before $before 1 =I accept your challenge.
#org $after $after 1 =you beat me?
#org $later message $3 boxset 6 fanfare 0x13E message $4 boxset 4 waitfanfare #raw 0x68 message $5 boxset 6 giveitem 291 1 setflag 0x821 release end
#org $done message $1 boxset 6 release end
#org $1 $1 1 =you should talk to Lady Blue.
#org $2 $2 1 =I am Cory.\nWelcome to the Chasis City gym\pMy favorite type, is from\nthe sea.That's right,\pI use nothing but water types!
#org $3 $3 1 =Congratulations! Here I must reward\nyou with this badge.
#org $4 $4 1 =You recieved the coral badge!
#org $5 $5 1 =Oh, and please take this. The only difference with trainerbattle 1 is that you have after, which is something that can take place after the script is complete.The example I've given you is a gym leader script where after the battle you receive a badge and a TM. But the after can hold anything, from multiple messages to applymovement to even another trainer battle. That's all right now, sorry I haven't been updating too frequently. Next I'll do raw 53; remove sprite | |
|
| |
SpiritofSteel
Posts : 351 Join date : 2009-04-07
Characters CLASS: CHUKLES HP: (69/69) Tribe: Steelie
| Subject: Re: CM'z pokescripting tutorial Wed Oct 14, 2009 12:36 am | |
| Stickied. For future reference PM an mod/admin to request a topic sticked. | |
|
| |
Gomlet X
Posts : 512 Join date : 2009-06-28 Age : 28 Location : In front of my comp
| Subject: Re: CM'z pokescripting tutorial Wed Oct 14, 2009 9:08 pm | |
| CMz you a star now :D
PS: Does this work for hacking silver version? | |
|
| |
Scyther009
Posts : 32 Join date : 2009-08-31 Age : 28
| Subject: Re: CM'z pokescripting tutorial Sat Oct 17, 2009 3:47 pm | |
| Please can you say what the fanfares mean thankyou | |
|
| |
Gomlet X
Posts : 512 Join date : 2009-06-28 Age : 28 Location : In front of my comp
| Subject: Re: CM'z pokescripting tutorial Sat Oct 17, 2009 7:39 pm | |
| | |
|
| |
ChikoritaMudkipz
Posts : 91 Join date : 2009-06-30 Age : 29 Location : Canada
| Subject: Re: CM'z pokescripting tutorial Sun Oct 18, 2009 5:16 pm | |
| - Scyther009 wrote:
- Please can you say what the fanfares mean thankyou
"fanfare" are like sounds. the fanfare I used in give pokemon does that little jingle that happens when you receive something. anyway back to the tutorial HIDESPRITE/ SHOWSPRITEalright so, hide sprite and show sprite aren't actually commands in pokescript. for hide sprite we use raw 53 and for show sprite we use raw 55 let's focus on raw 53. it's set up like so. #raw 0x53 0x(person number reversed) 0x(person number reversed) - Code:
-
#raw 0x53 0x04 0x00 setflag 0x1200 this is a little confusing and I'll admit it took until now (almost 4 months) for me to grasp it. let's say the person's number is 4. it would have to have 4 digits, so it would be 0004. now you reverse the first 2 digits with the second 2, to come up with 0400 then you insert it into the #raw 53 to make it #raw 0x53 0x04 0x00 but this also needs a setflag after it. so we put something like setflag 0x1200 now we find the person we want to disapear in advanced map. in our example his person number will be 4. right under the script offset there is something call the person id. put what you used for your flag, in my case I would put 1200 I understand this is hard to understand and I might post a video about it later. #raw 55 is set up the same way only you need to clear the flag instead of setting one. just put clearflag 0x1200 to make our example re-appear. - Code:
-
#raw 0x55 0x04 0x00 clearflag 0x1200 this is an essential thing to know, by combining this with trainerbattle we can create rival battles. I might make a specific section on rival battles though. also, I might post a video about this. on my youtube channel there are also a few tutorials. | |
|
| |
Scyther009
Posts : 32 Join date : 2009-08-31 Age : 28
| Subject: Re: CM'z pokescripting tutorial Mon Oct 19, 2009 10:13 am | |
| Ok this makes sense kind of thankyou Anyway do you know how to make a script workfor after you've got the first badge. thanks | |
|
| |
ChikoritaMudkipz
Posts : 91 Join date : 2009-06-30 Age : 29 Location : Canada
| Subject: Re: CM'z pokescripting tutorial Mon Oct 19, 2009 4:39 pm | |
| - Scyther009 wrote:
- Ok this makes sense kind of
thankyou Anyway do you know how to make a script workfor after you've got the first badge. thanks use the setflag for the first badge | |
|
| |
Amphy
Posts : 868 Join date : 2009-04-30 Age : 27
| Subject: Re: CM'z pokescripting tutorial Sun Nov 29, 2009 11:00 am | |
| CMz? Can you explain the applymovement script a little more simply? rather than have it tried in with the national dex? | |
|
| |
SableyeProductions
Posts : 5 Join date : 2010-05-02 Age : 27 Location : England
| Subject: Re: CM'z pokescripting tutorial Sun May 02, 2010 10:00 am | |
| I know this is off topic but do you know anyway to change the music on roms? Like making it so you have a non-pokemon song e.g Green Day. Thanks. | |
|
| |
Amphy
Posts : 868 Join date : 2009-04-30 Age : 27
| Subject: Re: CM'z pokescripting tutorial Sun May 02, 2010 11:02 am | |
| CMz is pretty much gone... | |
|
| |
Sponsored content
| Subject: Re: CM'z pokescripting tutorial | |
| |
|
| |
| CM'z pokescripting tutorial | |
|