Dark Age Games
Home Dark Age EX Dark Age 2 Message Board Fan Art FAQ Kelzar Mage DALpedia MS Forum
Board Index Dark Age General Bug Report Website Off Topic Register User Edit User User List Search

In reply to: hey xorlak...need some coding help -- spitfire_reborn 13:01:21 04-04-2004

Hmmm...
Posted by: Xorlak
22:31:31 04-05-2004

You'd be better of writing it like this:

#savescreen
#Sword!=1
#done!=0

#while(done!=0)
{
#restorescreen
#if(Sword!=1){#Setimage("Swordselector.gif",150,250,124,34)}
#if(Sword!=2){#Setimage("Swordselector.gif",150,290,124,34)}
#if(Sword!=3){#Setimage("Swordselector.gif",150,330,124,34)}
#wait(a$)
#if(a$="UP"){#Sword!=Sword!-1}
#if(a$="DOWN"){#Sword!=Sword!+1}
#if(a$="ENTER"){#done!=1}
* loop around
#if(Sword!=0){#Sword!=3}
#if(Sword!=4){#Sword!=1}
}

* When you get down here, Sword! is the selection you want
#if(Sword!=1){#Run("NewGame.prg")}
#if(Sword!=2){#Run("Loadgame.prg")}
#if(Sword!=3){#Windows()}


Note: That's untested, but you should get the idea.

----------
-Xorlak
Edit Post