• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Solved] Kill Points Reward

Status
Not open for further replies.

xplicitjohn

X

xplicitjohn

Hi !

I want to make it that whoever gets 50 Kills, they get a reward. Similar to how COD works :P except you get items instead.

This is how my multiboard counts the kill points. I just cant detect whoever gets 50 points =(

  • Tally Score
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Owner of (Killing unit)) controller) Equal to User
    • Actions
      • Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row Multiboard_Spots[(Player number of (Owner of (Killing unit)))] to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
 
You could use an integer variable.

Set variable = Player nr of owner
If Kills[variable] == 49 then
Pick all players - if picked player != Player(variable) then defeat else victory endif
else set Kills[variable] = Kills[variable] + 1
endif

Ive managed to get that working. Ive got a new problem .

How do i trigger so that an ability will be added to a hero , but it goes into a spell book ?

Edit : Dont Worry, got it wokring! Thanks!
 
Status
Not open for further replies.
Back
Top