RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Create a troop with random enemies

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 68
RMRK Junior
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.

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

-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…..


**
Rep: +0/-0Level 67
Blue Mage
Those pictures are so small that I can't read them.. So can u make them larger?
"Right and wrong are not what separate us and our enemies. It's our different standpoints, our perspectives that separate us. Both sides blame one another. There's no good or bad side. Just two sides holding different views."