• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

how to restrict items?

Status
Not open for further replies.
Level 2
Joined
Dec 2, 2008
Messages
9
Hello:
how can i made that a hero needs to be at some specific level to buy a item, if the hero isn't at that level, it cant buy that item. Like diablo maps, they restrict from clases (paladin,barbarian,etc), i wanna restrict from level of the hero.

Thanks.

PD: sorry for my english, i am argentinian.
:D
 
Level 18
Joined
Sep 27, 2005
Messages
2,069
Untitled Trigger 001
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Sold Item)) Equal to Claws of Attack +15
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero level of (Buying unit)) Greater than or equal to 5
Then - Actions
Do nothing
Else - Actions
Item - Remove (Sold Item)
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
perez, triggering is 1 of the most important things in a map. If you can't make triggers, then go look for a triggerer who will do it for the entire map. This mean he/she is part of your team, so don't treat it like a single request.
 
Level 2
Joined
Dec 2, 2008
Messages
9
perez, triggering is 1 of the most important things in a map. If you can't make triggers, then go look for a triggerer who will do it for the entire map. This mean he/she is part of your team, so don't treat it like a single request.

ok I'll search for somebody

Untitled Trigger 001
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Sold Item)) Equal to Claws of Attack +15
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero level of (Buying unit)) Greater than or equal to 5
Then - Actions
Do nothing
Else - Actions
Item - Remove (Sold Item)

, thanks a lot :)

You answer very fast! :)
 
Status
Not open for further replies.
Top