• 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?".
  • Staff applications for our PokéCommunity Daily and Social Media team are now open! Interested in joining staff? Then click here for more info!
  • 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.

basic scripting tutorial

Status
Not open for further replies.
  • 19
    Posts
    12
    Years
    • Seen Mar 23, 2014
    SCRIPTING TUTORIAL BY KOK EE SUAN

    This only works with XSE v1.1 get it from hackmews thread.scripts are case sensitive so if I don't use CAPS,don't use CAPS EITHER!

    Hi people this is my first tut so don't blame me for inexperience
    Let's get started
    A TEXT SCRIPT only use this if advance text doesn't work, A-text is easier
    Start the script with these lines:

    #dynamic 0x(the offset,ill explain that later)
    #org @start
    lock
    faceplayer:
    Explanation of codes:
    #dynamic 0x(offset)
    The starting lines of EVERY script.
    Offset is basically a number too find xtra space in a rom.toget the number, first
    download hackmews free space finder tool from his thread,then open it and your rom
    Search in the box for about for 150 to 250 bytes or more,should be plently.
    A list of numbers will come up,just copy the number.then go back to 0x(offset)
    Replace the (offset)woth the number in free space finder(calling it FSF)
    #org @start
    Again,compulsory for EVERY script.@start is a pointer, which means you can rename it to @anything e.g,@pie @cool. Pointers cannot have a space,so these pointers won't work: @ a b c, @pikachu and raichu......
    lock
    faceplayer
    Lock:this doesn't allow the player to move when he is being talked to.essential
    Faceplayer:this makes the player face the person when talking
    Now....
    The 2nd part of the script
    msgbox @text 0x6
    release
    end
    #org @text
    =hi! I'm gavin cho/n and I rock!
    msgbox:a message box. Needed for text scripts. A pointer @(word) always comes after it. The type of box comes after the pointer in this case, its 0x6.since this is for n00bs,I wint go into detail about othe boxses.(for now)
    release:this releases the player and allowa him to move again. NEEDED!(unless you want your player to freeze after the script hahaha
    End: ends the script, NEEDED!!!!
    #org @text(or whatever pointer you put after msgbox): after this line, atext box comes up.
    (Equal symbol)hi! I'm gavin cho/nand I rock!
    After the equal symbol,write the text. To make stuff easier, in XSE, goto tools then text adjuster.write down whar you want to say then press convert button.this converts it to computer languagge with all the /n,/p,/h symbols. Although I know them, this makkes life easier
    ALL DONE!
    Now you ask: how do you put the script into the rom?
    Follow the steps one by one:
    1 open up advance map, if you don't have it, go to goolge n download it then read a tutorial on it
    2 press the gears pic putton in XSE, the compile button
    3xse should come up with 1 or more numbers. Take the first number, the one that is highlighted in blue by XSE. Copy it down on paper.
    Then, in A map,goto the person you want to edit. Click him
    3 at the rigght side of a map,you should see some stuff
    Scrool down till you see the SCRIPT offset.there should be some numbers there.delete all the nos except the(cash/money)symbol. Now type in the numbers from xse.
    So ith should be like this in the script offset box of the person:(cash)symbol,then the numbers
    NOTE:THERE IS NO SPACING BETWEEN THE CASH SYMBOL AND YOUR NUMBERES From XSE
    All done! Open up your game and check it out!
    PLEASE DO ME A FAVOUR BY POSTING COMMENTS: I WELCOME CRITICSM TO IMPROVE MY SKILLS
    Tnx!
     
    Umm, I apologize for tarnishing the hard work you have put in this tutorial, but unfortunately this isn't the place to show it off here. :-( You are more than welcome to show it off at the tutorials subforum right inside the emulation section. Though that section is subject to approve the thread.

    Hope this helps putting your tutorial in the right place this time! As this is a section to introduce yourself if you're new, you are more than welcome make a new thread and try introducing yourself again! If you have any questions or concerns, feel free to send me a message! :-)

    Also, Fireworks, be sure to report next time instead of posting in thread, gladly appreciate the help but no need to minimod. Thanks!

    brb closing dis.

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