After finally adding the leveling effects to my heroes I decided I wanted to include a small feature where the model I used as an effect would be shaded reddish in color for the evil forces in my map.
Basically all I need to know is can you use the color field under the model tab to shade the model to a desired color. OR do you actually need to edit the model using one of those modelling programs I have no idea how to use.
Weird, I copied the related triggers into a new map with an example unit and the leaderboard worked fine. Maybe my original map became bugged or something? Anyways I'll post the map just in case there are any flaws.
Edit: Actually yeah I found what the problem was I just don't know how to fix it. It revolves around the number of player trigger where for every active player it detects it adds a new leaderboard :/
The only reason I thought it worked for this map is because I didn't change the player properties tab.
DOUBLE EDIT: I FIXED THE PROBLEM WOOOHOO. Anyways thanks for posting the tutorial Maul, helps us noobies out alot.
I followed this tutorial on how to make a leaderboard on Starcraft 2: http://forums.sc2mapster.com/development/tutorials/5906-triggers-leaderboard-tutorial/#p2
I did do quite a bit of messing around with the world editor when I first got warcraft 3 so I modified the trigger a little bit. My problem involves the map creating two duplicate leaderboards for no apparant reason. So I'll post what I've got.
Create Leaderboard
Actions
Leaderboard - Create a leaderboard with 3 columns and (Player Count + 1) rows,
with the name "Star Wars Battlefront", and using (100%, 100%, 100%) color.
Variable - Set Leaderboard = (Last created leaderboard)
Leaderboard - Set Leaderboard item text at column 1 and row 1 to "Players"
Leaderboard - Set Leaderboard item text at column 2 and row 1 to "Experience"
Leaderboard - Set Leaderboard item text at column 3 and row 1 to "Health"
Timer - Start Update Timer as a Repeating timer that will expire in 1.0 Game Time seconds
Trigger - Turn Update Leaderboard On
Now I've isolated the duplicate leaderboards problem to the trigger above but in case you need to see the update leaderboard trigger here it is. Basically it periodically sets the Player names on the leaderboard, the player's experience, and the player's main unit health.
Update Leaderboard (Initially off)
Events
Timer - Update Timer expires
Local Variables
Player = 1 <Integer>
Position = 2 <Integer>
General - While (Conditions) are true, do (Actions)
Conditions
Not
Conditions
Player > Player Count
Leaderboard - Set Leaderboard item text at column 1 and row Position to (Name of player Player)
Leaderboard - Set Leaderboard item text at column 2 and row Position to (Text(Experience[Player]))
Leaderboard - Set Leaderboard item text at column 3 and row Position to ((Text((Selected Unit[Player]
Life (Percent) (Current))) with 0 decimal places) + "%")
Variable - Modify Player: + 1
Variable - Modify Position: + 1
If you can help I'd greatly, greatly, appreciate it. If you need more info just post and I'll put on everything I've got regarding this specific trigger.
Edit: And sorry it is so spread out it was the only way I could get it to slightly resemble the trigger.
0
After finally adding the leveling effects to my heroes I decided I wanted to include a small feature where the model I used as an effect would be shaded reddish in color for the evil forces in my map.
Basically all I need to know is can you use the color field under the model tab to shade the model to a desired color. OR do you actually need to edit the model using one of those modelling programs I have no idea how to use.
0
@Above poster:
I think your failing to realize that alot of the original post was filled with sarcasm.
0
Weird, I copied the related triggers into a new map with an example unit and the leaderboard worked fine. Maybe my original map became bugged or something? Anyways I'll post the map just in case there are any flaws.
Edit: Actually yeah I found what the problem was I just don't know how to fix it. It revolves around the number of player trigger where for every active player it detects it adds a new leaderboard :/
The only reason I thought it worked for this map is because I didn't change the player properties tab.
DOUBLE EDIT: I FIXED THE PROBLEM WOOOHOO. Anyways thanks for posting the tutorial Maul, helps us noobies out alot.
0
I followed this tutorial on how to make a leaderboard on Starcraft 2: http://forums.sc2mapster.com/development/tutorials/5906-triggers-leaderboard-tutorial/#p2 I did do quite a bit of messing around with the world editor when I first got warcraft 3 so I modified the trigger a little bit. My problem involves the map creating two duplicate leaderboards for no apparant reason. So I'll post what I've got.
Create Leaderboard Actions Leaderboard - Create a leaderboard with 3 columns and (Player Count + 1) rows, with the name "Star Wars Battlefront", and using (100%, 100%, 100%) color.
Variable - Set Leaderboard = (Last created leaderboard)
Leaderboard - Set Leaderboard item text at column 1 and row 1 to "Players"
Leaderboard - Set Leaderboard item text at column 2 and row 1 to "Experience"
Leaderboard - Set Leaderboard item text at column 3 and row 1 to "Health"
Timer - Start Update Timer as a Repeating timer that will expire in 1.0 Game Time seconds
Trigger - Turn Update Leaderboard On
Now I've isolated the duplicate leaderboards problem to the trigger above but in case you need to see the update leaderboard trigger here it is. Basically it periodically sets the Player names on the leaderboard, the player's experience, and the player's main unit health.
Update Leaderboard (Initially off)
Events
Timer - Update Timer expires
Local Variables
Player = 1 <Integer>
Position = 2 <Integer>
General - While (Conditions) are true, do (Actions)
Conditions
Not
Conditions
Player > Player Count
Leaderboard - Set Leaderboard item text at column 1 and row Position to (Name of player Player)
Leaderboard - Set Leaderboard item text at column 2 and row Position to (Text(Experience[Player]))
Leaderboard - Set Leaderboard item text at column 3 and row Position to ((Text((Selected Unit[Player]
Life (Percent) (Current))) with 0 decimal places) + "%")
Variable - Modify Player: + 1
Variable - Modify Position: + 1
If you can help I'd greatly, greatly, appreciate it. If you need more info just post and I'll put on everything I've got regarding this specific trigger.
Edit: And sorry it is so spread out it was the only way I could get it to slightly resemble the trigger.