• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • 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.

PKSV-UI's most esiest tutorial. PART 1- Message

HamtaroTumin

[font=avantgarde-demi][color=#379BBD]#WaitForTheRi
  • 268
    Posts
    9
    Years
    INTRO

    Hello
    As you can see I am HT. I am working on my veryown game and learned up scripting. Via learning the script I sight that the tutorials on PKSV is little hard to learn for begginers. So I will teach scripting in the most esiest way I can. So I will start by teaching the basic script as well my first thread.


    Message
    First here is a script,
    Spoiler:


    So first start with #dyn 0x740000
    Here it is used for genarate the offsets used in the script but after compiling you cant find this thats mean this is ok. As you cant find the offset for the main script and write so it helps you to get the offset. And here 740000 because if you jse any number like 100000 or 578909 or your own. This only helps you to search the offset is empty or not use yet near this number.

    Then #org @start
    The #org only start the script that means you cant write a script without it. And then @start, after you compile your script you could find a offset like, (@start> offset here) you have to copy the offset and paste it to a person's offset in advance map. Thats mean this is the main offset will used all over the script.

    Now lock and faceplayer
    With out lock your player can walk around when talking so preventing this we use lock and without faceplayer the npc will not turn to you and talk other than it will do its work and talk with you.

    Then msgbox @talk
    The msgbox helps to recognise that here is a msg starting. It is also main, without this a msg never never neeeevvvveeeeeeerrrrrrr works. And @talk it is the offset of a msg. We will discuss about this later in this thread.

    And now callstd MSG_NORMAL
    The callstd used to tell what type of script is it, then after it a MSG_NORMAL like word is placed. Yo can understand MSG_NORMAL by reading the name. So here is some more command like this that is most important in scripting
    [S-HIGHLIGHT]MSG_NORMAL
    MSG_YESNO
    MSG_NOCLOSE[/S-HIGHLIGHT]

    I know there is some missing, becuase they are not so use full.
    You can also understand them by reading them. I will describe them other time.

    Now release and end
    Release and End are used to end the script. But before using end you have to type release that means now your player can now walk away.

    Now again #org and then again @talk
    I already teache you what is the work of #org but here is the work of @talk. In the first we used @talk as offset, but when your script is working and come there the offset will jump this here and after we write our msg as I written there in the end of the script and again jump back and do its work.



    You have to learn some thing that when writting you cant be lazy. Some do that they copy and paste the script in XSE but this is PKSV here if you paste a script it will never and never work. And yes I was tottaly forget that when you write a paragraph of text in the massage after the = it will never work. You have to use /n after 30 spell and use /l after again 30 spell. /l is use after using /n thats mean new line. But after /l you cant use /l again. Here you have to use /p thats mean a new box again after this you can you can use /n and /l.





    I will try to add another tutorial in somedays but for now

    ~HamtaroTumin
     
    Back
    Top