To Roto, Gerf, etc... RPGirl's system.vc
Displaying 1-5 of 5 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
RPGirl

void TextBox(string a, string b, string c)
{
int thx, thy; //x & y positions of textbox
int boxpic;

boxpic = loadimage("textbox.pcx"); //textbox pic
thx=screenx/2-160;
thy=screeny-65;

unpress(0);
while(!b1)
{
UpdateControls();

Render();
TcopySprite(thx, thy-1, 320, 66, boxpic);
GotoXY(thx+6,thy+5);
PrintString(0,a);
GotoXY(thx+6,thy+24);
PrintString(0,b);
GotoXY(thx+6, thy+43);
PrintString(0,c);
ShowPage();
}
free(boxpic);
}




Que Sera Sera, Whatever will be, will be.-Doris Day, "The Man Who Knew Too Much"

Posted on 2001-07-07 18:53:51

RPGirl

event // autoevent
{
palettemorph(0,0,0,0,63); // sets the palette
setplayer(0); // lets you control entity #0
}

event// 1
{
TextBox("Mina: Hey Aiko! Still Chasing after Li?","","");
TextBox("Aiko: Ahahahahaha.... Yes.","","");
TextBox("Mina: Aiko! You should be worried about"," your mom, not Li!","");
TextBox("Aiko: Minaaaaaaaaaaaaa!!!","","");
}

event// 2
{
TextBox("Li: Hi Aiko, what's up?","^_^","");
TextBox("Aiko: N-Nothing!!!","^_^;;","");
}

event// 3
{
TextBox("Skya: Oh, Aiko... just go home!","","");
TextBox("Aiko: Sure Skya.... o.O","","");
TextBox("Skya: What was that!?","","");
TextBox("Aiko: Nothing...","","");
}

event// 4
{
TextBox("Li's House","","");
}

event// 5
{
TextBox("Aiko's House","","");
}

event// 6
{
TextBox("CASHANK! Cool! A free drink!","","");
}

event// 7
{
UnPress(1);
while(!b1)
{

Map("aikoshou.map");
}
UnPress(1);
}




Que Sera Sera, Whatever will be, will be.-Doris Day, "The Man Who Knew Too Much"

Posted on 2001-07-07 18:55:59

FlameRainCaptain

I remember reading somewhere that if you place a comment too close to a command, vcc goes crazy about it.

For example event 1...

event // 1
{
TextBox("Mina: Hey Aiko! Still Chasing after Li?","","");
TextBox("Aiko: Ahahahahaha.... Yes.","","");
TextBox("Mina: Aiko! You should be worried about"," your mom, not Li!","");
TextBox("Aiko: Minaaaaaaaaaaaaa!!!","","");
}

As you can see, the comment is spaced out a bit from the "event".
Also, I have spaced out what was in the brackets. This does not fix and problems, but it does make your code easier to read and it may be easier to spot problems, especially missing brackets.



Posted on 2001-07-07 21:01:02

FlameRainCaptain

I tried compiling it myself and it worked so there should be no worry.



Posted on 2001-07-07 21:05:56

FlameRainCaptain

I always keep posting on outdated sujects. Don't know why but I always forget what the most current post says...



Posted on 2001-07-07 21:15:45


Displaying 1-5 of 5 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.