• 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.

Item Question

Status
Not open for further replies.
Level 2
Joined
Jun 20, 2004
Messages
20
I want to make an item that has one charge and boosts the agility of the player that uses it for 5 seconds.

I also want to make an item that has one charge that reveals the whole map for 5 seconds.

Thanks! :D
 
Level 13
Joined
May 5, 2004
Messages
1,330
I think the second one could be done by this trigger, using a dummy item with one charge (better having variables, but at first an easy solution)


Events
Unit - A unit Uses an item
Conditions
(Item-type of (Item being manipulated)) Equal to [Dummy Item]
Actions
Visibility - Create an initially Enabled visibility modifier for (Owner of (Hero manipulating item)) emitting Visibility across (Playable map area)
Wait 5.00 seconds
Visibility - Disable (Last created visibility modifier)


Didn't test it, perhaps you have to add this trigger after visibility modifier creation:

Visibility - Enable (Last created visibility modifier)
 
Level 5
Joined
Jul 11, 2004
Messages
183
TheWickerMan said:
Notice that this could have some really wierd effects if another player uses the same type of item before the 5 seconds have passed. To be really sure, use variables.

thats is right mahn ! why dont we use item instead of edit the triggers...because that thing is better with item ..if we use that in trigger it might cause problem i knew it and i have tried it...sometimes Fuked up Eh :) .....:)
 
Level 13
Joined
May 5, 2004
Messages
1,330
@ Adrian5

Öhm, this item already exists, but I only know the german name of it (Allwissenheitstrank)

It's in the category "Charged"

@ randym4a1

I gave the trigger idea because not every ability is working with an item (although you make it an item ability). But in this case...look the lines above :?
 
Status
Not open for further replies.
Top