Unit use an item trigger

Aiden

Member
Reaction score
0
Untitled Trigger 001
Events
Unit - A unit Uses an item
Conditions
((Item-type of (Item being manipulated)) is A powerup) Equal to True
Actions
Game - Display to (All players) the text: Llaalalala

Im trying to use this condition:
Item-type of (Item being manipulated)) Equal to Item X

But i cant !
please help
 

Dirac

22710180
Reaction score
147
Well, item-type conditions are global for every item of that type, you can't relate item-type to item X (Item type of (item being manipulated) equal to MyItem) makes no sense, since "MyItem" isn't a item-type but an item itself. Other than that i don't understand what are you asking. Please be more specific
 

Cyte

New Member
Reaction score
0
Trigger:
  • Test Skill
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • 100 Gold Equal to (Item-type of (Item being manipulated))
    • Actions
      • Game - Display to (All players) for 30.00 seconds the text: lol


1. Make sure your item is usable if you want to use:
Events
Unit - A unit Uses an item
2. Usable items must be in your heroes/units inventory slot; Try disabling the "Stat - Use automatically when acquired" if you insist of using that event.
 

Aiden

Member
Reaction score
0
Well i think so it easy what i what, but i really dont know how.
One hero use the item.
Then appears the message.
 

Dirac

22710180
Reaction score
147
Oh, you didn't explain that at all.

You're using a boolean comparison for condition, scroll down and you'll find the "Item-Type Comparison" there is what you need, as simple as that
 

Cyte

New Member
Reaction score
0
Trigger:
  • Events
    • Unit - A unit Acquires an item


Just change this and you are done. Taking items that are "Automatically use when acquired" =/= Unit - A unit Uses an item
 

Aiden

Member
Reaction score
0
Untitled Trigger 001
Events
Unit - A unit Uses an item
Conditions
((Hero manipulating item) has an item of type Dicemaster) Equal to True
Actions
Set Diceroll[(Player number of (Owner of (Triggering unit)))] = (Random integer number between 1 and 7)
Set Dicerolldoble[(Player number of (Triggering player))] = (Random integer number between 1 and 3)
Game - Display to (All players) the text: (PlayerNames[(Player number of (Triggering player))] + ( lanzó el dado y el resultado fue ...[ + ((String(Diceroll[(Player number of (Triggering player))])) + ])))

Thanks a lot guys.
now works with this
 

Aiden

Member
Reaction score
0
(Item-type of (Target item of ability being cast)) Equal to Dicemaster
well i used that but nothing do :c
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top