ok so this is just a test for future references, but iu like idea of drops same item but randomize the stats it has.
i got it set up like this to test atm, the description and tooltip change, however the name doesn't and it doesn't add the ability to the item like it meant to
in end after ig et it working, it gonna depend on ur level when u kill the enemy, then it will roll between a dif set of items, per level, so higher level u are the more stats it gives.
ATM trying to figure out how tog et it to add the ability and change item name
then i will go make the full system on my map.
and Of Cos ScreenShot, and Test Map.
i got it set up like this to test atm, the description and tooltip change, however the name doesn't and it doesn't add the ability to the item like it meant to
-
DropItem
-
Events
- Unit - A unit Dies
-
Conditions
- (Unit-type of (Dying unit)) Equal to Peasant
- (Owner of (Dying unit)) Equal to Neutral Hostile
-
Actions
- Item - Create Claws at (Position of (Dying unit))
- Set VariableSet TheDrop = (Last created item)
- Wait 0.10 seconds
- Item - Set Name of TheDrop to ((Name of TheDrop) + ( - |cffff8080Level|r: + (String((Hero level of (Killing unit))))))
- Set VariableSet SetInt[1] = (Random integer number between 1 and 3)
- Set VariableSet SetInt[2] = (Random integer number between 1 and 3)
- Set VariableSet SetInt[3] = (Random integer number between 1 and 3)
- -------- Armor --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SetInt[1] Equal to 1
-
Then - Actions
- Set VariableSet IDropString[1] = |cff808080Armor|r: +1|n
- Item - For Item: TheDrop, Add Ability: Armor (+1)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SetInt[1] Equal to 2
-
Then - Actions
- Set VariableSet IDropString[1] = |cff808080Armor|r: +2|n
- Item - For Item: TheDrop, Add Ability: Armor (+2)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SetInt[1] Equal to 3
-
Then - Actions
- Set VariableSet IDropString[1] = |cff808080Armor|r: +3|n
- Item - For Item: TheDrop, Add Ability: Armor (+3)
- Else - Actions
-
If - Conditions
- -------- Damage --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SetInt[2] Equal to 1
-
Then - Actions
- Set VariableSet IDropString[2] = |cffff0000Damage|r: +1|n
- Item - For Item: TheDrop, Add Ability: Damage (+1)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SetInt[2] Equal to 2
-
Then - Actions
- Set VariableSet IDropString[2] = |cffff0000Damage|r: +2|n
- Item - For Item: TheDrop, Add Ability: Damage (+2)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SetInt[2] Equal to 3
-
Then - Actions
- Set VariableSet IDropString[2] = |cffff0000Damage|r: +3|n
- Item - For Item: TheDrop, Add Ability: Damage (+3)
- Else - Actions
-
If - Conditions
- -------- Speed --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SetInt[3] Equal to 1
-
Then - Actions
- Set VariableSet IDropString[3] = |cffffff00Movement|r: +25|n
- Item - For Item: TheDrop, Add Ability: Speed (+25)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SetInt[3] Equal to 2
-
Then - Actions
- Set VariableSet IDropString[3] = |cffffff00Movement|r: +45|n
- Item - For Item: TheDrop, Add Ability: Speed (+45)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SetInt[3] Equal to 3
-
Then - Actions
- Set VariableSet IDropString[3] = |cffffff00Movement|r: +75|n
- Item - For Item: TheDrop, Add Ability: Speed (+75)
- Else - Actions
-
If - Conditions
- -------- Item Description --------
- Set VariableSet IDropString[0] = ((Name of TheDrop) + ( - |cffff8080Level|r: + ((String((Hero level of (Killing unit)))) + |n|n)))
- Set VariableSet IDropDescription = (IDropString[0] + (IDropString[1] + (IDropString[2] + IDropString[3])))
- Item - Set Name of TheDrop to ((Name of TheDrop) + ( - |cffff8080Level|r: + (String((Hero level of (Killing unit))))))
- Item - Set Description of TheDrop to IDropDescription
- Item - Set Extended Tooltip of TheDrop to IDropDescription
-
Events
in end after ig et it working, it gonna depend on ur level when u kill the enemy, then it will roll between a dif set of items, per level, so higher level u are the more stats it gives.
ATM trying to figure out how tog et it to add the ability and change item name
then i will go make the full system on my map.
and Of Cos ScreenShot, and Test Map.
Attachments
Last edited: