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

thethethethe's Scripting Tutorial

33
Posts
15
Years
  • really good tutorial and keep up the good ork with legend of dragons

    awsome tutorails and keep up the awsome work
     
    Last edited:
    3
    Posts
    15
    Years
    • Seen Jan 24, 2013
    Very good tutorial for beginners, thanks a lot. I was wondering how to change/create scripts for lifts, for example right now i'm trying to get the lift in the rocket hideout to work without the lift key and also go to some new maps, can anyone tell me how to do that? Also im having a problem with my three starters, if you choose to give the pokemon a nickname the small picture and name of the pokemon are replaced by a picture of a ? and a lot of ????s where the name should be. Does anyone know how to fix this?
    Thanks.
     
    1,104
    Posts
    16
    Years
  • Very good tutorial for beginners, thanks a lot. I was wondering how to change/create scripts for lifts, for example right now i'm trying to get the lift in the rocket hideout to work without the lift key and also go to some new maps, can anyone tell me how to do that? Also im having a problem with my three starters, if you choose to give the pokemon a nickname the small picture and name of the pokemon are replaced by a picture of a ? and a lot of ????s where the name should be. Does anyone know how to fix this?
    Thanks.
    I've got another scripting tutorial that covers elevators. go to google and search for "pkmnhackersonline". I've got an older scripting tutorial there that covers them.
    As for the starters. If you've still got the call 0x[I can't remember pointer off the top of my head], for the namepokemon to do this.
    Code:
    ...
    ...   'Rest of script
    message $1    'Would you like to name \v\h02?
    boxset 0x5
    compare 0x800D 0x1
    if 0x1 gosub $namer
    ...
    ..
    ...  'Rest
    
    #org $namer
    setvar 0x8004 0x0   'For first Pokemon
    call 0xYYYYYY
    return
     
    5
    Posts
    15
    Years
  • what do we do with the scrpit when we're done with it, and could you see if this script is right?
    #org $start
    lock
    faceplayer
    message $10
    boxset 4
    #raw 0x68
    fadescreen 0x0
    fanfare 0x100
    special 0x16F
    waitfanfare
    fadescreen 0x0
    message $11
    boxset 6
    release
    end
    #org $10
    $10 1 =you need the National Dex.\
    #org $11
    $11 1 =There you go.\
     

    kotasu

    Dumbass
    5
    Posts
    16
    Years
  • Where can I find the HEX numbers for the Pokemon?
    (I need Chikorita, Totodile and Cyndaquil)
     
    Last edited:

    EvanMiesterX

    ^If that's my real name!
    92
    Posts
    16
    Years
  • Well, I'm a beginning scripter, in fact, this is my first script, and for some reason it won't work... any help?

    Spoiler:

    It's supposed to make it so when you press "A" on the rock, the game will ask you if you want to put your hand on the strange marking on it. If you say no, it should say you Stepped away from the rock. If you say yes, it should say You touch the rock, and everything starts to fade away, then you warp to a mysteriouos island. The problem is, it says "You stepped away from the rock." if you press yes or no. Any help is appreciated.
     

    Da GaMeFrEaK

    Farmer/Swordsman
    18
    Posts
    16
    Years
  • If you want to make a good hack, then you should try using poketScript. I think Irish Witch has a link to download the program and other people have tutorials for it. I'd give it to ya but I don't know how to make links...sorry(I'm new to the quoting thing). Anyways, PoketScript is a really good Scripting program. All you have to do now is learn the script language, which Irish Witch teaches you in her tutorial.
     
    1,104
    Posts
    16
    Years
  • I said this quite a while ago, this is the most useful tutorial on the entire PokéCommunity (more useful than any ASM, palette editing, mapping, and other tutorials that I've ever seen).

    I've never done much scripting in the long time that I've been hacking, but this should help me out a lot.

    Thank you so much for writing this tutorial, this is where I'll find everything.
    Thanks Hermes/Esmas.
    Well, I'm a beginning scripter, in fact, this is my first script, and for some reason it won't work... any help?

    Spoiler:

    It's supposed to make it so when you press "A" on the rock, the game will ask you if you want to put your hand on the strange marking on it. If you say no, it should say you Stepped away from the rock. If you say yes, it should say You touch the rock, and everything starts to fade away, then you warp to a mysteriouos island. The problem is, it says "You stepped away from the rock." if you press yes or no. Any help is appreciated.
    Well you could start by reading this tutorial, and that could help. You seem to have just guessed about a lot of the layout of the scripting.

    Code:
    compare LASTRESULT WeirdRock
    if WeirdRock goto $yes
    Weirdrock? Try 0x1.
    There's more there, I just chose to pick out this one little thing.

    If you want to make a good hack, then you should try using poketScript. I think Irish Witch has a link to download the program and other people have tutorials for it. I'd give it to ya but I don't know how to make links...sorry(I'm new to the quoting thing). Anyways, PoketScript is a really good Scripting program. All you have to do now is learn the script language, which Irish Witch teaches you in her tutorial.
    What are you talking about? And who are you saying this to?
    Do you understand this tutorial is for Pokescript?
    You should try reading, it's a pretty handy skill.
     
    39
    Posts
    16
    Years
  • In the part Applymovement, what are the var number and var value in the picture in the spoiler used for? It puzzles me a lot...

    And are there any free vars(vars haven't been used in the game) that I can use during hacking?
     

    Trodx

    That Guy Behind You
    26
    Posts
    16
    Years
    • Seen May 13, 2012
    #dynamic 0x165A6B
    #org 0x165A6B
    lock
    faceplayer
    msgbox @statement
    boxset 0x6
    checkflag 0x827
    if b_true goto @pass
    if b_false goto @sry
    release
    end

    #org @pass
    msgbox @1
    boxset 0x6
    applymovement 0x02 @dude
    pause 0x0
    release
    end

    #org @sry
    msgbox @2
    boxset 0x6
    release
    end

    '---------
    ' Strings
    '---------
    #org @statement
    = The path ahead is very dangerous.

    #org @pass
    = Is that the symbol of Lance\n the dragon master?\lIf you have earned his respect,\lyou are certainly strong enough\l to pass.

    #org @sry
    = I can see it in your eyes.\nYou wouldn't last a few minutes\l out there. I can't let you pass.

    #org @dude
    #raw 0x11 0x12 0xFE

    I keep getting a repeated line error but that shouldnt happen in this script. Any ideas?
     
    1,104
    Posts
    16
    Years
  • Does anyone know the special for the animation of the pokeballs flashing at the pokemon centre? (When nurse joy takes them and they are healed etc.)
    Why don't you just decompile the script?

    In the part Applymovement, what are the var number and var value in the picture in the spoiler used for? It puzzles me a lot...

    And are there any free vars(vars haven't been used in the game) that I can use during hacking?
    hey don't actually have to be free. You can use the same one over and over and over and over, etc.

    I keep getting a repeated line error but that shouldnt happen in this script. Any ideas?
    Dude, XSE is not Pokescript.
    Use the script help thread.
     

    Master_Track

    ROM Reaverz Scripter
    916
    Posts
    16
    Years
  • Hey thex4, it's your tutorial that made a scripter out of me ^^
    I was just wondering if you may add the mulit command as well?
    I think I know the sctructure, the main problem is that I don't have a list of the list's IDs.
    Do you have one?
    And is it possible to change a list by using thingy or Advance Text? Cause I really need my own multiple choice boxes.
    hope ya can help
    greez
    M_T
     

    NTA

    Where?
    264
    Posts
    16
    Years
    • Seen Feb 10, 2012
    if u are going to use setfllag and checkflag in a dissapearance fadescreen script and the sflag and cflag numbers are 201 would i make the persons id 201
     

    Master_Track

    ROM Reaverz Scripter
    916
    Posts
    16
    Years
  • In the part Applymovement, what are the var number and var value in the picture in the spoiler used for? It puzzles me a lot...

    And are there any free vars(vars haven't been used in the game) that I can use during hacking?

    Okay I'll try to explain.
    A script tile only activates if you put in a variable (and a value).
    It's like a level script:
    if you write var number 4050, the script only activates when the value of the variable is zero.
    So
    var number 4050
    var value 0000

    means: as long as the variable 0x4050 has the vale 0, the script tile can activate (of course if u use check and setflag it will only activate once).
    If u make a lvl script, or a normal script, with setvar 0x4050 0x1, u have to write
    var number 4050
    var value 0001

    So as long as the value of 4050 is 1, the script can activate.

    I'm not really sure about this, since I thought of it by myself when I learnen things about level scripting.
    I think thethethethe will tell us if I'm right or not.

    Actually, there's no need to use more than one variable (like thethethethe said), just use the same everytime. And if you change the value of the variable in a script, just raise write the new value into the tile.

    I hope that's right :\
     

    jakeyboy22

    Newbie Pokemon Hacker
    11
    Posts
    15
    Years
  • events

    On your flags tutorial it says preventing evnts from happening but how to you make and event script i have always been puzzled with it plz help
     

    *Poliwag*

    PollyWaggle
    23
    Posts
    16
    Years
  • Hey thex4, it's your tutorial that made a scripter out of me ^^
    I was just wondering if you may add the mulit command as well?
    I think I know the sctructure, the main problem is that I don't have a list of the list's IDs.
    Do you have one?
    And is it possible to change a list by using thingy or Advance Text? Cause I really need my own multiple choice boxes.
    hope ya can help
    greez
    M_T

    I have your answer!

    Here's a list of the IDs from Dabomstew's site: pokehacks.dabomstew.com
    Spoiler:


    And i believe th offsets for these boxes are around 0x417BE3, some will be above this i think, but not too far above!

    Hope this helps you!


    jakeyboy22 said:
    On your flags tutorial it says preventing evnts from happening but how to you make and event script i have always been puzzled with it plz help

    Event scripts are written using the same commands used in message scripts, but are applied differently. Whereas a message script is activated by walking up to a person and speaking to them, event scripts are activated when you step on a certain tile. So basically, you could just use your knowledge of message scripts and apply it to event scripts!



    Now it's my turn for a question! :D

    In the first battle against Gary, in Prof Oak's lab, you don't get sent to the last healing place if you lose, instead you stay in the lab. Is this a command in the script or is it to do with asm? Decompiling the script is not an option in this instance as the offset in advancemap and elitemap does not show the trainerbattle script when decompiled.

    Cheers
     
    Last edited:
    Back
    Top