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

Toon Link

POKEMON TRAINER
25
Posts
14
Years
    • Seen May 14, 2014
    Ok so i put it in like this
    Spoiler:


    But the game froze before I could even beat the trainer, then have a rematch.
    Does anyone know whats wrong?
     

    PeregrineFig

    Starting Pokémon Obsidian
    202
    Posts
    14
    Years
  • For one, you have your labels messed up. @vsseeker shouldn't be raw text. I think it should be:

    #org @vsseeker
    trainerbattle 0x5 0x(trainer number) 0x0 @beforelabel @afterlabel
    end

    And the text you have as @vsseeker should be the before label of the second trainerbattle.
     
    31
    Posts
    14
    Years
  • Game: Pokemon Fire Red
    Type: moving script
    Editor: XSE
    Script:
    Spoiler:


    This script works except that it plays over and over each time you step on it and I also need to know how to make the moving sprites dissapear at the end
     

    Binary

    え?
    3,977
    Posts
    16
    Years
    • Age 29
    • Seen Apr 7, 2014
    @KhaosMonsterEnergy:
    Are you sure that the flag isn't taken? And to make sprites permanently disappear use
    setflag 0x[person ID]
    Use the person ID as a flag. Clearflag makes the sprite appear again.
     

    phosphate5

    Random little kid
    117
    Posts
    15
    Years
  • Script not working:

    Game: Emerald
    Type: Trigger
    Editor: XSE
    Spoiler:


    So, basically, your dad should appear, move around, talk a bit, and fight a magikarp for you. Except none of the movements are happening, even though the door is closing. And the wildbattle isn't happening. Any advice?
     

    Binary

    え?
    3,977
    Posts
    16
    Years
    • Age 29
    • Seen Apr 7, 2014
    @phosphate 5:
    where's the pointer 0x9000000? I think It should be goto 0x9000000
     
    2
    Posts
    14
    Years
    • Seen Jul 11, 2013
    Can you help me?

    Game: Pokemon fire red
    Type: person script I guess but the script would go on a script box.
    Editor: I'm Using XSE
    I'm trying to get the players parents to walk over to the player and then talk to him once he steps on a script box. But when I test it my character steps on the box and he can't move. When I tested it without the flags, only the mom moves and she moves in the wrong way then the message comes up. Here's the script. (Mom:0, Dad:1)
    ps. I am somewhat new to scripting.
    Spoiler:

    Can someone help?
    Thanks in advance
     

    Binary

    え?
    3,977
    Posts
    16
    Years
    • Age 29
    • Seen Apr 7, 2014
    @jwag:

    Spoiler:


    It should work now. You're using the correct person event no. right? and you've put the var value and unknown.
     

    Evilcrizpy

    Advanced Mapper
    26
    Posts
    14
    Years
    • Seen Apr 9, 2010
    Game : Pokemon Fire Red
    Script : Script box
    Editor : XSE
    Im trying to make PROF.OAK walk over to him when he walks out his door (onto the script box) however, it will compile just when ever i test it just freezes, here is code.
    Spoiler:
     
    10,078
    Posts
    15
    Years
    • Age 32
    • UK
    • Seen Oct 17, 2023
    Game: Pokemon fire red
    Type: person script I guess but the script would go on a script box.
    Editor: I'm Using XSE
    I'm trying to get the players parents to walk over to the player and then talk to him once he steps on a script box. But when I test it my character steps on the box and he can't move. When I tested it without the flags, only the mom moves and she moves in the wrong way then the message comes up. Here's the script. (Mom:0, Dad:1)
    ps. I am somewhat new to scripting.
    Spoiler:

    Can someone help?
    Thanks in advance

    You are looking at the wrong number there, it should be the next number down, so the person event numbers are PROBABLY 1 and 2 respectively. 0 cannot be an event number.

    Everything else is ok, but why do you want to hide the sprites after talking to you? You should probably have a fadescreen 0x1 fadescreen 0x0 on the script like this.

    fadescreen 0x1
    hidesprite 0x00
    hidesprite 0x01
    fadescreen 0x0

    That way the screen will go black and when it comes back the parents will have disappeared :).

    Also remember to set another flag, and put the flag number as the Person ID in a-map.







    --------------------


    @Evilcrizpy

    Check the Unknown and Var numbers on the script tile as I don't see anything essentially wrong with your .

    Unknown: 0003
    VarNumber: 4050
     

    Evilcrizpy

    Advanced Mapper
    26
    Posts
    14
    Years
    • Seen Apr 9, 2010
    Thankyou,

    however, i have another problem,

    It will start the script but how ever it just creates !! below my character and PROF.OAK does not move to me... and he does not speak.
    Same code as above.

    Spoiler:
     
    Last edited:
    10,078
    Posts
    15
    Years
    • Age 32
    • UK
    • Seen Oct 17, 2023
    Are you sure PROF. OAK's person event number is 2?

    Like I said, I don't see anything wrong with it. Do you have a copy of the script before it was compiled?
     

    Evilcrizpy

    Advanced Mapper
    26
    Posts
    14
    Years
    • Seen Apr 9, 2010
    yhhh i do here.

    Spoiler:
     

    Evilcrizpy

    Advanced Mapper
    26
    Posts
    14
    Years
    • Seen Apr 9, 2010
    Done that, but still wont work

    Spoiler:
     
    10,078
    Posts
    15
    Years
    • Age 32
    • UK
    • Seen Oct 17, 2023
    Ok well my final recommendation is:

    -Remove all level scripts incase they are interferring with the sprites.
    -Try changing the person event number of the sprite being used.

    The script *should* be working now, so I have no idea why even the msgbox isn't showing.
     

    Evilcrizpy

    Advanced Mapper
    26
    Posts
    14
    Years
    • Seen Apr 9, 2010
    I have just done what u said...
    but nothing...
    It seems to be getting there due to the fact that it pauses and waits, but the problem is he still dont move...
     

    HackMew

    Mewtwo Strikes Back
    1,314
    Posts
    17
    Years
    • Seen Oct 26, 2011
    I have just done what u said...
    but nothing...
    It seems to be getting there due to the fact that it pauses and waits, but the problem is he still dont move...

    Where is the setvar? I can't see it. Every script should have a setvar, be it a walkable trigger or a level script. Each script should have an unique variable assigned, indeed.
     

    Evilcrizpy

    Advanced Mapper
    26
    Posts
    14
    Years
    • Seen Apr 9, 2010
    Okay,
    I have finallly fixed it but however, he is not where he is suppose to be, i place him in one place. in game, completely different spot
    i have made sure they are the right #raw command movements for fire red.
    here is code.

    Spoiler:
     
    Last edited:
    Status
    Not open for further replies.
    Back
    Top