View Single Post
  #7618    
Old January 27th, 2013 (1:26 PM).
thetripplenine's Avatar
thetripplenine thetripplenine is offline
999
     
    Join Date: Jan 2013
    Location: California
    Age: 19
    Gender: Male
    Nature: Bold
    Posts: 98

    Quote:
    Originally Posted by butterflye View Post
    Hi, I just started the scripting and I need help.
    I use the Ruby game. I make a givepokemon script and I follow the diegoisawesome's tutorial. It works, but to a point. When I click "Yes", box with Yes / No disappears, but the game freezes. (Here's the screenshot img841.imageshack.us/img841/4355/eeekp.png). Does anyone have an idea what is the reason?

    Here's my script:

    Spoiler:
    #dynamic 0x90000000

    #org @start
    checkflag 0x828
    if 0x1 goto @done
    msgbox @1 0x5
    compare LASTRESULT 0x1
    if 0x1 goto @take
    msgbox @2 0x6
    release
    end

    #org @take
    givepokemon 0x178 0x5 0x0 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @3 0x4
    waitfanfare
    closeonkeypress
    setflag 0x828
    msgbox @4 0x5
    compare LASTRESULT 0x1
    if 0x1 gosub @name
    msgbox @5 0x6
    release
    end

    #org @name
    call 0x1A74EB
    return

    #org @done
    msgbox @6 0x6
    release
    end

    #org @1
    = You! Come here. Remember, what I\nsaid. Here, take this Absol. He\lseems to loved you, but I don't\lknow, how he can make it.

    #org @2
    = Humph. You have no heart.

    #org @3
    = [black_rs]You received a Absol!

    #org @4
    = [black_rs]Would you like to give a\nnickname to Absol?

    #org @5
    = Better not hurt him!

    #org @6
    = I hope Absol is fine.

    Tell me if this Helps

    Spoiler:
    #dynamic 0xD00523

    #org @start
    checkflag 0x828
    if 0x1 goto @done
    msgbox @1 0x5
    compare LASTRESULT 0x1
    if 0x1 goto @take
    msgbox @2 0x6
    release
    end

    #org @take
    givepokemon 0x376 0x5 0x0 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @3 0x4
    waitfanfare
    closeonkeypress
    setflag 0x828
    msgbox @4 0x5
    compare LASTRESULT 0x1
    if 0x1 gosub @name
    msgbox @5 0x6
    release
    end

    #org @name
    call 0x1A74EB
    return

    #org @done
    msgbox @6 0x6
    release
    end

    #org @1
    = You! Come here. Remember, what I\nsaid. Here, take this Absol. He\lseems to loved you, but I don't\lknow, how he can make it.

    #org @2
    = Humph. You have no heart.

    #org @3
    = [black_rs]You received a Absol!

    #org @4
    = [black_rs]Would you like to give a\nnickname to Absol?

    #org @5
    = Better not hurt him!

    #org @6
    = I hope Absol is fine.