Conversation Between Darthatron and Tropical Sunlight
Showing Visitor Messages 1 to 15 of 24
-
-
To you also, Merry Christmas. Troll
-
You did?
ah yes, of course you did. I was just testing to see if you remember <.<
-
I did tell you to do that. >_> Oh well. No problem.
-
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 :)
-
#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%. :\
-
-
That would have nothing to do with anything. You are hacking FireRed, right?
-
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.
-
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]!
-
doesn't work
thanks for helping though
it's the same as before
and yes, I did decompile, change and then recompile.
-
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.
-
ehm..
actually, no I don't have it.
but you can PM me if it's a secret