Notice: fwrite(): Write of 1714 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 44 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96
Print Page - A couple of questions..

The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: InvaderZim on July 26, 2007, 02:02:39 AM

Title: A couple of questions..
Post by: InvaderZim on July 26, 2007, 02:02:39 AM
1) Can anyone link me to a CBS tutorial (2k3 or XP), or a game that does a CBS well? Or can anyone explain to me the general concept of a CBS (like, how everything is done (code-wise)); basically tell me how to make a CBS (w/ or w/o actual code).

2) Can someone please link me to where I can learn some (preferably all) of Ruby for XP?

Any help appreciated.
Title: Re: A couple of questions..
Post by: modern algebra on July 26, 2007, 02:20:34 AM
1) It'd be hard to explain this to someone who doesn't know RGSS. There is an ABS Tutorial on the forum somewhere. Find a post by BECKY1111 and there's a link in the sig I believe. Basically, default RMXP works in phases. I haven't looked at the battle system scripts, but it's something like this:

start phase # determines attack order, sets up battle, etc...

main phase  # This is a loop, running each turn for each member involved in the battle
   - actor phase #when the current member is an actor
       - select phase #select attack, skill, etc...
       - target phase # target your attack or skill
   - enemy phase # runs when the current member is an enemy
   - action phase # shows and processes the moves each member of the battle has chosen

end phase # finishes battle once all actors or all enemies are dead

2)  http://rmrk.net/index.php/topic,1723.0.html

That topic has links to some good tutorials. The best way to learn scripting is to modify the default scripts and see what happens, IMO. You can't possibly learn all of RGSS from reading a bunch of tutorials though. You have to practice. Once you get the basics down (I'd suggest trying to make a simple CMS), start taking requests and doing them. Do research. If you have the official version, the help file is very useful. I'd say that the help file is the best reason ro purchase RMXP
Title: Re: A couple of questions..
Post by: InvaderZim on July 26, 2007, 04:43:15 AM
I don't really need to know RGSS to understand the concept behind a CBS; an example of one from 2k/2k3 would be just as useful. Its just to hard to phrase my questions regarding it that just seeing an example and reverse-engineering one would be more effective. And unfortunatelly, I don't yet know RGSS so I couldn't really understand your example, but from what I did get is that is the basic order/components of a CBS; like, for example, how are monster 'AI' emulated in a CBS (from what I understand, CBS makes the DBS completely useless and the DBS is referenced in no way)? I'm talking about their 'priority' attacks, things like that. I could make all that manually (a common event for every monster or so), but that would take too much work, and I'm pretty sure there is an easier way (perhaps referencing the DBS for the monster skill 'priority' and things of the like).

And thanks for linking me to that thread. I knew I've seen it somewhere before on this forum, but that was many months ago and I forgot where and by whom it was. And yes, I plan to utilize my learned RGSS skills and make something, probably starting with a CMS like you suggested, as I learn enough to be able to make it. As it is, I have plenty of ideas to keep me busy making scripts for.
Title: Re: A couple of questions..
Post by: tSwitch on July 26, 2007, 04:49:11 AM
Quote from: InvaderZim on July 26, 2007, 04:43:15 AM
I don't really need to know RGSS to understand the concept behind a CBS; an example of one from 2k/2k3 would be just as useful. Its just to hard to phrase my questions regarding it that just seeing an example and reverse-engineering one would be more effective. And unfortunatelly, I don't yet know RGSS so I couldn't really understand your example, but from what I did get is that is the basic order/components of a CBS; like, for example, how are monster 'AI' emulated in a CBS (from what I understand, CBS makes the DBS completely useless and the DBS is referenced in no way)? I'm talking about their 'priority' attacks, things like that. I could make all that manually (a common event for every monster or so), but that would take too much work, and I'm pretty sure there is an easier way (perhaps referencing the DBS for the monster skill 'priority' and things of the like).

And thanks for linking me to that thread. I knew I've seen it somewhere before on this forum, but that was many months ago and I forgot where and by whom it was. And yes, I plan to utilize my learned RGSS skills and make something, probably starting with a CMS like you suggested, as I learn enough to be able to make it. As it is, I have plenty of ideas to keep me busy making scripts for.

err...you can't reverse engineer a CBS from 2k/2k3 because neither have RGSS

a CBS is not a simple thing to code, regardless of whether it looks simple when it's done.
go to hbgames.org and search for ATB or Side View Battle
you will find a few scripts that, when combined, make the 2k3 battle system
then you can see it.

as for referencing the DBS, the reason you can't do that, is because you are overriding the phazes of the DBS and making them act differently.
you're basically overwriting the DBS in order to create your CBS
the priority attack thing is still used, it's just written into the CBS differently than the DBS

the best way to learn RGSS is to do what Modern said, tinker with the default scripts and see what happens
(that's how I learned/keep learning)

also, this should be in the scripts section
Title: Re: A couple of questions..
Post by: InvaderZim on July 26, 2007, 02:54:02 PM
I didn't mean reverse-engineer as literally rip from one and place in another. I just need to understand how one works (more so then I do now).

When you speak of me referencing the DBS, you speak in the context of XP? I was more or less asking that in the context of 2k3, but that doesn't really matter. In XP, yea it seems I would have to overwrite the existing DBS with my own (unless there is a way to create new script pages which I have yet to find).

Also, this is in the right section since this is the 'Help' section and I wasn't really asking for any scripts.

Anyway, I'll go look at hbgames.org later today and see what I can find. Thanks for the suggestion.
Title: Re: A couple of questions..
Post by: tSwitch on July 26, 2007, 02:57:40 PM
ahh, my bad, I misunderstood

actually, you can add in new scripts, just right click and hit insert
but the battle phazes are still the same and by writing a script below them, you are overwriting them