Step 2 - The Bulk
1. Now that you have the base things set up its time to move onto the bulk of the system, the common event. Go back to the "taming" common event you created earlier we will now begin making that.
First of all you will need to create 6 variables.Partysize - Checks the size of your party to make sure you have enough room to tame a creature.
creaturegender - Determines the gender of the tamed creature.
tamechance - Determines the chance of a successful tame.
slime - Checks what creature you are battling against. (To make sure that the correct one is tamed)
slimef got - Checks if you already have a female slime.
slimem got - Checks if you already have a male slime.
This is enough variables for one tameable creature (Male and Female) and to add more you simply need to add 1 more of the last 3 variables for each creature.
2. Now that you have created the required variables you can begin adding to the system.
In your taming common event add some generic text about the taming attempt e.g: "You attempt to tame the creature..."
You then need to set the variable
Partysize to the size of the party by using the set variable command, the party size option is under "Other"
When you have done this, create a conditional branch
if partysize < 4For the "else" branch (this is if the party is full) just put some generic text. eg: "The party is full!"
For the party size being less than 4 branch we can continue the system.
Create another conditional branch, this time checking if the variable
Slime is equal to 1.
Leave the "else" branch blank and continue the system in the equal to 1 branch.
Now you need to set the variable
creaturegender to a random number between 0 and 11 using the set variable command and the random number option.
After this create another conditional branch
if creaturegender <=5Leave the "else" branch blank for now and continue the system on the <=5 branch.
Now add the text " The Slime you are trying to tame is female." To notify the player what gender the creature is.
Below this add another conditional branch that checks if the variable
slimefgot = 0
On the "else" branch put the text "You already have a female slime!"
On the slimefgot = 0 branch put a set variable command. This time setting the variable
tamechance to a random number between 0 and 10.
After this put another conditional branch
if tamechance <= 4On the "else" branch you need to put the result of an unsuccessful tame attempt, just some text saying the attempt failed is fine.
On the tamechance <= 4 branch you need to put a message saying the result.
"The slime seems to be warming up to you"
Wait 20 frames.
"...The slime joins your side in the battle, the attempt was a success"
"Would you like to name the slime you tamed?"
Choices "yes", "no"
[When Yes]
Name input for Slime F
[When No]
(Leave blank)
Below this use the "force action" command to force the actor to use the knockout skill that you created, on the "last target"
Then put the "add party member Slime F" command to add the tamed creature to the party.
Below this set the variable
slimefgot to 1.
That is the female slime completed, to enable taming of a male slime just copy and paste everything you have done, starting from "the slime you are trying to tame is female" and ending at "setting the variable slimefgot to 1" and just change the variables and text to the male versions.
3. The last few things you need to do are:
Set the common event "No taming" to set the variable
Slime to 0 (after every tame-able creature you add, add its variable to this common event)
Go to the troop menu and set the tame-able creature to set its respective variable, in this case
Slime to 1 on the first turn.
You will also need to do this for each extra tame-able creature with their individual variables.