I took the code out of the example quest:
import "std.zh"
import "ffcscript.zh"
//import "string.zh"
import "stdExtra.zh"
import "ghost.zh"
import "Laser.zh"
import "styles.zh"
import "Tango.zh"
import "script/pickUp.z"
import "script/pickUpHCP.z"
import "script/RealNPC.z"
import "script/readsign4.z"
import "script/Titlescreen.z"
import "script/potscript.z"
//import "script/newshopnew2.z"
//import "script/doorshop2.z"
import "JudasRising_Shop_v0.7.3.zs"
//import "script/slot_2shop.z"
//import "script/slot_3shop.z"
I put all the scripts I could find in the same file and those I couldn't find, I would comment out.
But I still get a compile error.
Here's an
updated package of the Menu Shop that includes all of the headers that you'll require, and a readme file for versions of ZC that do not include
string.zh by default.
If you are already using
ghost.zh in your quest, you will
not want to replace it with the ghost.zh in the package.
Likewise, if you are already using
ffcscript.zh,
do not use the one in the ZIP.
The settings for the menu backdrop, the cursor combo, and the menu sounds are in the file
styles.zh.
Cursor and sound settings:
Tango_SetStyleAttribute(style, TANGO_STYLE_MENU_CURSOR_COMBO, 22912);
Tango_SetStyleAttribute(style, TANGO_STYLE_MENU_CURSOR_CSET, 0);
Tango_SetStyleAttribute(style, TANGO_STYLE_MENU_CURSOR_WIDTH, 8);
Tango_SetStyleAttribute(style, TANGO_STYLE_MENU_CURSOR_MOVE_SFX, 5);
Tango_SetStyleAttribute(style, TANGO_STYLE_MENU_SELECT_SFX, 35);
Tango_SetStyleAttribute(style, TANGO_STYLE_MENU_CANCEL_SFX, 44);
Window backdrop settings:
Tango_SetStyleAttribute(style, TANGO_STYLE_BACKDROP_TILE, 62740);
Tango_SetStyleAttribute(style, TANGO_STYLE_BACKDROP_WIDTH, 8);
Tango_SetStyleAttribute(style, TANGO_STYLE_BACKDROP_HEIGHT, 3);
Tango_SetStyleAttribute(style, TANGO_STYLE_TEXT_WIDTH, 112);
Tango_SetStyleAttribute(style, TANGO_STYLE_TEXT_HEIGHT, 24);
//Tango_SetStyleAttribute(style, TANGO_STYLE_FLAGS, TANGO_FLAG_FREEZE_SCREEN);
}
else if (size==SIZE_WIDE)
{
Tango_SetStyleAttribute(style, TANGO_STYLE_BACKDROP_TILE, 29440);
Tango_SetStyleAttribute(style, TANGO_STYLE_BACKDROP_WIDTH, 14);
Tango_SetStyleAttribute(style, TANGO_STYLE_BACKDROP_HEIGHT, 3);
Tango_SetStyleAttribute(style, TANGO_STYLE_TEXT_WIDTH, 112);
Tango_SetStyleAttribute(style, TANGO_STYLE_TEXT_HEIGHT, 24);
//Tango_SetStyleAttribute(style, TANGO_STYLE_FLAGS, TANGO_FLAG_FREEZE_SCREEN);
}
else
{
Tango_SetStyleAttribute(style, TANGO_STYLE_MENU_CURSOR_MOVE_SFX, 104);
Tango_SetStyleAttribute(style, TANGO_STYLE_BACKDROP_TILE, 62749);
Tango_SetStyleAttribute(style, TANGO_STYLE_BACKDROP_WIDTH, 8);
Tango_SetStyleAttribute(style, TANGO_STYLE_BACKDROP_HEIGHT, 5);
Tango_SetStyleAttribute(style, TANGO_STYLE_TEXT_WIDTH, 112);
Tango_SetStyleAttribute(style, TANGO_STYLE_TEXT_HEIGHT, 64);
This does not work with the normal distribution of
Tango.zh. If you are already using Tango, then avoid using this script, as the modifications needed, are too complex for a non-scripter to perform.
If you encounter errors, post them. You can find them, automatically saved, inside of
allegro.log.
If you have an existing
global active script, you will need to merge
global script Tango, into it.
If you have a
global Init script, you will need to do the same with the included
Init script.
All settings related to the
shop script are in the file
JudasRising_Shop_v0.7.3.zs.