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

Pokescript Tutorial

Status
Not open for further replies.

Jawash

<Beat EVERY SINGLE DragonQuest
37
Posts
16
Years
    • Seen Feb 27, 2010
    ;D

    ok i altered your wild battle script slightly and it works perfect.
    i just want o know how to gwt the roar to actually happen...
    and i've tried other tutorials in altering the fadescreen 0 effect =,='
    didn't do it right, so i'm going to settle for this and a roar ;]
    plz!!
     
    2
    Posts
    12
    Years
  • Heeeey. Still can't compile script, despite reinstalling pokescript a few times and making sure Pokescript ad PkmnAdv are both saved to 'Pokewitch'. Can anybody help please?
     
    7
    Posts
    12
    Years
    • Seen Mar 31, 2012
    In Ruby version, I can get my sprites to move, but I want them to disappear after (like they walk down some stairs or through a door). How do I do this?
     

    tajaros

    Hi I'm dawg
    855
    Posts
    12
    Years
  • In Ruby version, I can get my sprites to move, but I want them to disappear after (like they walk down some stairs or through a door). How do I do this?

    First you need to download the latest Pokescript so you can use the removesprite code. Then set flags for the person..

    Ex.
    removesprite - removes the sprite from the map
    First you need to now the person event number for example
    the sign post lady in Pallet Town is person event no: 1 in order to
    remove her input this removesprite 1 the number varies on the person event no.
    now for a realistic effect you can put fadescreen before the removesprite code
    fadescreen - fades the screen for effect
    there are types of fadescreen but the two main types are
    fadescreen 1 and fadescreen 0
    and for it to never happen again you need to input a flag...

    Now for flags
    checkflag 0x120 <- Checks the flag if already happen
    setflag 0x120 <- set's the flag\make's the flag happen

    Next go to advance map now you can see the Person ID
    replace it with the flag you set...
    setflag 0x120 = $0120

    And that's it......
    oh and for the door sound here it is
    Fire Red version only...
    playsound - plays the sound you want via hex
    playsound 0x8 <- Door sound
    playsound 0x9 <- Stair sound
    and also put nop on the next line so it will look like this

    playsound 0x8
    nop

    put it after the applymovement script or anything else xDDDDD
    oh almost forgot the playsound hex code is for Pokemon FireRed version
    so just search the ruby hex sounds on google but i rather prefer you use FireRed because the commands for it are wide spread for much convenience...

    NOTE: ONLY FOR THE LATEST POKESCRIPT DATABASE you can download it from either GOOGLE or Irish Witch's site....

    I'll give you a sample script

    #org $script
    lock
    faceplayer
    checkflag 0x120
    message $gone
    $gone 1 = I can become invisible.
    boxset 6
    removesprite 1
    setflag 0x120
    release
    end


    put this script to the person event no. 1 in your map and see if it worked.
     
    Last edited:

    Mr.Luigi

    Trainer
    2
    Posts
    13
    Years
    • Age 30
    • Seen May 8, 2012
    No matter what I try, the person that I set this script to won't respond at all when I face them and press "A." Any ideas on how to fix this in FireRed would be greatly appreciated.

    #org $script
    lock
    faceplayer
    checkflag 0x1200
    if b_true goto $alreadygotone
    message $wantpoke
    $wantpoke 1 =Hey,\nit's dangerous out there.\pTake this Machop.
    boxset 6
    givepokemon 0x42 0x5 0x0
    message $received
    $received 1 = [PLAYER] received Machop!
    boxset 6
    setflag 0x1200
    message $pokedex
    $pokedex 1 = Here! \nTake this Pokédex, too!
    boxset 6
    setflag 0x828
    setflag 0x829
    message $recieved1
    $recieved1 1 = [PLAYER] recieved the Pokédex!
    boxset 6
    message $gsball
    $gsball 1 = Here's the GS Ball you needed.
    boxset 6
    setflag 0x825
    message $recieved2
    $recieved2 1 = [PLAYER] recieved the GS Ball!
    boxset 6
    message $league
    $league 1 = You should challenge the \nOrange League!
    boxset 6
    setvar 0x6000 0x0001
    release
    end

    #org $alreadygotone
    lock
    faceplayer
    message $howsit
    $howsit 1 =How are you and Machop?
    boxset 6
    release
    end
     
    Last edited:

    tajaros

    Hi I'm dawg
    855
    Posts
    12
    Years
  • No matter what I try, the person that I set this script to won't respond at all when I face them and press "A." Any ideas on how to fix this in FireRed would be greatly appreciated.

    #org $script
    lock
    faceplayer
    checkflag 0x1200
    if b_true goto $alreadygotone
    message $wantpoke
    $wantpoke 1 =Hey,\nit's dangerous out there.\pTake this Machop.
    boxset 6
    givepokemon 0x42 0x5 0x0
    message $received
    $received 1 = [PLAYER] received Machop!
    boxset 6
    setflag 0x1200
    message $pokedex
    $pokedex 1 = Here! \nTake this Pokédex, too!
    boxset 6
    setflag 0x828
    setflag 0x829
    message $recieved1
    $recieved1 1 = [PLAYER] recieved the Pokédex!
    boxset 6
    message $gsball
    $gsball 1 = Here's the GS Ball you needed.
    boxset 6
    setflag 0x825
    message $recieved2
    $recieved2 1 = [PLAYER] recieved the GS Ball!
    boxset 6
    message $league
    $league 1 = You should challenge the \nOrange League!
    boxset 6
    setvar 0x6000 0x0001
    release
    end

    #org $alreadygotone
    lock
    faceplayer
    message $howsit
    $howsit 1 =How are you and Machop?
    boxset 6
    release
    end

    Here's a Working script...

    #org $script
    lock
    faceplayer
    checkflag 0x1200
    if b_true goto $alreadygotone
    message $wantpoke
    $wantpoke 1 =Hey,\nit's dangerous out there.\pTake this Machop.
    boxset 6
    givepokemon 66 5 0
    fanfare 0x13E
    message $received
    $received 1 = \v\h01 received Machop!
    boxset 6
    waitfanfare
    message $pokedex

    $pokedex 1 = Here!\nTake this Pokédex, too!
    boxset 6
    fanfare 0x13E
    message $recieved1
    $recieved1 1 = \v\h01 recieved the Pokédex!
    boxset 6
    waitfanfare
    message $gsball
    $gsball 1 = Here's the GS Ball you needed.
    boxset 6
    fanfare 0x13E
    message $recieved2

    $recieved2 1 = \v\h01 recieved the GS Ball!
    boxset 6
    waitfanfare
    message $league
    $league 1 = You should challenge the\nOrange League!
    boxset 6
    setflag 0x828
    setflag 0x829
    setflag 0x1200
    release
    end

    #org $alreadygotone

    message $howsit
    $howsit 1 =How are you and Machop?
    boxset 6
    release
    end


    Isn't setflag 0x825 a badge flag
    and you must only use setvar to script boxes....
    and you already have lock and faceplayer twice....
    Hope this helps.... :)
     

    Mr.Luigi

    Trainer
    2
    Posts
    13
    Years
    • Age 30
    • Seen May 8, 2012
    Yes, that flag is for the soul badge. There are only 4 badges in the orange league and i needed to use surf outside of battle.
    Anyway, thanks for helping, I "copy-paste-d" your script, but the person still doesn't respond at all to facing and pressing "A." The sound that you hear when you scroll through the messages sounds every time i press "A," but no message pops up, the person doesn't face, and I can still move.
    If it's not fixable, oh well, I'll have to deal with it.
     

    tajaros

    Hi I'm dawg
    855
    Posts
    12
    Years
  • @Mr.Luigi
    I found the Problem you did not put in a space in the first message
    -message $wantpoke
    $wantpoke 1 =Hey,\nit's dangerous out there.\pTake this Machop.
    boxset 6

    Should be like this
    message $wantpoke
    $wantpoke 1 = Hey,\nit's dangerous out there.\pTake this Machop.
    boxset 6

    :)
     
    20
    Posts
    11
    Years
    • Seen Nov 1, 2018
    Wow thats it! watch this

    #org $script
    setvar 0x6001 0x00001
    applymovement 3 $oh
    $oh 1 ; #binary 0x62 0x13 0xFE
    pausemove 0
    setflag 0x2000
    setflag 0x1215
    message $guy
    $guy 1 = Hey kid you can't pass\nBy you need\pTo Get a POKEMON from Prof.\nOak!
    boxset 6
    applymovement 3 $idk
    $idk 1 ; #binary 0x62 0x60 0xFE
    pausemove 0
    message $2
    $2 1 = Oh you got a POKEMON here\nYou go\pThen!
    boxset 6
    setmaptile 0xD 0x27 0xE7 0x1
    release
    end

    check out my sig for a download of my beta of POKEMON FLAMING FIRE!
     
    Last edited:
    4
    Posts
    10
    Years
  • I am new to scripting, but since I followed everything in the video I watched, I don't think I made an error. I made the script and compiled it, then burned it into the rom, and gave the offset to one of the people in Pallet Town. When I go into the game and talk to said character, My player is locked, and so is the other character, but there is no message whatsoever, and the rest of the game still runs (the other people walk around, the flowers animate, and the music plays).

    Here is the code (just in case):

    #org $techey
    lock
    faceplayer
    massage $tech
    $tech 1 = Insert message here.
    boxset 6
    release
    end
     

    karatekid552

    What happens if I push it?....
    1,771
    Posts
    11
    Years
  • Please don't revive threads on out of date hacking techniques. Pokescript was to put to rest a long time ago. Go see tutorials for PKSVUI or XSE. I have used both and they are much more robust.

    I personally use XSE and the latest version can be found on Gamer2020's tools thread. Diegoisawesome also has a great tutorial for it.

    Closed.

    ~karatekid552

    Edit: I know the thread revival limit doesn't apply here, however, I am doing you a favor because if you needed any help, no one would help you. If you post in the Script Help Thread using Pokescript, people will ignore you or tell you to use XSE. It is just the way of hacking.
     
    Status
    Not open for further replies.
    Back
    Top