| 02-10-2004, 05:06 PM | #1 |
What do i have to do, to make a weapon that you only can buy if you have a special hero and the hero have to be in lv 50 or above. Ex: i have made a custom weapon and i want only on special hero to could buy it and use it and the hero have to be in lv 50 or above. Do i have to use triggers or the object editor?? |
| 02-10-2004, 05:29 PM | #2 |
Well, theres no way to make the item require specific things in the object editor. But you can use triggers. Code:
Event
-Unit acquires an item
Actions
-If/Then/Else
-If
-Item being manipulated equal to (Your Item)
-Triggering unit is a (Hero Type) equal to True
-Level of Triggering unit is greater than or equal to 50
-Then
-Do Nothing
-Else
-Drop (Item being Manipulated)If that doesn't work, Then I don't know. |
