Random Nine Stage Final Boss Battle

Status
Not open for further replies.

Ragpuppy87

Veteran
Veteran
Joined
Apr 17, 2019
Messages
308
Reaction score
245
First Language
English
Primarily Uses
RMMV
I have a somewhat convoluted final boss battle in mind. I'm not quite sure how to event it properly though.
If anyone is familiar with the Miracle Matter battle from Kirby 64 they will kind of know what I'm aiming for.

Basically the battle would consist of the boss cycling through 8 different elemental forms.
In each form the boss would only be vulnerable to damage from the opposite element. Example. Fire form would only be vulnerable to ice type attacks. Once that form is destroyed it would randomly shift to one of the seven other remaining forms,
until all the forms have been destroyed. Only then will the true final ninth form appear.

I have everything figured out except the Random Element.

I have Nine different enemies for the final boss. A battle event triggered when the first form hits 0 HP. Transform Enemy via random variable to one of the seven remaining forms. This is where it gets complicated for me.
I don't know what it will transform into. So I don't know what remaining 6 forms to put into another random variable for transformation once the second form hits 0 HP.

I could do this if not for the Random Element, but it's something I really would like to keep in if possible.

The only thing I can think of is a conditional branch for every single possible outcome across all 7 transformations.

Is there a simpler way or should I just stick to a fixed transformation schedule?

EDIT: Hmm. Actually even with fixed transformations the boss only seems to transform into the second phase. Once that hits 0 it just repeats the 1st transformation so I'm battling the second form on an infinite loop.
 
Last edited:

Milennin

"With a bang and a boom!"
Veteran
Joined
Feb 7, 2013
Messages
2,520
Reaction score
1,655
First Language
English
Primarily Uses
RMMV
Use a variable to draw a random number between 1-7. Depending on the outcome, transform into a different type. Make a switch for each different outcome, that gets turned on when transforming into its type.
When drawing the random number, check if the transformation switch corresponding with the number is on/off. If it's already on, jump label to the top to draw the random number again.
At the bottom of the event, make a set of branches that checks if each transformation switch is on, and if all are on, activate the final switch that handles the last transformation.

It should be good practice to get used to working with switches and variables on this.
 

Ragpuppy87

Veteran
Veteran
Joined
Apr 17, 2019
Messages
308
Reaction score
245
First Language
English
Primarily Uses
RMMV
Use a variable to draw a random number between 1-7. Depending on the outcome, transform into a different type. Make a switch for each different outcome, that gets turned on when transforming into its type.
When drawing the random number, check if the transformation switch corresponding with the number is on/off. If it's already on, jump label to the top to draw the random number again.
At the bottom of the event, make a set of branches that checks if each transformation switch is on, and if all are on, activate the final switch that handles the last transformation.

It should be good practice to get used to working with switches and variables on this.

Thank you so much! It worked perfectly!

EDIT: I was a bit premature when I reported this thread could be closed due to being resolved.
I'm having a minor issue with the enemy display name.
Example: "Final Boss attacks!"
Once the Earth elemental transformation occurs it starts saying
"Final Boss B attacks!"
I have only known this to happen when more than one enemy is in a troop, but I double checked and Final Boss is the only enemy. And I haven't put a B after any of my enemy names for the boss transformations.

Any idea as to why this might be?

EDIT: Never mind. I guess an invisible space after the Boss's name was the culprit.
Thread can be closed. For real this time.
 
Last edited:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
[closed]IgnoreMe[/closed]
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,038
Messages
1,018,466
Members
137,821
Latest member
Capterson
Top