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.
[2019-7-14. : 8:29 pm]
Ultraviolet -- Suicidal Insanity
Suicidal Insanity shouted: or the scmdraft thread here
Suicidal Insanity
Suicidal Insanity shouted: or the one in the bnet forums
Suicidal Insanity
Suicidal Insanity shouted: or the one on reddit
:lol:
[2019-7-14. : 7:04 pm]
Suicidal Insanity -- or the one on reddit
[2019-7-14. : 7:04 pm]
Suicidal Insanity -- or the one in the bnet forums
[2019-7-14. : 7:04 pm]
Suicidal Insanity -- or the scmdraft thread here
[2019-7-14. : 7:04 pm]
Suicidal Insanity -- check the newspost on the scmdraft homepage
[2019-7-14. : 6:59 pm]
No-Name-Needed -- Been gone a bit, Came back to a new BW patch and SCm Draft won;t work now.. Anyone have a link to download a working version?
[2019-7-14. : 5:06 pm]
Suicidal Insanity -- Ultraviolet
Ultraviolet shouted: Suicidal Insanity The point of gambling isn't for YOU to make money :P
No !
[2019-7-14. : 4:35 pm]
Voyager7456 -- lil-Inferno
lil-Inferno shouted: y'all mad AF
[2019-7-14. : 2:43 pm]
RdeRenato -- xd
[2019-7-14. : 2:15 pm]
lil-Inferno -- y'all mad AF
Please log in to shout.


Members Online: plums840ks, Roy, nyquhiglote850, Kuenziaq7, Arta(M), C(a)HeK