View Single Post
  #6339    
Old December 25th, 2011 (7:51 PM). Edited December 25th, 2011 by Nate VonGrimm.
Nate VonGrimm's Avatar
Nate VonGrimm Nate VonGrimm is offline
     
    Join Date: Oct 2011
    Location: Uxbridge
    Age: 25
    Gender: Male
    Nature: Relaxed
    Posts: 124
    Quote:
    Originally Posted by AustinWolff View Post
    I have another scripting problem, this one includes the money commands.

    I am using ruby and it is a script box script. The point is a guy walks up to you, gives you money, then walks away. however, here are the problems:

    Spoiler:
    1. the showmoney command doesnt work, meaning the money box never appears.

    2. the person ID is 0211 in Amap, and in my script I setflag 0x211 but he doesnt disapear


    Here is the script:

    Spoiler:
    #dynamic 0x800000

    #org @start
    checkflag 0x212
    if 0x1 goto @done
    applymovement 0x3 @move
    waitmovement 0x0
    msgbox @1 0x6
    showmoney 0x00 0x00 0x00
    givemoney 0x1F4 0x00
    updatemoney 0x00 0x00 0x00
    hidemoney 0x00 0x00
    msgbox @2 0x6
    msgbox @3 0x6
    applymovement 0x3 @move2
    waitmovement 0x0
    setflag 0x212
    setflag 0x211
    release
    end

    #org @move
    #raw 0x56
    #raw 0x0A
    #raw 0x0A
    #raw 0xFE

    #org @move2
    #raw 0x16
    #raw 0x16
    #raw 0x16
    #raw 0x16
    #raw 0x16
    #raw 0x16
    #raw 0x16
    #raw 0xFE

    #org @1
    = Hi trainer! I feel the need\nto share my money!

    #org @2
    = [red_rs]\v\h01: Thanks!

    #org @3
    = [blue_rs]Savings Guy: No problem
    !
    I don't have the answer to your money issue as I haven't really used the command.
    But I can solve your hidesprite.

    To use hidesprite, you need to use the hidesprite command.
    Your using setflag to hide the sprite which is only half the job. The setflag just makes sure the sprite stays hidden until you clear it.

    This is what you want to use:
    Code:
    hidesprite 0xD3
    setflag 0x[variable]
    You also need to use HEX when writing scripts so instead of using 0x211, you need to turn that into HEX which is 0xD3.

    XSE has a HEX calculator which can easily turn decimal numbers into HEX.

    P.S I also noticed in your sig that you are wanting to learn about Level Scripts. I have a video tutorial on it if you would like to see it.


    Quote:
    Originally Posted by riotorange View Post
    Hey, I'm new to rom hacking, but I'm trying to make a hack based off of ruby.

    In pokemon ruby, you go through the intro talking to the professor, tell him your name and everything, and then you end up in the truck heading towards your house.

    With my hack, I'm wanting the player to wake up in their bed after the introduction, instead of getting off of the moving truck. How can I do this?

    I tried deleting the script in the moving truck's map. This caused me to start outside of a house in Petalburg directly after the intro. Don't want that xD

    TL;DR how do you change your starting location in the game?


    This is the main problem for all R/E/S hackers. There are programs out there that can change your starting location but they don't remove the truck sequence. Their are also ways of doing it via scripts but can be extremely buggy.
    I have attempted it myself but with no luck.
    Most hackers and hack players just ignore the truck sequence and pretend it never happens.

    If you can ignore the entire truck sequence, then click here to download HackMew's SMCA (Start Map Chooser Advance)
    __________________
    Currently working on a new Pokemon Hack with an in-depth story line!
    That's about as much as you're going to get for now...