oh yeah! i ment to ask someone but never got around to it.... you see, ive created the basis to my battle system and have now created an enemy selection cursor... but when i test it, an error appears saying that the branch label :3enesecond cannot be found... as enemies!=3, can anyone help me out and check this program?
#savescreen()
*******1 ENEMY*******
#If (enemies!=1)
{
#setimage("Arrow.bmp",20,40,10,15)
#done!=0
#While (done!=0)
{
#wait(enesel$)
#If (enesel$=confirm$)
{
#done!=1
#turn$=attackene1$
#restorescreen()
#Branch (:en_sel)
}
#If (enesel$=back$)
{
#done!=1
#restorescreen()
#Branch (:attack)
}
}*for while
}*for if enemies=1
*******2 ENEMIES*******
#If (enemies!=2)
{
:2enefirst
#setimage("Arrow.bmp",20,40,10,15)
#done!=0
#While (done!=0)
{
#wait(enesel$)
#If (enesel$=confirm$)
{
#done!=1
#turn$=attackene1$
#restorescreen()
#Branch (:en_sel)
}
#If (enesel$=back$)
{
#done!=1
#restorescreen()
#Branch (:attack)
}
#If (enesel$="DOWN")
{
#done!=1
#Restorescreen()
#setimage("Arrow.bmp",15,108,10,15)
#Branch (:2enesecond)
}
}*for while
:2enesecond
#done!=0
#While (done!=0)
{
#wait(enesel2$)
#If (enesel2$=confirm$)
{
#done!=1
#turn$=attackene2$
#restorescreen()
#Branch (:en_sel)
}
#If (enesel2$=back$)
{
#done!=1
#restorescreen()
#Branch (:attack)
}
#If (enesel2$="UP")
{
#done!=1
#restorescreen()
#Branch (:2enefirst)
}
}*for 2nd while
}*for enemies=2
*******3 ENEMIES*******
#If (enemies!=3)
{
:3enefirst
#setimage("Arrow.bmp",20,40,10,15)
#done!=0
#While (done!=0)
{
#wait(enesel$)
#If (enesel$=confirm$)
{
#done!=1
#turn$=attackene1$
#restorescreen()
#Branch (:en_sel)
}
#If (enesel$=back$)
{
#done!=1
#restorescreen()
#Branch (:attack)
}
#If (enesel$="DOWN")
{
#done!=1
#Restorescreen()
#setimage("Arrow.bmp",15,108,10,15)
#Branch (:3enesecond)
}
}*for while
:3enesecond
#done!=0
#While (done!=0)
{
#wait(enesel$)
#If (enesel$=confirm$)
{
#done!=1
#turn$=attackene2$
#restorescreen()
#Branch (:en_sel)
}
#If (enesel$=back$)
{
#done!=1
#restorescreen()
#Branch (:attack)
}
#If (enesel$="UP")
{
#done!=1
#restorescreen()
#Branch (:3enefirst)
}
#If (enesel$="DOWN")
{
#done!=1
#restorescreen()
#setimage("Arrow.bmp",10,170,10,15)
#Branch (:3enethird)
}
}*for 2nd while
:3enethird
#done!=0
#While (done!=0)
{
#wait(enesel$)
#If (enesel$=confirm$)
{
#done!=1
#turn$=attackene3$
#restorescreen()
#Branch (:en_sel)
}
#If (enesel$=back$)
{
#done!=1
#restorescreen()
#Branch (:attack)
}
#If (enesel$="UP")
{
#done!=1
#restorescreen()
#setimage("Arrow.bmp",15,108,10,15)
#Branch (:3enesecond)
}
}*for 3rd while
}*for enemies=3