View Single Post
  #7502    
Old December 29th, 2012 (04:42 AM).
Aryan143's Avatar
Aryan143 Aryan143 is offline
The Fennekin Fan!
 
Join Date: Jul 2012
Location: Delhi, India
Age: 15
Gender: Male
Nature: Modest
Posts: 756
Quote originally posted by Ganeshwar:
i just want to know how can i insert a headbutt tree script like pokemon shiny gold.how can i?
Got it from a website-

#org $headbutt
#raw 0x7C 0x1D 0x00 'check to see if one of our pokes knows Headbutt!
compare LASTRESULT 0x06 'if none of them do
if 1 jump $could 'jump to the "this tree could be headbutted" comment
#raw 0x9D 0x00 0x0D 0x80 'store PKMN for animation
#raw 0x7F 0x00 0x0D 0x80 'store PKMNs name to \v\h02
#raw 0x82 0x01 0x1D 0x00 'store HEADBUTT to \v\h03
message $question
$question 1 = This tree could have a Pokemon\nin it. Use HEADBUTT?
boxset 0x5
compare LASTRESULT 0x00 'if they say no...
if 1 jump $end 'break off now
message $used 'show X used Y!
$used 1 = \v\h02 used \v\h03!
boxset 0x6
#raw 0x68 'im not sure what this is used for here, but best include it
#raw 0x9C 0x25 0x00 'there is no animation for HEADBUTT, so use the ROCK SMASH one
#raw 0x27 'as above
jump 0x1Be06F 'games inbuilt code for "Trees" pokemon encounter

#org $could
message $you
$you 1 = This tree could be HEADBUTTed!
boxset 0x6
release
end

#org $end
release
end
__________________
Check out my gaming company: