[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)


[07:21 am]
O)FaRTy1billion -- "TiKels -- rolling around in the dark while it's raining on a muddy hillside ... kissing =)" and the first thing you think to do is go on SEN
[06:33 am]
RIVE -- I thought Sega does what Ninten-don't.
[06:33 am]
RIVE -- I tried a Sega one first, but it didn't work.
[06:33 am]
RIVE -- A Nintendo AC/DC powers my new Casio.
[05:50 am]
Fire_Kame -- (ノ°□°)ノ彡┻━┻
[05:50 am]
Fire_Kame -- shit. looks like I don't have tomorrow off.
[05:41 am]
Fire_Kame -- "Vrael -- OMG SHARE SAX" SHARING IS CARING SAX GO ASANGE ON HER CHANNEL YO
Please log in to shout.