seems my other thread was a bit full of problems. ;) I need to fix 1 mainproblem, to go on with my map.
I got this killtrigger to count the creepkills, and it works fine:
Event - Any Unit dies
Condition - Owner of Triggering Unit == 14
Condition - Owner of Triggerung unit != Owner of Killung unit
Condition - Or
- All User-Players in here
Actions - Variable - Modify Creepkills[0] +1
Leaderboard - Set Killboard item text at colum 3 and row (owner of (killing unit)) to (text(creepkills[0]))
NOW i want a 2nd and 3nd kill trigger. For "Kills" and "Teamkills" (2 Teams Playing facing on this map)
But i can not find the right conditions. Tryed alot. I just need a conditions that checks if killing unit =/ allied with triggering unit. but i cant find this / get it working.
not works. when you do the first kill it jumps to 7 kills and not changes anymore... whyever. also computer player get instant 25 kills and stuff like that. any mistakes in my triggers?
not works. when you do the first kill it jumps to 7 kills and not changes anymore... whyever. also computer player get instant 25 kills and stuff like that. any mistakes in my triggers?
yes..... your not incrementing your array that holds your "kills" value... your adding killingplayer to itself + 1 and then updating the leader board with the value in KillingPlayer
also when you use the actions to set those temp variables..... you can set those values where you declare the variables up top...... like i have it in my example...
you dont need to set those variables with the actions... do it where you declare them
I also suggest you seperate the part where you update the leader board from these types of triggers....
to simplify your life... if you have lots of things you want to track in the leader board its much easier to make a function specifically for updating the leader board and call that when you know it needs to be updated
fixed it. but it still not works, now no kills at all granted. i will have a small break now to eat and watch over the triggers again after. big thanks so far soulcarverr :) wasting your time for a noob like me :)
well, i am using "or", cause i want this thing to trigger with each combination of friendly/enemy user players. maybe there is a faster way to do that? but this one is also very easy, just copy paste and change player.
X10 just means for 10 players, cause i not wanted to write all down
Hi guys,
seems my other thread was a bit full of problems. ;) I need to fix 1 mainproblem, to go on with my map. I got this killtrigger to count the creepkills, and it works fine:
Event - Any Unit dies
Condition - Owner of Triggering Unit == 14 Condition - Owner of Triggerung unit != Owner of Killung unit Condition - Or - All User-Players in here
Actions - Variable - Modify Creepkills[0] +1 Leaderboard - Set Killboard item text at colum 3 and row (owner of (killing unit)) to (text(creepkills[0]))
NOW i want a 2nd and 3nd kill trigger. For "Kills" and "Teamkills" (2 Teams Playing facing on this map)
But i can not find the right conditions. Tryed alot. I just need a conditions that checks if killing unit =/ allied with triggering unit. but i cant find this / get it working.
Please help :(
@Tarbald: Go
Heres a way you can do it with out the specific condition cause off the top of my head I cant think of the condition
BTW why do you check to see that the triggering unit is owned by player 14?
Kill Tracker
Function UpdateLeaderBoard(Player) [return type:none , threaded, action]
where i set
TempAlliedPlayers
to be the triggering untis allies... I believe there is a condition to see if a "player" is part of a playergroup...
but cause I cant think of it.... I just loop through it instead
http://img684.imageshack.us/f/killso.jpg/
not works. when you do the first kill it jumps to 7 kills and not changes anymore... whyever. also computer player get instant 25 kills and stuff like that. any mistakes in my triggers?
yes..... your not incrementing your array that holds your "kills" value... your adding killingplayer to itself + 1 and then updating the leader board with the value in KillingPlayer
also when you use the actions to set those temp variables..... you can set those values where you declare the variables up top...... like i have it in my example...
you dont need to set those variables with the actions... do it where you declare them
I also suggest you seperate the part where you update the leader board from these types of triggers....
to simplify your life... if you have lots of things you want to track in the leader board its much easier to make a function specifically for updating the leader board and call that when you know it needs to be updated
http://img600.imageshack.us/i/kills2.jpg/
hmmmm
cant get the "==" there... not avaible, wheres the mistake?
@Tarbald: Go
look closer
You have
Should be
then
you have
should be
you got the modify from my poorly written example..... if it says = something it needs to be "set variable"
fixed it. but it still not works, now no kills at all granted. i will have a small break now to eat and watch over the triggers again after. big thanks so far soulcarverr :) wasting your time for a noob like me :)
@Tarbald: Go
umm put up another screen shot of your triggers.... you should get that to increment....
http://img824.imageshack.us/f/kill3n.jpg/
i think i got a problem with the killing player interger, cant get it -1 and owner of killing unit
@Tarbald: Go
nah you dont need the -1
just how you got it is fine...
i tested it 3 times like that, there are no kills generated on the scoreboard :(
got a working trigger now. no variables needed.(just the gobal killcounter)
condition: OR X10 Owner of killing unit (All USER Players here)
OR X10 Owner of triggering unit (ALL USER Players here)
Owner of triggering unit =! owner of killing unit
Player (Killing Player) treats Player (Triggering Player) als enemy = true
@Tarbald: Go
post a screen shot... sounds like that should do the trick...
not sure why your using "or" and what is the "X10"
other then that good job
http://img141.imageshack.us/i/killtrigger.jpg/
well, i am using "or", cause i want this thing to trigger with each combination of friendly/enemy user players. maybe there is a faster way to do that? but this one is also very easy, just copy paste and change player.
X10 just means for 10 players, cause i not wanted to write all down