Random Enemy Fights?

Status
Not open for further replies.

slithergod

Villager
Member
Joined
Dec 30, 2013
Messages
12
Reaction score
1
First Language
english
Primarily Uses
Hi i was wandering if there is a way to get choices to give a random enemy as an example The game Monster Rancher has different class tournaments so when you choose class E you only get to fight monsters from that class. Any help would be appreciated thanks.

also just to not confuse people when i say random enemy i mean like battle processing but instead of giving a set monster it gives a  monster out of say 4 monster's and chooses one of them randomly each time the choice is selected.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
Are these truly 'random' i.e. take x number of steps and you get a fight with an invisible enemy, or are they evented so that when you touch the sprite you get a fight?  Also, are all possible combinations to be available on one map, or on several?  e.g. choose class E and you get transferred to map 088; choose class D and you go to map 089.  Because depending on your basic setup, the possibilities vary.

Assuming evented on one map, something like this

Show choices (selection of classes)

Each choice activates a different switch

Each enemy has a page per switch.  Depending what choice the player makes, that page is activated.

On that page, have a variable, set to random with the number of choices you want so 4 choices, the variable would be set 0 - 3

For each possibility, set battle processing with the troop of your choice..
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Just do a Control Variables to a random number between 1 and 4, then a series of conditional branches to check what the variable is, then call Battle Processing on the different monsters.
 

slithergod

Villager
Member
Joined
Dec 30, 2013
Messages
12
Reaction score
1
First Language
english
Primarily Uses
Are these truly 'random' i.e. take x number of steps and you get a fight with an invisible enemy, or are they evented so that when you touch the sprite you get a fight?  Also, are all possible combinations to be available on one map, or on several?  e.g. choose class E and you get transferred to map 088; choose class D and you go to map 089.  Because depending on your basic setup, the possibilities vary.

Assuming evented on one map, something like this

Show choices (selection of classes)

Each choice activates a different switch

Each enemy has a page per switch.  Depending what choice the player makes, that page is activated.

On that page, have a variable, set to random with the number of choices you want so 4 choices, the variable would be set 0 - 3

For each possibility, set battle processing with the troop of your choice..
Wow thanks it worked exactly how i wanted it to i never thought about setting a conditional branch to make the battle processing depending on what number was randomly picked thank you so much i really appreciate it  :)
 
Last edited by a moderator:

slithergod

Villager
Member
Joined
Dec 30, 2013
Messages
12
Reaction score
1
First Language
english
Primarily Uses
Just do a Control Variables to a random number between 1 and 4, then a series of conditional branches to check what the variable is, then call Battle Processing on the different monsters.
yeah i got it thanks for the reply :)
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.


slithergod, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


Just edit your last post and add the extra information (or if you want to reply to several people and quote their posts, use the MultiQuote button)
 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top