The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: Diamond Star on July 31, 2011, 11:37:25 AM

Title: Create a troop with random enemies
Post by: Diamond Star on July 31, 2011, 11:37:25 AM
Create a troop with random enemies

In this topic I'll present a simple way to Create a troop with random enemies
First: Create a new troop
Then add some enemies (like tow Ghosts and one Basilisk)
-Now hide enemies : right click on enemy then select "Appear Halfway" ,Do that for each enemy.
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fdc225.4shared.com%2Fimg%2Fie5q3xxZ%2F0.9242349686495226%2Fimg1.&hash=e599b1eddbfa000b446082cdb6c2c372ee5ba74f)
Second: Create a variable call it : eni ,for example.
Third: Now we'll write the event in Battle Event of troop:
-Insert "Control Variable" command ,then set eni to random between 1 to 3.
-Insert a conditional branch with Else section
 Set condition to : if eni =1
Then insert "Enemy Appearance " command in this conditional branch to show the first Ghost as a result of condition.
Then In Else section insert a new conditional branch this with Else section ,and insert "Enemy Appearance " command to show the second Ghost as a result of condition
Then In Else section insert a new conditional branch this without Else section ,and insert "Enemy Appearance" command to show Basilisk as a result of condition
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fdc225.4shared.com%2Fimg%2FJbwNg_mN%2F0.33702027270376445%2Fimg2.gif&hash=9919f776928eb5cbf0b065b4610749cfc433abe7)
-with that the enemies will appear according to variable.
You can play with that to make a complex thing like:
Show the first and second enemies if eni is 4 or show all if eni is 5 and so…..

Title: Re: Create a troop with random enemies
Post by: Cactuar on August 17, 2011, 01:19:27 AM
Those pictures are so small that I can't read them.. So can u make them larger?