Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Scripts & Tutorials

Notices
For all updates, view the main page.

Scripts & Tutorials This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.



Reply
Click here to go to the first staff post in this thread.  
Thread Tools
  #1    
Old August 8th, 2006 (07:41 PM). Edited October 18th, 2006 by jtveclipse12.
jtveclipse12's Avatar
jtveclipse12
Beginning Trainer
 
Join Date: Jul 2006
Location: Idaho, USA
Age: 27
Gender:
Nature: Adamant
After look through some of the forums I’ve noticed that a lot of people have question on a Pokemon Custom Battle System (PCBS). So I thought I would give it a try… and here’s a simple PCBS that I came up with.

First off this is not going to be exactly like the Pokemon games. It will just give you a ruff idea on how to make one… What’ll be missing, the menu, and basically every thing dealing with stats… but don’t worry this will be a good start if you’re not sure how to make one.

Things you need.
1.rm2k3
2.The cbstutorial.zip (Edit you really don't need this, bbg is a background image, and the other are self explanitory)
3. Time it's long tutorial

Let’s Get Started…
Create a small map 20 x 15 and name it “CBS” or something of the sort…

Create a small map 20 x 15 and name it whatever you want (I named my “Map”) and apply a Pokemon Chipset to it.

Change your hero to a Pokemon Charset.

Fill the area with grass… and make the outsides of the map trees….

Add your players starting position somewhere in the middle of the map.

Add a small patch of grass in front of you Hero… (So you don’t have to walk far when testing.)

Enter event mode (F7) and double click on the grass area to add an event…

Change the “Event Start Condition” to “On Hero Touch”… this changes it to when the hero touches the event it becomes active.

In the “Event Command” double click and add “Erase Screen” (Page 2)
Change the “Erase Screen Type” to “Mosaic”… this obviously erases the screen in a mosaic way...

In the “Event Command” double click and add “Teleport” (Page 2)
Teleport it somewhere on the map “CBS”… teleports your Hero to the “CBS” map

In the “Event Command” double click and add “Set Hero Transparency” (Page 2)
Check “Transparency” in the “Hero Transparency Settings”… this makes your Hero to where he/she is unable to be seen…
(Optional way to do this is to change the CharSet to a blank CharSet)

In the “Event Command” double click and add “Disable Status Menu” (Page 3)…
Make sure disable is checked…. This makes you unable to call the status menu.

In the “Event Command” double click and add “Show Screen” (Page 2)
Change the “Show Screen Type” to “Mosaic”… this obviously shows the screen in a mosaic way...

In the “Event Command” double click and add “Show Picture” (Page 2)
“Pic Number” = “1”… Select Picture “bbg” (Provided in the zip)
“Position” X=160 Y=120… “Transparency” = None

In the “Event Command” double click and add “Show Picture” (Page 2)
“Pic Number” = “2”… Select Picture “bbg02” (Provided in the zip)
“Position” X=160 Y=200… “Transparency” = None

In the “Event Command” double click and add “Show Picture” (Page 2)
“Pic Number” = “3”… Select Picture “025pikachu_front” (Provided in the zip)
“Position” X= 35 Y=35… “Transparency” = Stir (Not sure what stir is… but its opposite of none)

In the “Event Command” double click and add “Move Picture” (Page 2)
“Pic Number” = “3”…
“Position” X=285 Y=35…

Explanation… the first 2 events shows the backgrounds.
The third event shows the Spirit Pikachu on the left of the screen.
The last event moves Pikachu over to the right of the screen.
Side note… always make sure that you have different pictures set to different “Pic Number”

In the “Event Command” double click and add “Show Message” (Page 1)
Type “Wild Pikachu appeared!”

In the “Event Command” double click and add “Show Message” (Page 1)
Type “Go! Charmander!”

In the “Event Command” double click and add “Show Picture” (Page 2)
“Pic Number” = “4”… Select Picture “004charmander_back” (Provided in the zip)
“Position” X= 35 Y=142… “Transparency” = Stir

In the “Event Command” double click and add “Change Variable” (Page 1)
Click on the button with 3 small dots… add a variable called “Your Health”
Under “Variable Settings” check the radial button “Set”
Under “Operand” check the radial button “Set”… enter “25” for the value.

Explanation what this does is the variable “Your Health” represents the health of you Pokemon…
Setting it to 25 gives you Pokemon a health of you guessed it 25.

In the “Event Command” double click and add “Change Variable” (Page 1)
Click on the button with 3 small dots… add a variable called “Enemy Health”
Under “Variable Settings” check the radial button “Set”
Under “Operand” check the radial button “Random”… enter “15” to “20” for the value.

Explanation… does the same as the one above…
Except it’s for your enemy and it gives the a random health of 15 to 20

In the “Event Command” double click and add “Change Variable” (Page 1)
Click on the button with 3 small dots… add a variable called “Potions”
Under “Variable Settings” check the radial button “Set”
Under “Operand” check the radial button “Set”… enter “3” for the value.

Explanation… it gives you 3 potions…

In the “Event Command” double click and add “Change Switch” (Page 1)
Click on the button with 3 small dots… add a switch called “Your Turn”
Under “Switch Settings” check “ON”

Explanation this turn the switch “Your Turn” on… which activates the next event below…

Now go to the map “CBS”

Double click anywhere to add an event and name it “Your Turn”
Under “Event Condition” check “Switch” click the button next to it
and choose the “Your Turn” switch.
Under “Event Start Condition” selected “Parallel Process”

Explanation this tells the event only to do this event if the switch “Your Turn” has been turned on…
This was the last event we did on the “Map” map…

Now in the “Event Command” double click and add “Fork Condition” (Page 3)
Check the radial button “Variable” and choose the variable “Your Health”
Check the radial button “Set” and enter a value of “1”
Then on the drop down choose “Above”
Under “Options” make sure “Add Else Case” is checked

Explanation… This tells the event that if “Your Health” (The variable we set to 25)
is 1 and above to proceed to the first fork event... If “Your Health” is not 1 or above it
will go the “Else Case”

In the “Event Command” double click and add “Show Choice” (Page 1)
“Choice One” = Attack
“Choice Two” = Item

In the “Event Command” double click and add “Change Switch” (Page 1)
Make sure that you double click under “[Attack] Case”
Under “Choose Switch” check “One” click the button and add the switch “You Attack”
Under “Switch Settings” check “ON”

Explanation… This turn the switch “You Attack” on… which will be use here shortly.

In the “Event Command” double click and add “Change Switch” (Page 1)
Make sure that you double click under “[Item] Case”
Under “Choose Switch” check “One” click the button and add the switch “You Item”
Under “Switch Settings” check “ON”

Explanation… same as the one before but for the items (Which is your potions)…

Now go down to the “Else Case” and add “Change Switch” (Page 1)
Under “Choose Switch” check “One” click the button and add the switch “You Death”
Under “Switch Settings” check “ON”

Explanation…Will be used later on…

Now go out of the even “Your Turn” and Double click a new area to create a new Event
Name it “You Attack”
Under “Event Condition” check “Switch” click the button next to it
and choose the “Your Attack” switch.
Under “Event Start Condition” selected “Parallel Process”

Explanation this tells the event only to do this event if the switch “Your Attack” has been turned on…

In the “Event Command” double click and add “Change Switch” (Page 1)
Under “Choose Switch” selected “Your Turn”
Under “Switch Settings” check “OFF”

Explanation this tells the event to turn off the event “Your Turn”

In the “Event Command” double click and add “Show Choice” (Page 1)
“Choice 1” = Scratch
“Choice 2” = Growl (Note: this one really won’t do anything)

Under “[Scratch] Case” is where you would add your pictures to animate the attack… so
Double click and add “Show Picture” (Page 2)
“Pic Number” = “20” “Select Picture” = “animattack_scratch01”
“Position” X= 285 Y=35… “Transparency” = Stir

Explanation… by know you should be starting to get it!

In the “Event Command” still under “[Scratch] Case” double click and add “Wait” (Page 2)
“Timer” = “3”

Explanation… waits for .3 seconds

In the “Event Command” still under “[Scratch] Case” double click and add “Erase Picture”
“Pic Number” = “20”

Erases Picture 20

Still under “[Scratch] Case” Double click and add “Show Picture” (Page 2)
“Pic Number” = “21” “Select Picture” = “animattack_scratch02”
“Position” X= 285 Y=35… “Transparency” = Stir

In the “Event Command” still under “[Scratch] Case” double click and add “Wait” (Page 2)
“Timer” = “2”

In the “Event Command” still under “[Scratch] Case” double click and add “Erase Picture”
“Pic Number” = “21”

In the “Event Command” still under “[Scratch] Case” double click and add “Show Message”
“Charmander used Scratch”

In the “Event Command” still under “[Scratch] Case” double click and add “Change Variable”
Check “One” select “Enemy Health”
Under “Variable Settings” check “-”
Under “Operand” check “Random” set “5” to “8”

Explanation…. When you use the attack “Scratch” the “Enemy Health” will decrease
By a random number from 5 to 8.

In the “Event Command” still under “[Scratch] Case” double click and add “Change Switch”
Turn OFF the “You Attack” switch.

In the “Event Command” still under “[Scratch] Case” double click and add “Change Switch”
Turn ON the “Enemy Turn” switch.

Now under the “[Growl] Case” you can use the same method as “Scratch”

Since this tutorial is getting pretty long I’m gonna skip to the enemy Turn.

Add another event on the “CBS” map and call it “Enemy Turn”
Under “Event Condition” select the switch “Enemy Turn”
Under “Event Start Condition” selected “Parallel Process”

In the “Event Command” add a “Fork Condition”
Check “Variable” select “Enemy Health”
Check “Set” input “1”
Change to “Above”
Check “Add Else Case”

Explanation… this is just like the “Your Turn”

Add all you animations for pikachus thunder shock

In the “Event Command” add a “Show Message”
“Pikachu used Thunder Shock!”

In the “Event Command” add a “Change Variable”
Check “One” select “Your Health”
“Random” “2” to “5”

Explanation… Thunder Shock will do anywhere from 2 to 5 damage

In the “Event Command” add a “Change Switch”
Turn OFF “Enemy Turn”

In the “Event Command” add a “Change Switch”
Turn ON “Your Turn”

Explanation… This turn off the “Enemy Turn” and turns on “Your Turn”
allowing you to go

Now under “Else Case”
In the “Event Command” add a “Show Message”
“Wild Pikachu Fainted”

In the “Event Command” add a “Change Switch”
Turn OFF “Enemy Turn”
Turn ON “Enemy Death”

Go back to the “CBS” Map double click to add another event
Name “Enemy Death”
“Event Condition” set to “Enemy Death”
“Event Start Condition” set to “Parallel Process”

In the “Event Command” add events “Change Switch” to turn off
The following switches… “Your Turn” “You Attack” “You Item” “Enemy Turn”

In the “Event Command” add a “Show Message”
Something like you won… yadayadayada…

In the “Event Command” add a “Teleport”
Back to the “Map” map… the one you start at…

In the “Event Command” add a “Change Switch”
Add switch “After Battle” “ON”

Go back to the “Map” map… and open the event you first created
Create a new page… under “Event Conditions” select switch “After Battle”

Insert the event to set your Hero’s transparency back to normal….

For the “You Item” you basically use the small method as “You Attack”
For the “You Death” basically use the same as “Enemy Death”


Now hopefully I’ve wrote this tutorial down right…
but if you can’t get something to work just send me a PM

Please give me a little break… I know this probably isn’t the best way to do it… but I’m a newbie… and this it the first time I’ve ever used rm2k3…

One problem though is... after you win the first time and go back to the map and try to fight again... it doesnt really work right... if someone knows how to fix this please tell me!

Side note… if this doesn’t work just try things out for yourself… it’s a far better way to learn… For example it was 10 times easier for me to make this CBS by experimenting… then it was for me to make a CMS (Custom Menu Screen) following a tutorial.
Attached Files
File Type: zip cbstutorial.zip‎ (28.6 KB, 37 views) (Save to Dropbox)
Reply With Quote
  #2    
Old August 10th, 2006 (06:36 AM).
Space Guard's Avatar
Space Guard
Part-Time Avenger
 
Join Date: Oct 2005
Location: Nottingham, UK
Age: 22
Gender: Male
Nature: Quiet
This CBS works! There is a glitch when you finish the battle 9You can't battle again) But I bet some RM2K3 Scripter can easily sort that out!
Well done!
SG06
__________________
Reply With Quote
  #3    
Old August 10th, 2006 (11:28 AM). Edited August 10th, 2006 by jtveclipse12.
jtveclipse12's Avatar
jtveclipse12
Beginning Trainer
 
Join Date: Jul 2006
Location: Idaho, USA
Age: 27
Gender:
Nature: Adamant
Yeah if you look at the second to last thing I said... I tell you that there's a problem.
Hopefully some can help fix that problem... I don't think this was to bad for my first CBS... I mean this is the first time I've used the program....

Here is some screenshots of what it'll come out as....

Edit:
Ok I found out how to fix the problem.
On the Event "Enemy Death"
Where I said to
(In the “Event Command” add events “Change Switch” to turn off
The following switches… “Your Turn” “You Attack” “You Item” “Enemy Turn”)
Don't do that one...

Add this before the "Teleport" event
In the “Event Command” add a "Erase Picture"
Erase Pictures "1", "2", "3", and "4"

Add this after the "Change Switch" "Afterbattle"
In the “Event Command” add a "Change Switch"
Select switch "Enemy Death" turn OFF
Attached Thumbnails
CBS01.jpg‎   CBS02.jpg‎   CBS03.jpg‎   CBS04.jpg‎   CBS05.jpg‎  

Reply With Quote
  #4    
Old August 10th, 2006 (10:16 PM).
Space Guard's Avatar
Space Guard
Part-Time Avenger
 
Join Date: Oct 2005
Location: Nottingham, UK
Age: 22
Gender: Male
Nature: Quiet
The core CBS Is absolutely Fantastic! I would rate this 10/10 as it works really well and looks authentic. You should really change the background though (To make it look more like a Pokemon Battle)
Well done with finding the problem!
SG06

(PS at the begininng i would add a Change message options: Transparent, botom command so that the text shows through onto the Pokemon style Text Box)
__________________
Reply With Quote
  #5    
Old August 11th, 2006 (02:14 PM).
jtveclipse12's Avatar
jtveclipse12
Beginning Trainer
 
Join Date: Jul 2006
Location: Idaho, USA
Age: 27
Gender:
Nature: Adamant
Yeah you can do that... But if you use the rm2k3 system font... it's a white blue color so it is hard to read... You would need a Pokemon color font for it to work.
Reply With Quote
  #6    
Old August 16th, 2006 (05:27 PM).
Frost-Bite
Beginning Trainer
 
Join Date: Aug 2006
Gender:
Nature: Adamant
Could you do the same sort of thing for rmxp?
Reply With Quote
  #7    
Old August 17th, 2006 (08:39 PM).
jtveclipse12's Avatar
jtveclipse12
Beginning Trainer
 
Join Date: Jul 2006
Location: Idaho, USA
Age: 27
Gender:
Nature: Adamant
Quote originally posted by Frost-Bite:
Could you do the same sort of thing for rmxp?
Uhhh.. I don't have RMXP but I imagine you probably could... But I think it would be better to take advantage of the scripting feature...
Reply With Quote
  #8    
Old August 19th, 2006 (04:31 AM).
hypersonicX's Avatar
hypersonicX
Beginning Trainer
 
Join Date: Jun 2006
Gender:
Nature: Adamant
Nope it don't do it in RMXP i try it but theres no Erase Screen at there -.-
__________________
Friendlist
Spoiler:

Dark_lucario




Userbar's
Spoiler:




PC Family
Spoiler:

Twin:Exteradude
first Friend: Dark_lucario
Reply With Quote
  #9    
Old August 19th, 2006 (12:05 PM).
~Azura's Avatar
~Azura
Alright, purple is good.
 
Join Date: Apr 2006
Nature: Relaxed
Send a message via Windows Live Messenger to ~Azura
Quote originally posted by jtveclipse12:
Uhhh.. I don't have RMXP but I imagine you probably could... But I think it would be better to take advantage of the scripting feature...
He's right, why spend your time with events, when you can script?

=)
__________________
[ Support: ]

[ Game | Previews | Screenshots ]

Thread returning soon, don't worry!


Need help with something? Send me a PM!
Reply With Quote
  #10    
Old August 19th, 2006 (01:44 PM).
educruz's Avatar
educruz
POKéMON TITANIUM
 
Join Date: May 2006
Location: Brazil
Gender:
Nature: Brave
Azura , você é brasileiro ??? Você sabe se tem alguém que sabe fazer um Script de PokeDEX ? ( Azura, you are brazilian? You know if somebody knows how make a PokeDEX Script? )
__________________





Reply With Quote
  #11    
Old August 19th, 2006 (06:37 PM).
~Azura's Avatar
~Azura
Alright, purple is good.
 
Join Date: Apr 2006
Nature: Relaxed
Send a message via Windows Live Messenger to ~Azura
This is not the place to discuss that.

And yes, I'm from Brazil.

And yes, I have a Pokedex Script.
__________________
[ Support: ]

[ Game | Previews | Screenshots ]

Thread returning soon, don't worry!


Need help with something? Send me a PM!
Reply With Quote
  #12    
Old August 20th, 2006 (12:56 AM).
som1unkn0wn's Avatar
som1unkn0wn
Hidden In The Shadows
 
Join Date: Aug 2006
Location: The Mist In The Shadows
Gender:
Nature: Adamant
You can make a Pokemon CBS in RMXP with scripting. that is one of my current projects and ill post it in my starter kit when it is done.
__________________
Here I am.
Look around.
But you wont See me.
Now I'm here.
Now I'm there.
Reply With Quote
  #13    
Old August 20th, 2006 (01:27 AM).
Space Guard's Avatar
Space Guard
Part-Time Avenger
 
Join Date: Oct 2005
Location: Nottingham, UK
Age: 22
Gender: Male
Nature: Quiet
This tutorial is very useful and can be modified to become a trainer battle with switching PKMN. It is very easy to use. Well done again!
__________________
Reply With Quote
  #14    
Old August 21st, 2006 (03:22 AM).
Auron's Avatar
Auron
Legendary Guardian
 
Join Date: Aug 2006
Location: Abyss of the Farplane, Guadosalam, Spira
Age: 24
Gender:
Nature: Lonely
Send a message via Windows Live Messenger to Auron
Hey...It's a nice tutorial...Well...Actually I don't use RPG Maker 2003...But someday, I'll be back and I'll try it

Thanks for the tutorial
__________________

Signature made by me, rip and you'll die.
My hatched Pokémon, now evolved
Please click and help me
T-Cards. Thank you! [A][K][AUTO]
My Youtube Channel

Go and join IFAnimeShrine. Please help my friend Hayate. Auron commands you to.

My MSN address is in my profile, add me if you want...
Spoiler:
My Bishies: Asuka Kazama (Tekken), Tira (SC3), Yuffie (Final Fantasy VII), Cissy (Pokémon), Lyn (Fire Emblem)
My Pairings:
My Claimed Songs: Makafushigi Adventure - Hiroki Takahashi (Dragon Ball Opening) - Sakura Saku - Megumi Hayashibara (Love Hina Opening)
My Claimed Pokémon:Tentacruel, Electabuzz, Wailord
My Claimed Pokémon Manga Characters: Blue, Sapphire, Berlitz
Younger Sister: Joyce~♥
Evil Twins with: Hayate
Younger Brother: MrDreavus
Reply With Quote
  #15    
Old August 21st, 2006 (08:08 AM).
educruz's Avatar
educruz
POKéMON TITANIUM
 
Join Date: May 2006
Location: Brazil
Gender:
Nature: Brave
Ok ! Really this is not a very good place , but , i have an other question , this PokeDéx script was made by de KGC Module or momo ? Because i already tried these , and i didn't obtained to make to function ! Do you can teach me how make these PokeDéx script or pass them for me ? Thank you for the attention ! XD
__________________





Reply With Quote
  #16    
Old August 21st, 2006 (01:47 PM).
~Azura's Avatar
~Azura
Alright, purple is good.
 
Join Date: Apr 2006
Nature: Relaxed
Send a message via Windows Live Messenger to ~Azura
Again this is not the place. Pm me.

Sorry for offtopic posts.
__________________
[ Support: ]

[ Game | Previews | Screenshots ]

Thread returning soon, don't worry!


Need help with something? Send me a PM!
Reply With Quote
  #17    
Old September 1st, 2006 (01:24 AM).
vivilakers
Beginning Trainer
 
Join Date: Aug 2006
Gender:
Nature: Adamant
I like to try it but i'm kinda using RPG Maker XP for my game right now....any script for RPG Maker XP in a CBS??
Reply With Quote
  #18    
Old September 1st, 2006 (02:11 AM).
Datriot's Avatar
Datriot
Tachikama!!!
 
Join Date: Mar 2005
Location: UK, England, Leeds. Simple.
Age: 23
Nature: Sassy
Not bad, this is quite good for people who have Rm2k3 and cannot make their own battle system. Good job!
__________________

Datra: 1804 8720 6653
Reply With Quote
  #19    
Old September 17th, 2006 (03:55 PM).
jtveclipse12's Avatar
jtveclipse12
Beginning Trainer
 
Join Date: Jul 2006
Location: Idaho, USA
Age: 27
Gender:
Nature: Adamant
Okay not to be rude but people stay on topic... theres a forum for asking questions and requesting things....

Anyway it seems that everyones seeming to like the tutorial... so I was thinking about making a updated tutorial on the cbs... which will added the Pokemon style menus... so if you think i should just reply...
Reply With Quote
  #20    
Old September 22nd, 2006 (07:07 AM).
x24's Avatar
x24
Researcher-Sprite Thieves, DIE
 
Join Date: Sep 2005
Location: Canada
Age: 31
Gender:
Nature: Naughty
I would like that.. also could u reupload what uve done?
__________________
forum: temp closed
Current MD Rating: Silver
Pokedex Completion Average (FR/R/E): ~175
No of (Non-Gyarados) Shinies: 4

<-Proud supporter of GSC Remakes.. you may use if you like..

Website Progress Thread
Reply With Quote
  #21    
Old September 22nd, 2006 (12:59 PM).
Bradston
PikaFan!
 
Join Date: Feb 2006
Location: My House!
Age: 24
Gender:
Nature: Adamant
Send a message via Windows Live Messenger to Bradston
I can't download the cbstutorial.zip.
When I click on it, it takes me to a blank page.
Help would be awesome!
Reply With Quote
  #22    
Old September 23rd, 2006 (03:27 AM). Edited September 23rd, 2006 by MisterTdK.
MisterTdK
Game Maniak
 
Join Date: Sep 2006
Location: Netherlands
Gender:
Nature: Adamant
I cant download it to.

Maybe the someone can explain whats wrong??

Maybe you can upload it at an other site?
Reply With Quote
  #23    
Old September 23rd, 2006 (12:47 PM).
jtveclipse12's Avatar
jtveclipse12
Beginning Trainer
 
Join Date: Jul 2006
Location: Idaho, USA
Age: 27
Gender:
Nature: Adamant
Yeah, I'm not sure whats wrong... and I don't know if I have the zip file anywhere. But I'll look for it... but if you just wait I'll make a new tutorial...
Reply With Quote
  #24    
Old September 23rd, 2006 (12:56 PM).
Bradston
PikaFan!
 
Join Date: Feb 2006
Location: My House!
Age: 24
Gender:
Nature: Adamant
Send a message via Windows Live Messenger to Bradston
can someone give me the link to a place where i can get the .php format thing?
Reply With Quote
  #25    
Old September 23rd, 2006 (02:21 PM).
martin052095
Beginning Trainer
 
Join Date: Sep 2006
Gender:
Nature: Adamant
hello im new. How do you make a hack? Everyone is making the hacks so easily i don't know where to start!!!!!!
Reply With Quote
Reply
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 01:59 AM.