View Single Post
  #52    
Old May 12th, 2013 (11:18 PM).
Shadowraze's Avatar
Shadowraze Shadowraze is offline
Agent of Chaos
 
Join Date: Apr 2013
Location: ur mum
Age: 16
Gender: Male
Nature: Jolly
Posts: 788
Quote originally posted by yozzyurubuza:
Here is the original script taken from a trainer that has a trainerbattle 0x5

Spoiler:
'---------------
#org 0x1ED4E9
trainerbattle 0x2 0x72 0x0 0x8295A7E 0x8295ABB 0x81ED52A
special2 LASTRESULT 0x3C
compare LASTRESULT 0x1
if 0x1 goto 0x81ED580
setvar 0x8004 0x72
special2 LASTRESULT 0x1F1
compare LASTRESULT 0x0
if 0x1 goto 0x81ED554
msgbox 0x8295AC3 MSG_KEEPOPEN '"["]Hello" is the beginning of ["]g..."
release
end

'---------------
#org 0x1ED52A
special 0x207
waitmovement 0x0
checkflag 0x12F
if 0x1 goto 0x81ED53B
release
end

'---------------
#org 0x1ED580
trainerbattle 0x5 0x72 0x0 0x8295BC8 0x8295BFA
msgbox 0x8295C1F MSG_NORMAL '"["]Hello" is the beginning of ["]g..."
end

'---------------
#org 0x1ED554
checkflag 0x12F
if 0x1 goto 0x81ED567
msgbox 0x8295AC3 MSG_KEEPOPEN '"["]Hello" is the beginning of ["]g..."
release
end

'---------------
#org 0x1ED53B
msgbox 0x8295B60 MSG_KEEPOPEN '"We should commemorate how we seem\..."
setvar 0x8004 0x72
special 0x1E9
registernav 0x72
release
end

'---------------
#org 0x1ED567
msgbox 0x8295B01 MSG_KEEPOPEN '"Hello, we meet again.\pWe seem to ..."
setvar 0x8004 0x72
special 0x1E9
registernav 0x72
release
end


As you can see, the first was trainerbattle 0x2 0x72 ->Trainer ID 72
As you go on deeper, you'll see trainerbattle 0x5 0x72, still the same trainer ID
Well this tut is specifically for Firered although some of the codes here work for RSE too but I'm not sure If it will work for you whether you are using Ruby or Emerald.

But I can give you a tip on learning how to use thosse cides just try and rewrite and learn how the commands are used for and you can make your own scripts with commands that you don't know in no time.
__________________
Reply With Quote