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.
Random Enemy Fights?
● ARCHIVED · READ-ONLY
-
-
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.. -
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.
-
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 :)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.. -
yeah i got it thanks for the reply :)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.
-
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)