Should look like this, without killing python.Quote:
Code:def LoadEffectTable(): for effect in EffectTable: for i in range(len(EffectTable[effect])): vnum = effect effectpath = EffectTable[effect][i] Shining.Add(vnum, effectpath)
def LoadEffectTable(): [Shining.Add(vnum, effectPath.pop(0)) for vnum, effectPath in EffectTable.iteritems()]
0703 20:52:13722 :: CEffectManager::RegisterEffect - LoadScript('TextToolTip' object has no attribute 'OnUpdate') ErrorQuote:
Should look like this, without killing python.
Code:def LoadEffectTable(): [Shining.Add(vnum, effectPath.pop(0)) for vnum, effectPath in EffectTable.iteritems()]