PDA

View Full Version : cbs scripting/design help


Manji
12-12-2005, 10:49 AM
i would like to create a custom battle system. my question is, how do you/can you assign hp amounts to an event?

my enemies will be character models and i would like to give them hp totals, strength, defense totals, etc. how would i go about doing that?

Crimson Knight
12-12-2005, 05:50 PM
Use the normal/battle variables from dummy characters.

Manji
12-13-2005, 10:02 AM
thank you. that makes it easier knowing i can just use some pre-assigned variables, but..

my problem comes with actual script creation. i don't know which order to place script commands in. would i use event info load and then variable commands after that? what about the stat check flag?

i did read dungeon warden's faq on gamefaqs, and i can tell how helpful it is already, but, could your or anyone give me a sample script? or at least tell me the order in which rpg maker 2 reads the script commands so that they can work properly..

Crimson Knight
12-13-2005, 11:31 AM
It's not that hard. You treat monsters as you would characters when you load their info. Here's a small sample script(registering a monster in a CBS) to get you started:

-Variable:"Member Number" = 9(or whatever number you use for dummy characters)
-Variable:"Normal Variabl0" = 100(for example's sake, this variable will be your monster's HP)
-Member Info Save

*there's no need to load since you're setting their default stats for the battle

And that's it. Also, you'll want to be very careful when you check stats with multiple characters, as you could screw up your formulas.

Manji
12-17-2005, 09:20 PM
i would like for my cbs to be turn-based too..started on hard mode, i plan on registering everything myself and starting completely from scratch. another question is..

how can i set-up the system to check for agility numbers to see who goes first? what would the script look like?

-check who goes first
-variables to check for

would it be something like that?

DYRE
12-18-2005, 10:26 AM
You would use Member Info: Load. Then put the agility in a temp variable. Lather, Rinse, Repeat. Or maybe you wouldn't lather and rinse... Anyway, then just use Script Branch: Condition to see which variable is the highest. I'm probably making no sense, sorry.

Manji
12-18-2005, 11:16 AM
no, believe me, it helps.. thank you. i've got how i want my battle system to work in my head, i just don't know how to set up scripts properly..

would i use battle flow 1 or 2 in advanced settings to initiate the battle process, or could i make my own auto event for fighting?