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

Thrace

@tion
  • 1,048
    Posts
    16
    Years
    • Seen Oct 2, 2016
    Is bufferitem 0x<item number>, same as checkitem?
    Also, the CMD_3E or something like that. I tried it in a script, and it acted like a pause command.
    Is that it?

    bufferitem puts the item name into a buffer and its actually bufferitem [buffer] [itemNumber]. checkitem checks if the player has a specific amount of an item.

    Err, you used a random command without knowing what it does? CMD_3E is known anyway its a type of warp. You must have remembered the number incorrectly.
     

    Hiche..

     
  • 979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    I was going to edit my post.
    I only tested it though.
    Thanks for the info.

    Edit: I have a question. How do I change the text in Multi scripts? Like I was to change one island to Contest 1 for example.
     
    Last edited:

    ZodiacDaGreat

    Working on a Mobile System
  • 429
    Posts
    17
    Years
    Tamerhaidar said:
    Edit: I have a question. How do I change the text in Multi scripts? Like I was to change one island to Contest 1 for example.
    Hmm.. This is extremely easy, just search for the text in Hex or with A-Text and edit them :)
     
  • 61
    Posts
    15
    Years
    • Seen Oct 12, 2012
    what is the error in this script for XSE?
    '-----------------------
    #org 0x945621
    lock
    faceplayer
    trainerbattle 0x0 0x1D 0x0 0x894563F 0x894564A
    msgbox 0x8945655 '"Ciao"
    callstd 0x6
    setflag 0x1204
    release
    end


    '---------
    ' Strings
    '---------
    #org 0x94563F
    = Perderai!

    #org 0x94564A
    = Ho perso!

    #org 0x945655
    = Ciao

    when script is active the people thet should fight with me do'speak but block the game

    sorry for my orrible english
     

    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 0x807
    fadescreen 0x0
    msgbox @s8 '"The Suicune ran away!"
    callstd 0x6
    release
    end

    #org @s7
    = GRRRR!

    #org @s8
    = The Suicune ran away!

    This script works fine until I catch it and Suicune stays so I can battle it again and again. It only goes away when I run away from it. Please fix it and tell me what ID to give it in Advance Map. Thanks in advance!
     

    machomuu

    Stuck in Hot Girl Summer
  • 10,507
    Posts
    16
    Years
    Use special 0x0, for example:

    fadescreen 0x1
    special 0x0
    fadescreen 0x0

    Wait, is this for XSE or poke script (I use both) I'm sorry but if it's not too much to ask, can you put it in script form :nervous:?

    (yeah, did you guys know you don't have to make XSE the default script editor on A-Map to make the script work?)
     
    Last edited:

    Hiche..

     
  • 979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    Wait, is this for XSE or poke script (I use both) I'm sorry but if it's not too much to ask, can you put it in script form :nervous:?

    (yeah, did you guys know you don't have to make XSE the default script editor on A-Map to make the script work?)

    This is an example:

    Spoiler:

    This is for XSE.
     
  • 61
    Posts
    15
    Years
    • Seen Oct 12, 2012
    what is the error in this script for XSE?
    '-----------------------
    #org 0x945621
    lock
    faceplayer
    trainerbattle 0x0 0x1D 0x0 0x894563F 0x894564A
    msgbox 0x8945655 '"Ciao"
    callstd 0x6
    setflag 0x1204
    release
    end


    '---------
    ' Strings
    '---------
    #org 0x94563F
    = Perderai!

    #org 0x94564A
    = Ho perso!

    #org 0x945655
    = Ciao

    when script is active the people thet should fight with me do'speak but block the game

    sorry for my orrible english
    __________________
     

    Hiche..

     
  • 979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    what is the error in this script for XSE?
    '-----------------------
    #org 0x945621
    lock
    faceplayer
    trainerbattle 0x0 0x1D 0x0 0x894563F 0x894564A
    msgbox 0x8945655 '"Ciao"
    callstd 0x6
    setflag 0x1204
    release
    end


    '---------
    ' Strings
    '---------
    #org 0x94563F
    = Perderai!

    #org 0x94564A
    = Ho perso!

    #org 0x945655
    = Ciao

    when script is active the people thet should fight with me do'speak but block the game

    sorry for my orrible english
    __________________

    The release, lock, faceplayer and setflag 0x1204 are not necessary.
    In advance map, did you tick the trainer box? and did you modify the View radius(or range)?
    If not, then the script won't work.
     
  • 62
    Posts
    16
    Years
    #dynamic 0x800000

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

    This script works fine until I catch it and Suicune stays so I can battle it again and again. It only goes away when I run away from it. Please fix it and tell me what ID to give it in Advance Map. Thanks in advance!

    Try this don't know what it does but no harm trying

    If you mean person ID by ID try anything above 99 (its not the minimun) i haven't tried anything lower b4.
     
    Last edited:
  • 61
    Posts
    15
    Years
    • Seen Oct 12, 2012
    thank you now go perfectly!

    if i would substitude jinjle comand i must use fanfare for XSE?
     
    Last edited:

    Hiche..

     
  • 979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    thank you now go perfectly!

    if i would substitute jingle command i must use fanfare for XSE?

    Yes,
    fanfare 0x<small jingle sound>
    waitfanfare

    The small jingle sound can be 0x13E or 0x100....
    fanfare 0x13E, is used to play the music when you receive a Pokemon.
    fanfare 0x100, is used to play the healing music.
     
    Status
    Not open for further replies.
    Back
    Top