- Joined
- Aug 8, 2022
- Messages
- 11
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.
Thanks!
EDIT: I've found a more practical way of doing what i'm looking for:
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)
-
Events
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))
-
Events
Last edited: