View Single Post
  #271    
Old October 1st, 2007, 02:12 PM
poccil
Trainer
 
Join Date: Jan 2007
Gender:
Nature: Adamant
Here is documentation I just wrote on editing the intro screen.
Quote:
The introduction screen when the game starts is found in the map titled Intro.
This map should be where the starting position is placed. It also contains an event
with an autorun trigger. The event may appear long, but that's only because it's a
representative appearance of the intro screen only. The most fundamental introduction
event looks like the following:

Script: pbChangePlayer(0) -- initializes the player character
Text: Choose a name.
Script: pbTrainerName -- opens the name entry screen and initializes the Trainer object
Text: Hello, \PN. -- displays the player's name.
Control Self Switch: A =ON -- Stops autorun event
Transfer Player:[011: Test Map], (009,009), Down -- Transfers player to start position

Of course, it can be expanded to include multiple player characters and
to show the character on screen:

Text: Are you a boy or a girl?
Show Choices: BOY, GIRL
When [BOY]
Script: pbChangePlayer(0) -- initializes player 0 (PlayerA)
When [GIRL]
Script: pbChangePlayer(1) -- initializes player 1 (PlayerB)
Branch End
Script: pbShowPicture(2,pbGetPlayerGraphic,1,230,120) -- shows the character's picture
Text: Choose a name.
Script: pbTrainerName -- opens the name entry screen and initializes the Trainer object
Text: Hello, \PN. -- displays the player's name.
Erase Picture: 2 -- erases the character's picture
Control Self Switch: A =ON -- Stops autorun event
Transfer Player:[011: Test Map], (009,009), Down -- Transfers player to start position

In the file metadata.txt you can enter data for each player character
in the settings PlayerA, PlayerB, etc. within section [000] of that file.
See metadata.txt for more details.
__________________
Peter O, of The Ultimate Pokemon Center (Pokemon Essentials, Donate money to restore my page)