Place
A ZScript Test Quest.qst
is:
C:\Users\sprit\Desktop\Jason's Things\Zelda Classic 2.5 Stuff\Zelda Classic\ZSCript Test\demo
std.zh
and also
std_constants.zh
and also
std_functions.zh
are all in
C:\Users\sprit\Desktop\Jason's Things\Zelda Classic 2.5 Stuff\Zelda Classic\ZSCript Test\demo
Here is my exact script (I know I can do item script but I intentionally want global script so I know how better to code things in global script when I need to) :
import "std.zh" const inst BombX = 0; //BombX will be at X position of wherever Link places a Bomb const inst BombY = 0; //BombY will be at Y position of wherever Link places a Bomb global script IfBombIsBWeaponItem { void run() { if ( Link->Equipment = Bomb ) { if ( Link->PressB ) { Game->Counter[CR_LIFE] = Game->DCounter[CR_LIFE]-1; } } } }
Here is the errors I am getting:
PASS 1: PARSING LINE 2: SYNTAX ERROR, UNEXPECTED IDENTIFIER, EXPECTING FLOAT, ON TOKEN INST FATAL ERROR POO: CAN'T OPEN OR PARSE FILE! -- PRESS A KEY --
Please help me fix my global script so that it will compile as a working global script, thank you so very much.