Im in the last part of creating my map and need some help if someone wouldnt mind. Im quite [Probably very] noob, so if its not to much work please explain simply.
I want to add that if the player kills 1 ENEMY unit he gets +1 kills to leaderboard and as a count (Since its used to advance to next spawn.. Ex 120 kills= new spawning units)
I **HAD** this trigger:
Currently i have this Trigger:
Unit dies
Events
Unit - Any Unit dies
Local Variables
Conditions
(Owner of (Triggering unit)) > 0
Actions
Variable - Modify Player kills[(Killing player)]: + 1
Leaderboard - Set Leaderboard item text at column 2 and row (Killing player) to (Text(Player kills[(Killing player)]))
Which made +1 for EVERY unit killed, even own units and allied units. (Not good)
SO I changed it to this (Current) condition:
(Owner of (Triggering unit)) == Enemy
I chose the present value of Player relation (Ive tried all, and ive tried != allied units, !=ally, etc aswell)
What the current one does is to NOT give a +1 when killing your own units or allied(player 2), and gives +1 when killing player 4 (enemy).
BUT does not give +1 when enemy kills me and does NOT give +1 when i kill player 3 (enemy..) Its just very very very bugged... Please please(!) help!
.........
The other fix i would like to ask for help with is relative to the other one. When killing structure(buildings) i dont want players to recieve +1. Only regular units.
Thats INSANE how good you are! Thank you very much, works perfectly!
Though i thought it was due to the killing of the main base of the enemy that gave an error becouse of the fact that the building makes the player loose and destroys all other units for them. But it wasent. Im still going to use this though, but a question. In game, if i were to upload this to battlenet, do players se the same errors as i do or is that just for me when i test the map?
You can disable trigger error messages somewhere in the map options (one of the tabs on top of the window in which you edit the loading screen, map name, map bounds, etc.), but if you do you wont see them in local testing. You can still just disable them before uploading and enable them right after that again thouhg :)
I thank you for this! The error of the trigger does not effect the game. Its probably some kind of "i cant count that unit as a kill.. but i still want to" thing!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello,
Im in the last part of creating my map and need some help if someone wouldnt mind. Im quite [Probably very] noob, so if its not to much work please explain simply.
I want to add that if the player kills 1 ENEMY unit he gets +1 kills to leaderboard and as a count (Since its used to advance to next spawn.. Ex 120 kills= new spawning units)
I **HAD** this trigger:
Currently i have this Trigger:
Unit dies
Events
Unit - Any Unit dies
Local Variables
Conditions
(Owner of (Triggering unit)) > 0
Actions
Variable - Modify Player kills[(Killing player)]: + 1
Leaderboard - Set Leaderboard item text at column 2 and row (Killing player) to (Text(Player kills[(Killing player)]))
Which made +1 for EVERY unit killed, even own units and allied units. (Not good)
SO I changed it to this (Current) condition:
(Owner of (Triggering unit)) == Enemy
I chose the present value of Player relation (Ive tried all, and ive tried != allied units, !=ally, etc aswell)
What the current one does is to NOT give a +1 when killing your own units or allied(player 2), and gives +1 when killing player 4 (enemy).
BUT does not give +1 when enemy kills me and does NOT give +1 when i kill player 3 (enemy..) Its just very very very bugged... Please please(!) help!
.........
The other fix i would like to ask for help with is relative to the other one. When killing structure(buildings) i dont want players to recieve +1. Only regular units.
Thanks in advance!
Doite
Use these conditions (at once), they should filter out everything u want.
(Owner of (Killing unit)) > 0
(Owner of (Killing unit)) != (Owner of (Triggering unit))
((Owner of (Triggering unit)) is in (Allies of player (Owner of (Killing unit)))) == false Player in player group
((Unit type of (Triggering unit)) has Structure attribute) == false unit type attribute check
@uiasdnmb:
Thats INSANE how good you are! Thank you very much, works perfectly!
Though i thought it was due to the killing of the main base of the enemy that gave an error becouse of the fact that the building makes the player loose and destroys all other units for them. But it wasent. Im still going to use this though, but a question. In game, if i were to upload this to battlenet, do players se the same errors as i do or is that just for me when i test the map?
You can disable trigger error messages somewhere in the map options (one of the tabs on top of the window in which you edit the loading screen, map name, map bounds, etc.), but if you do you wont see them in local testing. You can still just disable them before uploading and enable them right after that again thouhg :)
@TheAlmaity:
I thank you for this! The error of the trigger does not effect the game. Its probably some kind of "i cant count that unit as a kill.. but i still want to" thing!