• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Script Help Thread (DO NOT REQUEST SCRIPTS)

Status
Not open for further replies.
2
Posts
10
Years
    • Seen Feb 17, 2014
    iv been trying to write a script where the player is called over to help, he runs over there and gets into a wild pokemon battle and then after the battle the person who you saved thanks you.

    my script finishes the battle but then the person doesn't move please can someone help. here is my script. Thanks

    #org $first
    jingle
    message $t1
    $t1 1 = MOLLY: HELP!!!
    boxset 6
    setvar 0x7002 0x0001
    applymovement 0xFF $move
    pausemove 0x0
    applymovement 1 $move2
    wildbattle 32 12 0
    pause 0x70
    fadescreen 1
    #raw 0x53 0x01 0x00
    #raw 0x53 0x02 0x00
    setflag 0x1302
    pause 0x10
    fadescreen 0
    pausemove 0x0
    applymovment 2 $move3
    message $t2
    $t2 1 = MOLLY:Thank you for saving me.
    release
    end

    #org $move
    #raw 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F
    #raw 0x1E 0x1E 0x1E 0x1F 0x1F 0x04 0xFE
    end

    #org $move2
    #raw 0x01
    #raw 0xFE
    end

    #org $move3
    #raw 0x11
    #raw 0x02 0xFE
    end
     
    191
    Posts
    10
    Years
  • I really need help with a give national dex script for fire red I've tried the following but it just upgrades it is there a way to give the national dex without having first getting the regional dex?

    #org 0x800000
    lock
    faceplayer
    checkflag 0x10A
    if 1 jump 0x800050
    special 0x16F
    setflag 0x10A
    fanfare 0x13E
    msgbox 0x800100
    callstd 0x6
    waitfanfare
    release
    end

    #org 0x800050
    msgbox 0x800070
    callstd 0x6
    release
    end

    #org 0x800070
    = Like your new POKéDEX?

    #org 0x800100
    = Your POKéDEX was upgraded!
     
    26
    Posts
    12
    Years
    • Seen Aug 10, 2015
    Game: FireRed
    Editor: XSE
    Type: Script Tile/TrainerBattle
    Script:
    Spoiler:


    How would I make the script continue if I lose the battle? As it is now it blacks out and sends me home
     

    Kyoko1

    Banned
    63
    Posts
    10
    Years
    • Seen Feb 27, 2014
    Make:

    trainerbattle 0x9 0x03B 0x3 @win @lose

    Change the last byte to 0x3 ;)
    But you have Oaks text there..
     

    Tlachtli

    Crit happens.
    267
    Posts
    12
    Years
  • Is there a way to get the current map a player is on? I know XSE has getplayerpos which returns the player's x- and y- coordinates on the current map, but I'm interested in finding the map itself.

    If for example I wanted an item to work only in certain areas, I'd want it to check the current map on use to see if it's in an 'allowed' area.
     

    HEXX5

    The Enthusiest
    6
    Posts
    10
    Years
  • Ok so im the noob-iest of all noobs... and i need advice lol im using pksvui and ad-map and since this is where scripters congregate could someone point me towards an extensive, in depth tut on scripting so i can hack emerald? sorry if this is inconveniant for anyone, and thanx in advance! //_^
     

    manadhon

    RTX-008L
    119
    Posts
    11
    Years
  • Ok so im the noob-iest of all noobs... and i need advice lol im using pksvui and ad-map and since this is where scripters congregate could someone point me towards an extensive, in depth tut on scripting so i can hack emerald? sorry if this is inconveniant for anyone, and thanx in advance! //_^

    https://www.pokecommunity.com/showthread.php?t=195659

    https://www.pokecommunity.com/showthread.php?t=267579

    Neither of these tutorials are as in depth as, say Diegoisawesome's XSE tutorial, but they should have everything you need. The money and warping sections are wrong though, so watch out. If you have any further questions, feel free to contact me.
     

    HEXX5

    The Enthusiest
    6
    Posts
    10
    Years
  • crap... ok so ahem
    game= emerald
    script= sign post
    tool= pksv-ui

    so i typed in
    #dyn 0x8E3D3FD
    #org @start
    lock
    faceplayer
    msgbox @text ' SPRUCE RESEARCH CENTER
    callstd MSG_SIGN
    release
    end

    #org @text
    = SPRUCE RESEARCH CENTER


    but after compiled i get
    #org 0x8E3D3FD
    '-----------------------------------
    #raw 0xFF
    setobedience 0xCCCA
    executeram
    #raw 0xBD
    #raw 0xBF
    nop0 ' #raw 0x0
    comparehiddenvar 0xBF 0xBFCD
    #raw 0xBB
    comparehiddenvar 0xBD 0xC2
    #raw 0xBD
    #raw 0xBF
    #raw 0xC8
    checkobedience 0xCCBF
    #raw 0xFF
    #raw 0xFF
    #raw 0xFF
    #raw 0xFF
    'Decompiler stopped due to failsafe mechanism (too many #RAW 0xFF commands)


    help.... oh and how do i do a spoiler lol thanx //_*
     

    Le pug

    Creator of Pokémon: Discovery / Fat Kid
    870
    Posts
    10
    Years
  • crap... ok so ahem
    game= emerald
    script= sign post
    tool= pksv-ui

    so i typed in
    #dyn 0x8E3D3FD
    #org @start
    lock
    faceplayer
    msgbox @text ' SPRUCE RESEARCH CENTER
    callstd MSG_SIGN
    release
    end

    #org @text
    = SPRUCE RESEARCH CENTER


    but after compiled i get
    #org 0x8E3D3FD
    '-----------------------------------
    #raw 0xFF
    setobedience 0xCCCA
    executeram
    #raw 0xBD
    #raw 0xBF
    nop0 ' #raw 0x0
    comparehiddenvar 0xBF 0xBFCD
    #raw 0xBB
    comparehiddenvar 0xBD 0xC2
    #raw 0xBD
    #raw 0xBF
    #raw 0xC8
    checkobedience 0xCCBF
    #raw 0xFF
    #raw 0xFF
    #raw 0xFF
    #raw 0xFF
    'Decompiler stopped due to failsafe mechanism (too many #RAW 0xFF commands)


    help.... oh and how do i do a spoiler lol thanx //_*

    your problem is you're not using XSE 1.1.1 for the ease and comfort of script making!
    Download it from here (and any other tools you might want):
    link
     
    48
    Posts
    10
    Years
    • Seen Mar 7, 2014
    Hey guys, I am trying to get a pokemon healing script where you have to pay 100 pokedollars. Here's what I have so far. It is not working atm, always deferring to @no and not going to @continue if the player answers yes. Can anyone help?

    (Hotel Script)

    #dynamic 0x80AFF9

    #org @start
    lock
    faceplayer
    msgbox @ask 0x5
    if 0x1 goto @continue
    msgbox @no 0x6
    release
    end

    #org @continue
    checkmoney 0x96 0x0
    compare 0x800D 0x1
    if 0x4 goto @heal
    msgbox @notenough 0x6

    #org @heal
    paymoney 0x96 0x0
    special 0x0
    fadescreen 0x1
    msgbox @end 0x6
    release
    end

    #org @ask
    = Greetings! Welcome to the PYRITE\nSUPER GRAND HOTEL!\pStay in one of our ultra gorgeous\nsuites, and you and your POKEMON\lwill be refreshed as new.\pIt's a mere 100, will you stay?

    #org @no
    = Oh, thats too bad!

    #org @notenough
    = You don't have enough money!

    #org @end
    = Fine, fine. Hope you enjoyed\nstaying with us.
     

    manadhon

    RTX-008L
    119
    Posts
    11
    Years
  • I'm going to address both HEXX5 and Bob Thelman in this post.

    HEXX5
    Spoiler:


    Bob Thelman
    Spoiler:
     
    26
    Posts
    12
    Years
    • Seen Aug 10, 2015
    Make:

    trainerbattle 0x9 0x03B 0x3 @win @lose

    Change the last byte to 0x3 ;)
    But you have Oaks text there..

    It doesn't work :/ I still black out..

    Spoiler:
     
    48
    Posts
    10
    Years
    • Seen Mar 7, 2014
    I'm going to address both HEXX5 and Bob Thelman in this post.

    HEXX5
    Spoiler:


    Bob Thelman
    Spoiler:

    I added the compare, not sure why I forgot it lol, sometimes I guess you just miss things like that. Its still not working, could you take a look at it? I just use 0x800D right? Is that the only issue?

    #dynamic 0x80AFF9

    lock
    faceplayer
    msgbox @ask 0x5
    compare 0x800D 0x1
    if 0x1 goto @continue
    msgbox @no 0x6
    release
    end

    #org @continue
    checkmoney 0x96 0x0
    compare 0x800D 0x1
    if 0x4 goto @heal
    msgbox @notenough 0x6

    #org @heal
    paymoney 0x96 0x0
    special 0x0
    fadescreen 0x1
    msgbox @end 0x6
    release
    end

    #org @ask
    = Greetings! Welcome to the PYRITE\nSUPER GRAND HOTEL!\pStay in one of our ultra gorgeous\nsuites, and you and your POKEMON\lwill be refreshed as new.\pIt's a mere 100, will you stay?

    #org @no
    = Oh, thats too bad!

    #org @notenough
    = You don't have enough money!

    #org @end
    = Fine, fine. Hope you enjoyed\nstaying with us.
     
    Last edited:

    manadhon

    RTX-008L
    119
    Posts
    11
    Years
  • I added the compare, not sure why I forgot it lol, sometimes I guess you just miss things like that. Its still not working, could you take a look at it? I just use 0x800D right? Is that the only issue?

    #dynamic 0x80AFF9

    lock
    faceplayer
    msgbox @ask 0x5
    compare 0x800D 0x1
    if 0x1 goto @continue
    msgbox @no 0x6
    release
    end

    #org @continue
    checkmoney 0x96 0x0
    compare 0x800D 0x1
    if 0x4 goto @heal
    msgbox @notenough 0x6

    #org @heal
    paymoney 0x96 0x0
    special 0x0
    fadescreen 0x1
    msgbox @end 0x6
    release
    end

    #org @ask
    = Greetings! Welcome to the PYRITE\nSUPER GRAND HOTEL!\pStay in one of our ultra gorgeous\nsuites, and you and your POKEMON\lwill be refreshed as new.\pIt's a mere 100, will you stay?

    #org @no
    = Oh, thats too bad!

    #org @notenough
    = You don't have enough money!

    #org @end
    = Fine, fine. Hope you enjoyed\nstaying with us.

    Sorry about that (I only glanced at your script). You're missing the "release" and "end" commands in continue, which will mess everything up. The only other major error that I can see is that you forgot to fade in the screen. You faded it out, but not in. On a side note, it would look better if you showed the character's money being subtracted, and yes, 0x800D is the right variable. Oh yeah, you're charging people $150, not $100 (talk about highway robbery).
     
    Status
    Not open for further replies.
    Back
    Top