• 🏆 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!

Events

Status
Not open for further replies.
Level 8
Joined
Dec 9, 2009
Messages
397
There are a few events that are unclear as to what conditions I could use.

1.
Event - Unit - A unit Uses an item
I can't find a condition for "Item used is = Health Potion"
Can i use (Triggering Unit) for this?

2.
Event - Unit - A unit Learns a skill
I can't find a condition for "Skill learned = Devotion Aura"
And for this event can I use (Triggering Unit)?


How could I check what item was used, or what skill is learned?
 
Level 11
Joined
Oct 20, 2007
Messages
342
1.
triggering unit mean that unit who use the item

Item-Type Comparison
  • (Item-type of (Item being manipulated)) Equal to Tome of Experience
2.
triggering unit mean the unit who learn the skill

Hero Skill Comparison
  • (Learned Hero Skill) Equal to Human Archmage - Blizzard
 
Level 8
Joined
Dec 9, 2009
Messages
397
I edited the post as you posted :/

It's all in Jass, and I don't know how/where to accomplish what I want within the system.

BTW I tested the "Unit uses an item" it doesn't seem to work for me to increase the skill of the Unit skill on the unit.
 
Level 11
Joined
Oct 20, 2007
Messages
342
=X... all in jass, i dunno about jass =.=

but the concept is juz like:

X unit use an item,
replace an ability to Y unit,
when Y unit get an ability,
give an ability to X unit.

so wat problem do u face?
want to do it again in GUI?
 
Level 8
Joined
Dec 9, 2009
Messages
397
Yeah, I understand how the equipment system works, not the code within, but how it works.

Exactly what I want to happen:
Paladin equips Devotion Increase , Set level of Devotion Aura to 2 NOTE: Skills are UNIT skills NOT HERO skills.
Paladin unequips Devotion Increase, Set level of Devotion Aura to 1

I need a trigger to check if it's a different item for the same slot being equiped, and so unequips the Devotion Increase.

What i was thinking,
check to see if the "Equipment" unit has the skill of the item.
check what item the hero used.

I also was thinking of giving one of the effects a buff but it didn't seem to give the buff to the hero. also, I don't see any kind of Event to detect if a unit got a buff.
 
Level 11
Joined
Oct 20, 2007
Messages
342
If i am not misunderstand ur meaning:

I need a trigger to check if it's a different item for the same slot being equiped, and so unequips the Devotion Increase.
to check it, use and event when u an unit acquires an item, (event responde)
then put some condition u want, (check what item)
move the item to the position of the unit. (unequips)


check to see if the "Equipment" unit has the skill of the item.
this is imposible if there is no buff occur on hero,
to make it cause a buff effect to hero u can try on some aura.

check what item the hero used.
you may check the item type of the hero at specify slot.
 
Status
Not open for further replies.
Top