HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Adminmod V.2.0.

02-11-2004, 02:10 PM#1
chemo
Hi my mate and I are updating the adminmod because of numerous bugs, however we need to know how to store Playernumber, Playername in a single variable array.
we need help to set the variable too if playernumberX name is equal to <name1> or <name2> then do show the dialog to the player that has the name of <name1> or <name2>...

the hard thing is to only show for the one player... can any one help here ?
02-11-2004, 10:15 PM#2
UndercoverIdiot
I may have an answer to your question.. although i wasn't quite sure what you were asking.. but i have attached a wc3 map that has a trigger and a comment to help you understand my trigger. Sorry if it doesnt work or isnt what your looking for. :santa:
02-12-2004, 07:27 AM#3
chemo
well thx for the help, but that wasnt what i was looking for.. i need following:

1. A trigger that detect all playernumbers
2. same trigger has to detect if any of the player number has a certfied name.
3. if name is equal to the certified name, then it should only work for that player.
4. this is the hard one but, another trigger has to show a dialog for the player that is pressing esc, has the certified name and the correct player number that was given at the start

hope that explain some more :?
02-12-2004, 10:05 AM#4
Gurrgel
1: Think you should detect the player numbers by having variables for each player (ie 1-12) and then set the variable (String) to the player name.

2: You can make a string comparison to check if the variables above match your names. Or just make another trigger, think it would be something like this:
E Anything you would prefer
C Nothing
A Pick Every Unit in Player Group (All Players) and do actions:
A If (String Comparison) Name of Picked player = [The name you want to be detected] equal to true then do Action (Insert your wanted action here), else do nothing.

3: Add the players with right names to a player group and make the triggers only work for those players.

4: Not sure exactly about this one, don't have WC3 on this comp, but if it's possible to detect if someone presses escape (Don't remember), it wouldn't be too hard, presuming you know how to do dialogs