Hi, I want to make a simple drop system where every time a unit dies there is a small chance to get 1 of many items at random. The items will be non-recurring (only drop once per game). I don't want them to drop in a linear format, and I think that's what I'm having the most trouble understanding. Eg. the first item to drop could be #6, the second #1, the third #8. Will this suffice/are there issues/could it be done better? Thanks!
-
ItemDrop RiddleMap
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Random real number between 0.00 and 100.00) Less than or equal to 0.25
-
-
Actions
-
Set VariableSet ItemDropTempPoint = (Position of (Dying unit))
-
For each (Integer ItemDropInteger) from 1 to 10, do (Actions)
-
Loop - Actions
-
Set VariableSet ItemDropInteger = (Random integer number between 1 and 10)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
ItemDropBoolean[ItemDropInteger] Equal to False
-
-
Then - Actions
-
Custom script: exitwhen true
-
Set VariableSet ItemDropBoolean[ItemDropInteger] = True
-
Item - Create ItemDropType[ItemDropInteger] at ItemDropTempPoint
-
Custom script: call RemoveLocation(udg_ItemDropTempPoint)
-
-
Else - Actions
-
-
-
-
-