• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your 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)))]))
 

xplicitjohn

X

xplicitjohn

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.
Top