• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
T
Reaction score
17

Profile posts Latest activity Postings Media Albums About

  • Not a hack, no, but another little project. I used to have a hack, but it died, and I kinda held the knife, so to speak.
    The spriters resource is down, because their domain name expired. Which means either it is down for good, or they forgot to pay the bills if i was guessing.
    #include stdattacks.rbh

    #define iAttack ATK_VINEWHIP

    #dynamic 0x0000001

    #org @Main
    lockall 'Locks all the sprites.
    checkattack iAttack 'Checks if any Pokemon know the attack.
    compare LASTRESULT 0x06 'Compare to check any Pokemon know the attack.
    if B_<< goto @True 'If a Pokemon knows the attack then exit go to the @True part of the script.
    msgbox @Text1 0x06 ' "..."
    releaseall 'Release all.
    end 'End the script.

    #org @True
    setanimation 0x00 0x800D 'Prepare the Pokemon animation.
    bufferpartypokemon 0x00 0x800D 'Set the Pokemon name to the first buffer.
    bufferattack 0x01 iAttack 'Set the attack to the second buffer.
    msgbox @Text2 0x06 ' "Pokemon_Name used Attack_Name!"
    doanimation 0x25 'The Pokemon animation.
    waitstate 'Wait for the animation to complete.
    releaseall 'Release all.
    end 'End the script.

    #org @Text1
    = ...

    #org @Text2
    = [Buffer1] used [Buffer2]!




    That works 100%. :\
    well that's odd, because this is my script, and it works fine:

    #include stdattacks.rbh

    #dynamic 0x0000001

    #org @Main
    lockall
    checkattack ATK_VINEWHIP
    compare lastresult 6
    if B_<< goto @True
    msgbox @Text1 0x6
    releaseall
    end

    #org @True
    msgbox @Text2 0x6
    releaseall
    end

    #org @Text1
    = 1.

    #org @Text2
    = 2.
    #include stdattacks.rbh

    ;---------------
    #org 0x810000
    lock
    checkattack ATK_FISSURE
    compare LASTRESULT 0x06
    if 0x00 goto 0x881001A
    msgbox 0x8810053 MSG_NORMAL ;"The soil is softer here.\nA POKéMO..."
    release
    end

    ;---------------
    #org 0x81001A
    setanimation 0x0 LASTRESULT
    bufferpartypokemon 0x0 LASTRESULT
    bufferattack 0x1 ATK_FISSURE
    msgbox 0x881008F MSG_YESNO ;"The soil is softer here.\nA POKéMO..."
    compare LASTRESULT 0x0
    if 0x1 goto 0x8810050
    msgbox 0x88100E9 MSG_KEEPOPEN ;"[buffer1] used [buffer2]!"
    closeonkeypress
    doanimation 0x25
    waitstate
    fadescreen 0x0
    hidesprite LASTTALKED
    fadescreen 0x1
    release
    end

    ;---------------
    #org 0x810050
    release
    end

    ;---------
    ; Strings
    ;---------
    #org 0x810053
    = The soil is softer here.\nA POKéMON may be able to dig it.

    #org 0x81008F
    = The soil is softer here.\nA POKéMON may be able to dig it.\pWould you like to use TUNNEL?

    #org 0x8100E9
    = [buffer1] used [buffer2]!
    no, I just prefer MSN - it's more personal.

    Anyway... The problem was that you were just using the function incorrectly.

    It should be...

    -

    checkattack 0xAttack (actually put your attack here)
    compare LASTRESULT 0x06
    if B_<< goto @SomeoneKnowsTheAttack

    -

    Ok, so CheckAttack works like so...

    1. Check if the attack is known by Pokemon #1, if so set LASTRESULT = 0x00 and exit.
    2. Check if the attack is known by Pokemon #2, if so set LASTRESULT = 0x01 and exit.
    3 - 6. Same as above 2, but the values change.
    7. Set LASTRESULT to 0x06

    Get it? :\ I can probably explain better.
    I'm fine..
    thanks my friend ^^
    only..at the moment I'm too busy..
    but soon I will return with a new crono :)
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
Back
Top