attackstyle=rand(3);
if(attackstyle==0)
{
//attack 1
}
if(attackstyle==1)
{
//attack 2
}
switch (attackstyle)
{
case 0:
//attack 0
break;
case 1:
//attack 1
break;
case 2:
//attack 2
break;
}
Users browsing this forum: No registered users and 1 guest