[skip all navigation]

ProTRG v1.1, Easily and efficiently generate masses of triggers

Pages: < 1 « 3 4 5
Creator: MC˛poiuy_qwert
Time: Jan 10 2010, 11:13 pm

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

[Avatar]
offlinecontact
Rank: Regular
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.

Top
0 members in this topic (italic members are currently writing a reply): None
+ guest(s)


[08:09 pm]
jjf28 -- arseholes
[07:30 pm]
Wing Zero -- pissed*
[07:30 pm]
Wing Zero -- Had to reinstall drivers again.
[07:29 pm]
Wing Zero -- I was sooooo missed.
[07:27 pm]
Wing Zero -- luckily I managed to find my 64 bit disk
[07:17 pm]
Vrael -- they still make 32 bit shit? wtf is this 2007 or something?
[06:55 pm]
Wing Zero -- I swear I'm about to go to best buy and buy the regular version just so I don't have to wait anymore.
Please log in to shout.