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

Talking, Battle, and give item script tutorial

What should I have a tutorial next?

  • Oaks intro sprites

    Votes: 5 71.4%
  • Editing Charizard on the title screen including changing the cry

    Votes: 2 28.6%

  • Total voters
    7
  • Poll closed .
41
Posts
8
Years
    • Seen Jul 3, 2016
    Hello there today I am going to show you how to make a person talking script, and trainer battle script, and a give item script including talking.
    Tools
    Notepad
    Pksvui
    Advanced Map
    Advance Trainer
    Your ROM
    VisualBoyAdvance

    This will be a thread split into three.

    Part 1 Person Talking Script

    First open notepad and type the script

    4atW61S.png


    Person Talking Script
    #dyn 0x740000
    #org @start
    lock
    faceplayer
    msgbox @Lavender ' Lavender Town...
    callstd MSG_NORMAL
    release
    end

    #org @Lavender
    = Lavender Town is creepy. EE It\ngives me shivers. Poor blues\pRaticate.\lIt was brave, Sob Sob!

    Commands
    \n Gets you to the next line
    \p Opens a new textbox
    \l Scrolls Down

    Now go to file Save as and in the dropbox select all files and name it whatever you want and save it as .pks

    3w3pkZg.png


    Next open PKSVUI and load rom.
    Then go to open and load your pks.
    It should look like this

    uqwisTS.png


    Next go to ROM, compile go to dynamic offsets
    It should look like this

    fZliV5i.png


    Now open Advance Map don't close the dynamic offsets
    Now go to Events, increase the person event number by 1.
    and drag him whereever you want.

    IYXRMWL.png


    Change the picture number if you like now in script offset copy the number or code in the dynamic offsets to script offset
    NOTE: Copy the code in the line of @start.

    wGNrGDz.png


    Save it and test it, heres a screen shot.

    TcjxhKy.png


    Part 2 A battle script

    First open Advance Trainer and load rom

    7qyWytN.png


    Edit your trainer data and press save

    3cHkJCh.png


    Now go to pokemon data and customize now if you go to custom attacks and custom items it says repoint needed

    zZkHLNt.png


    Press repoint and it will look like this

    WW9boeE.png


    Now copy the suggested one and press ok.
    NOTE: When you give the trainer more than one pokemon you will need a repoint.

    Now open Notepad and type the script like this

    7ZDLm4i.png


    Battling Script
    #dyn 0x740000
    #org @start
    trainerbattle 0x0 0x001 0x0 @intro @defeat
    msgbox @afterwards
    callstd msg_normal
    end

    #org @intro
    = You killed Raticate! I will\nkill you

    #org @defeat
    = Don't kill me!

    #org @afterwards
    = Sorry that I framed you that\nyou killed Raticate talk\pto my brother he will give you\nsomething.

    Now save it as a .pks

    LLhpGbv.png


    Now open Pksvui and load ROM.
    Open your .pks

    jCxW7qT.png


    Compile it

    93tvEWe.png


    Open Advanced Map
    Make a new person customize your sprite
    You see trainer change the second zero in to a one. If you have a checkbox instead just check it.
    You can customize the view radius of the trainer I will make it 1.
    Now put the script offset on.

    22A51ur.png


    Save and test it. Heres a screenshot

    2ugBeeC.png


    Part 3 Give Item script including dialog.

    Open Notepad heres the script.

    xxtKY9r.png


    Give Item Script
    #dyn 0x740000
    #org @start
    faceplayer
    msgbox @Give
    callstd MSG_NORMAL
    checkflag 0x456711
    if 0x1 jump :end
    copyvarifnotzero 0x8000 MASTERBALL
    copyvarifnotzero 0x8001 0x64
    callstd MSG_OBTAIN
    setflag 0x456711
    :end
    end

    #org @Give
    = I'm sorry about my brother.

    To get the amount you want in the second copyvarifnotzero where it says 0x64 that means the amount 64 is 100 in hex so use the hex to dec converter for that.
    Now save it as a .pks

    MPbLDGt.png


    Open PKSVUI load rom
    Open the .pks

    xniVAzb.png


    Compile it

    N2v6QvU.png


    Now open Advance Map
    Create a new person event
    Customize the sprite
    Put the script offset on

    mZQZwGo.png


    Save it and test it. Heres a screenshot

    PV5QuJp.png


    csHYu5l.png


    So this is the end of the tutorial
    Thank you for reading this
    Ask question below. :t187:
     
    Last edited:
    3,830
    Posts
    14
    Years
    • Age 27
    • OH
    • Seen today
    I'm not sure why you're writing the scripts in Notepad. They can be written much more easily in PKSV and compiled to the ROM, and you won't even need to waste time by saving the files.

    I don't have much to say about A-Trainer besides the fact that most users won't even be able to open the program. :/
     
    41
    Posts
    8
    Years
    • Seen Jul 3, 2016
    I'm not sure why you're writing the scripts in Notepad. They can be written much more easily in PKSV and compiled to the ROM, and you won't even need to waste time by saving the files.

    I don't have much to say about A-Trainer besides the fact that most users won't even be able to open the program. :/

    Well I said ask questions so if they can't A- Trainer I can study it. PET is really glitchy.
    The pks are backups.
     
    Back
    Top