Need help with entities... :)
Displaying 1-6 of 6 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
BlacKnyght

I'm sitting here at my computer watching Chrono, Marle, and Lucca walk around on a little island. And I'm having troubles and I'm trying to figure out what I'm doing.

First, should I post stuff like this in the help forum? This will stay here for now, but I'll go over there next time.

The entities are set on wander, but they don't pause at all, even though I have them set to pause. They keep walking without stopping.

I have an event coded, but I can't make Marle say it. here it is.

event //2, Trying to talk to Marle
{
if (Random(2) = 0)
{
TextBox("Marle: Hi Chrono!","","");
}
else
{
TextBox("Marle: Chrono, where have you been?","","");
}
}

Marl'e Activation is set to '2'. My dialog box comes up for my zone events, but not for talking to people. Any clue what I'm doing wrong?



Posted on 2000-12-28 15:44:09

andy

Well, the reason they aren't stopping like you set them up to is because there's a bug in the current version of v2.6. The next release fixes this problem. :)

As to your second problem... I'm not sure. You are taking the autoexec event into account, right? (event #0, not 1)



'Never confuse a single defeat with a final defeat.' -F. Scott Fitzgerald

Posted on 2000-12-28 19:03:16

BlacKnyght

I have even tried setting the entities act to the other events, in this case, the ones being the ones from the 'newbie guide.' Those, however, just don't seem to work. I can make the actions work fine using the zone, I just can't get them to display.

I will walk up to an entity, hit enter, and they will turn and face me for only a brief moment, and then turn around and start walking away again. If the entity isn't moving, it will turn and face me, but no text box will display.

Allow me to post some more code for you to look at, if you will :) Again, thanks in advance for the help.

system.vc looks like this...

void Autoexec()
{
Map("Gothic.map");
}

void DrawBox(int x1,int y1,int x2,int y2)
{
RectFill(x1,y1,x2,y2,128); // just draws a grey (or in hicolour, almost black) box
}

void Text(string line1, string line2, string line3)
{
while (!b1)
{
Render();
RectFill(0,207,319,239,1);
Rect(0,207,319,239,10);
GotoXY(2,209); PrintString(0,line1);
GotoXY(2,219); PrintString(0,line2);
GotoXY(2,229); PrintString(0,line3);
ShowPage();
UpdateControls();
}
}

and Gothic.vc looks like this...

event // #0, the autoexec event!
{
PaletteMorph (0,0,0,0,63);
CameraTracking = 0;
SetPlayer(Entityspawn(8,4,"chrono.chr"));
}

event //1, Water event
{
if (Random(2) = 0)
{
Text("The candle burns brightly.","","");
}
else
{
Text("The candle casts strange shadows.","","");
}
}

I am setting the entity to activate event one, which is the same one as the zone uses (which comes up if you stand next to the candle)

BlacKnyght



Posted on 2000-12-28 19:23:33

Allan

Hrm...try putting Unpress(1); before initializing the while loop. This way if you just pressed b1 to activate the event then it won't read that b1 is still pressed. Otherwise it would sense that its pressed immediately and drop out of the loop without drawing the box.



Companions the creator seeks, not corpses, not herds and believers. Fellow creators the creator seeks--those who write new values on new tablets. Companions the creator seeks, and fellow harvesters; for everything about him is ripe for the harvest.

Posted on 2000-12-28 20:44:04

ltcmdstarbuck

If you are using the original version of verge 2.6, and not the later fix, it has a problem with that, but the later fix fixes that.



Posted on 2000-12-28 21:55:00

BlacKnyght

Alright, this seems to have fixed the problem. I can know talk to entities and activate adjacent zones with the enter key. The Unpress(1) solved it. Thanks.

Now to move on and get stuck with the next thing ^^

BlacKnyght



Posted on 2000-12-29 09:56:47


Displaying 1-6 of 6 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.