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
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
Like ur level 10 and the item REQUIRES level 20 to use
basicly i gota add a trigger for every item?
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.
takes much less time
well 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.
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)