Staredit Network > Forums > SC1 Mapping Tools > Topic: ProTRG v1.1
ProTRG v1.1
Jan 10 2010, 11:13 pm
By: poiuy_qwert
Pages: < 1 3 4 5
 

Jul 25 2010, 6:08 pm Cinolt Post #81



It makes some sense, and I've verified that it does what I want. I'm assuming that this initialization will only occur once, so I don't need to delete any members of the dcList. The only other minor issue with yours is that for multiple variable assignments it needs the number of variables passed to the function. So, essentially what I'm doing is checking every possible number of variables as so:
Code
timer, vhp, posX, posY = dcList[:0]
*program catches an error, loop again*
timer, vhp, posX, posY = dcList[:1]
*program catches an error, loop again*
timer, vhp, posX, posY = dcList[:2]
*program catches an error, loop again*
timer, vhp, posX, posY = dcList[:3]
*program catches an error, loop again*
timer, vhp, posX, posY = dcList[:4]
*program doesn't catch an error, so break out of the loop*


Therefore the process is made even more easier by not having to know the number of variables being assigned.



None.

Jun 9 2018, 1:12 am EsX_Raptor Post #82



The links are dead. Could someone please redirect me?



None.

Options
Pages: < 1 3 4 5
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:27 pm]
martosss -- If you can give me a solution that would fill P1 I'd appreciate it :)
[05:26 pm]
martosss -- So the game fills first the force with most open slots, then alternates ... I saw it in melee maps too - there all players are in the same force and even though the mode is top vs bottom, those 2 new forces are generic and joining players are filling the lobby from top to bottom because it's the same force. I've seen other maps where they Alternate and I assume that's because there the map had 2 forces
[05:25 pm]
martosss -- oops, can't write new lines .. oh well ... force1 : P1, force 2: P2, P3, P4, P5, P6, P7 ... force 3: CPU P8 and P2-6 gets filled first
[05:24 pm]
martosss -- no, jjf, my current setup is force1
[04:00 pm]
jjf28 -- I believe slots fill according to ascending player number, so if the observer is player 1, they'll land in that slot first, if the observer was player 8, they'll land in that slot last
[02:57 pm]
martosss -- Hey folks, a quick question ... when people enter a map lobby, can you force them to go in a particular force first? I have a map where there is 1 player, 6 spectators and 1 computer. The players always enter and go to the observer section first. I want them to first go to the player slot if it's free. Is that possible?
[2020-8-14. : 7:35 am]
MasterJohnny -- stole*
[2020-8-14. : 7:35 am]
MasterJohnny -- some russian asshole my battle.net account
[2020-8-13. : 3:41 pm]
Ultraviolet -- :wob:
[2020-8-12. : 1:16 pm]
Zycorax -- :wob:
Please log in to shout.


Members Online: jun3hong, Roy, Tyczka99