Question: If you were using a simple drop you could just say 1 - 1 0 copper coin and basically the script would know to drop

If you were using a simple drop you could just say 1-10 copper coin and basically the script would know to drop a random number of copper coins between 1 and 10. To make this drop more flexible you can use branches.
A one of selects one of the child branches based on the given probabilities and then evaluates.
One of
Blue gem (50%)
Silver gem (25%)
Gold gem (15%)
Diamond gem (10%)
In this example the Blue gem drops 50% of the time and so on down the line.
If you want the drop to drop more than one item, you can use any of. This evaluates all subbranches and drops if a roll against their probability passes.
Any of
Blue gem (50%)
Silver gem (25%)
Gold gem (15%)
Diamond gem (10%)
In this example if the player rolls 100-90, they would get all 4 gems, 89-75 gold, silver, and blue and so on.
You can define functions to call specific groups of items. This way you can reuse items in multiple drops with multiple enemies.
If we have 3 different enemies that the player will encounter at different levels, we can set up our drops to be reused for each enemy. We can then decide how each will drop items based on what level they are encountered in the game.
Lets say we have the following 3 enemies in our game. The Troll is encountered in levels 1-10, the Marauders in levels 11-20, and the Witches in levels 21-30. We will give out gems for each enemy encountered and then for some enemies we will also drop equipment for the player.
Assignment Requirements:
Create a loot drop system based on the above information.
1. Create a currency system that will drop something for the player each time they kill an enemy. Use the one of and any of with the enemies the player will encounter. You must use both at some point in the system.
2. Add in an equipment element that will drop along with the gems at certain levels of the game and from certain enemies.
a. Requirement of 4+ different enemies with levels
b. Requirement of 4+ types of equipment, spells, weapons, etc.
c. Requirement of a currency system with at least 3 levels.
3. Show what is being dropped by each enemy and the level it coincides with.
4. Show the connection between the enemy and the level and item(s)
5. Provide an Excel sheet showing the information asked.
a. Provide a sheet for the currency, a sheet for the enemies, and a sheet for the equipment.
b. Explain what each item/enemy is/does.
c. Explain what the connection is between each item and level.
If you were using a simple drop you could just

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!