Main Menu
  • Welcome to The RPG Maker Resource Kit.

CBS (for rm2k(3))(can work for rmxp)

Started by Grie Velorn, April 07, 2007, 09:44:54 AM

0 Members and 1 Guest are viewing this topic.

Grie Velorn

okay so here's my custom battle system:

your going to need the switches
Attack
Defend
Spell
Run
Your Turn
Enemy Turn
Enemy Death
Your Death
monster1(you can name this one anything but your going to need it for all the monsters you plan to us)
Item
Victory

also you'll need the variables
Health
Mana
Enemy Health
Enemy Mana
Random #
(the second picture is for rm2k3)
now start a new map and make 11 event it doesn't matter where you put them but your going to need them
1.so to begin one the first event name it Your Turn and in event conditions have where it says switch the "your turn" switch on



2.Do this to all the events(also make them Same Level as Hero and Parallel Process) just naming it the corresponding switches (there will be three(don't use the monster1 switch) you dont do it to these will be explained later)



3.once you've done all that go into the Your turn event(Make sure you have it a Parallel Process and Same Level as Hero) and put in this code:

<>Messg:\v[x]Health(change the x to number you put the "Health" variable at)
:   :\v[x]Mana(Change the x to the number you put the "Mana" variable at)
<>LABEL:    1No
<>Show Choice: Attack/Defend/Spell/More
:[Attack] Case
<>Change Switch:[XXX:Your Turn]-OFF Set
<>Change Switch:[XXX:Attack]-ON Set
<>
:[Defend] Case
<>Change Switch:[XXX:Your Turn]-OFF Set
<>Change Switch:[XXX:Defend]-ON Set
<>
:[Spell] Case
<>Change Switch:[XXX:Your Turn]-OFF Set
<>Change Switch:[XXX:Spell]-ON Set
<>
:[More] Case
<>Show Choice: Run/Item/Back
:[Run] Case
<>Change Switch:[XXX:Your Turn]-OFF Set
<>Change Switch:[XXX:Run]-ON Set
<>
:[Item] Case
<>Change Switch:[XXX:Your Turn]-OFF Set
<>Change Switch:[XXX:Item]-ON Set
<>
:[Back] Case
<>GOTOLable:   1No
<>
End Case
<>
End Case
<>



(the xxx means the number of the switch it doesn't really matter as long you have the name)

4.Now go to your Attack Event and put this in:

<>Messg:You attack!
<>Move Event...:    Hero .Right... (make him move towards the monster)
<>Wait:  2.0s.
<>Show Battle Anim.:Punch, Monster(the monster event)(W)
<>Variable Ch:[xxxx:[Random #]]Set,Random[1*10](you can change this to what ever)
<>Move Event...:   Hero ,(move back to previous position)
<>Change Switch:[xxxx:Attack]-OFF Set
<>Change Switch:[xxxx:Enemy Turn]-ON Set
<>


5.Now for the enemy part goto the enemy turn(have the switch monster1 also in this event) event and put this in:

<>Messg:Enemy Attacks!
<>Variable Ch:[xxxx:[Random #]]Set,Random[1*3]
<>FORK optn:Varb[xxxx:[Random #]]-1
<>Move Event...:  Enemy(the enemy event)...(move to hero)
<>Messg:Enemy uses punch!
<>Show Battle Anim.:Punch, Hero (W)
<>Variable Ch:[xxxx:[Random #]]Set,Random[1*5]
<>Messg:You lose \v[(Random #'s variable)] health!
<>Variable Ch:[xxxx:[Your Health]-, Var.[(random #)]val
<>Move Event...:  Enemy(the enemy event)...(move to to previous position)
<>Change Switch:[xxxx:Enemy Turn]-OFF Set
<>Change Switch:[xxxx:Your Turn]-ON Set
<>
ELSE Case

do the same as above but instead as a punch make a fire blast or just play around with it then make a third one and thats it.

6.For the Defend Event Just add this simple code:

<>Messg:You defend!
<>Messg:Enemy Attacks!
<>Messg:Attack does nothing!
<>Change Switch:[xxxx:Your Turn]-ON Set
<>Change Switch:[xxxx:Defend]-OFF Set
<>



7.Now for the item event add this code:

<>Call System Menu
<>Change Switch:[xxxx:Item]-OFF Set
<>Change Switch:[xxxx:Your Turn]-ON Set
<>



8.goto the spells event and do this:
Step 1:
okay this is a long code but im going to condense it and you can modify it how you want and ill post suggestions on how:

<>LABLE:  1No
<>Show Choice: Fire
:[Fire]Case
<>Show Battle Anim:Fire1,EV(monster)(W)
<>Variable Ch:[xxxx:Random #]set, random[Any numbers]
<>Messg:You did \v[(radom # variable number]damage!
<>Variable Ch:[xxxx:Enemy Health]-,Var[V[Random #]]val
<>Variable Ch:[xxxx:Your Mana]-(any number)
<>Messg:Your mana is \v[your mana number]
<>Change Switch:[xxxx:Spell]-OFF Set
<>Change Switch:[xxxx:Enemy Turn]-ON Set



okay this is the basic
version here's some suggestions:
Make a limit system just add 1 to a variable called limit and make a new page that activates only when variable limit = 5 or something
or
have a level system where Fork option that hero level what ever and if not just have lables jumping to the beginning one
thats the kind of thing you can do
Step 2:
For step 2 make a new page and do this:



Im going to skip the spells for now(hehe) and instead of doing the coding ill just post a screen shot for running:



oh yeah before you get into the battle you want to have the positions memorized like this:

<>Memory Place: [(make a new variable it doesn't matter)],[(do the same here]]
make sure these are the same used in the running away thing or it doesn't work i know i've don it on accident


10.Make another event named lose and do this to it



11.Do the same but like this



12.Now i thought i should have added this at the beginning of the tut but i forgot so here it is: you must set all the variable for the event ill show you


i believe thats it and
`enjoy



Mushroom Panda



Grie Velorn

#3
yeah ill find some screen shots
found some
@pythonusr: thanks i made it myself



siopao

thanks for the tutorial i have an rmxp and rm2k3 but i want to use rm2k3 now for making games cos it is what my pc can handle and its much more lag free for me. Im working now on my first project on rm2k3 which of course a simple and crappy one  ;D and need some tutorials for cbs.

Grie Velorn

#5
no problem im sorry i haven't finished it up yet ill try to finish it as fast as i can
DONE



Nightwolf

I soo love you.
I mean, first of all it's for 2k3, which you don't see everyday, and then it's of and CBS!

Excellent work. Sadly, +rep is all i can do.
Arlen is hot.

Grie Velorn

Thanks for the rep i like to sometimes use rm2k3 just for fun. but im not really good at making custom battle sprites so i made this to compinsate for that.



siopao

#8
sorry for posting here i moved it in there dont know where to put my questions about cbs nid help please.
http://rmrk.net/index.php/topic,15366.0.html

Kokowam

Wait, if you were to make like up to like "monster5" that would make 5 monsters on one screen instead of just 5 monsters in the game, right?

Grie Velorn

you could do both like theres five different typr of monsters and five monsters in battle it could go both ways



Mushroom Panda

How the hell do I add rep to you? I can't find it anywhere...

Kokowam

You need more posts. and Grie Velorn, some of the typing is a little off (spelling and grammar) and hard to understand. Mind fixing those errors? If not, I'll work without the changes but only do it if you have time and you want to.

Quote from: Grie Velorn on April 14, 2007, 04:30:59 AM
you could do both like theres five different typr of monsters and five monsters in battle it could go both ways
So does that mean you need one switch for every different type of monster?


Grie Velorn

Quote from: mastermoo420 on April 14, 2007, 01:14:25 PM
You need more posts. and Grie Velorn, some of the typing is a little off (spelling and grammar) and hard to understand. Mind fixing those errors? If not, I'll work without the changes but only do it if you have time and you want to.

okay ill try and fix those
Quote from: Grie Velorn on April 14, 2007, 04:30:59 AM
you could do both like theres five different typr of monsters and five monsters in battle it could go both ways
So does that mean you need one switch for every different type of monster?
yeah but what i did is for every different monster like slime,pig thing, ect.. there was a slime, pig man switch and insted i have different level like level 1, level 2,ect..  so i hope that helps



siopao

will you a tutorial specifically for rm2k3 please? i know you have a tutorial above and i read it but its for rm2k and it differs in the way the code was spelled,etc.

Grie Velorn

sure I just finished getting the pic's so ill post both rm2k and rm2k3 pictures so just look at those instead of the coding



siopao

that's really great thank you  ;D it sure helps a lot for us

Grie Velorn




xeph

Got a demo i could see( how the cbs works)