for (i=0;i<SKILLS;i++)
for( UINT32 i = 0; i < skills.count(); ++i )
void loadskills(){	int i, noskill, l=0;	char sect[512];	for (i=0;i<SKILLS;i++) // lb	{		skill[i].st=0;		skill[i].dx=0;		skill[i].in=0;		skill[i].advance_index=l;		noskill=0;		openscript("skills.scp");		sprintf(sect, "SKILL %i", i);		if (!i_scripts[skills_script]->find(sect))		{			noskill=1;		}		unsigned long loopexit=0;		do		{			read2();			if (script1[0]!='}')			{				if (!(strcmp("STR", (char*)script1)))				{					skill[i].st=str2num(script2);				}				else if (!(strcmp("DEX", (char*)script1)))				{					skill[i].dx=str2num(script2);				}				else if (!(strcmp("INT", (char*)script1)))				{					skill[i].in=str2num(script2);				}				else if (!(strcmp("SKILLPOINT", (char*)script1)))				{					wpadvance[l].skill=i;					gettokennum((char*)script2, 0);					wpadvance[l].base=str2num(gettokenstr);					gettokennum((char*)script2, 1);					wpadvance[l].success=str2num(gettokenstr);					gettokennum((char*)script2, 2);					wpadvance[l].failure=str2num(gettokenstr);					l++;				}			}		}		while ( (script1[0]!='}') && (!noskill) && (++loopexit < MAXLOOPS) );		closescript();	}}