Esempio n. 1
0
void go() {
	char tmp[8];
	int line;

	signal(SIGALRM, SIG_IGN);
	getdata(23, 0, "ÇëÎÊÒªÌøµ½µÚ¼¸ÐÐ: ", tmp, 7, DOECHO, YEA);
	msg();
	if (tmp[0] == '\0')
		return;
	line = atoi(tmp);
	goline(line);
	return;
}
Esempio n. 2
0
File: MOVE.C Progetto: MegaGod/TW
void gotoline( void ) {
	char st[5];
	register int linetogo;
	st[0] = '\0';
	framebox( 22 - CENTER_FACTOR, 4, 22 - CENTER_FACTOR + 49, 6, 2 );
	dispstrhgc( " – µéͧ¡ÒÃä»·ÕèºÃ÷Ѵ·Õèà·èÒäà ? (¹Ñº¨Ò¡µé¹á¿éÁ¢éÍÁÙÅ)", 22 - CENTER_FACTOR, 5, 2 );
	if ( getstring( st, 65 - CENTER_FACTOR, 5, 4, 2, NUMBER ) ) {
		linetogo = atoi( st );
		if ( linetogo >= 1 ) {
			goline( linetogo );
		}
	}
	pagecomplete = NO;
}
Esempio n. 3
0
File: MOVE.C Progetto: MegaGod/TW
void gotopage( void ) {
	char st[4];
	int linetogo;
	st[0] = '\0';
	framebox( 30 - CENTER_FACTOR, 4, 30 - CENTER_FACTOR + 29, 6, 2 );
	dispstrhgc( "µéͧ¡ÒÃä»·Õè˹éÒ·Õèà·èÒäà ? ", 30 - CENTER_FACTOR + 3, 5, 2 );
	if ( getstring( st, 54 - CENTER_FACTOR, 5, 3, 2, NUMBER ) ) {
		linetogo = ( atoi( st ) * lineperpage ) - lineperpage + 1;
		if ( linetogo >= 1 ) {
			goline( linetogo );
		}
	}
	pagecomplete = NO;
}
Esempio n. 4
0
int main(int argc, char* argv[])
{
    initscr();
    scrollok(stdscr, TRUE);
    wprintw(stdscr, "Welcome to Scripted ver. %d.%d for the Brave Quest engine.\nCopyright 2012 Mad Science Inc.\nPlease do not redistrubute.\n",scriptedvernum,scriptedvernum2);
    stufffilename();
    if(loadscript(filename) == 1)
    {
        wprintw(stdscr, "File not Found. Would you like to make a new file?\n");
        if(bie() == 'y')
        {
            cleanfilebuff();
            if(savescript(filename) == 1)
            {
                wprintw(stdscr, "Your disk sucks.\n");
                bi();
                return 1;
            }
        }
        else
        {
            wprintw(stdscr, "Goodbye.\n");
            endwin();
            return 1;
        }
    }
    currlinenum = linenum;
    menu();
    wprintw(stdscr, "Press escape to go to the save menu\n");
    for(;;)
    {
        wprintw(stdscr, "q= give, w= take, e= say, r= flag, t= move, y= battle, u= check flag, i= check item, o= party add, p= party remove, [ = check character\n");
        wprintw(stdscr, "a= warp, s= check experience, d= give experience, f= make experience, g= exec script, h= screen effect, j= user input, k= goline, l= make health\n");
        wprintw(stdscr, "b= check stat, n= make stat, m= blank, ,= show line, .= change line.\n");
        input[0] = bie();
        if(input[0] == 27)
            menu();
        if(input[0] == 'q')
            give();
        if(input[0] == 'w')
            take();
        if(input[0] == 'e')
            say();
        if(input[0] == 'r')
            flag();
        if(input[0] == 't')
            mmove();
        if(input[0] == 'y')
            battle();
        if(input[0] == 'u')
            checkflag();
        if(input[0] == 'i')
            checkitem();
        if(input[0] == 'o')
            partyadd();
        if(input[0] == 'p')
            partyrm();
        if(input[0] == '[')
            checkparty();
        if(input[0] == 'a')
            warp();
        if(input[0] == 's')
            checkexp();
        if(input[0] == 'd')
            giveexp();
        if(input[0] == 'f')
            makeexp();
        if(input[0] == 'g')
            execscript();
        if(input[0] == 'h')
            screeneffect();
        if(input[0] == 'j')
            userinput();
        if(input[0] == 'k')
            goline();
        if(input[0] == 'l')
            makehealth();
        if(input[0] == 'z')
            teachspell();
        if(input[0] == 'x')
            unlearnspell();
        if(input[0] == 'b')
            checkstat();
        if(input[0] == 'n')
            makestat();
        if(input[0] == 'm')
            blank();
        if(input[0] == ',')
            showline();
        if(input[0] == '.')
            changeline();
        if(currlinenum > linenum)
            linenum = currlinenum;
    }
    return 0;
};
Esempio n. 5
0
File: MOVE.C Progetto: MegaGod/TW
void goendblk( unsigned int *x ) {
	if ( haveblock( ) ) {
		goline( blkend.lineno );
		gocol( blkend.column, x );
	}
}
Esempio n. 6
0
File: MOVE.C Progetto: MegaGod/TW
void gobeginblk( unsigned int *x ) {
	if ( haveblock( ) ) {
		goline( blkbegin.lineno );
		gocol( blkbegin.column, x );
	}
}