View Single Post
  #7373    
Old October 20th, 2012 (10:42 AM).
Kaith's Avatar
Kaith Kaith is offline
Hacker of Fire
     
    Join Date: Oct 2011
    Location: North, it's cold.
    Gender: Male
    Nature: Relaxed
    Posts: 49
    Okay, I've got a pretty long script here, but let me spell out my problem first. Everything seems to work perfectly, except after the command 'msgbox @2 0x6' the sprite for Birch (0x05) becomes hidden. I can't seem to figure out what the problem is so I'm hoping another pair of eyes might be able to help me figure out if the problem lies within my script of if it's elsewhere.

    Before Compiling It
    Spoiler:
    #dynamic 0x800000

    #org @start
    lockall
    checkflag 0x200
    if 0x1 goto @done
    showsprite 0x05
    applymovement 0x05 @move
    waitmovement 0x0
    applymovement 0x05 @move2
    waitmovement 0x0
    msgbox @1 0x6
    applymovement 0x05 @move2.3
    applymovement 0xFF @move2.6
    waitmovement 0x0
    applymovement 0x04 @move3
    waitmovement 0x0
    msgbox @2 0x6
    applymovement 0x04 @move4
    [There is no 'waitmovement' command here. That is intentional and I've tried putting the command in. That is not the problem.]
    msgbox @3 0x6
    applymovement 0x04 @move5
    applymovement 0x05 @move5
    applymovement 0xFF @move5
    msgbox @4 0x6
    msgbox @5 0x6
    applymovement 0x05 @move6
    applymovement 0x04 @move7
    waitmovement 0x0
    fadescreen 0x1
    setflag 0x200
    hidesprite 0x04
    hidesprite 0x05
    fadescreen 0x0
    release
    end

    #org @done
    release
    end

    #org @move
    #raw 0x01
    #raw 0x55
    #raw 0xFE

    #org @move2
    #raw 0x17
    #raw 0x17
    #raw 0x17
    #raw 0xFE

    #org @move2.3
    #raw 0x17
    #raw 0xFE

    #org @move2.6
    #raw 0x0A
    #raw 0x03
    #raw 0xFE

    #org @1
    = Birch: \v\h01! Quick, get back\ninside.

    #org @move3
    #raw 0x00
    #raw 0x56
    #raw 0xFE

    #org @2
    = Mother: Honey, what is it?

    #org @move4
    #raw 0x0B
    #raw 0x0B
    #raw 0x0B
    #raw 0x0B
    #raw 0x08
    #raw 0x08
    #raw 0x08
    #raw 0x08
    #raw 0x0B
    #raw 0x00
    #raw 0xFE

    #org @3
    = Birch: Things didn't go as we\nexpected. I was forced to move the\lplan up.\p\v\h01: Wait, what plan?

    #org @move5
    #raw 0x56
    #raw 0xFE

    #org @4
    = ???: Round up!\pThis is a madatory city-wide\nmeeting! Any person's not account\lfor will result in a harsh\lpunishment for the entire city!

    #org @5
    = Birch: \v\h01, I'll explain\neverything later. But for now,\llet's head out.

    #org @move6
    #raw 0x0B
    #raw 0x0B
    #raw 0x0B
    #raw 0x00
    #raw 0x54
    #raw 0xFE

    #org @move7
    #raw 0x08
    #raw 0x0B
    #raw 0x0B
    #raw 0x0B
    #raw 0x00
    #raw 0x54
    #raw 0xFE


    After Compling It
    Spoiler:
    '---------------
    #org 0x9CAC62
    lockall
    checkflag 0x200
    if 0x1 goto 0x89CAD03
    showsprite 0x5
    applymovement 0x5 0x89CAD06
    waitmovement 0x0
    applymovement 0x5 0x89CAD0A
    waitmovement 0x0
    msgbox 0x89CAD16 MSG_NORMAL '"Birch: [player]! Quick, get back\n..."
    applymovement 0x5 0x89CAD0F
    applymovement MOVE_PLAYER 0x89CAD12
    waitmovement 0x0
    applymovement 0x4 0x89CAD3B
    waitmovement 0x0
    msgbox 0x89CAD3F MSG_NORMAL '"Mother: Honey, what is it?"
    applymovement 0x4 0x89CAD5C
    msgbox 0x89CAD68 MSG_NORMAL '"Birch: Things didn't go as we\nexp..."
    applymovement 0x4 0x89CADC9
    applymovement 0x5 0x89CADC9
    applymovement MOVE_PLAYER 0x89CADC9
    msgbox 0x89CADCC MSG_NORMAL '"???: Round up!\pThis is a madatory..."
    msgbox 0x89CAE57 MSG_NORMAL '"Birch: [player], I'll explain\neve..."
    applymovement 0x5 0x89CAEA0
    applymovement 0x4 0x89CAEA7
    waitmovement 0x0
    fadescreen 0x1
    setflag 0x200
    hidesprite 0x4
    hidesprite 0x5
    fadescreen 0x0
    release
    end

    '---------------
    #org 0x9CAD03
    release
    end


    '---------
    ' Strings
    '---------
    #org 0x9CAD16
    = Birch: [player]! Quick, get back\ninside.

    #org 0x9CAD3F
    = Mother: Honey, what is it?

    #org 0x9CAD68
    = Birch: Things didn't go as we\nexpected. I was forced to move the\lplan up.\p[player]: Wait, what plan?

    #org 0x9CADCC
    = ???: Round up!\pThis is a madatory city-wide\nmeeting! Any person's not account\lfor will result in a harsh\lpunishment for the entire city!

    #org 0x9CAE57
    = Birch: [player], I'll explain\neverything later. But for now,\llet's head out.


    '-----------
    ' Movements
    '-----------
    #org 0x9CAD06
    #raw 0x1 'Face Up
    #raw 0x55 'Show
    #raw 0xFE 'End of Movements

    #org 0x9CAD0A
    #raw 0x17 'Slide Left
    #raw 0x17 'Slide Left
    #raw 0x17 'Slide Left
    #raw 0xFE 'End of Movements

    #org 0x9CAD0F
    #raw 0x17 'Slide Left
    #raw 0xFE 'End of Movements

    #org 0x9CAD12
    #raw 0xA 'Step Left (Normal)
    #raw 0x3 'Face Right
    #raw 0xFE 'End of Movements

    #org 0x9CAD3B
    #raw 0x0 'Face Down
    #raw 0x56 'Exclamation Mark (!)
    #raw 0xFE 'End of Movements

    #org 0x9CAD5C
    #raw 0xB 'Step Right (Normal)
    #raw 0xB 'Step Right (Normal)
    #raw 0xB 'Step Right (Normal)
    #raw 0xB 'Step Right (Normal)
    #raw 0x8 'Step Down (Normal)
    #raw 0x8 'Step Down (Normal)
    #raw 0x8 'Step Down (Normal)
    #raw 0x8 'Step Down (Normal)
    #raw 0xB 'Step Right (Normal)
    #raw 0x0 'Face Down
    #raw 0xFE 'End of Movements

    #org 0x9CADC9
    #raw 0x56 'Exclamation Mark (!)
    #raw 0xFE 'End of Movements

    #org 0x9CAEA0
    #raw 0xB 'Step Right (Normal)
    #raw 0xB 'Step Right (Normal)
    #raw 0xB 'Step Right (Normal)
    #raw 0x0 'Face Down
    #raw 0x54 'Hide
    #raw 0xFE 'End of Movements

    #org 0x9CAEA7
    #raw 0x8 'Step Down (Normal)
    #raw 0xB 'Step Right (Normal)
    #raw 0xB 'Step Right (Normal)
    #raw 0xB 'Step Right (Normal)
    #raw 0x0 'Face Down
    #raw 0x54 'Hide
    #raw 0xFE 'End of Movements
    __________________
    Hackers, Hacker everywhere.

    Hacks I support:
    FloralSky