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

Luck

¯\_(ツ)_/¯
  • 6,779
    Posts
    16
    Years
    • Seen May 20, 2023
    I know there is something wrong with this script.
    Its about oak telling you that you can't go in the grass and leading you to his lab.
    Here it is and as always correct me if i'm wrong.

    #ORG $begin
    checkflag 0x353
    Wait!B_true goto $done
    applymovement 0x62 0x20 0x1D 0x4A $mw1 0xFE
    pause 0x30
    message $aidtalk
    boxset 6
    If you go out\nthere you will get\qinjured!\pHere!\nFollow me.
    playsound 0x13B
    applymovement 0x01 $mw2
    applymovement 0xFF $mw2
    pause 0x50
    fadesound
    release
    end

    #org $done
    release
    end

    #org $mw1
    $mw1 ; #binary 0x10 0x13 0x10 0x13 0x01
     

    Lyzo

    Back from vacation
  • 261
    Posts
    17
    Years
    Hey I've got a qeustion about the pokéball script. How do you make it dissapear after you get the item?
     

    Luck

    ¯\_(ツ)_/¯
  • 6,779
    Posts
    16
    Years
    • Seen May 20, 2023
    is No one i is going to answer my question?
    Sorry but i sometimes forget my grammer.
     

    Jack of Bl♠des

    Former goderator
  • 194
    Posts
    16
    Years
    Could someone tell me what is wrong with this script?

    #ORG $begin
    lock
    faceplayer
    $Akki
    boxset 6
    release
    end

    #org $Akki
    $Akki 1 = Good luck Jakkin!

    you need to put "message $Akki" on the third line instead of just $Akki. Also, you don't need to put "$Akki 1 = Good luck Jakkin!" at the bottom. try this.

    Spoiler:
     

    Jack of Bl♠des

    Former goderator
  • 194
    Posts
    16
    Years
    How do I make a script that has text appear right after a wild pokemon battle?

    I think it depends. Do you want it to be after every battle or just a certain battle?

    If it's after a certain battle, you'd have to script it like a trainer battle I think. I'll get back to you on in it a little.
     

    Piplup-Trainer

    This is my custom user title.
  • 228
    Posts
    16
    Years
    Hi guys!
    I have a question.

    Is it possible to create such a script :
    - You klick a Person. He says "Hello! You're <PLAYER>, right?" /p"Levale me alone!". The script ends.
    - You click the person again. He says "I said : Leave me alone!". The script ends.
    - You click the Person at the third time. He says "DON'T YOU UNDERSTAND!? LEAVE ME ALONE!". The script ends.
    - You click the person again. He says : "Okay, you asked for it!". A trainerbattle starts.

    If yes, can you give me an example how the script looks like?
     

    Jack of Bl♠des

    Former goderator
  • 194
    Posts
    16
    Years
    Hi guys!
    I have a question.

    Is it possible to create such a script :
    - You klick a Person. He says "Hello! You're <PLAYER>, right?" /p"Levale me alone!". The script ends.
    - You click the person again. He says "I said : Leave me alone!". The script ends.
    - You click the Person at the third time. He says "DON'T YOU UNDERSTAND!? LEAVE ME ALONE!". The script ends.
    - You click the person again. He says : "Okay, you asked for it!". A trainerbattle starts.

    If yes, can you give me an example how the script looks like?

    Here is most of your script. The only thing I didn't do was script in the trainer battle, because I haven't gotten that part down all the way. But here's what I have so far, related to the conversation part.

    Code:
    #org $curseyou
    checkflag 0x205
    lock
    faceplayer
    if B_true goto $phase2
    message $phase1
    $phase1 1 = Hey, you're \v\h01, right?\pGet lost!
    boxset 6
    setflag 0x205
    release
    end
    
    #org $phase2
    checkflag 0x206
    lock
    faceplayer
    if B_true goto $phase3
    message $phase2point5
    $phase2point5 1 = I said leave me alone!
    boxset 6
    setflag 0x206
    release
    end
    
    #org $phase3
    checkflag 0x207
    lock
    faceplayer
    if B_true goto $phase4
    message $phase3point5
    $phase3point5 1 = DON'T YOU UNDERSTAND!? LEAVE ME ALONE!
    boxset 6
    setflag 0x207
    release
    end
    
    #org $phase4
    checkflag 0x208
    lock
    faceplayer
    if B_true goto $phase5
    message $phase4point5
    $phase4point5 1 = Okay, you asked for it!
    boxset 6
    setflag 0x208
    release
    end
    
    #org $phase5
    lock
    faceplayer
    message $phase5point5
    $phase5point5 1 = Okay, I'm sorry.
    boxset 6
    release
    end
    It all works, since I've tried it myself. I'll PM you when I understand how to get a trainer battle into the script, unless others want that script too.
     
    Last edited:

    TB Pro

    Old-timer
  • 2,708
    Posts
    19
    Years
    Well if what Jack Of Blades says is true,
    This'll work

    Spoiler:

    Also I need help with this script

    Spoiler:

    I want the 0x4 person to move up 10 steps,
    Then I want the Player to get a "!!" above his/her head,
    And go down 9 steps.
    Then I want the 0x04 person to give you the pokemon and items,
    Then dissapear.

    Is what happens is:
    As soon as you step on the script box the player gets a "!!" above his/her head and goes down 9 steps,
    And gets the Pokemon and Items from nobody.
    So please tell me what's wrong!

    Also what command allows you to nickname your pokemon?
     

    destinedjagold

    I do not exist.
  • 8,593
    Posts
    17
    Years
    • Seen May 26, 2024
    applymovement 0x04 $Imandis
    pausemove 0

    and

    #ORG $Imandisappear
    $Imandis 1 ; 0x60 0xFE

    aren't the same and also, you should put this in the movement scripts...

    #org $Itmandisappear
    $Itmandisappear 1 ; #binary

    always put a #binary in every movement scripts before the moves...
     

    Lyzo

    Back from vacation
  • 261
    Posts
    17
    Years
    Hey I've got another qeustion about this script
    Spoiler:
     

    TB Pro

    Old-timer
  • 2,708
    Posts
    19
    Years
    applymovement 0x04 $Imandis
    pausemove 0

    and

    #ORG $Imandisappear
    $Imandis 1 ; 0x60 0xFE

    aren't the same and also, you should put this in the movement scripts...

    #org $Itmandisappear
    $Itmandisappear 1 ; #binary

    always put a #binary in every movement scripts before the moves...

    lol Thanks DJG!
    I'll try that out and see what happens!


    EDIT:
    Well It still dosen't work...
    It does the same thing as before...
    Here's the script...


    Spoiler:
     
    Last edited:

    Jack of Bl♠des

    Former goderator
  • 194
    Posts
    16
    Years
    Okay, small question. Is it possible to link two scripts together by letting them share one flag (such as you say something somebody, they set a flag, and then the script of another person checks for that same flag)?

    If not, how do I get them to respond to each other?


    -EDIT- You know what? I'm gonna stop posting questions, because I always figure them out on my own. But I do have a new script up in case anybody wants it. It involves two separate characters responding to each other (via flags)
     
    Last edited:

    destinedjagold

    I do not exist.
  • 8,593
    Posts
    17
    Years
    • Seen May 26, 2024
    lol Thanks DJG!
    I'll try that out and see what happens!


    EDIT:
    Well It still dosen't work...
    It does the same thing as before...
    Here's the script...


    Spoiler:

    How many squares away is the people number 4 from the script box..?
    If it's too far away, then it won't move.
    Also, have you put in the right var values in that person and so in the script?
    Have ya set the same flag on the person?
    Try making the #org in small case.
     
    Status
    Not open for further replies.
    Back
    Top