View Single Post
  #65    
Old December 25th, 2008 (11:14 AM).
Hiche.. Hiche.. is offline
 
     
    Join Date: Apr 2008
    Posts: 979
    Quote:
    Originally Posted by megiddo View Post
    Game: Firered BPRE
    Type: Trigger
    Editor: XSE
    Script: This script is supposed to allow the player to cross a canyon with a hoverboard. The game does not activate any of the movements.
    Spoiler:
    '-----------------------
    #org 0x800267
    checkflag 0x1500
    if 0x1 goto 0x88002A5
    msgbox 0x88003A8 '"Hello there. As you can see,\nthere..."
    callstd 0x5
    compare LASTRESULT 0x1
    if 0x1 goto 0x88002FE
    msgbox 0x880042D '"No need to be down here\nthen?"
    callstd 0x2
    closeonkeypress
    compare PLAYERFACING 0x1
    if 0x1 goto 0x880035A
    compare PLAYERFACING 0x2
    if 0x1 goto 0x8800367
    release
    end

    '-----------------------
    #org 0x8002A5
    clearflag 0x1500
    clearflag 0x830
    setmaptile 0xA 0x9 0x7C 0x1
    setmaptile 0xB 0x9 0x7C 0x1
    setmaptile 0xF 0x1B 0xBA 0x1
    setmaptile 0x10 0x1B 0xBA 0x1
    setmaptile 0x11 0x1B 0xBA 0x1
    setmaptile 0x12 0x1B 0x6B 0x1
    special 0x8E
    closeonkeypress
    compare PLAYERFACING 0x1
    if 0x1 goto 0x8800374
    compare PLAYERFACING 0x2
    if 0x1 goto 0x8800381
    release
    end

    '-----------------------
    #org 0x8002FE
    special 0x157
    setflag 0x830
    setmaptile 0xA 0x9 0x7C 0x0
    setmaptile 0xB 0x9 0x7C 0x0
    setmaptile 0xF 0x1B 0xBA 0x0
    setmaptile 0x10 0x1B 0xBA 0x0
    setmaptile 0x11 0x1B 0xBA 0x0
    setmaptile 0x12 0x1B 0x6B 0x0
    special 0x8E
    setflag 0x1500
    closeonkeypress
    compare PLAYERFACING 0x1
    if 0x1 goto 0x880038E
    compare PLAYERFACING 0x2
    if 0x1 goto 0x880039B
    release
    end

    '-----------------------
    #org 0x80035A
    applymovement MOVE_PLAYER 0x880044D
    waitmovement 0x0
    release
    end

    '-----------------------
    #org 0x800367
    applymovement MOVE_PLAYER 0x8800450
    waitmovement 0x0
    release
    end

    '-----------------------
    #org 0x800374
    applymovement MOVE_PLAYER 0x8800453
    waitmovement 0x0
    release
    end

    '-----------------------
    #org 0x800381
    applymovement MOVE_PLAYER 0x8800456
    waitmovement 0x0
    release
    end

    '-----------------------
    #org 0x80038E
    applymovement MOVE_PLAYER 0x8800459
    waitmovement 0x0
    release
    end

    '-----------------------
    #org 0x80039B
    applymovement MOVE_PLAYER 0x880045D
    waitmovement 0x0
    release
    end


    '-----------
    ' Movements
    '-----------
    #org 0x80044D
    #raw 11 'Step Up (Normal)
    #raw FE 'End of Movements

    #org 0x800450
    #raw 10 'Step Down (Normal)
    #raw FE 'End of Movements

    #org 0x800453
    #raw 10 'Step Down (Normal)
    #raw FE 'End of Movements

    #org 0x800456
    #raw 11 'Step Up (Normal)
    #raw FE 'End of Movements

    #org 0x800459
    #raw 10 'Step Down (Normal)
    #raw 10 'Step Down (Normal)
    #raw FE 'End of Movements

    #org 0x80045D
    #raw 11 'Step Up (Normal)
    #raw 11 'Step Up (Normal)
    #raw FE 'End of Movements


    '---------
    ' Strings
    '---------
    #org 0x8003A8
    = Hello there. As you can see,\nthere is a canyon here. I see\pyou have a hoverboard.\nAre you going to use it\pto traverse this gap?

    #org 0x80042D
    = No need to be down here\nthen?


    Spoiler:
    '-----------------------
    #org 0x800267
    checkflag 0x1500
    if 0x1 goto 0x88002A5
    msgbox 0x88003A8 '"Hello there. As you can see,\nthere..."
    callstd 0x5
    compare LASTRESULT 0x1
    if 0x1 goto 0x88002FE
    msgbox 0x880042D '"No need to be down here\nthen?"
    callstd 0x2
    closeonkeypress
    copyvar 0x8000 PLAYERFACING
    compare 0x8000 0x1
    if 0x1 goto 0x880035A
    compare 0x8000 0x2
    if 0x1 goto 0x8800367

    release
    end

    '-----------------------
    #org 0x8002A5
    clearflag 0x1500
    clearflag 0x830
    setmaptile 0xA 0x9 0x7C 0x1
    setmaptile 0xB 0x9 0x7C 0x1
    setmaptile 0xF 0x1B 0xBA 0x1
    setmaptile 0x10 0x1B 0xBA 0x1
    setmaptile 0x11 0x1B 0xBA 0x1
    setmaptile 0x12 0x1B 0x6B 0x1
    special 0x8E
    closeonkeypress
    copyvar 0x8008 PLAYERFACING
    compare 0x8008 0x1
    if 0x1 goto 0x8800374
    compare 0x8008 0x2
    if 0x1 goto 0x8800381

    release
    end

    '-----------------------
    #org 0x8002FE
    special 0x157
    setflag 0x830
    setmaptile 0xA 0x9 0x7C 0x0
    setmaptile 0xB 0x9 0x7C 0x0
    setmaptile 0xF 0x1B 0xBA 0x0
    setmaptile 0x10 0x1B 0xBA 0x0
    setmaptile 0x11 0x1B 0xBA 0x0
    setmaptile 0x12 0x1B 0x6B 0x0
    special 0x8E
    setflag 0x1500
    closeonkeypress
    copyvar 0x8004 PLAYERFACING
    compare 0x8004 0x1
    if 0x1 goto 0x880038E
    compare 0x8004 0x2
    if 0x1 goto 0x880039B

    release
    end

    '-----------------------
    #org 0x80035A
    applymovement MOVE_PLAYER 0x880044D
    waitmovement 0x0
    return

    '-----------------------
    #org 0x800367
    applymovement MOVE_PLAYER 0x8800450
    waitmovement 0x0
    return

    '-----------------------
    #org 0x800374
    applymovement MOVE_PLAYER 0x8800453
    waitmovement 0x0
    return

    '-----------------------
    #org 0x800381
    applymovement MOVE_PLAYER 0x8800456
    waitmovement 0x0
    return

    '-----------------------
    #org 0x80038E
    applymovement MOVE_PLAYER 0x8800459
    waitmovement 0x0
    return

    '-----------------------
    #org 0x80039B
    applymovement MOVE_PLAYER 0x880045D
    waitmovement 0x0
    return


    '-----------
    ' Movements
    '-----------
    #org 0x80044D
    #raw 11 'Step Up (Normal)
    #raw FE 'End of Movements

    #org 0x800450
    #raw 10 'Step Down (Normal)
    #raw FE 'End of Movements

    #org 0x800453
    #raw 10 'Step Down (Normal)
    #raw FE 'End of Movements

    #org 0x800456
    #raw 11 'Step Up (Normal)
    #raw FE 'End of Movements

    #org 0x800459
    #raw 10 'Step Down (Normal)
    #raw 10 'Step Down (Normal)
    #raw FE 'End of Movements

    #org 0x80045D
    #raw 11 'Step Up (Normal)
    #raw 11 'Step Up (Normal)
    #raw FE 'End of Movements


    '---------
    ' Strings
    '---------
    #org 0x8003A8
    = Hello there. As you can see,\nthere is a canyon here. I see\pyou have a hoverboard.\nAre you going to use it\pto traverse this gap?

    #org 0x80042D
    = No need to be down here\nthen?


    Hackmew probably will fix it, but..

    Try this. I do not think it will work, but try. Lol.