Quote:
Originally Posted by Bruno1440
Flameguru sorry for the question, i would like to take your help yeah again, one thing ive read the script that u made to make trainer battles, but how can i call them by event? the wild and the trainers? thank you, Bruno
|
Only Trainer Battle require events. Wild Pokemon Battles are purely based on the encounters.txt file while Trainer battles are event and the trainer.txt file.
To do a trainer battle, Edit the trainers .txt file with the Pokemon and trainer type and name you want. You can use mine for an example:
Code:
# ------------------------------------------------------
# Pokemon Metallic Silver Pokemon Trainer Encounters
# ------------------------------------------------------
#
# This File contains all Pokemon Trainer Data, and more specifically
# the Pokemon that they use, the move sets, Names, IV's, Items, and
# more! There are many ways to set it up, but here is the most common.
#
# ------------------------------------------------------
#
# LEADER_Roxanne Trainer Type
# Roxanne Trainer Name
# 1,FULLRESTORE,FULLRESTORE Number of Pokemon and upto 4 Items
# GEODUDE,16 Pokemon and Level
#
# TRIATHLETE_FemaleCyclist Trainer Type
# Cindy Trainer Name
# 2 Number of Pokemon
# MAGNEMITE,16 Pokemon and Level
# PIKACHU,12 Pokemon and Level
#
# ------------------------------------------------------
#
# There are also advanced ways to create the Trainers Pokemon, such as
# the folloing. Steelix is Level 22 with 20 IVs, it's holding a Sitrus
# Berry and knows Sandstorm, Iron Tail, Iron Defense, and Earthquake.
#
# STEELIX,22,20,SITRUSBERRY,SANDSTORM,IRONTAIL,IRONDEFENSE,EARTHQUAKE
#
# ------------------------------------------------------
# Trainers
# ------------------------------------------------------
YOUNGSTER
Joey
1
SENTRET,2
# ------------------------------------------------------
SAILOR
Rick
1
CORPHISH,3
# ------------------------------------------------------
CAMPER
Charlie
1
WINGULL,3
# ------------------------------------------------------
PICNICKER
Kelly
2
SANDSHREW,2
EKANS,2
# ------------------------------------------------------
PICNICKER
Rachel
2
EKANS,2
GEODUDE,3
# ------------------------------------------------------
CAMPER
Matt
2
WINGULL,5
TAILLOW,4
# ------------------------------------------------------
PICNICKER
May
2
CHINCHOU,6
PIKACHU,5
# ------------------------------------------------------
# End
# ------------------------------------------------------
Now to make Trainer Encounter events for lets say...Picnicker May and Camper Charlie, put the following in an Event:
Picnicker May:
Name the Event
Trainer(X) when X equals the sight of view for the Trainer to see the Player and start a battle.
On Page 1:
Code:
@>Script: pbNoticePlayer(get_character(0))
@>Text: Don't think I'll be a pushover!
@>Conditional Branch: Script: pbTrainerBattle(PBTrainers::PICNICKER,"May","Ok, you win fair and square!")
@>Control Self Switch: A = On
@>
: Branch End
@>
Now, Make a new Page and on Page 2, check the Self Switch Tab and make it so that in the drop down box it says A (So it will fully say A is On)
Camper Charlie:
Name the Event
Trainer(X) when X equals the sight of view for the Trainer to see the Player and start a battle.
On Page 1:
Code:
@>Script: pbNoticePlayer(get_character(0))
@>Text: Don't think I'll be a pushover!
@>Conditional Branch: Script: pbTrainerBattle(PBTrainers::CAMPER,"Charlie","A very good battle, indeed.")
@>Control Self Switch: A = On
@>
: Branch End
@>
Now, Make a new Page and on Page 2, check the Self Switch Tab and make it so that in the drop down box it says A (So it will fully say A is On)
There you go, that is how you can make multiple Trainer Encounters using my basic trainers.txt file. Now to make Wild Battles, just read my encounters.txt below:
Code:
# ------------------------------------------------------
# Pokemon Metallic Silver Wild Pokemonn Encounters
# ------------------------------------------------------
# This File contains all Wild Pokemon Data. This File, when in Debug Mode, will be
# converted into a Data File used by RPG Maker XP. Firstly, the Number of the Map is
# Placed before the name of the map. Then, Each Map is broken down into Land, Water,
# and more.
#
# Each subsection contains one of the following:
# - Land - Grass (Terrain Tag 2)
# - Cave - Caves (Terrain Tag 2)
# - Water - Ocean/River (Terrain Tag 6/7)
# - RockSmash - Smashable Rocks (Events)
# - OldRod - Fished with Old Rod (Events)
# - GoodRod - Fished with Good Rod (Events)
# - SuperRod - Fished with Super Rod (Events)
#
# After that follows the encounter data. For Land and Cave encounter types,
# each entry must have a species and level, separated by commas. Rarer
# species should be placed lower in the list. For all other encounter types,
# each entry must have a species, minimum level, and maximum level, separated by
# commas.
#
# Each species entered must be capitalized with no spaces. This is for Simplicity.
#
# However, there are some exceptions with the Following Pokemon:
# - NIDORANmA (Male Nidoran)
# - NIDORANfE (Female Nidoran)
# - FARFETCHD (Farfetch'd)
# - MR_MIME (Mr. Mime)
# - PORYGON2 (Porygon 2)
#
# Depending on the encounter type, the number of entries required varies:
# - Land/Cave: 12 entries
# - Water/RockSmash: 5 entries
# - OldRod: 2 entries
# - GoodRod: 3 entries
# - SuperRod: 5 entries
#
# The Higher up any certain Pokemon is on the Encounters list, the more of a chance
# the player has to encounter it in a Wild Battle. This repeats itself for Each
# Encountering Zone, such as Land or Water.
# ------------------------------------------------------
# Encounters
# ------------------------------------------------------
032 # Johto - Route 29
25,10,10
Land
HOOTHOOT,2
HOOTHOOT,3
HOPPIP,3
HOPPIP,2
SENTRET,3
SENTRET,2
PIDGEY,2
SENTRET,2
PIDGEY,2
RATTATA,3
HOOTHOOT,2
RATTATA,2
# ------------------------------------------------------
004 # Valencia Island - Route 501
25,10,10
Land
RALTS,2
PIDGEY,3
CHINCHOU,2
NIDORANfE,3
RALTS,3
PIDGEY,2
CORSOLA,3
NIDORANfE,4
SENTRET,3
FARFETCHD,2
CHINCHOU,2
CORSOLA,4
# ------------------------------------------------------
025 # Tangelo Island - Route 502
25,10,10
Land
EKANS,3
PIKACHU,4
CHINCHOU,3
SANDSHREW,3
TAILLOW,3
WINGULL,3
CORSOLA,3
HOUNDOUR,4
PIKACHU,4
FARFETCHD,4
TAILLOW,3
CORSOLA,4
# ------------------------------------------------------
# End
# ------------------------------------------------------
Hope I helped

If you don't understand any of this, you probably shouldn't be using Poccil's "Starter Kit"