View Single Post
  #1598    
Old July 2nd, 2009 (6:47 PM).
K3fka's Avatar
K3fka K3fka is offline
     
    Join Date: Jun 2009
    Location: Florida
    Age: 22
    Gender: Male
    Posts: 43
    Game: Fire Red (US)
    Type: Person
    Editor: Pokescript
    Script:
    Spoiler:
    #org $OAK_EVENT
    lock
    faceplayer
    checkflag 0x1000
    if 1 goto $OAK_TALK
    message $OAKEVENT
    $OAKEVENT 1 = Hello, \v\h01.\nI'm glad you came by.\pYou see, something very bad\nhas happened.\pA POKéMON was stolen from my\nlab here!\pThat's where you come in.\pDo you think you can track\ndown the thief and retrieve\nmy POKéMON?\pMy grandson, \v\h06, is also\nlooking for the thief, but I\nI think he may need some help.\pSo what do you say?\pExcellent! Here is a POKéMON\nto help you out.\p\v\h01 recieved a MUDKIP!\pIn addition, I need to test\nout a new device called the\nPOKéDEX. While you are out,\nwould you test it for me?\p\v\h01 recieved the POKéDEX!\pAnd to just to make traveling\neasier, take these.\p\v\h01 recieved the RUNNING SHOES!\pThat's all...\p...so go find the thief!
    givepokemon 0x11B 0x5 0x0
    setflag 0x828
    setflag 0x829
    setflag 0x82F
    setflag 0x1000
    applymovement 0x04 $OAK_MOVE
    pausemove 0
    release
    end

    #org $OAK_TALK
    lock
    faceplayer
    message $GOODLUCK
    $GOODLUCK 1 = Good luck out there!
    release
    end

    #org $OAK_MOVE
    #raw 0x0E
    #raw 0x03
    #raw 0xFE

    For some reason, my script, when compiled and burnt into the ROM looks like this when I view it:
    Spoiler:
    '-----------------------
    #org 0x8030FC
    lock
    faceplayer
    checkflag 0x1000
    if 0x1 goto 0x8803151
    msgbox 0x880315E '"Hello, [player].\nI'm glad you came..."
    copyvar 0x8004 LASTRESULT
    givepokemon 0x11B 0x5 0x0 0x0 0x0 0x7D
    nop1
    copyvar 0x0 0x0
    nop
    nop
    nop
    nop
    nop
    setflag 0x828
    setflag 0x829
    setflag 0x82F
    setflag 0x1000
    applymovement 0x4 0x880315B
    showcontestwinner 0x61
    lockall
    clearbox 0x6D 0x6F 0x76 0x65
    waitkeypress
    spritebehave 0x746E 0x20
    comparefarbytetofarbyte 0x26C2030 0xF5A6A

    '-----------------------
    #org 0x803151
    lock

    '-----------
    ' Movements
    '-----------
    #org 0x80315B
    #raw E 'Step Left (Slow)
    #raw 3 'Face Right
    #raw FE 'End of Movements


    '---------
    ' Strings
    '---------
    #org 0x80315E
    = Hello, [player].\nI'm glad you came by.\pYou see, something very bad\nhas happened.\pA POKéMON was stolen from my\nlab here!\pThat's where you come in.\pDo you think you can track\ndown the thief and retrieve\nmy POKéMON?\pMy grandson, [rival], is also\nlooking for the thief, but I\nI think he may need some help.\pSo what do you say?\pExcellent! Here is a POKéMON\nto help you out.\p[player] recieved a MUDKIP!\pIn addition, I need to test\nout a new device called the\nPOKéDEX. While you are out,\nwould you test it for me?\p[player] recieved the POKéDEX!\pAnd to just to make traveling\neasier, take these.\p[player] recieved the RUNNING SHOES!\pThat's all...\p...so go find the thief!


    The end result of the script is when I talk to the person (Prof. Oak, in this case), he just walks to the left and faces right, then the game freezes up.

    EDIT: D'oh! I forgot the boxset command, so that explains why the text doesnt show up, but why does it turn into things like "showcontestwinner" in the ROM?