Go Back   The PokéCommunity Forums > Skara

For all updates, view the main page.

Conversation Between Skara and Spherical Ice
Showing Visitor Messages 11 to 20 of 56
  1. Spherical Ice
    October 15th, 2012 08:43 AM
    Spherical Ice
    its really basic, you just load the rom (click on this icon: ), write/paste the script, hit the gears (click on this icon: ) and then click Copy. Then go into Advance Map and paste the offset. It's that simple!
  2. Skara
    October 15th, 2012 08:39 AM
    I find it a bit complicated when inserting a script.
  3. Spherical Ice
    October 15th, 2012 08:31 AM
    Spherical Ice
    oh, that script was made in XSE. why cant you use xse?

    I think PSKVUI supports XSE's syntax but im not sure.
  4. Skara
    October 15th, 2012 08:27 AM
    Cheers mate :D
    Now, pksvui is the only script editor I can actually use, so do I just copy the script into there over Brock's original script?
  5. Spherical Ice
    October 15th, 2012 07:49 AM
    Spherical Ice
    of course, that script is based on brock's script.
  6. Spherical Ice
    October 15th, 2012 07:48 AM
    Spherical Ice
    oh, did i not send it? sorry, here you go:

    added script my comments

    #dynamic 0x800000
    #include stditems.rbh

    #org @start
    checkflag 0xFLAG // This checks if the player has defeated the Elite Four. In the Champion's script, add a "setflag 0xFLAG" command. Make the two FLAGs consistent (you won't be able to compile this script until the FLAG is a number, so I recommend you allocate a flag and use it for all the Gym Leaders).
    if 0x1 goto @snippet13 // If the flag is set - if the player has defeated the Champion - then the script will go to "@snippet13".
    setvar 0x8004 0x2
    setvar 0x8005 0x2
    special 0x174
    trainerbattle 0x1 0x19E 0x0 @string1 @string2 @snippet1
    checkflag 0x254
    if 0x0 goto @snippet2
    msgbox @string3 MSG_KEEPOPEN //"There are all kinds of TRAINERS in..."

    #org @snippet13 // This is where the script will go to if the player has defeated the Champion.
    checktrainerflag 0xTRAINERID
    // This checks if you have already rematched Brock. Replace TRAINERID with the ID number that the trainer has, as shown in A-Trainer (for example, ordinary Brock's Trainer ID is 19E).
    compare LASTRESULT 0x1
    // If the playe has rematched Brock...
    if 0x1 goto @snippet15
    // ...then go to "@snippet15". If not...
    trainerbattle 0x1 0xTRAINERID 0x0 @string8 @string9 @snippet14
    //... then commence a battle with Brock after displaying the text located "@string8". When the player wins, display the text located at "@string9". Go to "@snippet14".

    #org @snippet14
    // This is where the script will go to once the player has defeated Brock once again.
    msgbox @string4 MSG_KEEPOPEN
    // From here...
    checkitemroom ITEM_TM39 0x1
    // Does the player have room in the TM Case?
    compare LASTRESULT 0x0
    // If no...
    if 0x1 goto @snippet4
    // ... goto "@snippet4". Otherwise...
    additem ITEM_TM39 0x1
    // ... add TM39 to the player's inventory...
    loadpointer 0x0 @string5
    //"[player] received TM39\nfrom BROCK..." // ...then load the pointer at "@string5" to be displayed when...
    giveitem2 ITEM_TM39 0x1 0x101
    // ...the player receives TM39.
    msgbox @string6 MSG_KEEPOPEN
    // This displays the text located at "@string6".
    // Of course, you can change the contents of "@snippet14" to whatever script you wish.

    #org @snippet15
    // This is where the script will go if the player has rematched Brock and are now interacting with him once more.
    msgbox @string3 MSG_KEEPOPEN
    //"There are all kinds of TRAINERS in..." // This displays the text located at "@string3".

    #org @snippet1
    setvar 0x8004 0x2
    setvar 0x8005 0x1
    special 0x173
    setflag 0x4B0
    setflag 0x820
    setvar 0x406C 0x1
    setflag 0x2E
    clearflag 0x92
    setvar 0x8008 0x1
    call @snippet3
    goto @snippet2

    #org @snippet2
    msgbox @string4 MSG_KEEPOPEN //"Wait!\nTake this with you."
    checkitemroom ITEM_TM39 0x1
    compare LASTRESULT 0x0
    if 0x1 goto @snippet4
    additem ITEM_TM39 0x1
    loadpointer 0x0 @string5 //"[player] received TM39\nfrom BROCK..."
    giveitem2 ITEM_TM39 0x1 0x101
    setflag 0x254
    msgbox @string6 MSG_KEEPOPEN //"A TM, Technical Machine, contains ..."

    #org @snippet3
    copyvar 0x8000 0x8008
    compare 0x8000 0x1
    if 0x1 goto @snippet5
    compare 0x8000 0x2
    if 0x1 goto @snippet6
    compare 0x8000 0x3
    if 0x1 goto @snippet7
    compare 0x8000 0x4
    if 0x1 goto @snippet8
    compare 0x8000 0x5
    if 0x1 goto @snippet9
    compare 0x8000 0x6
    if 0x1 goto @snippet10
    compare 0x8000 0x7
    if 0x1 goto @snippet11
    compare 0x8000 0x8
    if 0x1 goto @snippet12

    #org @snippet4
    msgbox @string7 MSG_KEEPOPEN //"You don't have room for this."

    #org @snippet5
    cleartrainerflag 0x8E

    #org @snippet6
    cleartrainerflag 0x96
    cleartrainerflag 0xEA

    #org @snippet7
    cleartrainerflag 0x8D
    cleartrainerflag 0xDC
    cleartrainerflag 0x1A7

    #org @snippet8
    cleartrainerflag 0x84
    cleartrainerflag 0x85
    cleartrainerflag 0xA0
    cleartrainerflag 0x109
    cleartrainerflag 0x10A
    cleartrainerflag 0x10B
    cleartrainerflag 0x192

    #org @snippet9
    cleartrainerflag 0x126
    cleartrainerflag 0x127
    cleartrainerflag 0x120
    cleartrainerflag 0x121
    cleartrainerflag 0x124
    cleartrainerflag 0x125

    #org @snippet10
    cleartrainerflag 0x118
    cleartrainerflag 0x119
    cleartrainerflag 0x11A
    cleartrainerflag 0x11B
    cleartrainerflag 0x1CE
    cleartrainerflag 0x1CF
    cleartrainerflag 0x1D0

    #org @snippet11
    cleartrainerflag 0xB1
    cleartrainerflag 0xB2
    cleartrainerflag 0xB3
    cleartrainerflag 0xB4
    cleartrainerflag 0xD5
    cleartrainerflag 0xD6
    cleartrainerflag 0xD7

    #org @snippet12
    cleartrainerflag 0x128
    cleartrainerflag 0x129
    cleartrainerflag 0x142
    cleartrainerflag 0x143
    cleartrainerflag 0x144
    cleartrainerflag 0x188
    cleartrainerflag 0x190
    cleartrainerflag 0x191

    // Strings
    #org @string1
    = So, you're here. I'm BROCK.\nI'm PEWTER's GYM LEADER.\pMy rock-hard willpower is evident\neven in my POKéMON.\pMy POKéMON are all rock hard, and\nhave true-grit determination.\pThat's right - my POKéMON are all\nthe ROCK type!\pFuhaha! You're going to challenge\nme knowing that you'll lose?\pThat's the TRAINER's honor that\ncompels you to challenge me.\pFine, then!\nShow me your best!\c\h0B[Ke]À

    #org @string2
    = I took you for granted, and so\nI lost.\pAs proof of your victory, I confer\non you this[.]the official POKéMON\lLEAGUE BOULDERBADGE.\p\c\h06Á[player] received the BOULDERBADGE\nfrom BROCK!\c\h17\c\h0BÇÀ\c\h08\n\c\h08[Ke]\c\h18\p\c\h06ÇJust having the BOULDERBADGE makes\nyour POKéMON more powerful.\pIt also enables the use of the\nmove FLASH outside of battle.\pOf course, a POKéMON must know the\nmove FLASH to use it.

    #org @string3
    = There are all kinds of TRAINERS in\nthis huge world of ours.\pYou appear to be very gifted as a\nPOKéMON TRAINER.\pSo let me make a suggestion.\pGo to the GYM in CERULEAN and test\nyour abilities.

    #org @string4
    = Wait!\nTake this with you.

    #org @string5
    = [player] received TM39\nfrom BROCK.

    #org @string6
    = A TM, Technical Machine, contains a\ntechnique for POKéMON.\pUsing a TM teaches the move it\ncontains to a POKéMON.\pA TM is good for only one use.\pSo, when you use one, pick the\nPOKéMON carefully.\pAnyways[.]\nTM39 contains ROCK TOMB.\pIt hurls boulders at the foe and\nlowers its SPEED.

    #org @string7
    = You don't have room for this.

    #org @string8
    = Now you're an official POKéMON\nMASTER, let's have a rematch!

    #org @string9
    = Truly, you do deserve the title\nof POKéMON MASTER!
  7. Skara
    October 15th, 2012 06:49 AM
    Hey man, how's the script coming along?
  8. Skara
    October 13th, 2012 06:07 PM
    So I can't use the Hacked Engine since I don't think it'll keep my data if I patch it to the rom I've edited.
    Is there any other way to do change wild levels depending on where you are?
  9. Skara
    October 13th, 2012 11:12 AM
    I'm not actually, but I've heard quite a bit about it just from exploring the forums today.
    I'll check it out.
  10. Spherical Ice
    October 13th, 2012 11:00 AM
    Spherical Ice
    Are you using JPAN's FireRed Hacked Engine? special 0x58 in that patch lets you change the wild pokemon, so you could just have scripts that activate that special/deactiavte it upon entering different areas.

    ill send you a script for the rematch later, ive gotta do something atm sorry!

All times are UTC -8. The time now is 03:15 AM.