wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Starcraft 2 Modding
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



 
 
Thread Tools Search this Thread
Old 06-08-2010, 10:25 PM   #1
Zero
User
 
Zero's Avatar
 
Join Date: Aug 2002
Posts: 300

Zero has little to show at this moment (4)

Send a message via AIM to Zero Send a message via MSN to Zero
Default Trigger Help

Ok so my leaderboard isn't updating when there is more then one player on a team. These are the triggers:

Unit Dies
Trigger:
Leaderboard Unit Dies
Collapse Events
Unit - Any Unit dies
Collapse Local Variables
p = 0 <Integer>
Collapse Conditions
(Unit type of (Triggering unit)) != Auto Turret (Lv1)
(Unit type of (Triggering unit)) != Auto Turret (Lv2)
(Unit type of (Triggering unit)) != Auto Turret (Lv3)
(Unit type of (Triggering unit)) != Teleporter Entrance
(Unit type of (Triggering unit)) != Teleporter Exit
Collapse Actions
Collapse General - If (Conditions) then do (Actions) else do (Actions)
Collapse If
((Owner of (Triggering unit)) is in Team 1) == true
((Owner of (Killing unit)) is in Team 1) == false
Collapse Then
Variable - Set p = (Killing player)
Variable - Set Kills[p] = (Kills[p] + 1)
Leaderboard - Set Leaderboard item text at column 2 and row (p + 1) to (Text(Kills[p]))
Else
Collapse General - If (Conditions) then do (Actions) else do (Actions)
Collapse If
((Owner of (Triggering unit)) is in Team 2) == true
((Owner of (Killing unit)) is in Team 2) == false
Collapse Then
Variable - Set p = (Killing player)
Variable - Set Kills[p] = (Kills[p] + 1)
Leaderboard - Set Leaderboard item text at column 2 and row (p + 1) to (Text(Kills[p]))
Else

Update Leaderboard

Trigger:
Leaderboard Update
Collapse Events
Timer - Every 0.3 seconds of Game Time
Local Variables
Conditions
Collapse Actions
Leaderboard - Set Leaderboard item text at column 2 and row 8 to (Text(Kills[(1 + (Kills[2] + (Kills[3] + (Kills[4] + (Kills[5] + Kills[6])))))]))
Leaderboard - Set Leaderboard item text at column 2 and row 16 to (Text(Kills[(7 + (Kills[8] + (Kills[9] + (Kills[10] + (Kills[11] + Kills[12])))))]))
Leaderboard - Set Leaderboard item text at column 3 and row 8 to (Text(Caps[(1 + (Caps[2] + (Caps[3] + (Caps[4] + (Caps[5] + Caps[6])))))]))
Variable - Set Total Caps = Caps[(1 + (Caps[2] + (Caps[3] + (Caps[4] + (Caps[5] + Caps[6])))))]
Leaderboard - Set Leaderboard item text at column 3 and row 16 to (Text(Caps[(7 + (Caps[8] + (Caps[9] + (Caps[10] + (Caps[11] + Caps[12])))))]))
Variable - Set Total Caps 2 = Caps[(7 + (Caps[8] + (Caps[9] + (Caps[10] + (Caps[11] + Caps[12])))))]
Collapse General - If (Conditions) then do (Actions) else do (Actions)
Collapse If
Start Counting Caps == true
Collapse Then
Collapse General - If (Conditions) then do (Actions) else do (Actions)
Collapse If
Total Caps > Total Caps 2
Collapse Then
Leaderboard - Set Leaderboard item text at column 3 and row (18 + 0) to "Team 1"
Collapse Else
Leaderboard - Set Leaderboard item text at column 3 and row (18 + 0) to "Team 2"
Else

What it looks like:



What am I doing wrong?
__________________
Zero is offline  
Sponsored Links - Login to hide this ad!
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 11:12 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services