• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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