Community

SCI Programming => SCI Syntax Help => Topic started by: L@Zar0 on January 03, 2025, 10:16:32 AM

Title: [KQ4EGA SCI] Help with Said statement in Room84 (storage with hen/pandora's box)
Post by: L@Zar0 on January 03, 2025, 10:16:32 AM
Hi,

After finishing KQ5 CD and KQ6 CD spanish adaptation (for GOG release), I decided to translate also KQ4 EGA. I done the translation of all text, adjusted vocab files with spanish words, etc... Now I am in the testing stage, and nearly completed the game following Sierra's walkthrough.
Right now, I'm in the storage room where Lolotte (now dead because of love) has the hen and the pandora's box.

Ok, I can get the hen (english: "get hen", spanish: "coger gallina"). This is easy (and works naturally without changing anything).

But I have a big problem (tried dozens of choices) when trying to get pandora's box. You can get it in english with: "get pandora's box". But in spanish I should do: "coger caja de pandora". This is the script (for remember it):

(https://i.imgur.com/c7oVFso.png)

I want maintain also the english words (I played until the storage without touching them). So, how could do it in spanish?

I have in vocab.000:

[get | coger]                                     (imperative verb) -Here I have a lot more verbs, of course-
[pandora | | pandoras | pandora's]     (noun)
[box | boxes | crate  | crates | caja | cajas | cajon | cajones] (noun)
[of | de]                                           (nothing)

When I put "coger caja de pandora" (I could do also with article: "coger LA caja de pandora"), this is not working. I tried things in Said like:
- "/pandora<box"  (then I can do "coger caja pandora", but NOT "coger caja DE pandora").
- "/caja<de/pandora" (is not working)
- "/of<box/pandora" (is not working)
others...

I know I have some limitations, but I think this is possible to do.

Any help in this?
Title: Re: [KQ4EGA SCI] Help with Said statement in Room84 (storage with hen/pandora's box)
Post by: doomlazer on January 03, 2025, 10:37:15 AM
In PQ2, the phrase to activate the script debugger is "kiss angel of death". In main (https://github.com/sluicebox/sci-scripts/blob/5ce19d3be606f2f9a758f54144904d201bc4a8e9/pq2-dos-1.002.011/src/Main.sc#L820), the code is formatted as:
Code: [Select]
((and (Said 'kiss/angel>') (Said '/death'))
so maybe try:

Code: [Select]
((and (Said 'coger/caja>') (Said '/pandora'))

or in your case (I did not test that this works):

Code: [Select]
((Said 'coger>')
     (cond
          ((and (Said '/caja>') (Said '/pandora'))
Title: Re: [KQ4EGA SCI] Help with Said statement in Room84 (storage with hen/pandora's box)
Post by: L@Zar0 on January 03, 2025, 10:55:08 AM
I'm trying this but it is not working:

(https://i.imgur.com/3Ys8f8H.png)

I'm not sure what is the order in this case. I need the "Said get>" to continue the other words. You can get also the chicken. I tried putting "Said get/box/pandora" standalone (out of the get> conditional) but it is not working either.

If I would like to say this in english, would be something like:

"get box of pandora"

It is very odd this is not working.
Title: Re: [KQ4EGA SCI] Help with Said statement in Room84 (storage with hen/pandora's box)
Post by: doomlazer on January 03, 2025, 11:02:05 AM
In PQ2:
  "kiss" is Noun | Imperative Verb
  "death" is Noun | Imperative Verb
  "angel" is Noun
  "of" is Conjunction
Title: Re: [KQ4EGA SCI] Help with Said statement in Room84 (storage with hen/pandora's box)
Post by: L@Zar0 on January 03, 2025, 11:07:58 AM
I tried with "of | de" as "Preposition". There is not "Conjunction" in KQ4.

The only choice I've seen until now to solve this is to call the Pandora's Box (Caja de Pandora) with another name like "Cajita de Pandora" where "Cajita" is a "small box". But in spanish, the real Pandora's box is really called "Caja de Pandora".

In any case, if I use "get box pandora" or "coger caja pandora" is not working either.
Title: Re: [KQ4EGA SCI] Help with Said statement in Room84 (storage with hen/pandora's box)
Post by: doomlazer on January 03, 2025, 11:11:29 AM
I tried with "of | de" as "Preposition". There is not "Conjunction" in KQ4.

"of" is a Conjunction by default in my copy for KQ4
Title: Re: [KQ4EGA SCI] Help with Said statement in Room84 (storage with hen/pandora's box)
Post by: L@Zar0 on January 03, 2025, 11:36:34 AM
Ok, a bit of reporting.

Let's see, I think I put "Preposition" because when I opened it, I didn't see any class assigned to it:

(https://i.imgur.com/FkEefkt.png)

Now, with SCI Studio, I have assigned "Conjunction" class. But It is not shown in SCI Companion (I don't know why).
In any case, I updated the code with this (for english and spanish):

(https://i.imgur.com/RCEq0kv.png)

And this seems to work well. I should check why is not appearing as conjunction. I think I used a vocab from another translation, I will have to check it.

Thanks a lot for the help.
Title: Re: [KQ4EGA SCI] Help with Said statement in Room84 (storage with hen/pandora's box)
Post by: L@Zar0 on January 03, 2025, 11:53:59 AM
Well, to be sure, I reopened a clean install of the GOG version for KQ4. This is what my Vocab.000 says:

(https://i.imgur.com/lIELM4E.png)

It seems I have not Conjunction or Association classes. I think this is the SCI version. I'm using SCI Companion 3.0.1.7.


PD: And for your interest, with 3.1.0.3 it seems to have that classes:

(https://i.imgur.com/eyNnSDm.png)

Which version are you using btw?
Title: Re: [KQ4EGA SCI] Help with Said statement in Room84 (storage with hen/pandora's box)
Post by: doomlazer on January 03, 2025, 12:12:10 PM
I use a fairly recent version of Kawa's nightly builds (https://github.com/Kawa-oneechan/SCICompanion/releases). Strange that conjunction wouldn't be in all versions of SciCompanion. At least you got it working!