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

[Solved] (solved)multiboard kill counter works for one unit but not another

Status
Not open for further replies.
Level 4
Joined
Dec 1, 2011
Messages
41
this code works for another unit that is a rat but there is only 2 rats to keep count of. the shades have 3 but the kill counter only shows when i kill 1 and not for the 2nd and 3rd on the multiboard. its the same exact code as the one for the rats but for some reason the one for the shades wont work.

SHADE DIES
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to shade
Actions
Set shadedeaths[(Player 1 (Red) Units Killed)] = (shadedeaths[(Player 1 (Red) Units Killed)] + 1)
Quest - Flash the quest dialog button
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (String(shadedeaths[(Player 1 (Red) Units Killed)]))
 
Level 4
Joined
Dec 1, 2011
Messages
41
kaijyuu, player 1 is the killer and shade is a neutral hostile, what player number should i use?
millzy, player 1 is the killer and shade is the dying unit so would i use owner of killing unit instead of owner of dying unit?

its a 1 player rpg game so i only need the kill counter to show up on the multiboard as a quest and count from 0 deaths to 3 deaths then it will say done and wont need the kill counter anymore. it will so far show up 0 deaths, then 1 death, but doesnt show for 2 deaths and 3 deaths, it still shows 1 death, but works when finished and says done.
 
Last edited by a moderator:
Status
Not open for further replies.
Top