RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
CBS (for rm2k(3))(can work for rmxp)

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 87
Why are you reading this look over there -->
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
« Last Edit: April 17, 2007, 12:47:45 AM by Grie Velorn »



***
Rep:
Level 87
Wow that's really cool!


**
Rep:
Level 87
Why are you reading this look over there -->
yeah ill find some screen shots
found some
@pythonusr: thanks i made it myself
« Last Edit: April 10, 2007, 08:15:18 AM by Grie Velorn »



**
Rep:
Level 87
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.

**
Rep:
Level 87
Why are you reading this look over there -->
no problem im sorry i haven't finished it up yet ill try to finish it as fast as i can
DONE
« Last Edit: April 11, 2007, 10:00:55 AM by Grie Velorn »



*
I love Firerain
Rep:
Level 97
=D
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.

**
Rep:
Level 87
Why are you reading this look over there -->
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.



**
Rep:
Level 87
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
« Last Edit: April 12, 2007, 04:36:13 AM by siopao »

*
A Random Custom Title
Rep:
Level 96
wah
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?

**
Rep:
Level 87
Why are you reading this look over there -->
you could do both like theres five different typr of monsters and five monsters in battle it could go both ways



***
Rep:
Level 87
How the hell do I add rep to you? I can't find it anywhere...

*
A Random Custom Title
Rep:
Level 96
wah
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.

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?

***
Rep:
Level 87
Ah, so I see.

**
Rep:
Level 87
Why are you reading this look over there -->
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
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



**
Rep:
Level 87
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.

**
Rep:
Level 87
Why are you reading this look over there -->
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



**
Rep:
Level 87
that's really great thank you  ;D it sure helps a lot for us

**
Rep:
Level 87
Why are you reading this look over there -->
 :lol: no problem i hope people like it



***
Rep:
Level 87
????
Got a demo i could see( how the cbs works)