The PokéCommunity Forums Fan Games ROM Hacking
Script Help Thread (DO NOT REQUEST SCRIPTS)

ROM Hacking Need a helping hand? You can get help on any ROM Hacking-related problems or questions you have here.


Closed Thread
 
Thread Tools
  #4801    
Old October 13th, 2010 (2:53 PM).
colcolstyles's Avatar
colcolstyles colcolstyles is offline
Yours truly
 
Join Date: May 2008
Location: The Bay Area
Gender: Male
Nature: Lonely
Posts: 1,590
Quote:
Originally Posted by TB Pro View Post
Okay, so I am having some trouble with the Pokepic commands in XSE. Fire Red base.
Code:
#org @part2
showpokepic PKMN_TENTACOOL 0x1 0x1
msgbox @ossincise 0x5
compare 0x800D 0x1
hidepokepic
if 0x1 goto @ossincisechose
showpokepic PKMN_SNORUNT 0x1 0x1
msgbox @snorunt 0x5
compare 0x800D 0x1
hidepokepic
if 0x1 goto @snoruntchose
showpokepic PKMN_LUNATONE 0x1 0x1
msgbox @birdawl 0x5
compare 0x800D 0x1
hidepokepic
if 0x1 goto @birdawlchose
msgbox @whichone 0x6
goto @part2
When I try to compile it says "unknown keyword '0x61 pokepic' on line 47" line 47 is the first showpokepic line. It also says "unknown keyword '0x60 pokepic' on line 51" line 51 is the first hidepokepic line.
Do you have any "#define"s or "#alias"es in that script or, as Spherical Ice mentioned, one of your header files? Perhaps you used "HIDE" and "SHOW" as symbols for a value which would cause XSE to replace all instances of "hide" and "show" with that value (even if they're part of a command).

Quote:
Originally Posted by nenekins View Post
Thanks for the help, but when XSE compiles it, it changes it back to 0x81A74EB.
The appended '8' doesn't change anything. XSE automatically does that to tell you that the pointer points to an address in the ROM area (as opposed to the RAM).

Quote:
Originally Posted by Crimson Stardust View Post
anyway,i have a problem with this script,i want to warp to route 1 from one map to another,which is like from vermiilion to route 1 so i do this script,its a lvel script btw.
Spoiler:
#dynamic 0x800000
#org @start
playsong 0x118 0x0
fadescreen 0x1
msgbox @1 0x4
warp 0x3 0x19 0xFF 0x8 0xE
fadesong 0x123
fadescreen 0x0
setvar 0x5006 0x1
release
end

but after the messge it warp me to route 7 intead which map is no 3:19 but 3:25..
don't noe why


0x19 is 25 in decimal. You should either replace '0x19' with '25' or '0x13'.

Also, please take a moment to read over your post before clicking "Submit". Your spelling is simply atrocious.

Quote:
Originally Posted by Spherical Ice View Post
Furthermore, you can't have Warp 0xFF, so the third parameter was incorrect. The asterisk (*) indicates that it changes depending on the warp number which you want to warp me to. I believe the 0xFF was the problem, however if not then please tell me.
Actually, 0xFF is used in place of the warp number in order to execute a warp to a specific location on the target map. The final two parameters are then used (otherwise they're '0') to specify the X- and Y-coordinates, respectively.
__________________

Brother of Vrai

Relevant Advertising!

  #4802    
Old October 13th, 2010 (3:40 PM).
Teh Blazer's Avatar
Teh Blazer Teh Blazer is offline
Divider of Zero
     
    Join Date: Feb 2009
    Location: 'MERICA
    Age: 23
    Gender: Male
    Nature: Relaxed
    Posts: 777
    Quote:
    Originally Posted by TB Pro View Post
    Lol, I said that I am using XSE :P

    Excuse me while I slap myself silly for making a fool out of myself. I've never experienced this problem before, but I'd suggest to do it the non-fancy way. Just do:

    showpokepic 0x[Insert Pokemon data in HEX here] 0x[Level In HEX] 0x[Item in HEX] 0x[Buffer] 0x[Buffer] 0x[Buffer]

    Pokemon list is as follows (Ripped from diegoisawesome's huge XSE tut):
    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|f| 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
    __________________
    Being a hero is overrated anyways
      #4803    
    Old October 13th, 2010 (3:50 PM).
    colcolstyles's Avatar
    colcolstyles colcolstyles is offline
    Yours truly
     
    Join Date: May 2008
    Location: The Bay Area
    Gender: Male
    Nature: Lonely
    Posts: 1,590
    Quote:
    Originally Posted by Teh Blazer View Post
    showpokepic 0x[Insert Pokemon data in HEX here] 0x[Level In HEX] 0x[Item in HEX] 0x[Buffer] 0x[Buffer] 0x[Buffer]
    Uhm, I think you've gotten 'showpokepic' confused with 'givepokemon'. What good would specifying a level and item do if all the command does is display a picture of a pokémon? The actual parameters are as follows:

    Code:
    showpokepic Pokémon_ID X-coordinate Y-coordinate
    ...where "Pokémon_ID" is a halfword and the coordinates are bytes.
    __________________

    Brother of Vrai
      #4804    
    Old October 13th, 2010 (4:43 PM).
    TB Pro's Avatar
    TB Pro TB Pro is offline
    Old-timer
       
      Join Date: Nov 2004
      Location: Midwestern USA
      Age: 24
      Gender: Male
      Posts: 2,739
      Quote:
      Originally Posted by colcolstyles View Post
      Do you have any "#define"s or "#alias"es in that script or, as Spherical Ice mentioned, one of your header files? Perhaps you used "HIDE" and "SHOW" as symbols for a value which would cause XSE to replace all instances of "hide" and "show" with that value (even if they're part of a command).
      Ah, I didn't quite understand what he was saying. This was the problem, thanks!
      Even though that problem is fixed, I am still having the same problem as before(see my last post on this thread). I'm not sure if I messed up with commands, or what exactly is going on.
      __________________
      --I'm a creepin'..
        #4805    
      Old October 13th, 2010 (5:18 PM).
      Teh Blazer's Avatar
      Teh Blazer Teh Blazer is offline
      Divider of Zero
         
        Join Date: Feb 2009
        Location: 'MERICA
        Age: 23
        Gender: Male
        Nature: Relaxed
        Posts: 777
        Quote:
        Originally Posted by colcolstyles View Post
        Uhm, I think you've gotten 'showpokepic' confused with 'givepokemon'. What good would specifying a level and item do if all the command does is display a picture of a pokémon? The actual parameters are as follows:

        Code:
        showpokepic Pokémon_ID X-coordinate Y-coordinate
        ...where "Pokémon_ID" is a halfword and the coordinates are bytes.
        Arrgh! That's number two on the Morono-Meter! BUT I will make myself not look stupid by the end of the day!
        Perhaps you could still try my idea with the replace the PKMN_[Insert Pokemon Name here]

        to
        showpokepic 0x[HEX number of Pokemon, just look in the previous post for the DEC numbers] 0x[Coordinate 1] 0x[Coordinate 2]
        __________________
        Being a hero is overrated anyways
          #4806    
        Old October 13th, 2010 (5:19 PM).
        MechaTrainer MechaTrainer is offline
           
          Join Date: Jun 2010
          Gender: Male
          Posts: 9
          I made a pokescript where your mother gives you a pokemon, when I walk up to the spot she is supposed to be on there in nothing there and I am pretty sure it is the scripts fault
          Spoiler:
          #org $begin
          lock
          faceplayer
          checkflag 0x232
          if B_true goto $gotit
          message $q
          boxset 6
          givepokemon 1 5 0
          setflag 0x232
          release
          end

          #org $gotit
          message $hi
          boxset 6
          release
          end
          i
          #org $hi
          $hi 1 = What are you wating for? Go On!

          #org $q
          $q 1 = Good Morning \v\h01! \n I'm glad you wanted to be \pa Pokemon Trainer \n To start you of here \p is a Pokemon I found alone \nand abandoned

          #org $gotit
          message $hi
          boxset 6
          release
            #4807    
          Old October 13th, 2010 (5:39 PM).
          TB Pro's Avatar
          TB Pro TB Pro is offline
          Old-timer
             
            Join Date: Nov 2004
            Location: Midwestern USA
            Age: 24
            Gender: Male
            Posts: 2,739
            Quote:
            Originally Posted by Teh Blazer View Post
            Arrgh! That's number two on the Morono-Meter! BUT I will make myself not look stupid by the end of the day!
            Perhaps you could still try my idea with the replace the PKMN_[Insert Pokemon Name here]

            to
            showpokepic 0x[HEX number of Pokemon, just look in the previous post for the DEC numbers] 0x[Coordinate 1] 0x[Coordinate 2]
            Yeah, that wasn't the problem, we figured it out already. :P

            Quote:
            Originally Posted by MechaTrainer View Post
            I made a pokescript where your mother gives you a pokemon, when I walk up to the spot she is supposed to be on there in nothing there and I am pretty sure it is the scripts fault
            Spoiler:
            #org $begin
            lock
            faceplayer
            checkflag 0x232
            if B_true goto $gotit
            message $q
            boxset 6
            givepokemon 1 5 0
            setflag 0x232
            release
            end

            #org $gotit
            message $hi
            boxset 6
            release
            end
            i
            #org $hi
            $hi 1 = What are you wating for? Go On!

            #org $q
            $q 1 = Good Morning \v\h01! \n I'm glad you wanted to be \pa Pokemon Trainer \n To start you of here \p is a Pokemon I found alone \nand abandoned

            #org $gotit
            message $hi
            boxset 6
            release
            What is her person ID? Have you set a flag equal to her ID previously?
            Also when writing messages, write them like so:
            Hello\nthere \v\h01!\pHow are you?\nYou look good today\pmaybe you want to go out\nfor coffee?
            not:
            Hello \n there \v\h01, how are you? \p I'm good. \n How do you feel?
            __________________
            --I'm a creepin'..
              #4808    
            Old October 13th, 2010 (7:05 PM).
            MechaTrainer MechaTrainer is offline
               
              Join Date: Jun 2010
              Gender: Male
              Posts: 9
              Quote:
              Originally Posted by TB Pro View Post
              Yeah, that wasn't the problem, we figured it out already. :P


              What is her person ID? Have you set a flag equal to her ID previously?
              Also when writing messages, write them like so:
              Hello\nthere \v\h01!\pHow are you?\nYou look good today\pmaybe you want to go out\nfor coffee?
              not:
              Hello \n there \v\h01, how are you? \p I'm good. \n How do you feel?
              I think I did it the way you said i'm not sure because I tried compiling it and something popped out and said "Run Time Error 457 This Key is already associated with an element an element of this collection
              Spoiler:
              #org $begin
              lock
              faceplayer
              checkflag 0x232
              if B_true goto $gotit
              message $q
              boxset 6
              givepokemon 1 5 0
              setflag 0x232
              release
              end

              #org $gotit
              message $hi
              boxset 6
              release
              end
              i
              #org $hi
              $hi 1 = What are you wating for? Go On!

              #org $q
              $q 1 = Good Morning \v\h01!\nI'm glad you wanted to be\pa Pokemon Trainer\nTo start you of here\pis a Pokemon I found alone\nand abandoned

              #org $gotit
              message $hi
              boxset 6
              release
                #4809    
              Old October 13th, 2010 (7:39 PM).
              colcolstyles's Avatar
              colcolstyles colcolstyles is offline
              Yours truly
               
              Join Date: May 2008
              Location: The Bay Area
              Gender: Male
              Nature: Lonely
              Posts: 1,590
              Quote:
              Originally Posted by MechaTrainer View Post
              I think I did it the way you said i'm not sure because I tried compiling it and something popped out and said "Run Time Error 457 This Key is already associated with an element an element of this collection
              Spoiler:
              #org $begin
              lock
              faceplayer
              checkflag 0x232
              if B_true goto $gotit
              message $q
              boxset 6
              givepokemon 1 5 0
              setflag 0x232
              release
              end

              #org $gotit
              message $hi
              boxset 6
              release
              end
              i
              #org $hi
              $hi 1 = What are you wating for? Go On!

              #org $q
              $q 1 = Good Morning \v\h01!\nI'm glad you wanted to be\pa Pokemon Trainer\nTo start you of here\pis a Pokemon I found alone\nand abandoned

              #org $gotit
              message $hi
              boxset 6
              release
              Perhaps that error message has something to do with the fact that you use the dynamic label "$gotit" twice. When you use "goto $gotit", the game won't know whether to go to the first "$gotit" or the second "$gotit", which is why the compiler won't let you compile.

              Also, the 'givepokemon' command contains three extra parameters which are usually set to '0x00'. I haven't used Pokescript in a long time (and I suggest you switch to XSE or PKSV) but I don't think that those bytes are coded for in Pokescript's command database so you'll have to add three 'nop' commands after 'givepokemon'.
              __________________

              Brother of Vrai
                #4810    
              Old October 13th, 2010 (8:20 PM).
              MechaTrainer MechaTrainer is offline
                 
                Join Date: Jun 2010
                Gender: Male
                Posts: 9
                Quote:
                Originally Posted by colcolstyles View Post
                Perhaps that error message has something to do with the fact that you use the dynamic label "$gotit" twice. When you use "goto $gotit", the game won't know whether to go to the first "$gotit" or the second "$gotit", which is why the compiler won't let you compile.

                Also, the 'givepokemon' command contains three extra parameters which are usually set to '0x00'. I haven't used Pokescript in a long time (and I suggest you switch to XSE or PKSV) but I don't think that those bytes are coded for in Pokescript's command database so you'll have to add three 'nop' commands after 'givepokemon'.
                So I replace the second gotit and it should work now right?
                  #4811    
                Old October 13th, 2010 (8:45 PM).
                Teh Blazer's Avatar
                Teh Blazer Teh Blazer is offline
                Divider of Zero
                   
                  Join Date: Feb 2009
                  Location: 'MERICA
                  Age: 23
                  Gender: Male
                  Nature: Relaxed
                  Posts: 777
                  Quote:
                  Originally Posted by MechaTrainer View Post
                  I think I did it the way you said i'm not sure because I tried compiling it and something popped out and said "Run Time Error 457 This Key is already associated with an element an element of this collection
                  Spoiler:
                  #org $begin
                  lock
                  faceplayer
                  checkflag 0x232
                  if B_true goto $gotit
                  message $q
                  boxset 6
                  givepokemon 1 5 0
                  setflag 0x232
                  release
                  end

                  #org $gotit
                  message $hi
                  boxset 6
                  release
                  end
                  i
                  #org $hi
                  $hi 1 = What are you wating for? Go On!

                  #org $q
                  $q 1 = Good Morning \v\h01!\nI'm glad you wanted to be\pa Pokemon Trainer\nTo start you of here\pis a Pokemon I found alone\nand abandoned

                  #org $gotit
                  message $hi
                  boxset 6
                  release
                  Make mom's Person ID 0's all the way across. Hopefully she'd appear then.

                  Quote:
                  Originally Posted by TB Pro View Post
                  Yeah, that wasn't the problem, we figured it out already. :P
                  You know what, Imma just hang up my helping hat for good before I make a fool out of myself now.
                  __________________
                  Being a hero is overrated anyways
                    #4812    
                  Old October 14th, 2010 (3:15 AM).
                  Mekaj's Avatar
                  Mekaj Mekaj is offline
                  Vampire Hunter
                     
                    Join Date: Jun 2009
                    Location: Crestview, FL
                    Gender: Male
                    Nature: Jolly
                    Posts: 18
                    I took the trees out of start map but when I go to the edge of the map there are trees past map edge. How do I fix this? I'm making a desert region is why I need to know.
                      #4813    
                    Old October 14th, 2010 (6:02 AM).
                    Random92 Random92 is offline
                       
                      Join Date: Sep 2010
                      Gender: Male
                      Posts: 29
                      You have to change the "border block" in advance map. Replace the tree with "dust" or whatever tiles you want outside the map.
                        #4814    
                      Old October 14th, 2010 (6:34 AM).
                      Spherical Ice's Avatar
                      Spherical Ice Spherical Ice is offline
                       
                      Join Date: Nov 2007
                      Location: Bristol, UK
                      Age: 20
                      Posts: 5,220
                      Quote:
                      Originally Posted by colcolstyles View Post
                      Actually, 0xFF is used in place of the warp number in order to execute a warp to a specific location on the target map. The final two parameters are then used (otherwise they're '0') to specify the X- and Y-coordinates, respectively.
                      Oh, really? That's awesome. I never knew that. :D
                        #4815    
                      Old October 14th, 2010 (2:10 PM).
                      Mekaj's Avatar
                      Mekaj Mekaj is offline
                      Vampire Hunter
                         
                        Join Date: Jun 2009
                        Location: Crestview, FL
                        Gender: Male
                        Nature: Jolly
                        Posts: 18
                        wat if two sides are sand and two sides are water how would I do two different borders? would I have to edit the ASM?
                          #4816    
                        Old October 14th, 2010 (3:25 PM).
                        colcolstyles's Avatar
                        colcolstyles colcolstyles is offline
                        Yours truly
                         
                        Join Date: May 2008
                        Location: The Bay Area
                        Gender: Male
                        Nature: Lonely
                        Posts: 1,590
                        Quote:
                        Originally Posted by MechaTrainer View Post
                        So I replace the second gotit and it should work now right?
                        Actually, you should just ditch the second "$gotit" section altogether. It doesn't seem, to me at least, that it's serving any purpose. It looks like an exact copy of the other "$gotit" section but without the 'end' command, which might cause bugs. Your final script should end up looking something like this:
                        Spoiler:
                        Code:
                        #org $begin
                        lock
                        faceplayer
                        checkflag 0x232
                        if B_true goto $gotit
                        message $q
                        boxset 6
                        givepokemon 1 5 0
                        setflag 0x232
                        release
                        end
                        
                        #org $gotit
                        message $hi
                        boxset 6
                        release
                        end
                        
                        #org $hi
                        $hi 1 = What are you wating for? Go On!
                        
                        #org $q
                        $q 1 = Good Morning \v\h01!\nI'm glad you wanted to be\pa Pokemon Trainer\nTo start you of here\pis a Pokemon I found alone\nand abandoned.


                        I preemptively blame any errors in that script on the fact that I haven't used Pokescript in almost two years now.

                        Quote:
                        Originally Posted by Mekaj View Post
                        wat if two sides are sand and two sides are water how would I do two different borders? would I have to edit the ASM?
                        You can set the border block to water and then expand the map so that the player can't see the border on the sand side. Or vice versa.
                        __________________

                        Brother of Vrai
                          #4817    
                        Old October 14th, 2010 (6:02 PM).
                        MechaTrainer MechaTrainer is offline
                           
                          Join Date: Jun 2010
                          Gender: Male
                          Posts: 9
                          thanks everyone that helped me, but there is still one problem how do I activate the pkmn menu and make the script say you have obtained "pokemon"! with the jingle?
                          Spoiler:
                          #org $begin
                          lock
                          faceplayer
                          checkflag 0x233
                          if B_true goto $gotit
                          message $q
                          boxset 6
                          givepokemon 1 5 0
                          setflag 0x233
                          release
                          end

                          #org $gotit
                          message $hi
                          boxset 6
                          release
                          end

                          #org $hi
                          $hi 1 = Go On!\nYour adventure is waiting!

                          #org $q
                          $q 1 = Good Morning \v\h01!\nI'm glad you wanted to be\pa Pokemon Trainer\nTo start you of here\pis a Pokemon I found alone\nand abandoned
                            #4818    
                          Old October 14th, 2010 (6:58 PM).
                          TB Pro's Avatar
                          TB Pro TB Pro is offline
                          Old-timer
                             
                            Join Date: Nov 2004
                            Location: Midwestern USA
                            Age: 24
                            Gender: Male
                            Posts: 2,739
                            Quote:
                            Originally Posted by MechaTrainer View Post
                            thanks everyone that helped me, but there is still one problem how do I activate the pkmn menu and make the script say you have obtained "pokemon"! with the jingle?
                            Spoiler:
                            #org $begin
                            lock
                            faceplayer
                            checkflag 0x233
                            if B_true goto $gotit
                            message $q
                            boxset 6
                            givepokemon 1 5 0
                            setflag 0x233
                            release
                            end

                            #org $gotit
                            message $hi
                            boxset 6
                            release
                            end

                            #org $hi
                            $hi 1 = Go On!\nYour adventure is waiting!

                            #org $q
                            $q 1 = Good Morning \v\h01!\nI'm glad you wanted to be\pa Pokemon Trainer\nTo start you of here\pis a Pokemon I found alone\nand abandoned
                            Pokemon menu: Setflag 0x800 for Ruby, 0x828 for Fire Red, and 0x860 for Emerald.
                            givepokemon 0xspecies number 0xlevel 0xitem number
                            nop
                            nop
                            nop
                            and I'm not quite sure how the jingle command works in Pokescript.
                            __________________
                            --I'm a creepin'..
                              #4819    
                            Old October 14th, 2010 (7:02 PM).
                            MechaTrainer MechaTrainer is offline
                               
                              Join Date: Jun 2010
                              Gender: Male
                              Posts: 9
                              do I put the flag in the beginning?
                              and how do I make it say Player has obtained [pokemon]
                                #4820    
                              Old October 14th, 2010 (7:05 PM).
                              TB Pro's Avatar
                              TB Pro TB Pro is offline
                              Old-timer
                                 
                                Join Date: Nov 2004
                                Location: Midwestern USA
                                Age: 24
                                Gender: Male
                                Posts: 2,739
                                Quote:
                                Originally Posted by MechaTrainer View Post
                                do I put the flag in the beginning?
                                and how do I make it say Player has obtained [pokemon]
                                It doesn't really matter where you put it, but I would put it before the givepokemon command.

                                givepokemon 1 5 0
                                message $[pointer]
                                boxset 6
                                ...
                                ...

                                #org $[pointer]
                                $[pointer] 1 = \v\h01 received the Pokemon!
                                __________________
                                --I'm a creepin'..
                                  #4821    
                                Old October 14th, 2010 (7:17 PM).
                                MechaTrainer MechaTrainer is offline
                                   
                                  Join Date: Jun 2010
                                  Gender: Male
                                  Posts: 9
                                  Quote:
                                  Originally Posted by TB Pro View Post
                                  It doesn't really matter where you put it, but I would put it before the givepokemon command.

                                  givepokemon 1 5 0
                                  message $[pointer]
                                  boxset 6
                                  ...
                                  ...

                                  #org $[pointer]
                                  $[pointer] 1 = \v\h01 received the Pokemon!
                                  Is this correct
                                  Spoiler:
                                  #org $begin
                                  lock
                                  faceplayer
                                  checkflag 0x234
                                  if B_true goto $gotit
                                  message $q
                                  boxset 6
                                  givepokemon 1 5 0
                                  message $recieve
                                  setflag 0x234
                                  setflag 0x828
                                  release
                                  end

                                  #org $gotit
                                  message $hi
                                  boxset 6
                                  release
                                  end

                                  #org $hi
                                  $hi 1 = Go On!\nYour adventure is waiting!

                                  #org $q
                                  $q 1 = Good Morning \v\h01!\nI'm glad you wanted to be\pa Pokemon Trainer\nTo start you of here\pis a Pokemon I found alone\nand abandoned

                                  #org $recieve
                                  $recive 1 = \v\h01 received the Monozu!
                                  Sorry for asking for so much help
                                    #4822    
                                  Old October 14th, 2010 (10:04 PM).
                                  colcolstyles's Avatar
                                  colcolstyles colcolstyles is offline
                                  Yours truly
                                   
                                  Join Date: May 2008
                                  Location: The Bay Area
                                  Gender: Male
                                  Nature: Lonely
                                  Posts: 1,590
                                  Quote:
                                  Originally Posted by MechaTrainer View Post
                                  Is this correct
                                  Spoiler:
                                  #org $begin
                                  lock
                                  faceplayer
                                  checkflag 0x234
                                  if B_true goto $gotit
                                  message $q
                                  boxset 6
                                  givepokemon 1 5 0
                                  message $recieve
                                  setflag 0x234
                                  setflag 0x828
                                  release
                                  end

                                  #org $gotit
                                  message $hi
                                  boxset 6
                                  release
                                  end

                                  #org $hi
                                  $hi 1 = Go On!\nYour adventure is waiting!

                                  #org $q
                                  $q 1 = Good Morning \v\h01!\nI'm glad you wanted to be\pa Pokemon Trainer\nTo start you of here\pis a Pokemon I found alone\nand abandoned

                                  #org $recieve
                                  $recive 1 = \v\h01 received the Monozu!
                                  Sorry for asking for so much help
                                  It's more efficient to use '0x828' throughout the entire script. There's no need for an extra flag when you're going to end up setting '0x828' anyways. Also, to recreate that jingle effect, you should use something like this (ripped directly from the script of the Poké Balls in Professor Oak's lab):

                                  Code:
                                  preparemsg @receive // "Player received the Pokemon!" text
                                  waitmsg
                                  fanfare 0x13E
                                  waitfanfare
                                  Again, I haven't used PokeScript in ages so I don't know if it has support for those commands. If it doesn't, then for you there may never be a more compelling moment to switch to XSE or PKSV. :)
                                  __________________

                                  Brother of Vrai
                                    #4823    
                                  Old October 15th, 2010 (6:17 AM).
                                  Christos's Avatar
                                  Christos Christos is offline
                                   
                                  Join Date: Feb 2006
                                  Gender: Male
                                  Nature: Serious
                                  Posts: 6,344
                                  Quote:
                                  Originally Posted by Mekaj View Post
                                  I took the trees out of start map but when I go to the edge of the map there are trees past map edge. How do I fix this? I'm making a desert region is why I need to know.
                                  Quote:
                                  Originally Posted by Mekaj View Post
                                  wat if two sides are sand and two sides are water how would I do two different borders? would I have to edit the ASM?
                                  This is the Script Help thread. You should post in this thread if you need help with your maps.
                                  __________________

                                  A Pokemon that is discriminated!
                                  Support squirtle and make it everyone's favourite.
                                    #4824    
                                  Old October 15th, 2010 (2:30 PM).
                                  TB Pro's Avatar
                                  TB Pro TB Pro is offline
                                  Old-timer
                                     
                                    Join Date: Nov 2004
                                    Location: Midwestern USA
                                    Age: 24
                                    Gender: Male
                                    Posts: 2,739
                                    Quote:
                                    Originally Posted by MechaTrainer View Post
                                    Is this correct
                                    Spoiler:
                                    #org $begin
                                    lock
                                    faceplayer
                                    checkflag 0x828
                                    if B_true goto $gotit
                                    message $q
                                    boxset 6
                                    givepokemon 1 5 0
                                    nop
                                    nop
                                    nop
                                    // not sure if these are needed, but I think they are.
                                    message $recieve
                                    boxset 6
                                    setflag 0x828 // not sure if you need to set this flag before the givepokemon command or not.
                                    release
                                    end

                                    #org $gotit
                                    message $hi
                                    boxset 6
                                    release
                                    end

                                    #org $hi
                                    $hi 1 = Go On!\nYour adventure is waiting!

                                    #org $q
                                    $q 1 = Good Morning \v\h01!\nI'm glad you wanted to be\pa Pokemon Trainer\nTo start you of here\pis a Pokemon I found alone\nand abandoned

                                    #org $recieve
                                    $recieve 1 = \v\h01 received the Monozu!
                                    Sorry for asking for so much help
                                    Fixes in bold.

                                    Quote:
                                    Originally Posted by colcolstyles View Post
                                    Code:
                                    preparemsg @receive // "Player received the Pokemon!" text
                                    waitmsg
                                    fanfare 0x13E
                                    waitfanfare
                                    Again, I haven't used PokeScript in ages so I don't know if it has support for those commands. If it doesn't, then for you there may never be a more compelling moment to switch to XSE or PKSV. :)
                                    If I remember right, Pokescript uses the "jingle" command instead of fanfare, and if I remember right, it needs one or a few nop commands after it.
                                    I agree with styles; changing to XSE or PKSV is really in your best interest.
                                    __________________
                                    --I'm a creepin'..
                                      #4825    
                                    Old October 16th, 2010 (5:24 AM).
                                    leogrecchi leogrecchi is offline
                                       
                                      Join Date: Oct 2010
                                      Gender: Male
                                      Posts: 64
                                      Alright, this is not exactly a script question, but what's the difference between XSE and Pokescript? which one should i use?
                                      Closed Thread

                                      Quick Reply

                                      Join the conversation!

                                      Create an account to post a reply in this thread, participate in other discussions, and more!

                                      Create a PokéCommunity Account

                                      Sponsored Links
                                      Thread Tools

                                      Posting Rules
                                      You may not post new threads
                                      You may not post replies
                                      You may not post attachments
                                      You may not edit your posts

                                      BB code is On
                                      Smilies are On
                                      [IMG] code is On
                                      HTML code is Off

                                      Forum Jump


                                      All times are GMT -8. The time now is 10:59 PM.