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

[Solved] Changing the data value field of a ability in-game

Status
Not open for further replies.
I've been trying to change the amount of gold a unit will receive after picking up a coin.
The 'Players Gold' is the name of the item ability and 'Igol' (Data - Gold Given) is the data field in the particular ability.

  • Drop coins when a unit dies
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Item - Create Gold Coins at (Position of (Triggering unit))
      • Ability - Set Ability: (Item: (Last created item)'s Ability with Ability Code: Player Gold )'s Integer Level Field: Gold Given ('Igol') of Level: 0 to (Number of units in My_Group)
Can anyone explain to me what this 'Integer Level Field' is doing in this action?
Thanks!

EDIT: I've found a more practical way of doing what i'm looking for:

  • Drop coins when a unit dies
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Gold Coins
    • Actions
      • Player - Set (Owner of (Triggering unit)) Current gold to (((Owner of (Triggering unit)) Current gold) + (Number of units in HeroesUnitGroup))
SOLVED!
 
Last edited:
Status
Not open for further replies.
Top