HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Leaderboard & dialog button probs.

08-05-2003, 02:38 PM#1
Faldar
Hi there, fellow mappers. My first post is a bunch of questions, sorry for that :(. I'm hoping you can help me with these problems and with that helping me become a better mapper.


1)I want to make a leaderboard that puts the names of four portals on it and the values behind it have to be either the player number or the whole player name (doesn't matter really) of the person/AI owning the portal.

When I try to make it, I have to put the player left instead of right, so I'm sure I'm doing it all wrong..but I do not have a clue how to do it.

2)I've been trying some things out with dialog buttons and I've entcountered a problem.

Code:
dialog 
Events 
Time - Elapsed game time is 1.00 seconds 
Conditions 
Actions 
Dialog - Change the title of Race to Pick a race to play... 
Dialog - Create a dialog button for Race labelled Human 
Set Human = (Last created dialog Button) 
Dialog - Create a dialog button for Race labelled Orc 
Set Orc = (Last created dialog Button) 
Dialog - Create a dialog button for Race labelled Undead 
Set Undead = (Last created dialog Button) 
Dialog - Create a dialog button for Race labelled Night Elf 
Set NightElf = (Last created dialog Button) 
Dialog - Create a dialog button for Race labelled Draenai 
Set Draenai = (Last created dialog Button) 
Dialog - Create a dialog button for Race labelled Corruption 
Set Corruption = (Last created dialog Button) 
Dialog - Create a dialog button for Race labelled Naga 
Set Naga = (Last created dialog Button) 
Dialog - Create a dialog button for Race labelled Chaos 
Set Chaos = (Last created dialog Button) 
Dialog - Create a dialog button for Race labelled Burning Legion 
Set BurningLegion = (Last created dialog Button) 
Player Group - Pick every player in (All players controlled by a User player) and 
do (Dialog - Show Race for (Picked player)) 

that is the main trigger. It is workin fine.

Code:
units 
Events 
Dialog - A dialog button is clicked for Race 
Conditions 
Actions 
Wait 1.00 seconds 
Player Group - Pick every player in (All players matching ((Clicked dialog button) Equal to Orc)) and 
do (Unit - Create 5 Peon for (Matching player) at ((Matching player) start location) facing Default building facing degrees) 
Player Group - Pick every player in (All players matching ((Clicked dialog button) Equal to NightElf)) and 
do (Unit - Create 5 Wisp for (Matching player) at ((Matching player) start location) facing Default building facing degrees) 
Player Group - Pick every player in (All players matching ((Clicked dialog button) Equal to Undead)) and 
do (Unit - Create 5 Acolyte for (Matching player) at ((Matching player) start location) facing Default building facing degrees) 
Player Group - Pick every player in (All players matching ((Clicked dialog button) Equal to Human)) and 
do (Unit - Create 5 Peasant for (Matching player) at ((Matching player) start location) facing Default building facing degrees) 
Player Group - Pick every player in (All players matching ((Clicked dialog button) Equal to Draenai)) and 
do (Unit - Create 5 Draenei Laborer for (Matching player) at ((Matching player) start location) facing Default building facing degrees) 
Player Group - Pick every player in (All players matching ((Clicked dialog button) Equal to Corruption)) and 
do (Unit - Create 5 Blasp for (Matching player) at ((Matching player) start location) facing Default building facing degrees) 
Player Group - Pick every player in (All players matching ((Clicked dialog button) Equal to Chaos)) and 
do (Unit - Create 5 Chaos Peon for (Matching player) at ((Matching player) start location) facing Default building facing degrees) 
Player Group - Pick every player in (All players matching ((Clicked dialog button) Equal to Naga)) and 
do (Unit - Create 5 Mur'gul Slave for (Matching player) at ((Matching player) start location) facing Default building facing degrees) 
Player Group - Pick every player in (All players matching ((Clicked dialog button) Equal to BurningLegion)) and 
do (Unit - Create 5 Apocolyte for (Matching player) at ((Matching player) start location) facing Default building facing degrees)


This is the trigger belonging to that one...it doesn't work, because No matter what race I choose, I get no units.

I hope some of you are nice and skilled enough to help me with these...anyway thanks for reading and a lot of thanks in advance for those helping me!
08-05-2003, 02:42 PM#2
DaKaN
there is no matching player, Clicked events do not return a triggering player. What you need is a seperate button array & dialog for each player so you can reference the players via the dialog name that is used.
08-05-2003, 07:06 PM#3
Faldar
that's gonna be a lot of work...45 buttons and separate dialog for every player...but if it's the only way, I'll do it. THNX!:D

And does anyone have a solution for the first problem?
08-05-2003, 07:21 PM#4
DaKaN
using arrays its just a matter of CnP and just change the array index. so that will save alot of time
08-05-2003, 07:42 PM#5
Faldar
Quote:
Originally posted by Dakan
using arrays its just a matter of CnP and just change the array index. so that will save alot of time


yeah I know, but somehow after some tutorials about arrays I read I still have no idea how to make then. I only can explain in very big lines what arrays are emote_confused .