On Fri, 31 Aug 2007 08:57:22 +0000
"Gerrit ." <[EMAIL PROTECTED]> wrote:

> Hi, I was just playing around with ScummC, and I have to say it's
> totally cool! Thanks for making it possible to mess around with the
> Scumm engine.

:)

> What I am trying to achieve with the sample "road" game is that you
> can switch egos, like in "Day of the Tentacle". It seems that it's
> almost as easy as switching the VAR_EGO variable to the right person.
> That's fantastic!

Yep, it should be quiet easy to have several characters. Remeber this
was already possible in Maniac Mansion, the very first scumm game :)

> Santa isn't yet constraint by the boxes and the screen doesn't scroll
> for him, but since Beasty still reacts, I guess it's just a matter of
> changing some "hero" variables in the scripts to "VAR_EGO".

Yep, there is quiet some s/hero/VAR_EGO/ to do. To get the camera to
follow an actor you have to use cameraFollowActor(). For the box I
don't know. It might be because he is not in a box or the actor was
not properly initialized.

> There are several issues with the inventory though, and here, except
> in the inventory handler script, I didn't find any Beasty-specific
> code that could be responsible for the errors. Here are the problems:
> 
> * When you switch from Santa to Beasty or vice versa, the axe is
> always displayed if one person has it in his inventory. It's only the
> picture though, the person holding the real axe can still use it as a
> command and the other can't. Maybe a script is needed to draw black
> boxes over empty inventory slots?
> 
> * This one is weirder: if one actor gives the axe to the other, it 
> disappears in the first person's inventory. However, the image
> doesn't appear in the second person's inventory. There is an "axe"
> command in the slot, but it's only one pixel in width and several
> pixels in height. The axe can be used normally with this command, and
> be given back and forth, but the picture never appears again, only
> the invisible one-pixel wide command changes the owner.
> 
> If you have any ideas what additional commands and scripts are needed
> to organize separate inventories for several egos in ScummC, please
> tell me.

Off hands I don't really know. However calling cameraFollowActor() run
the inventory script, so that might solve some of the problems you see.
Otherwise we have to look at the dott script and try to understand how
it is handled there.

However it would best if you could post a diff of your changes. That
would make thing easier to help you get it working. Once it's working
I would be glad to have that as part of the example.

        Albeu


_______________________________________________
ScummC-general mailing list
[email protected]
https://mail.gna.org/listinfo/scummc-general

Reply via email to