|
is there a way?? Displaying 1-8 of 8 total.
1
jesusfreak
|
is there a way to use syntax/i dunno
to make a person to talk only once??
like put that A==1 stuff and
make it so that (well i have a text i only want runs once,, and averyone has told me nothing except for zeromus in wich he has not e mailed mr back..
is there a code anyone can give me that will make this little girl in the map talk to me once???
i would be very happy if anyone could give me a tiny bit of info!
(" mommy mommy there is a dog eating my supper!")
People that are usually nice too me
mythrill
the speed bump
steven marine
ear
KarmaCult
Loritian
tralu
people i do not like...
anyone who does not like chocolate
Posted on 2000-11-10 21:40:21
|
TheGerf
|
Yep there is. First you need an int, for example, int a.
Then, during the event that is activated by talking use an if statement, like this
event
{
if(a=0)
{
text("Blah"); // replace with your text command
a++; // set a=1
} // closes if statement.
} // closes event
TheGerf, not just any gerf.
Posted on 2000-11-11 00:28:09
|
jesusfreak
|
Below is my Start.vc file, i pu in what you said to be put in ( indented and fixed to my view) and when i went on to compile it the vcc program gave me this error message: ERROR (9)unknown token
event //autoexec
{
palettemorph(0,0,0,0,60); //get proper palette going
entityspawn(4,4,"boy.chr");//first chr will be index 0
setplayer(0); //set the control focus to entity index 0
}
event
{
if(a=1)
{
Text("Blah", " ", " ");
a++; // so here is line nine.. what is wrong??
} // closes if statement.
} // closes event
(" mommy mommy there is a snake in my boot")
People that are usually nice too me
mythrill
the speed bump
steven marine
ear
KarmaCult
Loritian
tralu
people i do not like...
anyone who does not like chocolate
Posted on 2000-11-11 02:41:42
|
Sungam
|
First of all, you'll want to make the 'if' check if 'a' is 0, not 1, or the script won't ever run even if you compile it.
Your "unkown token" could be that you forgot to initialise 'a'... in your system.vc, type in:
"int a;"
Without the quotes, of course. Also, you might want to call it something a bit more detailed than "a" if you want any chance whatsoever to figure out what it is after you've got some more code there... call it "SpeakingToBlah" or something, so you know what it is.
- Sungam
Ancient Ex-VERGEr
P.S. I coulda missed some code errors there... I've no idea if V2 has changed much lately, I haven't used in a year or something...
Posted on 2000-11-11 12:35:00
|
jesusfreak
|
first off i would like to say this... Thank you all for your inquerry, and then second could you edit these so that they work?? BTW i out in the stuff you all told me to do.. but a feew things came up so read on to see wazup. this is my map.vc file as you can see it is edited to what my system.vc complies with,, but!! :/ the compiler gives me an error sayin (16) inknown token...
---------------------------------------------------
event
{
if(a=0)
{ Text("Blah", "yyyyyyy", "TTT");
a++; // set a=1
}
} // closes event
and here is my system.vc file... i am not sure if i defined int a right...
--------------------------------------------------
void Text(string text1, string text2 string text3)
{
int y, a;
// loop until B1 is pressed
while (!b1)
{
//draw el mapo
Render();
// draw the text box
SetLucent(1);
Rect(0,(ScreenY/2+58),ScreenX-1,ScreenY-1,53);
Rect(1,(ScreenY/2+58)+1,ScreenX-2,ScreenY-2,45);
RectFill(2,(ScreenY/2+58)+2,ScreenX-3,ScreenY-3,24);
SetLucent(0);
// draw the text
y=ScreenY-(ScreenY/4); // position font output at the upper-left of the textbox
GotoXY(0, y); PrintString(0, text1); y+=FontHeight(0);
GotoXY(0, y); PrintString(0, text2); y+=FontHeight(0);
GotoXY(0, y); PrintString(0, text3);
// update video memory
ShowPage();
UpdateControls();
}
UnPress(1);
}
this is all folks...
(" mommy mommy there is a bear stuck in my toilet")
People that are usually nice too me
mythrill
the speed bump
steven marine
ear
KarmaCult
Loritian
tralu
people i do not like...
anyone who does not like chocolate
Posted on 2000-11-11 12:52:46
|
TheGerf
|
First, only declare int y;, not int y, a;
Second, You have to declare ints used in events in a blank part of system.vc You should go to the first line, or any other line that isn't part of a function and decalre int a; right in the middle of nowhere.
Third, I only used a as an example, you should probably name it to Talk_to_guy or something easier to understand.
TheGerf, not just any gerf.
Posted on 2000-11-11 14:35:28
|
jesusfreak
|
gosh why didn't you listen, there is no text in here worth reading so go away, or you could al;so vivit my site ,, just click on the house by this message (G)
yes yes it is verge related...
People that are usually nice too me
mythrill
the speed bump
steven marine
ear
KarmaCult
Loritian
tralu
the gerf
people i do not like...
anyone who does not like chocolate
Posted on 2000-11-11 17:14:23
|
stevenmarine
|
Is the gerf the kinder gentler ancestor/descendant of the grinch? The grinch has the capabillitie to grow his heart three sizes on christmas. Is that why NewB (or OldB, or jesusfreak; whichever he prefers.) is uncertain as to it's current heart size? Sorry for irrelevant.
:)
Posted on 2000-11-15 18:12:23
|
Displaying 1-8 of 8 total.
1
|
|