View Single Post
  #6334    
Old December 22nd, 2011, 08:39 PM
masterquestmq's Avatar
masterquestmq
Enthusiastic Rom Hacker
 
Join Date: Nov 2010
Gender: Male
Quote:
Originally Posted by vasalpa View Post
Ok guys I really need help here! First of all i am hacking firered. And use XSE scripter along with advance map and A-trainer. I make a trainer script. I'm almost sure that it is correct but when i talk to the trainer it doesn;t do anything! also i have one more major problem! there is grass near the trainer! when i encounter pokemon after the battle my character switches to the trainer! (i control the trainer istead of my character! Any help? Here is the script:
Spoiler:
#org 0x804C00
lockall
trainerbattle 0x1 0x15F 0x0 0x8804C31 0x8804CBE 0x8804CE2
givepokemon 0x2A 0xF 0x0 0x0 0x0 0x0
fadescreen 0x1
hidesprite 0x7
setflag 0x1003
fadescreen 0x0
fadedefault
releaseall
end

'---------------
#org 0x804CE2
msgbox 0x8804CEC MSG_NORMAL '"No way! Ok take this stupid pkmn!\..."
end


'---------
' Strings
'---------
#org 0x804C31
= You can't pass through me!\nUnless you defeat me!\pGuess what! I'm so sure that\nI'll win so if you win you can\ltake my Pokemon!\pLet's do it!

#org 0x804CBE
= No way! You can't take my Golbat!

#org 0x804CEC
= No way! Ok take this stupid pkmn!\pI don't want it anyway!\n I'll take my revenge\lFarewell.........

Changes in BOLD
#org 0x804C00
lockall
checkflag 0x1003 (u need this so the script does not repeat)
if 0x0 goto @battle
if 0x1 goto @talk

#org @battle
trainerbattle 0x1 0x15F 0x0 0x8804C31 0x8804CBE 0x8804CE2
End

#org
0x8804CE2
givepokemon 0x2A 0xF 0x0 0x0 0x0 0x0
fadescreen 0x1
hidesprite 0x7
setflag 0x1003
fadescreen 0x0
fadedefault
releaseall
end

#org @talk
release
end


'---------
' Strings
'---------
#org 0x804C31
= You can't pass through me!\nUnless you defeat me!\pGuess what! I'm so sure that\nI'll win so if you win you can\ltake my Pokemon!\pLet's do it!

#org 0x804CBE
= No way! You can't take my Golbat!

#org 0x804CEC
= No way! Ok take this stupid pkmn!\pI don't want it anyway!\n I'll take my revenge\lFarewell........


this shud fix it. pm me if u need more help.