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

[Trigger] Explain what I did wrong

Status
Not open for further replies.
Level 3
Joined
Apr 1, 2017
Messages
47
  • part 1
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Item - Create (Unique)Advanced tactics doctrine at (Center of Region 087 <gen>)
      • Set AdvancedDoctrineItem = (Last created item)
  • Tactic Doctrine
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to (Unique)Advanced tactics doctrine
    • Actions
      • Hero - Make OwnerOfAdvancedTcticsDoctr Heroes gain 120.00% experience from future kills
      • Set OwnerOfTcticsDoctr(Player) = (Owner of AdvancedDoctrineItem)
Here is the item btw
Also tell me if these are necessary
  • Player loses Doctrine tacit item
    • Events
      • Unit - A unit Loses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to (Unique)Advanced tactics doctrine
    • Actions
      • Hero - Make OwnerOfAdvancedTcticsDoctr Heroes gain 100.00% experience from future kills
  • Player sells Doctrine tackit item
    • Events
      • Unit - A unit Pawns an item (to shop)
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to (Unique)Advanced tactics doctrine
    • Actions
      • Hero - Make OwnerOfAdvancedTacticsDoctr Heroes gain 100.00% experience from future kills
 
Level 8
Joined
Jun 13, 2010
Messages
344
The last 2 would be neccessary in my opinion if I understand your idea correctly. The XP boost should only be available, when the Hero carries the item, right?
For that reason, when he loses it, he should not have the XP boost any longer. Unless you make it a tome.

Why don't you make a trigger and set the unit carrying the item as a variable. Like:

Event:
Hero acquires item
Condition:
Equal to item
Action:
Set unit variable
Set item variable
Set experience for player owner of unit carrying item
 
Status
Not open for further replies.
Top