• 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.

[Archive] Script help thread

Status
Not open for further replies.

#1Haxor

Banned
  • 6
    Posts
    15
    Years
    • Age 28
    • Seen Oct 23, 2008
    Hey guys, I know that this is my first Post, but I am not a Noob. I was just wondering if you guys knew why this script doesnt work... Its a level script. The thing that is wrong, is that my sprite doesnt disappear but she appears when shes not supposed to be there. Ill upload a vid, and show you my script. The funny thing though, is that when i make it a tile script, everything works fine.

    Heres the script

    Code:
    #org $start
    lock
    faceplayer
    setvar 0x4000 0x1
    checkflag 0x205
    if b_true goto $done1
    checkflag 0x203
    if b_true goto $done
    #raw 0x53
    #raw 0x02
    #raw 0x00
    end
    
    #org $done
    #raw 0x55
    #raw 0x02
    #raw 0x00
    applymovement 0xFF $move
    applymovement 0x08 $gary
    pause 0x10
    message $hey
    boxset 6
    applymovement 0xFF $face
    pausemove 0
    message $hey2
    boxset 6
    applymovement 0xFF $face2
    applymovement 0x08 $hilook
    pausemove 0
    message $poke
    boxset 6
    applymovement 0x02 $dex
    pausemove 0
    #raw 0x53
    #raw 0x01
    #raw 0x00
    applymovement 0x02 $dex2
    pausemove 0
    #raw 0x53
    #raw 0x09
    #raw 0x00
    applymovement 0x02 $give
    pausemove 0
    message $hereyougo
    boxset 6
    applymovement 0xFF $happy
    applymovement 0x08 $happy2
    pausemove 0
    message $garypoke
    boxset 6
    applymovement 0xFF $hello
    applymovement 0x08 $hello2
    pausemove 0
    trainerbattle 1 0x146 $before $after $later
    end
    
    #org $later
    message $gooder
    boxset 6
    applymovement 0x08 $disapear
    pausemove 0
    #raw 0x53
    #raw 0x08
    #raw 0x00
    setflag 0x829
    setflag 0x205
    special 0x16F
    end
    
    #org $done1
    release
    end
    
    #org $gooder 1 = I guess your better than me.\nWe'll battle again soon. I promise.
    
    #org $after
    $after 1 = Wow. You're strong.
    
    #org $before
    $before 1 = Hey \v\h01,\ncan't beleive that we got\lPokedex's. Thats so cool! We should\lhave a battle to see\pwho has the better Pokemon. 
    
    #org $hello
    #raw 0x02 0xFE
    
    #org $hello2
    #raw 0x03 0xFE
    
    #org $happy
    #raw 0x66 0xFE
    
    #org $happy2
    #raw 0x66 0xFE
    
    #org $give
    #raw 0x13 0x13 0x10 0xFE
    
    #org $dex2
    #raw 0x12 0x01 0xFE
    
    #org $dex
    #raw 0x11 0x12 0x01 0xFE
    
    #org $face2
    #raw 0x01 0xFE
    
    #org $face
    #raw 0x02 0xFE
    
    #org $move
    #raw 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE
    
    #org $gary
    #raw 0x03 0xFE
    
    #org$garypoke
    $garypoke 1 = Jeanne: Happy Birthday \v\h01!\nAnyways, \v\h06, heres a Pokemon\l\v\h06: Thanks Proffesor!\pJeanne: Alright, you guys can\nleave now.
    
    #org $hereyougo
    $hereyougo 1 = Here you go, they're Pokedex's.\nThey store data of Pokemon that\lyou've seen and caught.\p\v\h01: Thanks!\n\v\h06: Thanks Proffesor!
    
    #org $poke
    $poke 1 = Jeanne: Hey guys, I told your\nmoms to tell you guys to come\lover here because I wanted you\pguys to have these.
    
    #org $hey
    $hey 1 = \v\h01: Hey Professor.
    
    #org $hey2
    $hey2 1 = \v\h01: Hey \v\h06.
    
    #org $hilook
    #raw 0x01 0xFE

    heres the video.
    youtube.com/watch?v=CZl0FyKIk3g
     
  • 28
    Posts
    15
    Years
    • Seen Oct 28, 2013
    HI i need a scripter for my new hack called
    POKEMON PIKACHU'S WORLD

    "this is my first hack so i have little expirance i need help with scripts sprites and the background images of the trainers when battling

    so any scripters and spriters and all that stuff plz just post a message on this thread and i will replay.

    i have all the equiptment but little knowlage on how to use them
    i would be the mapper anyways.

    Story:
    Your ever ash and misty and you are coming to pallet town (beacuse you moved to viridian city (which will be called leauge city) and you go and visit oak and he gives you your pikachu after running tests on it.suddnely as soon as you leave the mountian in route 1 has a yellow pokemon on it and this pokemon is a pikachu who is gaurded by bolders and rocks you need to gain your team back so you go to a man in the 8th gym and lets you into his garden which contains your pokemon.
    After you get your team you will continue your jouney to collect all of the badges and HM's.

    brock will NOT be the first gym leader his dad will with weaker pokemon than in the leauge.

    1st Gym - Bruno (or) Brock's Mum
    2nd Gym - One of Misty's sisters (canrt remember the name's)
    3rd Gym - Lt Surge's son (made up charcter)
    4th Gym - Erika (or) Lindsey (Made up)
    5th Gym - Koga's sister (i think it is in the episode with koga the girl in the pink)
    6th Gym - Sabriana (can only get in with haunter)
    7th Gym - Blaine (in a volanco)
    8th Gym - Gary (with dragon pokemon)

    after you have all the badges get ready for a Lv75 pikachu battle.
    when you beat the pikachu he will go back to sleep.

    he was disturbed by (you know who)
    TR

    plz support me i need a team of hackers and banners will be made when i can learn how to make them" THIS IS IN THE SCRAPBOX IF YOU WANA HELP
     

    Pokepal17

    More cowbell~
  • 1,519
    Posts
    15
    Years
    Erm, on XSE, how do I stop items from reappearing, It really bugs me.
    The same with a legendary pokemon script - I ran away from Raikou (which I scripted) and it disappeared, but then when I moved it reaapeared. Please tell me how to stop this from happening.
     

    Hiche..

     
  • 979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    PokePal17

    When you use setflag in your script, place its number in the person ID of the people(or item), for example, setflag 0x200, you out the person ID: 0200.
    Also, try using hidesprite 0x<people number>.
     

    Pokepal17

    More cowbell~
  • 1,519
    Posts
    15
    Years
    Tamerhaidar, please can you explain what those commands do. I'm only a beginner and I only know how to give pokemon.
     
    Last edited:

    Hiche..

     
  • 979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    Tamerhaider, please can you explain what those commands do. I'm only a beginner and I only know how to give pokemon.

    Go to : Documents and tutorials section, and search for XSE tutorials.
    Hidesprite makes the person you are interacting with disappear permanently, but you need to use setflag 0x<value>. The value you put, place it in the person ID on the person in Advance map to make his disappear.
     

    Surf

    ...
  • 1,196
    Posts
    15
    Years
    • Age 29
    • Rust
    • Seen Jul 31, 2011
    HI i need a scripter for my new hack called
    POKEMON PIKACHU'S WORLD

    "this is my first hack so i have little expirance i need help with scripts sprites and the background images of the trainers when battling

    so any scripters and spriters and all that stuff plz just post a message on this thread and i will replay.

    i have all the equiptment but little knowlage on how to use them
    i would be the mapper anyways.

    Story:
    Your ever ash and misty and you are coming to pallet town (beacuse you moved to viridian city (which will be called leauge city) and you go and visit oak and he gives you your pikachu after running tests on it.suddnely as soon as you leave the mountian in route 1 has a yellow pokemon on it and this pokemon is a pikachu who is gaurded by bolders and rocks you need to gain your team back so you go to a man in the 8th gym and lets you into his garden which contains your pokemon.
    After you get your team you will continue your jouney to collect all of the badges and HM's.

    brock will NOT be the first gym leader his dad will with weaker pokemon than in the leauge.

    1st Gym - Bruno (or) Brock's Mum
    2nd Gym - One of Misty's sisters (canrt remember the name's)
    3rd Gym - Lt Surge's son (made up charcter)
    4th Gym - Erika (or) Lindsey (Made up)
    5th Gym - Koga's sister (i think it is in the episode with koga the girl in the pink)
    6th Gym - Sabriana (can only get in with haunter)
    7th Gym - Blaine (in a volanco)
    8th Gym - Gary (with dragon pokemon)

    after you have all the badges get ready for a Lv75 pikachu battle.
    when you beat the pikachu he will go back to sleep.

    he was disturbed by (you know who)
    TR

    plz support me i need a team of hackers and banners will be made when i can learn how to make them" THIS IS IN THE SCRAPBOX IF YOU WANA HELP
    You should post that in the team help thread
    If you idn't notice it's getting ignored
     

    destinedjagold

    I do not exist.
  • 8,593
    Posts
    17
    Years
    • Seen May 26, 2024
    Elow.

    I got a question related to a giveitem script. :\
    I have opened a pokeball script with XSE and found this code...

    Code:
    #org 0x1B1460
    giveitem 0x4 0x1 0x1
    end

    basically, the 0x4 is the hex code of the item to be given, and the 0x1 is the number of how many items will be given, but what's the other 0x1 mean? :\
     
  • 857
    Posts
    15
    Years
    Elow.

    I got a question related to a giveitem script. :\
    I have opened a pokeball script with XSE and found this code...

    Code:
    #org 0x1B1460
    giveitem 0x4 0x1 0x1
    end
    basically, the 0x4 is the hex code of the item to be given, and the 0x1 is the number of how many items will be given, but what's the other 0x1 mean? :\
    In XSE, it said it's the message type, so I guess 0x1 means no message?
     

    0m3GA ARS3NAL

    Im comin' home...
  • 1,816
    Posts
    16
    Years
    Elow.

    I got a question related to a giveitem script. :\
    I have opened a pokeball script with XSE and found this code...

    Code:
    #org 0x1B1460
    giveitem 0x4 0x1 0x1
    end
    basically, the 0x4 is the hex code of the item to be given, and the 0x1 is the number of how many items will be given, but what's the other 0x1 mean? :\
    Actually, 0x1 means that the message when you pick up the item will say. "PLAYER found (item)"
    If you use 0x0, it will say, "PLAYER Received (item)"

    So, to sum it up, 0x0 is Received, and 0x1 is Found

    I don't know if it does anything if you use 0x3, 0x4 etc... you could try it I guess...
     

    Pokepal17

    More cowbell~
  • 1,519
    Posts
    15
    Years
    #dynamic 0x800000

    #org @suicune
    special 0x187
    compare LASTRESULT 0x2
    if 0x1 goto @s2
    special 0x188
    lock
    faceplayer
    startwildbattle 0xF5 0x32 0x0
    checksound
    cry 0xF5 0x2
    msgbox2 @s7 '"GRRRR!"
    waitmsgbox
    waitcry
    pause 0xA
    playsong 0x156 0x0
    waitkeypress
    setflag 0x807
    special 0x138
    waitstate
    clearflag 0x807
    special2 LASTRESULT 0xB4
    compare LASTRESULT 0x1
    if 0x1 goto @s3
    compare LASTRESULT 0x4
    if 0x1 goto @s5
    compare LASTRESULT 0x5
    if 0x1 goto @s5
    setflag 0x2BE
    release
    end

    #org @s2
    release
    end

    #org @s3
    setflag 0x2BE
    goto @s6
    end

    #org @s5
    setvar 0x8004 0xF5
    goto @s4
    end

    #org @s6
    fadescreen 0x1
    hidesprite LASTTALKED
    fadescreen 0x0
    release
    end
    #org @s4
    fadescreen 0x1
    hidesprite LASTTALKED
    fadescreen 0x0
    bufferpokemon 0x0 0x8004
    msgbox @s8 '"The Suicune ran away!"
    callstd 0x4
    release
    end

    #org @s7
    = GRRRR!
    #org @s8
    = The Suicune ran away!


    Please can someone fix this script.
    When I catch the Suicune I turn into it.
     
    Last edited:
  • 857
    Posts
    15
    Years
    #dynamic 0x800000

    #org @suicune
    special 0x187
    compare LASTRESULT 0x2
    if 0x1 goto @s2
    special 0x188
    lock
    faceplayer
    startwildbattle 0xF5 0x32 0x0
    checksound
    cry 0xF5 0x2
    msgbox2 @s7 '"GRRRR!"
    waitmsgbox
    waitcry
    pause 0xA
    playsong 0x156 0x0
    waitkeypress
    setflag 0x807
    special 0x138
    waitstate
    clearflag 0x807
    special2 LASTRESULT 0xB4
    compare LASTRESULT 0x1
    if 0x1 goto @s3
    compare LASTRESULT 0x4
    if 0x1 goto @s5
    compare LASTRESULT 0x5
    if 0x1 goto @s5
    setflag 0x2BE
    release
    end

    #org @s2
    release
    end

    #org @s3
    setflag 0x2BE
    goto @s6
    end

    #org @s5
    setvar 0x8004 0xF5
    goto @s4
    end

    #org @s6
    fadescreen 0x1
    hidesprite LASTTALKED
    fadescreen 0x0
    release
    end
    #org @s4
    fadescreen 0x1
    hidesprite 0x(Person event No.)
    fadescreen 0x0
    bufferpokemon 0x0 0x8004( I don't think this command is necessary.)
    msgbox @s8 '"The Suicune ran away!"
    callstd 0x4
    release
    end

    #org @s7
    = GRRRR!
    #org @s8
    = The Suicune ran away!


    Please can someone fix this script.
    When I catch the Suicune I turn into it.
    I'm sorry if I missed anything, I'm in a rush.
    If I miss anything, please point it out.
     

    Pokepal17

    More cowbell~
  • 1,519
    Posts
    15
    Years
    Quote:
    Originally Posted by Pokepal17 [Archive] Script help thread
    #dynamic 0x800000

    #org @suicune
    special 0x187
    compare LASTRESULT 0x2
    if 0x1 goto @s2
    special 0x188
    lock
    faceplayer
    startwildbattle 0xF5 0x32 0x0
    checksound
    cry 0xF5 0x2
    msgbox2 @s7 '"GRRRR!"
    waitmsgbox
    waitcry
    pause 0xA
    playsong 0x156 0x0
    waitkeypress
    setflag 0x807
    special 0x138
    waitstate
    clearflag 0x807
    special2 LASTRESULT 0xB4
    compare LASTRESULT 0x1
    if 0x1 goto @s3
    compare LASTRESULT 0x4
    if 0x1 goto @s5
    compare LASTRESULT 0x5
    if 0x1 goto @s5
    setflag 0x2BE
    release
    end

    #org @s2
    release
    end

    #org @s3
    setflag 0x2BE
    goto @s6
    end

    #org @s5
    setvar 0x8004 0xF5
    goto @s4
    end

    #org @s6
    fadescreen 0x1
    hidesprite LASTTALKED
    fadescreen 0x0
    release
    end
    #org @s4
    fadescreen 0x1
    hidesprite 0x(Person event No.)
    fadescreen 0x0
    bufferpokemon 0x0 0x8004( I don't think this command is necessary.)
    msgbox @s8 '"The Suicune ran away!"
    callstd 0x4
    release
    end

    #org @s7
    = GRRRR!
    #org @s8
    = The Suicune ran away!


    Please can someone fix this script.
    When I catch the Suicune I turn into it.


    I'm sorry if I missed anything, I'm in a rush.
    If I miss anything, please point it out.

    Now when I catch it it stays.
    When I run away its says "Suicune ran away" but it stays.
    Smoebody please help!
     
    Status
    Not open for further replies.
    Back
    Top