ReDruMMurDeR
Member
- Reaction score
- 0
Um i wud like to know how to add a level restriction on a item ive browsed the forum here and i cudnt find anything for it cud someone help me with it thanks 
i dunno what ur asking but is it if the hero is over x level it cont hold the item???Um i wud like to know how to add a level restriction on a item ive browsed the forum here and i cudnt find anything for it cud someone help me with it thanks![]()
use the trigger i gave add a condition that item being manipulated is = to your item. then change the condition Level of (Triggering unit)) Less than or equal to 20Like ur level 10 and the item REQUIRES level 20 to use
well if you want them to have different levels, yes.basicly i gota add a trigger for every item?
Good idea. However notice that you will have to manually set each item's level in object editor when you create it.You can use the item's level as a restriction. This way you don't have to do a condition for each item. In addition you can add a massage like "Must be X level to carry this item." Here are the triggers:
Trigger:
- Untitled Trigger 001
- Events
- Unit - A unit Acquires an item
- Conditions
- (Item level of (Item being manipulated)) Greater than (Hero level of (Hero manipulating item))
- Actions
- Hero - Drop (Item being manipulated) from (Hero manipulating item)
- Game - Display to (Player group((Owner of (Hero manipulating item)))) the text: (Must be level + ((String((Item level of (Item being manipulated)))) + to carry this item))
Hope this helps.
takes much less timeGood idea. However notice that you will have to manually set each item's level in object editor when you create it.
I agree. But just a note to ReDruMMurDeR do use this system but don't forget to manually set every item level in the object editor, because yeah you need that :Stakes much less time![]()
But he has to set the items to level 1-whatever level he wants. He cannot just have all items level 0 and hope the system feelingparty made to work. this is all for his system, not yours. It may be easier for yours, but that is entirely different systemwell not necessarily.
all depends on his usage and variation in the levels.
if he all items requiring lvl 20, then my method would be easier.
wheres?i dunno what ur asking but is it if the hero is over x level it cont hold the item???
if so here
Trigger:
- item
- Events
- Unit - A unit Acquires an item
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of (Triggering unit)) Greater than or equal to 5
- Then - Actions
- Item - Remove (Item being manipulated)
- Item - x at (pos or your hero)
- Else - Actions
and yes this leaks
pos or your hero
Spell Book Of Fire Level 2
Events
Unit - A unit Acquires an item
Conditions
(Hero level of Hero[(Player number of (Owner of (Triggering unit)))]) Less than 4
(Item-type of (Item being manipulated)) Equal to Spell Book Of Fire - Level 2
Actions
Set ItemPoint = (Position of (Item being manipulated))
Set ItemLevelRequire_PlayerGroup = (Player group((Owner of (Hero manipulating item))))
Item - Move (Item being manipulated) to ItemPoint
Game - Display to HeroRevive_PlayerGroup the text: (You Are Not High Enough Level To Pick Up + (|cffFF0202 + ((Name of (Item being manipulated)) + |r)))
Custom script: call RemoveLocation(udg_ItemPoint)
Custom script: call DestroyForce(udg_ItemLevelRequire_PlayerGroup)