[Spell] Adding Charges On Iten Per Assist

Status
Not open for further replies.
Level 3
Joined
Nov 21, 2016
Messages
30
i need to make a system to add charges on a iten per assist with hit time limit of 30s

like if you hit the enemy once and he dies within 30s you gain a assist and a iten charge
 
Level 12
Joined
May 22, 2015
Messages
1,051
Have you implemented something to detect assists already? Adding the charge is fairly easy. It is something like
  • set tempItem = Item carried by (assistUnit) of type (myAssistItem)
  • Item - Set charges remaining of (tempItem) to ((charges remaining of (tempItem)) + 1)
 
Level 3
Joined
Nov 21, 2016
Messages
30
Have you implemented something to detect assists already? Adding the charge is fairly easy. It is something like
  • set tempItem = Item carried by (assistUnit) of type (myAssistItem)
  • Item - Set charges remaining of (tempItem) to ((charges remaining of (tempItem)) + 1)
that part of the trigger its easy, the thing its check the assist
 
Level 12
Joined
May 22, 2015
Messages
1,051
This is going to get super complex... Do you know JASS? I really don't know how to make GUI triggers to handle that.

In any case, you could look for a system to do this for you. I am sure that something like this has been created before.

From quickly thinking about it, I think you need to have a DDS in your map, and need to know how to use hashtables.
 
Status
Not open for further replies.
Top