On 27 Nov 2006, at 20:22, Alban Bedel wrote:
A crucial element of conversations seems to be the saveRestoreVerbs
op-code, which is exposed as three functions in SCUMMC:
saveVerbs(saveID, start, end)
Sets saveid for each verb from start -> end, where saveid == 0
restoreVerbs(saveID, start, end)
Sets saveid to 0 for each verb from start -> end, where saveid ==
saveID. Any verbs where saveid is already 0 are killed.
deleteVerbs(saveID, start, end)
Kills verbs from start -> end where saveid == saveID.
(Note that in all cases, start and end are indexes in the verb list)
Hmm, are you sure of the argument order ? From the ScummVM code
(script_v6.cpp:o6_saveRestoreVerbs) it seems the saveID come last
and not first.
It seems you are right.
By some fluke my first example (making the main verb's vanish)
worked. However, upon further testing, I figured i was specifying the
values in the wrong order. Yikes!
For future reference, the the correct template is:
saveVerbs(start, end, saveID);
restoreVerbs(start, end, saveID);
deleteVerts(start, end, saveID);
So my first example would actually be:
saveVerbs(SntcLine, Pull, 1);
// ...
restoreVerbs(SntcLine, Pull, 1);
Also be sure to change the order of the calls in my other email. As
you said, saveID should come last, not first :)
Sorry for jumping the gun. I'll make sure i do a bit more testing
next time :)
-SJU
_______________________________________________
ScummC-general mailing list
[email protected]
https://mail.gna.org/listinfo/scummc-general