Thread: [Tutorial] Hack Tutorials: Scripting
View Single Post
  #134    
Old December 2nd, 2007 (12:50 PM).
Rathelong Rathelong is offline
 
Join Date: Jul 2007
Gender:
Nature: Adamant
Posts: 2
BASIC TRAINERBATTLE

#org $start
lock
faceplayer
trainerbattle 1 0x001 $before $after
message $boo
boxset 6
release
end

#org $before
$before 1 =Check out my bugs

#org $after
$after 1 =Oh no!

#org $boo
$boo 1 =I'll get you back for this.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++

A MORE 'ADVANCED TRAINERBATTLE'

#org $start
checkflag 0x20C
if b_true goto $done
applymovement 0x01 $move
pausemove 0
trainerbattle 1 0x006 $before $after $further
release
end

#org $further
setflag 0x20C
message $talk
boxset 6
applymovement 0x01 $move2
pausemove 0
release
end

#org $done
release
end

#org $move
$move 1 ; #binary 0x12 0x12 0x12 0x12 0xFE

#org $move2
$move2 1 ; #binary 0x13 0x10 0x10 0x60 0xFE

#org $before
$before 1 =G'day!

#org $after
$after 1 =That's good.

#org $talk
$talk 1 =G'day, my name is Jason.\nI hope I see you again,\pI'm going to beat you next time.





--------------
This one "trainerbattle 1 0x001"
The 0x001 means in the PET the state of the trainer
No u have to go in in PET and type the name of the trainer and give him Pokemon.
You can also use 0x003 +++++++
Hope that u can understand that X_x