View Single Post
  #88    
Old November 17th, 2010 (04:42 PM). Edited November 21st, 2010 by colcolstyles.
colcolstyles's Avatar
colcolstyles
Yours truly
 
Join Date: May 2008
Location: The Bay Area
Gender: Male
Nature: Lonely
In Emerald, the script at '0x271354' appears to be executed whenever the player steps within the view radius of a trainer. And frankly, I don't have the time or the heart to do much more research than that. :(

Here's the script if anyone wants to see it:

Spoiler:
Code:
'---------------
#org 0x271354
cmdd8
cmdd9
special 0x3B
special 0x3A
waitstate
goto 0x827143C

'---------------
#org 0x27143C
special 0x37
waitmsg
waitkeypress
special 0x20B
compare LASTRESULT 0x1
if 0x1 goto 0x8271356
goto 0x8271454

'---------------
#org 0x271356
special 0x3B
special 0x3A
waitstate
goto 0x827143C

'---------------
#org 0x271454
repeattrainerbattle
special2 LASTRESULT 0x36
compare LASTRESULT 0x0
if 0x1 goto 0x8271491
compare LASTRESULT 0x2
if 0x1 goto 0x8271491
compare LASTRESULT 0x1
if 0x1 goto 0x8271491
compare LASTRESULT 0x6
if 0x1 goto 0x8271491
compare LASTRESULT 0x8
if 0x1 goto 0x8271491
endtrainerbattle2
releaseall
end

'---------------
#org 0x271491
endtrainerbattle2
releaseall
end
__________________

Brother of Vrai
Reply With Quote