Thread: [Essentials tutorial] Basic Mystery Gift Tutorial
View Single Post
  #1    
Old December 13th, 2009, 04:47 PM
|Maximus|'s Avatar
|Maximus|
I'm back~
 
Join Date: Aug 2007
Age: 18
Nature: Adamant
Okay, so I have actually decided to make my first tutorial. This tutorial is going to be how to create a Basic Mystery Gift Person Dude Thingy

Okay, so I am going to break this up into steps.

1) Checking for a File

So first you want to create a Conditional Branch with this line of script.

Code:
@> Conditional Branch: Script: FileTest.exist?("Arceus.pkmn")
   @>
  : Else
   @>
  : Branch End
@>
Basically, it checks if you have "Arceus.pkmn" inside of your game folder. View the video inside of my signature for how to create custom files.

2) Adding the Effect

So, what happens if you do have the file? Easy, we can add the Arceus.

Code:
@> Conditional Branch: Script: FileTest.exist?("Arceus.pkmn")
   @> Text: You have the Mystery Gift.
   @> Conditional Branch: Script: Kernel.pbAddPokemon(PBSpecies::ARCEUS,80)
      @> Self Switch: A = ON
      @>
  : Else
   @>
  : Branch End
@>
  : Else
   @>
  : Branch End
@>
3)What if you don't have it?

Well, thats easy. Just add whatever you want under 'else'


Code:
@> Conditional Branch: Script: FileTest.exist?("Arceus.pkmn")
   @> Text: You have the Mystery Gift.
   @> Conditional Branch: Script: Kernel.pbAddPokemon(PBSpecies::ARCEUS,80)
      @> Self Switch: A = ON
      @>
  : Else
   @>
  : Branch End
@>
  : Else
   @> Text: The Gift is not for everyone.
   @>
  : Branch End
@>
Well, that's my tutorial I hope you enjoyed it, and found it useful! Check out the video in the spoiler in my signature because that is where you will find out how to convert TXT files into .PKMN files.

PHEW, that's a lot of typing!
Reply With Quote