The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Tropical Sunlight
Reload this Page Conversation Between Tropical Sunlight and Darthatron

Notices
For all updates, view the main page.

Ad Content
Conversation Between Tropical Sunlight and Darthatron
Showing Visitor Messages 1 to 15 of 24
  1. Darthatron
    December 26th, 2009 12:58 AM
    Darthatron
    Thanks, you too.
  2. Tropical Sunlight
    December 26th, 2009 12:46 AM
    Tropical Sunlight
    To you also, Merry Christmas. Troll
  3. Tropical Sunlight
    September 29th, 2009 3:58 AM
    Tropical Sunlight
    You did?
    ah yes, of course you did. I was just testing to see if you remember <.<
  4. Darthatron
    September 29th, 2009 3:50 AM
    Darthatron
    I did tell you to do that. >_> Oh well. No problem.
  5. Tropical Sunlight
    September 29th, 2009 3:44 AM
    Tropical Sunlight
    I figured out what was wrong.
    I had to replace

    if 0x1 goto 0x881001A

    to

    if 0x0 goto 0x881001A
    It works now. thanks for help though :)
  6. Darthatron
    September 29th, 2009 3:34 AM
    Darthatron
    #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%. :\
  7. Tropical Sunlight
    September 29th, 2009 3:26 AM
    Tropical Sunlight
    right
  8. Darthatron
    September 29th, 2009 3:24 AM
    Darthatron
    That would have nothing to do with anything. You are hacking FireRed, right?
  9. Tropical Sunlight
    September 29th, 2009 3:14 AM
    Tropical Sunlight
    Do you think that might've been releated to the fact that the attack's name is not FISSURE, but TUNNEL (I used A-Tack to change the name). Also, it's HM05.
  10. Darthatron
    September 29th, 2009 3:09 AM
    Darthatron
    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.
  11. Tropical Sunlight
    September 29th, 2009 3:04 AM
    Tropical Sunlight
    yes, it is like that
  12. Darthatron
    September 29th, 2009 3:03 AM
    Darthatron
    #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]!
  13. Tropical Sunlight
    September 29th, 2009 3:02 AM
    Tropical Sunlight
    doesn't work
    thanks for helping though

    it's the same as before
    and yes, I did decompile, change and then recompile.
  14. Darthatron
    September 29th, 2009 2:56 AM
    Darthatron
    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.
  15. Tropical Sunlight
    September 29th, 2009 2:50 AM
    Tropical Sunlight
    ehm..
    actually, no I don't have it.
    but you can PM me if it's a secret

All times are GMT -8. The time now is 5:28 AM.