KingCharizard
C++ Developer Extraordinaire
- 1,229
- Posts
- 15
- Years
- Pennsylvania
- Seen May 15, 2016
Welcome to king charizard's Video Tutorial.
Below is a video on how to make an NPC give the player random eggs, pokemon, items and even make your NPC's say more...
For some reason I cant embed the video can anyone tell me why I cant.
-Scripts for Random Eggs-
Conditional Branch: Variable [050: Random Egg] == 0
Conditional Branch: Script: $Trainer.party.length>=6 <- Checks to see if you have 6 pokemon
Text: You have no room to store the Egg...
Else
Script: Kernel.pbGenerateEgg(001,5)
Text: Received a Pokémon Egg.
Branch End
Conditional Branch: Script: $Trainer.party.length>=6 <- Checks to see if you have 6 pokemon
Text: You have no room to store the Egg...
Else
Script: Kernel.pbGenerateEgg(001,5)
Text: Received a Pokémon Egg.
Branch End
Else
Branch End
-Scripts to add random pokemon-
Conditional Branch: Variable [050: Random Pokemon] == 0
Conditional Branch: Script: $Trainer.party.length>=6 <- Checks to see if you have 6 pokemon
Text: You have no room to store the pokemon...
Else
Script: pbAddPokemon(001,5)
Text: Received a Pokémon.
Branch End
Conditional Branch: Script: $Trainer.party.length>=6 <- Checks to see if you have 6 pokemon
Text: You have no room to store the pokemon...
Else
Script: pbAddPokemon(001,5)
Text: Received a Pokémon.
Branch End
Else
Branch End
-Scripts to add random items-
Conditional Branch: Variable [050: Random Item] == 0
Conditional Branch: Script: $PokemonBag.pbStoreItem(::PBItems::POTION)
Text: The item was added
Else
Text: The item couldn't be added
Branch End
Conditional Branch: Script: $PokemonBag.pbStoreItem(::PBItems::POTION)
Text: The item was added
Else
Text: The item couldn't be added
Branch End
Else
Branch End
_____________________________________________
Green = Scripts
Blue = Built in events
Black = Text of your choosing
Green = Scripts
Blue = Built in events
Black = Text of your choosing
Search the PBS txt file called pokemon for the pokemon ID# you want.
Search the PBS txt file called item for the item name you want.
Also read the notes on how to add more items & pokemon.
Search the PBS txt file called item for the item name you want.
Also read the notes on how to add more items & pokemon.
If you follow the video perfect you shouldn't have any problems!
If you are having problems feel free to PM me!
If you are having problems feel free to PM me!
Dont PM me saying i did everything you said in your video and it still doesn't work cause you didn't do everything i've said if you did it would work. Try to show me where u think the problem is or send me the error's you were prompted with.
Last edited: