View Single Post
  #1331    
Old June 10th, 2009 (8:17 AM). Edited June 10th, 2009 by adiktus.
adiktus's Avatar
adiktus adiktus is offline
     
    Join Date: May 2008
    Nature: Hardy
    Posts: 248
    Quote:
    Originally Posted by PlatniumPiano View Post
    But what if I want that event to happen only if other said event has happened. I don't want him to give me the pokemon whenever, just after a different event. Is there a way to do this?
    You're looking at the wrong spot. The givepokemon part would occur only when flag 950 (which I assume is the flag in another map) is set, so no problem there.

    Hackmew meant that to use another flag for the @done part. Without the flag, the person will always ask you if you want a ponyta.

    Fixes in bold and red O_o

    Code:
    #dynamic 0x800000
     
    #org @start
    checkflag 0x950
    if 0x1 goto @done
    lock
    faceplayer
    msgbox @whatsup 0x6
    release
    end
     
    #org @ponyta
    setflag 0xaaa
    msgbox @give 0x6
    givepokemon 0x4D 0xF 0x0 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @obtain 0x6
    waitfanfare
    msgbox @would 0x5
    compare LASTRESULT 0x1
    if 0x1 call @name
    msgbox @call 0x6
    setflag 0x800
    release
    end
     
    #org @done
    checkflag 0xaaa
    if 1 goto @offset
    lock
    faceplayer
    msgbox @hey 0x5
    compare LASTRESULT 0x1
    if 0x1 goto @ponyta
    msgbox @sorry 0x6
    release
    end
     
    #org @name
    fadescreen 0x1
    special 0x9E
    waitstate
    return
    
    #org @offset
    lock
    faceplayer
    message @message 6
    release
    end
    
    #org @message
    = You've got a Ponyta already.
     
    #org @hey
    = Hey, [player], what brings you\nhere on my day off?\p... ... ...\n... .... ...\l... ... ...\l... ... ...\pYou can't be serious...\n...Mew?\pWell, if this is true, then\nI guess you will need a POKéMON.
     
    #org @give
    = That's a wise choice.\pIt's not often you have\nan encounter with Mew.
     
    #org @obtain
    = You got a Ponyta!
     
    #org @would
    = Would you like to give a\nnickname to this POKéMON?
     
    #org @call
    = Well... we got you a\nPOKéMON.\lNow what?\p... ... ...\n... ... ...\lLord Aspen, eh?\pListen, Aspen is a seasoned POKéMON\nveteran, so with that guy there,\lI doubt you could win.\pHowever.\pIf you must, there is a cavern\nwhere you can train that\lhorse, located in the caves, one level above Aspens.
     
    #org @whatsup
    = Hey, [player], what's up?
     
    #org @sorry
    = Oh...\nWell, I'm sorry to hear that.
    Just replace aaa with an unused flag. (or flag 800.. well, maybe 800 is better )

    Of course, I could have misunderstood you. If you meant that whether or not the flag is set, the person always says @whatsup, then nevermind the above fixes and try using another flag.

    Quote:
    Originally Posted by Xatoku View Post
    Well 0x5 has Unkown 03, Movement 11 and Person ID 002c

    Spoiler:
    #dynamic 0x800000

    #org @start
    checkflag 0x368
    if 0x1 goto @end
    lockall
    msgbox @text1 0x6
    applymovement 0x4 @move1
    waitmovement 0x0
    applymovement 0x4 @move2
    waitmovement 0x0
    pause 0x25
    applymovement MOVE_PLAYER @move3
    waitmovement 0x0
    hidesprite 0x4
    showsprite 0x6
    msgbox @text2 0x6
    applymovement MOVE_PLAYER @move4
    waitmovement 0x0
    givepokemon 0x9E 0x5 0x0 0x0 0x0 0x0
    hidesprite 0x2
    fanfare 0x13E
    msgbox @text3 0x4
    waitfanfare
    closeonkeypress
    playsong 0x13B 0x0
    msgbox @text4 0x6
    showsprite 0x5
    applymovement MOVE_PLAYER @move1
    waitmovement 0x0
    applymovement MOVE_PLAYER @move7
    waitmovement 0x0
    applymovement 0x5 @move5
    waitmovement 0x0
    msgbox @text5 0x6
    applymovement 0x5 @move8
    waitmovement 0x0
    hidesprite 0x3
    pause 0x10
    applymovement 0x5 @move9
    waitmovement 0x0
    setvar 0x7030 0x129
    setvar 0x7033 0x158
    trainerbattle 0x9 0x2E5 0x0 @before @no
    setvar 0x7030 0x158
    setvar 0x7033 0x129
    applymovement MOVE_PLAYER @move6
    waitmovement 0x0
    msgbox @text6 0x6
    setflag 0x368
    releaseall
    warp 0x3 0x1 0x2 0x0 0x0
    end

    #org @end
    releaseall
    end

    #org @text1
    = [red_fr][Player]:[black_fr] Hey you!

    #org @text2
    = [red_fr][Player]:[black_fr] That takes care of him.\nNow for Totodile.

    #org @text3
    = [red_fr][Player][black_fr] stole the [navyblue_fr]Totodile.[black_fr]

    #org @text4
    = ???: Hey, you can't take that!

    #org @text5
    = [orange_fr]Gold:[black_fr] My names Gold, and you're\nthe thief who stole my backpack!\p[red_fr][Player]:[black_fr] What backpack?\p[orange_fr]Gold:[black_fr] Don't act like you don't\nknow!\p[orange_fr]Gold:[black_fr] You'll pay for what you did!

    #org @before
    = [orange_fr]Gold:[black_fr] Here goes!

    #org @no
    = Argh, he's strong!

    #org @text6
    = [orange_fr]Gold:[black_fr] You won't get away with this!

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

    #org @move2
    #raw 0x03
    #raw 0xFE

    #org @move3
    #raw 0x50
    #raw 0x51
    #raw 0x02
    #raw 0xFE

    #org @move4
    #raw 0x13
    #raw 0x13
    #raw 0x10
    #raw 0x13
    #raw 0x13
    #raw 0x13
    #raw 0x13
    #raw 0x13
    #raw 0x11
    #raw 0x11
    #raw 0xFE

    #org @move5
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1E
    #raw 0xFE

    #org @move6
    #raw 0x15
    #raw 0x15
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x01
    #raw 0xFE

    #org @move7
    #raw 0x00
    #raw 0xFE

    #org @move8
    #raw 0x13
    #raw 0x11
    #raw 0xFE

    #org @move9
    #raw 0x10
    #raw 0x12
    #raw 0x01
    #raw 0xFE
    Could that be the sprite switch bug?

    Probably not :\
    __________________
    *´¨) Love life! Get paid!! Get laid!!!!
    ¸.´¸.*´¨) ¸.*¨) I'm the DiStOrTeD one
    (¸.´ (¸.` * ..:¨¨**¤°¨¨°...............