HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Vote System Probelm

03-09-2004, 05:25 PM#1
Soultaker
Hi i got a probelm with this voting system... If a player is computer or isen't there it don't show the voteing system for the rest of the players. Like this

Player 1 = xxxx
Player 2 = xxxx
Player 3 = None
Player 4 = xxxx
Player 5 = xxxx

If it is like that it will only show the voteing system to player 1 and 2. Please help me... File attached

btw. The vote system is Dialog based
03-09-2004, 10:16 PM#2
Zethiros
Can you post some triggers and such? Many people, including me (sorry), are too lazy to download your map and fix it for you; but if you would make the extra attempt to post the triggers you believe are the problems, I'd gladly help.

Thanks. Best of luck. ;)
03-09-2004, 11:06 PM#3
ThyFlame
Actually your problem is this:
Code:
  For each (Integer A) from 1 to PlayerAmount, do (Actions)
    Loop - Actions
        Dialog - Create a dialog button for Zones_Dialog[(Integer A)] labelled Control 10 Zones to...
        Set Ten_Zones_DButtom[(Integer A)] = (Last created dialog Button)
        Dialog - Create a dialog button for Zones_Dialog[(Integer A)] labelled Control 13 Zones to...
        Set ThirdtenZones_DButton[(Integer A)] = (Last created dialog Button)
        Dialog - Create a dialog button for Zones_Dialog[(Integer A)] labelled Control 16 Zones to...
        Set SixtenZones_DButton[(Integer A)] = (Last created dialog Button)
        Dialog - Show Zones_Dialog[(Integer A)] for (Player((Integer A)))

Basically, if 5 players are in the game, it will only show to players 1-5.
03-14-2004, 01:48 PM#4
Soultaker
I tryied to find it out myself because nobody here did come with a solotion but I coulden't get it to work. So please help me. I understand what you mean and thats what I wrote myself...

Btw. Zethiros, ThyFlame just posted the trigger probelm so you can help.
03-14-2004, 03:31 PM#5
ThyFlame
Bleh, I'll fix it. Hold on a few.
03-14-2004, 03:34 PM#6
BattleBotv8.2
For my first vote system I just did a Interger Array. First one is how many players. Then create dialoge, if he hits the button, +1 to second/third interger. Then run trigger checking conditions and conditions are if number of votes equal to number of players, and if one is greater than the other.
03-14-2004, 03:50 PM#7
ThyFlame
This SHOULD work.

The only problem is if two values tie, but that I'll let you deal with.
03-14-2004, 04:21 PM#8
Arohk
simple answer, dont use loop integers for that, try pick ever player in all players and do action
that will show the dialoge to all players that play