• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[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
 
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)
 
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
 
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.
Back
Top