| 06-16-2004, 05:02 PM | #1 |
ok i have made a v-tec map for wc3:tft... its been around for a while... and its still in beta because im lazy and dont work on it much... but i've noticed a HUGE bug i cant seem to fix. say i got 2 archers goin head to head... they both fire at the exact same time... they both die. only 1 person gets the point. or say 1 fires like half a second behind the other ones.. but since the arrows float a while. the first one to die doesn't get his kill... even tho he killed the guy... because he killed him while he was dead it doesn't count. i cant get the leader board to pick this up event: -Unit - A unit Dies condition: -((Killing unit) belongs to an enemy of (Owner of (Dying unit))) Equal to True actions: -If (((Owner of (Killing unit)) is in Team1) Equal to True) then do (Set Scores[(Player number of (Owner of (Killing unit)))] = (Scores[(Player number of (Owner of (Killing unit)))] + 1)) else do (Do nothing) -If (((Owner of (Killing unit)) is in Team2) Equal to True) then do (Set Scores[(Player number of (Owner of (Killing unit)))] = (Scores[(Player number of (Owner of (Killing unit)))] + 1)) else do (Do nothing) -If (((Owner of (Killing unit)) is in Team1) Equal to True) then do (Set Scores[(Player number of Neutral Hostile)] = (Scores[(Player number of Neutral Hostile)] + 1)) else do (Do nothing) -If (((Owner of (Killing unit)) is in Team2) Equal to True) then do (Set Scores[(Player number of Neutral Passive)] = (Scores[(Player number of Neutral Passive)] + 1)) else do (Do nothing) -Leaderboard - Change the value for (Owner of (Killing unit)) in TheLeaderBoard to Scores[(Player number of (Owner of (Killing unit)))] -Leaderboard - Change the value for Neutral Hostile in (Last created leaderboard) to Scores[(Player number of Neutral Hostile)] -Leaderboard - Change the value for Neutral Passive in (Last created leaderboard) to Scores[(Player number of Neutral Passive)] theres my trigger... any help is welcome scores is a interger variable. and neutral's are set up for entire team scores. |
| 06-17-2004, 09:20 AM | #2 |
Try Owner of killing unit belongs to an owner of dying unit, just in case. |
| 06-17-2004, 09:40 AM | #3 | |
Quote:
tryed it... and didn't work... but i fixed it anyways... the remove units was messing it up |
