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.
[06:34 am]
O)FaRTy1billion[MM] -- ya, give clears orders
[03:20 am]
MTiger156 -- or, you could have multiple spawn boxes near eachother, then it would be easy
[03:19 am]
MTiger156 -- each cycle would start when there are no Player Y units in the spawn
[03:18 am]
MTiger156 -- then the closest you can get would be to give X units to player Y, order player Y units to one of the destinations. When those X units leave the spawn, then repeat with a new destination
[02:48 am]
Swampfox -- well thats not effective because the order command cant specify single units
[02:19 am]
MTiger156 -- what about giving before moving?
[01:43 am]
Swampfox -- i have a stack of units that i want to order to move all at the same time to several different locations... i cant manage it lol
[01:41 am]
Swampfox -- agh you cant give a a unit an order and give that unit to another player in the same trigger cycle and expect it to move huh?
[01:25 am]
MTiger156 -- New patch for Mafia City! http://www.staredit.net/topic/17740/ I will be heavily supporting this map for a while. Play it and give lots of feedback!
[12:52 pm]
jjf28 -- Oh_Man
Oh_Man shouted: How does "flingy" even work
describes movement properties of a unit and links to the units sprite
Please log in to shout.


Members Online: Roy