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 copper coin and basically the script would know to drop a random number of copper coins between and 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
Silver gem
Gold gem
Diamond gem
In this example the Blue gem drops 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
Silver gem
Gold gem
Diamond gem
In this example if the player rolls they would get all gems, 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 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 enemies in our game. The Troll is encountered in levels the Marauders in levels and the Witches in levels 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.
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.
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 different enemies with levels
b Requirement of types of equipment, spells, weapons, etc.
c Requirement of a currency system with at least levels.
Show what is being dropped by each enemy and the level it coincides with.
Show the connection between the enemy and the level and items
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 itemenemy isdoes
c Explain what the connection is between each item and level.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
