(Last updated on; November 5, 2009 11:14 AM)

HOME SCRIPTS RESULTS

For this portion of of the scripting it gets a bit more difficult. There are more script tags and new programs that need to be used.

The code for a simple battle is...

#org $scipt
lock
faceplayer
trainerbattle 0x00 0x01 $see $win
$see 1 =Let's fight!
$win 1 =How did I loose
message $after
$after 1 =Go away! I don't like you any more.
boxset 6
release
end


Explaination

"trainerbattle 0x00 0x01 $see $win"; "trainerbattle" is just tellng the system the type of battle

"0x00" tells what kind of trainer battle that this is. "0x00" tells it that this is a plain, simple battle.

"0x01" tells the number of the trainer you fighting, to find the number you have to get a program call A-Trainer. This program lets
you customize almost everything about a trainer you want to fight.

"$see" and "$win" just state that when they see you, the "$see" message plays, and when you win the "$win" message plays.

"message $after" only plays after you've defeated that person.


[back]