View Single Post
  #5972    
Old August 3rd, 2011 (3:56 PM).
HACKERXIDE's Avatar
HACKERXIDE HACKERXIDE is offline
     
    Join Date: Mar 2010
    Location: Pallet Town
    Gender: Male
    Nature: Calm
    Posts: 20
    Quote:
    Originally Posted by Spherical Ice View Post
    Spoiler:
    #dynamic 0x800000 // USe this at the beginning of every script. When you compile in XSE, copy the offset given next to the @start part, and paste that.

    #org @Main
    lockall
    showsprite 0x9
    applymovement 0xFF @move1
    applymovement 0x9 @move2
    waitmovement 0x0 // You always need waitmovement 0x0
    hidesprite 0x9
    setvar 0x4050 0x1
    trainerbattle 0x0 0x001 0x0 @string1 @string2
    msgbox @string3 0x2
    releaseall
    end
    // This script will basically display string1 before the battle and string2 at the defeat screen. If the script is interacted with again, string3 will be displayed.

    #org @move1
    #raw 0x62
    #raw 0x0
    #raw 0xFE

    #org @move2
    #raw 0x1E
    #raw 0x1E
    #raw 0x1E
    #raw 0x1E
    #raw 0x1E
    #raw 0x1E
    #raw 0x7
    #raw 0x20
    #raw 0x20
    #raw 0x20
    #raw 0x20
    #raw 0x5
    #raw 0x1E
    #raw 0x1E
    #raw 0xFE

    #org @string1
    = This is a test...Prepare!!![/B]

    #org @string2
    = huh it worked and you beat me.

    #org @string3
    = Well g2g change the wording...
    Ok i fixed the script, but It seems to have the same effect. The game keeps reseting, the only weird thing is that i don't even make it to the script block before it resets.

    I think it could have something to do with the setvar? anyone have any suggestions?
    __________________